SV3 logo

floorLiability

Floor value of actual token supply, rounded up.

floorValueUp(actualSupply, floorPriceWad). This is the USDC that would be owed if every token redeemed at floor. It is the first term of requiredBacking.

Import

import { floorLiability } from "@repo/contract-client/math";

Usage

const liability = floorLiability(snapshot);

Return Value

UsdcRaw

Parameters

snapshot

  • Type: MarketSnapshot

Uses actualSupply (not curve supply) and floorPriceWad.

floorLiability(snapshot);

Error

None for a well-formed snapshot.

Tips

  • Actual supply includes the supply offset. Using curveSupply here would understate the obligation.