Documentation Index
Fetch the complete documentation index at: https://kamino.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Core Position Calculations
Three calculations describe any leveraged position: Net Equity (the capital at risk), Leverage (the amplification multiplier), and Max Leverage (the protocol’s constraint).- Net Equity
- Leverage
- Max Leverage
Definition: Actual ownership value after repaying all debt.Formula:Example:
$5,000 collateral - $4,000 debt = $1,000 net equityAPI/SDK Source: obligationStats.netAccountValueSignificance: Net equity represents the initial capital plus accumulated profits or minus accumulated losses. When collateral value decreases or debt increases, net equity declines proportionally. Liquidation occurs when net equity approaches zero (when Current LTV approaches Liquidation LTV).Profitability: Net APY
Leverage amplifies both yield and costs. Net APY quantifies whether a leveraged position generates profit after accounting for borrow costs.Formulas
Net APY depends on three variables: collateral yield (from reserve supply APY), borrow rate (from reserve borrow APY), and leverage (from user input or current position). All three values are dynamic and adjust with market conditions. Integrations should recalculate Net APY whenever leverage changes or at regular intervals (e.g., every 60 seconds) to reflect current rates.
Examples
- Positive Spread
- Negative Spread
- RWA Example
| Metric | Value |
|---|---|
| Collateral Yield (JitoSOL) | 7% |
| Borrow Rate (SOL) | 6% |
| Leverage | 8x |
| Yield Spread | 1% |
| Net APY | 14% |