Skip to main content

estimateBorrowApy

@liquidium/client


@liquidium/client / estimateBorrowApy

Function: estimateBorrowApy()

estimateBorrowApy(borrowApr): bigint

Defined in: packages/client/src/core/rates.ts:16

Estimates borrow APY from a current RAY-scaled APR.

The estimate mirrors the protocol's per-second borrow compounding and assumes the current APR remains unchanged for a 365-day year.

Parameters

borrowApr

bigint

Returns

bigint