Skip to content
docs

rayToApyPct

rayToApyPct(rate): number

Defined in: protocol-lending-aave-evm/src/reserve.ts:76

Ray rate → APY in percent, compounded per second the way the Aave UI shows it. expm1(n·log1p(x)) rather than pow(1 + x, n): with x ≈ 1e-9 and n = 31 536 000 the pow form depends on the engine’s libm (Hermes on Linux drifted past 0.01 %).

bigint

number