Health Factor
Aave V4 computes one health factor per account. In Avana an account is one PositionProxy holding one market, so each market a wallet uses has its own health factor.
Overview
The health factor compares an account's collateral, weighted by its collateral factor, with its total debt over every debt reserve. Aave V4 computes it on the CDP Spoke with standard accounting. An account below 1.00 can be liquidated, partially, through LPVaultSwap.
Each wallet has one PositionProxy per CDP Spoke and market, and each proxy is a separate Aave account. A price failure, breaker or liquidation in one market never changes another market's account. A token price shared by two markets moves both by design; the per-Hub token caps bound that shared exposure.
Calculation
healthFactor = (collateral value × CF) / Σ debt value of every debt reserve- Collateral value is the account's supplied vault tokens at the market's LPOracle price, with no haircut.
- Each debt reserve is valued at its own Aave price: GHO at Aave's fixed $1, any other debt asset through its DebtOracle. A rise in a debt asset's price lowers the health factor with no collateral move.
- Every rounding is against the account: the result is rounded down, and debt rounds up.
- With no debt the health factor is the maximum value. Debt-free means the account has zero debt on every debt reserve.
Borrow Limits
Aave's own rule is the only on-chain limit Avana relies on: Aave refuses any borrow or withdrawal that would leave the health factor below 1.00. Avana sets no opening health floor of its own. The borrower chooses its headroom with the minimum health factor it passes to each borrow, withdrawal with debt or partial removal with debt.
| Limit | Value | Where |
|---|---|---|
| Aave health-factor threshold | 1.00 | On-chain, in the CDP Spoke |
minHealthFactor | Chosen by the caller | On-chain argument, checked by the RiskModule after the Spoke call |
hardHealthFloor | 0 (off) on every launch market; bounds 1.00 – 1.25 when set | Optional per-market floor, set only if stress tests justify it |
| Recommended borrow | 1.10 | Shown by the app next to the maximum at 1.00; never enforced |
After a borrow or a withdrawal with debt, the RiskModule requires the health factor, with rescue units valued at zero, to be at least the largest of 1.00, the market's hard floor and the caller's minimum. Example: with $100,000 of collateral at a 70% collateral factor, the app shows $63,636 recommended ($70,000 / 1.10, rounded down) and $70,000 maximum.
A hard floor is raised or enabled at the short delay of 12 hours and lowered at the normal delay, by at most 0.03 per step; disabling it sets it to 0 in one step.
Worked Numbers
Example values; each market's parameters are set at listing. Market 3 is a USDC/USDT Uniswap v3 market on Ethereum. One whole vault token is worth $2.00, CF_LP is 8,000 bps, USDC is priced at $0.9999, and there is no hard floor.
Borrow
| Step | Result |
|---|---|
| Carol pledges $20,000 of collateral | CF-weighted collateral $16,000 |
| Borrow preview | Recommended 14,546.91 USDC (HF 1.10); maximum 15,921.97 USDC (HF 1.00) |
| Carol borrows 13,000 USDC with a minimum health factor of 1.20 | 16,000 / 12,998.70 = 1.2309; accepted |
| A borrow of 14,000 USDC instead | HF 1.1430, below her 1.20; reverts with HealthFactorTooLow |
Withdraw
Carol adds a second position of $5,000. Her account holds $25,000 of collateral, $20,000 CF-weighted, against 13,000 USDC of debt, a health factor of 1.5386.
| Action | Result |
|---|---|
| Withdraw the $5,000 position with a minimum of 1.20 | HF 1.2309; the position and its fees return to Carol |
| Withdraw the $20,000 position instead | HF would be 0.3077; Aave reverts with HealthFactorBelowThreshold |
| Repay all and withdraw in one call | Debt-free exit; reads no pause state, breaker, freeze, price or sequencer gate |
Partial removal
From the same two-position account (HF 1.5386), Carol removes 2,000 whole tokens (about 2,000 USDC and 2,000 USDT) from her first position and keeps it pledged. The record falls to 8,000,000,000 units, collateral falls to $21,000 and CF-weighted collateral to $16,800, so the health factor is 16,800 / 12,998.70 = 1.2924, above her 1.20 minimum. The remaining record must still be worth at least the $10 minimum pledge.
Rescue Top-Ups
Adding collateral is a borrower's cheapest way out of liquidation, so containment never refuses it. A rescue top-up is a pledge into an account with debt whose health factor is below rescueHealthFactor, which is fixed at 1.10. Its charge is capped at the amount that brings the account back to 1.10.
- It passes a Hub in the Frozen or Paused (General) state, a tripped circuit breaker, the pool-share cap and an address freeze. A Hub paused for a suspected mint-path exploit refuses it.
- It needs only $10 or the market minimum pledge, whichever is lower, and can use the market's reserved top-up slice (10% of the market cap) when the regular budget is full.
- The record cap still applies.
- The units it adds are rescue units. Aave counts them in full for health and liquidation, but Avana values them at zero when it checks a new borrow, a withdrawal with debt or a partial removal with debt, so they never support new debt.
Example: an account at health factor 1.2000 with $10,000 of debt holds $1,000 of rescue units at an 8,000 bps collateral factor. Excluding them removes $800 of CF-weighted collateral, so the health factor Avana checks for new debt is 1.1200.
Account Limits
- One collateral market per account: the proxy's market.
- At most 16 open records (positions) per account and market. A 17th pledge reverts with TooManyRecords; the borrower adds to an existing position with re-credit instead. The cap keeps a seizure of a whole account within one transaction: 16 records cost at most 5.15M gas, under 31% of the 16.78M per-transaction limit.
- The number of debt reserves per account is bounded by the CDP Spoke's per-account reserve limit, set by the Aave DAO.
- No minimum debt. Any borrow above 0 that passes the other checks is accepted. Avana's own keepers liquidate every account below 1.00 whatever its size and pay the gas.
Prices and Health
Aave values every reserve at the price its source serves. Under a failing price the oracles serve conservative prices, so the health factor can only move against the borrower, while nothing is ever seized or repaid at those prices.
| Price state | Collateral in Aave | Non-GHO debt in Aave |
|---|---|---|
| Live, routes agree | Accepted price | Accepted price |
| Routes disagree | Built from the lower route answers | Higher route answer |
| Cached (up to 1 hour) | Last accepted price | Last accepted price |
| Expired | Worthless (the smallest price Aave accepts) | Last accepted price raised by the asset's stress rise |
Borrowing and withdrawals with debt need fresh, agreeing prices for the market and every debt reserve of the account. After an Expired price recovers, and for one hour after a Base sequencer restart, only accounts below health factor 0.95 can be liquidated, which gives borrowers time to act.
User Actions
- Borrowing more lowers the health factor.
- Repaying raises it immediately. Anyone can repay any account's debt, and no Avana pause, breaker, freeze or price state blocks repayment.
- Pledging another position, a rescue top-up or a re-credit of added liquidity raises it.
- Repaying with collateral repays debt from part of a pledged position in one flash-funded call, and the health factor after the call cannot be lower than before it.
- Withdrawing or removing liquidity with debt must leave the health factor at or above the caller's minimum and 1.00.
For how each market's collateral factor is set, see Collateral Factors.
