GuideThe math behind every position.
Five formulas drive everything visible on the dashboard. Knowing them lets you predict your borrowing power, your APY, and exactly when liquidation gets close — without leaving the math to the UI.
5Core formulas — exchange rate, utilization, rates, collateral, health
Per-blockBorrow rate accrues every block on-chain
≥ 1Health factor threshold for liquidation eligibility
Exchange rate
Every rToken (Rheofi's interest-bearing token) has an exchange rate that determines how many underlying tokens one rToken is worth. The exchange rate increases over time as interest accrues:
exchangeRate=totalSupply of rTokenstotalCash+totalBorrows−totalReserves
When you supply assets, you receive rTokens based on the current exchange rate. When you redeem, you receive more underlying tokens than you originally deposited — that delta is the interest you earned.
Utilization rate
Utilization rate measures how much of supplied liquidity is currently being borrowed:
U=totalCash+totalBorrows−totalReservestotalBorrows
Higher utilization → greater borrowing demand → higher interest rates.
Interest rate calculations
Rheofi uses a jump rate model for most markets. The borrow rate is calculated per block:
- When U≤Ukink: borrowRate=U×multiplier+baseRate
- When U>Ukink: borrowRate=Ukink×multiplier+(U−Ukink)×jumpMultiplier+baseRate
The supply rate is derived from the borrow rate:
supplyRate=U×borrowRate×(1−reserveFactor)
Collateral factor
Each asset has a collateral factor (between 0 and 1) that determines how much borrowing power it provides:
borrowingPower=∑(suppliedValuei×collateralFactori)
A collateral factor of 0.75 means: for every 100ofcollateralsupplied,youcanborrowupto75.
Health factor
The health factor determines whether a position is at risk of liquidation:
healthFactor=totalBorrowValue∑(collateralValuei×liquidationThresholdi)
A health factor below 1 means the position is under-collateralized and eligible for liquidation. Maintain a value well above 1 to absorb price volatility without getting liquidated.