Skip to main content

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).
Definition: Actual ownership value after repaying all debt.Formula:
Net Equity = Total Collateral Value - Total Debt Value
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 = (Collateral Yield × Leverage) - (Borrow Rate × (Leverage - 1))
Alternatively, using Yield Spread = Collateral Yield - Borrow Rate:
Net APY = Collateral Yield + (Yield Spread × (Leverage - 1))
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

MetricValue
Collateral Yield (JitoSOL)7%
Borrow Rate (SOL)6%
Leverage8x
Yield Spread1%
Net APY14%
Calculation: 7% + (1% × 7) = 14%Positive spread amplified by leverage produces outsized returns.
Borrow rates are variable and adjust based on market utilization. A positive yield spread today can flip negative during high-utilization periods. Monitor the spread continuously—not just the headline APY shown at position open.