> For the complete documentation index, see [llms.txt](https://docs.keystonefi.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.keystonefi.xyz/start-here/volatility-risk-management.md).

# What can go wrong

{% hint style="info" %}
**TL;DR** The hedge removes most of SOL's price move, not all. The residual has three sources: jitoSOL/SOL depeg (the largest, with nothing in front of it), delta drift inside the rebalance band, and the perp trading away from spot. This page sizes each.
{% endhint %}

How the ksUSD vault handles volatility, slippage, and oracle stress.

**NAV** below is the total dollar value of everything the vault holds. A **settle** is a routine update anyone can trigger that refreshes the vault's numbers from the venues it uses.

***

## Built-in protections

Each of these is enforced on-chain rather than by the keeper, so none of them depends on someone being awake:

| Layer                       | Mechanism                                                                                                                                                            | Default                               |
| --------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------- |
| **Liquidity buffer**        | Idle USDC kept on-vault for instant withdrawals                                                                                                                      | 10% of NAV                            |
| **Drawdown guard**          | `emergency_close` callable by anyone once `(peak − current) / peak ≥ emergency_close_dd_bps` AND `consecutive_dd_settles_observed ≥ consecutive_dd_settles_required` | 5% NAV drop, sustained 2 settles      |
| **Mode-switch dwell**       | Minimum time between mode changes to prevent ping-pong on noisy funding                                                                                              | 12 h                                  |
| **Funding EMA + staleness** | Smoothed funding on-chain; opens revert if stale                                                                                                                     | 6 h staleness                         |
| **Drawdown latency**        | Two consecutive sub-threshold settles required before drawdown trips                                                                                                 | `consecutive_dd_settles_required = 2` |
| **Slippage cap**            | Jupiter swaps revert if executed price worse than `max_swap_slippage_bps`                                                                                            | 0.5%                                  |
| **Oracle staleness**        | Pyth feed must have an update within the staleness window                                                                                                            | 5 min                                 |
| **Oracle confidence**       | Pyth `confidence / price` must be tight                                                                                                                              | < 2%                                  |
| **LST depeg check**         | `settle` auto-pauses if `jitoSOL / SOL < 1 − lst_depeg_bps`                                                                                                          | 5%                                    |
| **NAV change cap**          | `attest_nav` delta bounded per hour                                                                                                                                  | ±10%/hr                               |
| **HWM monotonicity**        | Performance fees can't be charged twice on the same gains                                                                                                            | Always                                |
| **Deposit cap**             | Total NAV cap to bound systemic exposure during early operation                                                                                                      | $500k at launch                       |
| **Wind-down path**          | Terminal admin instruction that blocks new state and switches users to pro-rata claim                                                                                | Manual                                |
| **Minimum margin**          | `open_position` rejects a position that posts less margin than this at the venue                                                                                     | ≥9% of deployed capital               |
| **Margin ceiling**          | `add_margin` refuses to post more than half of effective NAV to the venue                                                                                            | 50% of NAV                            |
| **Margin top-up**           | Keeper adds collateral when health falls, restoring it before liquidation                                                                                            | Automatic                             |

"EMA" above is an exponential moving average, a running average that weights recent readings more heavily. The vault uses one to smooth the funding rate so a single odd hour can't move the decision.

***

## On stress events

### Deeply negative funding

Phoenix funding averaged −14% across February 2026, and single hours run far beyond any monthly mean. The smoothed funding rate and the dwell timer stop the vault from flipping on one bad sample, so it waits for a sustained signal.

An open short is held until the 7-day mean falls below the exit line (−2.88%). Then the vault closes it and parks in USDC lending rather than paying funding or trying to harvest it; v1 has no mode that borrows. In February that exit came on the 3rd, and the month still closed positive.

### jitoSOL depeg

`settle` reads both Pyth feeds. If `jitoSOL/SOL` falls below `1 − lst_depeg_bps`, it reverts with `LstDepeg` and pauses the vault. Any existing position stays open, but nothing new can be opened. The admin then investigates and either unpauses or calls `emergency_close`.

### Oracle outage

The Pyth staleness and confidence checks make every strategy instruction that needs a SOL/USD price revert. Deposits and instant withdrawals don't read the oracle at all, so those keep working through a brief outage.

### Phoenix outage / market halt

Strategy instructions fail at the point where they call into Phoenix. Open positions keep accruing funding, since the venue settles that internally, and the next `settle` refreshes NAV. If a position has to be exited urgently, `emergency_close` can run as soon as the market can be read again.

### Sharp SOL rally

**The vault is not levered.** Its total exposure equals its NAV, and the short is sized 1:1 against the jitoSOL it holds — that 1:1 is what makes the book neutral in the first place. A SOL rally can't hurt the portfolio.

It can still hurt the *position*, because the two legs sit in different places. Only about 8% of NAV (9.1% of deployed capital) is posted at Phoenix as margin; the rest of what backs that short is the jitoSOL held here in the vault, which Phoenix cannot see. So on a rally the short's loss eats visible margin while the exactly offsetting jitoSOL gain sits somewhere outside Phoenix's accounting. From the venue's point of view the position looks thinly collateralised, and its liquidation engine acts on its own view — closing a position that was never economically at risk and turning a paper wash into a real loss.

The drawdown guard cannot catch this. `emergency_close` triggers on NAV falling, and NAV *doesn't* fall in a hedged rally, because the legs offset. The vault reads healthy right up to the moment Phoenix liquidates.

So the keeper watches it directly. The `margin-health` duty runs every tick, right after `settle`, and moves USDC into Phoenix margin when the cushion thins, funded by the leg that is gaining at that same moment. Every top-up is bounded twice: it can never draw on the withdrawal buffer, and total posted margin can never exceed half of effective NAV.

Margin only moves one way. There is no instruction that takes collateral back off a live position; surplus returns when the position closes, which the vault does on its own at the next mode flip. That costs a little yield while it sits, and buys the guarantee that nothing in the system can under-collateralise a live short.

Topping margin up is an active defence rather than a static cushion, so on its own it would depend on the keeper running. It doesn't, because there is a second defence underneath it.

**Below a hard margin floor, anyone can de-lever the position.** Not top it up but shrink it: buy back part of the short and sell the matching slice of jitoSOL, both legs by the same fraction, so net exposure never moves. Notional falls and collateral rises at once, and margin health improves from both directions. A permissionless caller can only route the proceeds back to margin, never to the buffer, so the path cannot be used to drain the position.

That floor ships **disabled** (`hard_margin_floor_bps` defaults to 0) and wants a deliberate value set alongside the first position. Until it is set, the keeper is the only line of defence, and if auto-margin is off or the keeper is down, the position should be closed rather than left to sit. Thresholds and the measured move sizes behind them: [keeper bot](https://docs.keystonefi.xyz/run-it/keeper-bot.md#the-keeper-moves-margin-autonomously) and [instructions](https://docs.keystonefi.xyz/build-on-it/quick-start/instructions.md#why-margin-is-its-own-instruction).

### NAV reconciliation drift

If a keeper-reported NAV would move more than `max_nav_change_bps_per_hour` in one step, `attest_nav` reverts with `NavChangeExceedsCap`. The keeper then stages several smaller updates across consecutive hours. An outsized jump is a signal to investigate, not something to push through.

***

## What's *not* protected

* **Residual price risk. The hedge is near-zero, not zero.** The vault is delta-hedged by design, but three things stop the offset being exact:

  * **jitoSOL is not SOL.** The spot leg is jitoSOL and the short is SOL-PERP, so the two only cancel while the jitoSOL/SOL ratio behaves. A depeg is a direct loss; a 5% move trips the auto-pause, and the loss lands on NAV with no reserve fund in front of it (see the whitepaper).
  * **Delta drifts between rebalances.** The short is sized when the position opens, and jitoSOL then appreciates against SOL at the staking rate, about 1.35 basis points a day. `rebalance_hedge` sweeps that back whenever the drift passes the **25 bps band**, roughly every two and a half weeks, so the book is never more than a quarter of a percent off-hedge in normal conditions. The program computes the target itself from the spot balance and the stake-pool redemption rate; the keeper supplies no size, and cannot steer the hedge. Corrections are clipped per call so a large one walks in over several orders rather than one thin sweep.
  * **The perp can trade away from spot.** Mark and index diverge, especially under stress, and the position is marked against the perp.

  Staking accrual is hedged too. The appreciation *is* the yield, and left unhedged it would be denominated in SOL, its dollar value floating with the market.

  None of this is large in normal conditions, and the backtest's −0.314% max drawdown is measured through a month in which Phoenix funding averaged −14%. But "no price risk" would be the wrong claim, and it is not the one made here.
* **A falling staking rate.** Staking is the engine, and Solana's emission schedule takes it down: **SIMD-0550** passed on 28 August 2026 and doubles disinflation from −15%/yr to −30%/yr from early 2027, pulling the 1.5% terminal rate forward to roughly 2029. Nothing in the vault offsets that. As the staking rate falls the mode threshold rises, the vault parks more of the time, and the return leans harder on funding — gradually rather than breaking, because parking is a floor. On the backtest window the edge over lending narrows from +268 bps at 4.94% jitoSOL to +152 bps at 3.00% and never turns negative across the 2.00–5.50% sweep (its low is +110 bps at 2.80%), though the low-staking rows are mode-behaviour noise and rest on a window whose last month was the venue's best. The schedule, the two break-evens and the full sweep are in [the whitepaper's staking runway](https://docs.keystonefi.xyz/how-it-works/whitepaper.md#vii-the-staking-runway).
* **Smart-contract bugs.** The program is unaudited until the planned pre-mainnet audit. Don't deploy significant capital until the results are published.
* **Counterparty insolvency.** A critical exploit or a compromised upgrade key at Phoenix, Ember, Kamino, Jupiter, or Jito would flow straight through into NAV losses.
* **Black-swan slippage.** The modelled max drawdown of **−0.314%** charges a fixed 10 bps of perp slippage a side and does not simulate price impact in a thin book. A depeg plus a \~50 bps round-trip reprice on the basis leg gives a month of −1.64% at a 1% discount, −2.45% at 2% and −4.91% at 5%, and it lands on the share price.
* **Regulatory action.** A jurisdiction restricting access to Solana DeFi could squeeze redemption liquidity for affected users.

***

## Related

* [Security model](https://docs.keystonefi.xyz/reference/security.md)
* [NAV & share pricing](https://docs.keystonefi.xyz/how-it-works/strategy-and-modes/nav-calculation.md) · [Whitepaper — Risk](https://docs.keystonefi.xyz/how-it-works/whitepaper.md#risks)
