Getting Started
Lending & borrowing
Pools, interest rates, collateral and the health factor.
All financial operations are managed by smart contracts deployed on Elysium. The LendingPool contract holds every market.
#The lending engine
Each market has its own pool with:
- Debt accounting through a borrow index, so interest accrues continuously.
- A utilization-based interest rate model: rates rise gently until an optimal utilization (the kink), then steeply, to protect withdrawals.
- Loan-to-value (LTV) ratios that cap how much can be borrowed against an asset.
- Liquidation thresholds above which a position becomes liquidatable.
- Supply and borrow caps.
- Bad debt accounting, covered by the insurance reserve first.
#Interest rate model
if utilization <= optimal:
borrowRate = base + (utilization / optimal) * slope1
else:
borrowRate = base + slope1 + (utilization - optimal) / (1 - optimal) * slope2
supplyRate = borrowRate * utilization * (1 - reserveFactor)| Asset | Base | Slope 1 | Slope 2 | Optimal utilization |
|---|---|---|---|---|
| USDC | 0% | 6% | 60% | 90% |
| WHYPE | 0% | 7% | 150% | 65% |
| UBTC | 0% | 4% | 150% | 60% |
| UETH | 0% | 4% | 150% | 60% |
#Health factor
Your health factor compares what your collateral would be worth in a liquidation to what you owe:
healthFactor = Σ (collateral value × liquidation threshold × (1 − liquidation haircut)) / total debt- Above 1: your position is safe.
- Below 1: your position can be liquidated.
Because the liquidation haircut reflects real order book liquidity, Aethr's health factor is a liquidity-adjusted health factor: it accounts for the price you'd actually get.
Use the account preview endpoint (POST /v1/accounts/:address/preview) to see your health factor before and after any action, before you sign anything.