Treasury that accumulates collateral fees and exposes a standalone, keeper-gated {elevate} trigger that raises the reference price on the ReferenceCurve bonding curve once a configurable threshold is reached. Source: src/core/treasuries/ElevationTreasury_v1.sol. Interfaces: IElevationTreasury_v1, ITreasury_v1.

Functions

elevate

Elevates the reference curve using the treasury’s accumulated collateral, in its own transaction, gated to a trusted keeper. Parameters Returns IElevationTreasury_v1.sol#L118

fetchFunds

Fetches token funds into the treasury. Parameters ITreasury_v1.sol#L49

setThreshold

Sets the minimum accumulated balance {elevate} requires before it will raise the reference curve. Parameters IElevationTreasury_v1.sol#L86

View functions

getFunds

Returns the total funds in the treasury. Parameters Returns ITreasury_v1.sol#L41

getThreshold

Returns the minimum accumulated balance {elevate} requires before it will raise the reference curve. Returns IElevationTreasury_v1.sol#L76

Events

ElevationExecuted

Emitted on every {elevate} call (including a no-op when the curve has no headroom). Parameters IElevationTreasury_v1.sol#L61

ThresholdUpdated

Emitted when the threshold is updated. Parameters IElevationTreasury_v1.sol#L68

Treasury_FundsReceived

Emitted when token funds are received. Parameters ITreasury_v1.sol#L31

Errors

Module__ElevationTreasury__DeadlineExpired

Thrown when a deadline is invalid or {elevate} runs after either the admin-authorized deadline or the keeper-supplied deadline. Parameters IElevationTreasury_v1.sol#L42

Module__ElevationTreasury__InvalidThreshold

Thrown when an invalid (zero) threshold is provided. IElevationTreasury_v1.sol#L34

Module__ElevationTreasury__SupplyCapExceeded

Thrown when live supply exceeds the lower of the admin cap and keeper cap. Elevation aborts before any funds move. Parameters IElevationTreasury_v1.sol#L46

Module__ElevationTreasury__ThresholdNotReached

Thrown when {elevate} is called but the accumulated balance is below the configured threshold. IElevationTreasury_v1.sol#L38