@somnia-chain/markets-sdk / index / isFundingStale
Function: isFundingStale()
isFundingStale(
lastFundingUpdateAt,fundingIntervalSec,nowSec,staleAfterIntervals?):boolean
Defined in: packages/sdk/src/funding.ts:136
Whether a pool's funding has gone stale — no settlement for staleAfterIntervals
worth of time.
Settlement is permissionless and LAZY, so a due settlement simply may not have happened. One missed interval is routine; a sustained gap means funding is not accruing, and on the zero-open-interest branch it is being forgiven with no event at all. Two intervals is a deliberately forgiving default.
Parameters
lastFundingUpdateAt
bigint
fundingIntervalSec
number
nowSec
bigint
staleAfterIntervals?
number = 2
Returns
boolean