Market Lifecycle
A market enters Avana only after a five-day public review and an on-chain match check against Aave's configuration, and leaves through a wind-down with no force-close power over borrowers.
Overview
A market is one chain, AMM protocol, pool and exact position shape. It has one vault token and one collateral reserve on one CDP Spoke. A CDP Spoke is one standard, unmodified Aave V4 Spoke per chain, Hub, AMM protocol and risk tier; examples today are "Uniswap v3 Stable" on the Avana Ethereum Hub and "Aero Slipstream Blue-chip" on the Avana Base Hub.
Every lifecycle operation runs on one chain through that chain's AvanaTimelock. Ethereum and Base each have their own timelock, governance multisig, guardian, MarketRegistry, ParameterStore and keepers. A market never moves to another CDP Spoke.
The pools and listing criteria themselves are described on the allowed pools page: Allowed LP Pools.
States and Transitions
Registered → Active → (Frozen) → Offboarding → Closed| State | Meaning | How it is reached |
|---|---|---|
| Registered | Stored but not usable; every pledge reverts | The listing batch executes after the normal delay |
| Active | Open to pledges and borrowing | activateMarket at the short delay, after the on-chain match check |
| Frozen | Active with the Aave freeze of its vault-token reserve: no pledges into it and no borrows by accounts holding it. Not stored by Avana; derived from Aave's flag | The Aave Protocol Guardian (one-way) or the Aave DAO freezes the reserve; only the Aave DAO unfreezes it |
| Offboarding | New pledges and borrowing blocked; repay, fees, withdrawals and liquidation continue; wind-down ramp after the notice | setMarketOffboarding at the short delay, with the Aave freeze |
| Closed | Final; remaining debt-free positions stay withdrawable forever | closeMarket by anyone once the market's total debt is zero |
| Cancelled | A registration that never went live; its market ID stays reserved for the pool | cancelRegistration at the short delay, only from Registered |
- Offboarding and Closed are final. No MarketRegistry function returns such a market to Active.
- A market is never deleted, because its vault token stays bound to its Spoke and pool and its debt-free positions stay withdrawable.
- The Hub's pause state applies on top of the market's own state, and on Base so does the sequencer gate. Circuit breakers are not lifecycle states: a tripped breaker stops new activity while the market stays Active.
Deployment Operations
Three timelocked operations, each at the normal delay, bring a CDP Spoke, a market and a debt reserve into Avana.
| Operation | What it does |
|---|---|
deployCdpSpoke(p) | After the Aave payload has deployed a standard Spoke and its AaveOracle and registered it on the Hub, records the Spoke with its home Hub, AMM integration, risk tier, AaveOracle and implementation, and sets the expected liquidation configuration (target health factor 1.10 and minimum bonus 200 bps as Avana's guidance; the Aave DAO decides). Reverts unless the Spoke is registered on an Avana Hub, no CDP Spoke exists yet for that Hub, integration and tier, and the integration's LPVault is deployed. |
listCollateralMarket(def) | Deploys the vault token through the factory, binds the market to the AMM integration's LPVault with its exact range, and records feeds, second sources, standby routes, issuer probes, swap routes into every debt asset, caps and the minimum pledge value. The market is Registered. |
enableDebtReserve(spoke, def) | Records a debt reserve with its asset and funding Hub, checks the credit line against the coverage of the Avana Umbrella (Coverage Spoke), checks that every market on the Spoke has a primary and backup swap route into the asset, checks liquidation liveness and the flash source, and enables borrowing. A non-GHO asset first gets its own DebtOracle. |
Listing Steps
- The Aave V4 risk service providers and Avana publish the listing package: thresholds and evidence for every listing rule, caps, the minimum pledge value, pool risk factor, each feed's published heartbeat, standby routes and issuer probes.
- Avana operators deploy the market's LPOracle, which must seed a Live price at initialization, and raise the pool's observation buffer to cover the TWAP window at the chain's block time.
- The governance multisig schedules one timelock batch at the normal delay. On the first market of a Spoke it includes the Spoke registration, the liquidation expectations and the first debt reserve; then new feeds, token collateral factors, tolerances and token listings; the vault-token deployment; the market registration; the market's parameters, caps and minimum pledge value; and the swap routes. Scheduling is public and starts the five-day review; any canceller can cancel the batch.
- The Aave DAO executes the listing payload: the CDP Spoke and its AaveOracle on a Spoke's first market, the debt reserves, the flash-borrower role for the public flash liquidation helper and the flash source, the funded Coverage Spoke, the Hub asset with zero liquidity fee, and the vault-token reserve with borrowing off, share receiving off, liquidation fee 0, no reinvestment controller and the LPOracle as price source.
- After the delay, anyone executes the batch. The MarketRegistry stores the market as Registered and runs every on-chain listing check. Operators poke the LPOracle and confirm a Live price.
- Operators run the off-chain live-configuration check against the approved deployment manifest. Keepers add the market in observe-only mode.
- The governance multisig schedules
activateMarketat the short delay; anyone executes it.
Activation
Markets are created inactive so that no user action can reach a market whose Aave side has not been verified. activateMarket(marketId) reverts with ActivationCheckFailed unless every check passes:
- The market is Registered, and the CDP Spoke's implementation and debt reserves match those recorded.
- The vault-token reserve exists with the right decimals, borrowing off, share receiving off, not paused or frozen, liquidation fee 0, and a collateral factor above 0 and at most the expected value.
- The reserve's price source is the market's LPOracle and the LPOracle is Live; each debt reserve's price source matches.
- The vault-token asset is listed only on its CDP Spoke, every draw cap on it is 0 and Hub shares equal assets.
- Both swap routes of every pool token into every debt asset are registered and usable, and the liquidation liveness inequality holds.
- The configuration drift check finds nothing.
The short delay suffices because every market field except the Aave reserve identifiers was fixed at registration after the full review, and activation succeeds only when the executed Aave payload matches it. The 12 hours give cancellers time to stop an activation that looks wrong off-chain.
Timelock Delays
| Class | Delay | Lifecycle operations |
|---|---|---|
| Normal | 5 days (bounds 4 to 5 days) | Spoke registration, market listing, debt-reserve enabling and removal, token listing, feed definitions, new price sources and standby routes, new swap routes, every loosening, restoring a price route, upgrades |
| Short | 12 hours | Activation, cancelling a registration, starting offboarding, every tightening, disabling or restoring a previously approved swap route, freezes, pauses, breaker trips, a timelock standby switch |
| Immediate (guardians) | None | Application freeze or pause, address freeze, breaker trips and the standby route switch; each only stops new activity or replaces a route with one reviewed at listing |
| Aave governance | Aave's own process | Collateral factors, bonus, collateral risk, Hub add caps, Spoke draw caps (credit lines), reserve freezes and unfreezes |
A ready operation can be executed by anyone until 14 days after it became ready; after that it expires and must be scheduled again. An operation takes the short delay only when every call in it is on the short-delay list, so one loosening makes the whole batch wait the normal delay.
Freeze
Freezing a market is the Aave freeze of its vault-token reserve, set one-way by the Aave Protocol Guardian or by the Aave DAO. It moves an Active market to Frozen at once; only the Aave DAO unfreezes it. The RiskModule reads the flag and rejects pledges into the market and borrows by accounts holding it, while repay, withdrawals and liquidation continue. Avana keeps no market freeze of its own; a stop of new activity in one market is its market breaker.
Offboarding and Wind-Down
Offboarding is a 12-hour timelock operation, setMarketOffboarding(marketId), together with an Aave freeze of the market's vault-token reserve, which stops new pledges and borrowing at once. Repay, fee collection, withdrawals with and without debt, and liquidation stay open.
- Public notice: at least
offboardNoticeSeconds, 5 days, before the first wind-down step. - Ramp: after the notice, anyone can call
stepWindDown(marketId)at most once per day. Each step lowers the reserve's liquidation threshold through Aave's dynamic configuration, linearly over 30 days, down to 50% of the listed value. The steps are pre-approved in the Aave payload, so the ramp needs no further proposal. - The final threshold is not 0, because 0 would make every borrower liquidatable in one block.
- Existing debt is never cancelled and there is no force-close power. The ramp ends the wind-down by making each remaining borrower repay or become liquidatable at the final threshold.
- The market's price feeds, swap routes and keeper duty stay in service until closure.
LT(t) = LT₀ − ⌊(LT₀ − LT_final) × min(t, T) / T⌋Closure and Relisting
- When the total debt of every account in the market is zero, anyone calls
closeMarket(marketId); it reverts withMarketHasDebtotherwise. The market becomes Closed and its oracle, swap-route and keeper duties end. - Debt-free positions stay in custody until their depositors withdraw them, with no time limit; a debt-free withdrawal reads no price. Zero-credit records stay releasable.
- A closed market cannot reopen, and no second vault token can be deployed for the same Spoke, pool and range. The same pool and range can return only as a new market on another CDP Spoke, through the full five-day review, with a new vault token and market ID.
- Moving a pool to another risk tier is the same: a new listing on the target tier's CDP Spoke and the offboarding of the old market. Users move by repaying, withdrawing and pledging again into a new proxy.
- A registration cancelled before activation keeps its market ID reserved for its pool. A later listing of that pool reuses the ID and the existing vault token, which must name the same LPOracle.
Debt Reserves
- Each debt reserve is added per Spoke with
enableDebtReserve. GHO keeps Aave's fixed $1 price source; any other debt asset, such as USDC, is priced by its own DebtOracle. - The Aave payload lists the reserve and funds its Coverage Spoke before the Avana batch executes. The CDP Spoke's draw cap on the asset rises above 0 only after the Coverage Spoke is funded and the batch has executed.
- Removing a debt reserve (
removeDebtReserve, normal delay) reverts while any debt is drawn on it. The Aave DAO first sets its draw cap to 0 and freezes it, so borrowers repay over time while repay and liquidation stay open.
Example: Market 3
Example values; each market's parameters are set at listing. The Avana Ethereum Hub has no CDP Spoke yet. Market 3 is the USDC/USDT Uniswap v3 pool with fee tier 0.01% and the exact range fixed in the listing package, with a collateral factor of 80%. GHO is the first debt reserve, with a GHO Coverage Spoke funded to 24,000 GHO. Ethereum blocks are 12 seconds.
- Operators deploy market 3's LPOracle, which seeds a Live price of $2.00 per whole vault token, and raise the pool's observation buffer to 151.
- Day 0: the governance multisig schedules one batch at the normal delay of 432,000 seconds with the Spoke registration, liquidation expectations (1.10 and 200 bps), the GHO debt reserve, the vault-token deployment, the market listing and its parameters with a $10 minimum pledge. The calldata is public for the review.
- During the delay, the Aave DAO's Ethereum executor runs the listing payload: the "Uniswap v3 Stable" Spoke, the GHO debt reserve, the vault-token reserve and the funded GHO Coverage Spoke.
- Day 5: anyone executes the batch. The coverage check passes for a 120,000 GHO draw cap at a 20% coverage ratio against 24,000 GHO. The vault token deploys with 6 decimals and market 3 is Registered; a pledge still reverts.
- Operators poke the LPOracle (Live) and run the live-configuration check; keepers watch market 3 in observe-only mode.
- The multisig schedules
activateMarket(3)at the short delay of 43,200 seconds; anyone executes it on day 5.5 and every match check passes. - Carol pledges a $20,000 Uniswap v3 position: record 1 of 16.
- A second debt reserve, USDC, is enabled at the normal delay with a USDC Coverage Spoke funded to 50,000 USDC. A 250,000 USDC draw cap passes; 300,000 would revert. Carol borrows 13,000 USDC; her health factor is 20,000 × 0.80 / 13,000 = 1.2308.
- Offboarding: the multisig schedules
setMarketOffboarding(3)at the short delay and the Aave Protocol Guardian freezes the reserve. New pledges and borrows revert withMarketOffboarding; the app shows the notice end, 432,000 seconds later. - Wind-down: after the notice, anyone steps the ramp once a day from 80% toward 40%. On day 11 the threshold is 80% − ⌊40% × 11 / 30⌋ = 65.34% and Carol's health factor 1.0052; on day 12 it would be 64.00% and 0.9846. She repays her 13,000 USDC on day 11 and withdraws her position debt-free.
- Closure: while any account owes debt,
closeMarket(3)reverts. Once every account has repaid or been liquidated, anyone calls it. Debt-free positions left in market 3 stay withdrawable with no price read. - Relisting: market 3 never returns to Active. If the pool must come back, a new CDP Spoke is registered and the same pool and range are listed on it through the full five-day review, giving a new vault token and market ID. Carol pledges again into a new proxy.
