True LST value

For calculation purposes, both xSOL and hyUSD are priced using the pure SOL price. However, since they are backed by Liquid Staking Tokens (LSTs), we need to accurately capture the price of these LSTs at any time. Using the market price of LSTs could pose significant problems, especially during severe market volatility, when the peg of these LSTs can be lost due to lack of liquidity and also they have a greater susceptibility to manipulation compared to SOL prices. Therefore, we use the Sanctum SOL value calculator program to determine the true LST price based on the amount of SOL held in each LST stake pool.

The true price of an LST in SOL can be defined by the following equation:

True LST Price=Amount of SOL in Stake PoolTotal LST Supply\text{True LST Price} = \frac{\text{Amount of SOL in Stake Pool}}{\text{Total LST Supply}}

SOL/USD Oracle

To calculate the value of hyUSD in SOL, ensuring it remains pegged 1:1 with the USD, we need to have the SOL price. For this, we are using the Pyth EMA SOL/USD price oracle.

Net Asset Value (NAV) calculation for hyUSD and xSOL

The Net Asset Value (NAV) defines how much both tokens are worth in SOL. Since the SOL price isn’t stable, the NAV of hyUSD needs to be constantly adjusted according to the SOL price to maintain its 1:1 peg to the USD.

The NAV of hyUSD in SOL can be calculated using the following equation:

hyUSD NAVSOL=1SOL Price\text{hyUSD NAV}_{\text{SOL}} = \frac{1}{\text{SOL Price}}

Based on the hyUSD NAV in SOL, we can then calculate the NAV of xSOL in SOL using this equation:

xSOL NAVSOL=Total SOL in Reserve(hyUSD NAV×hyUSD Supply)xSOL Supply\text{xSOL NAV}_{\text{SOL}} = \frac{\text{Total SOL in Reserve} - (\text{hyUSD NAV} \times \text{hyUSD Supply})}{\text{xSOL Supply}}

Collateral Ratio calculation

The Collateral Ratio is a metric indicating the health level of hyUSD. It is extremely important to track it accurately to activate stability modes when needed. The Collateral Ratio of hyUSD can be calculated using the following equation:

Collateral Ratio=Total SOL In ReservehyUSD NAV In SOL×hyUSD Supply\text{Collateral Ratio} = \frac{\text{Total SOL In Reserve}}{\text{hyUSD NAV In SOL} \times \text{hyUSD Supply}}

Stability pool APY calculation

The stability pool APY is variable and greatly depends on the percentage of SOL value being staked, the APY of the reserve, and the defined percentage of Revenue Distribution.

The percentage of staked SOL can be calculated as follows:

%staked SOL=Total SOL in reservehyUSD Staked Amount×hyUSD NAV in SOL\%_{\text{staked SOL}} = \frac{\text{Total SOL in reserve}}{\text{hyUSD Staked Amount} \times \text{hyUSD NAV in SOL}}

The Average Reserve Yield can be calculated as follows:

Average Reserve Yield=i=1x(SupplyLSTi×PriceLSTi×APYLSTi)Total SOL In Reserve\text{Average Reserve Yield} = \frac{ \sum_{i=1}^{x} (\text{Supply}_{\text{LST}_i} \times \text{Price}_{\text{LST}_i} \times \text{APY}_{\text{LST}_i}) }{\text{Total SOL In Reserve}}

The percentage of Revenue Distribution is dynamically adapted to stay attractive. If the percentage of staked SOL is low, this percentage may be reduced to maximize treasury profit. During periods when it is high, it may be increased to remain competitive compared to other stablecoins yields.

With all of this then we can calculate the stability pool APY as follows:

APY=Average Reserve Yield×%revenue distribution×%staked SOL\text{APY} = \text{Average Reserve Yield} \times \%_{\text{revenue distribution}} \times \%_{\text{staked SOL}}

xSOL Effective Leverage

The xSOL effective leverage will change constantly. To calculate it, we first need to determine the virtual xSOL market cap. This can be calculated as follows:

Market CapxSOL=NAVxSOL×SupplyxSOL\text{Market Cap}_{\text{xSOL}} = \text{NAV}_{\text{xSOL}} \times \text{Supply}_{\text{xSOL}}

Next, we calculate the xSOL effective leverage with this equation:

Effective LeveragexSOL=Total SOL In ReserveMarket CapxSOL\text{Effective Leverage}_{\text{xSOL}} = \frac{\text{Total SOL In Reserve}}{\text{Market Cap}_{\text{xSOL}}}

The effective leverage will tend to exponentially increase as the collateral ratio gets closer to 100%, and will approach 1 (indicating it follows the SOL price perfectly) as the collateral ratio increases.