Skip to main content

sumLpFeesForPosition

@totemsdk/liquidity-bond


@totemsdk/liquidity-bond / sumLpFeesForPosition

Function: sumLpFeesForPosition()

sumLpFeesForPosition(records, positionId): bigint

Sum LP fees for a position, counting only records whose earnings are verified (or non-earnable adjustments). An unverified earnable record must never inflate an LP's entitlement.

Parameters

records

LiquidityFeeRecord[]

positionId

string

Returns

bigint