clampApy
clampApy(
apiPct,chainPct):object
Defined in: protocol-lending-curve-evm/src/math.ts:43
Bounds an API APY by the on-chain one: inside the tolerance band it stands, outside it is clamped to the band’s edge, and a missing API figure gives the on-chain one.
Parameters
Section titled “Parameters”apiPct
Section titled “apiPct”number | null
chainPct
Section titled “chainPct”number
Returns
Section titled “Returns”object
apy:
number
source
Section titled “source”source:
"chain"|"api"|"api-clamped"