Skip to content
docs

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.

number | null

number

object

apy: number

source: "chain" | "api" | "api-clamped"