---
title: floorLiability
description: Floor value of actual token supply, rounded up.
---

> **For AI agents:** the complete documentation index is at [llms.txt](/llms.txt). Append `.md` to any page URL for its markdown version.

`floorValueUp(actualSupply, floorPriceWad)`. This is the USDC that would be owed if every token redeemed at floor. It is the first term of [requiredBacking](/developers/math/required-backing).

## Import

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

## Usage

```ts
const liability = floorLiability(snapshot);
```

## Return Value

`UsdcRaw`

## Parameters

### snapshot

- **Type:** `MarketSnapshot`

Uses `actualSupply` (not curve supply) and `floorPriceWad`.

```ts
floorLiability(snapshot);
```

## Error

None for a well-formed snapshot.

## Tips

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