How the hedge works
Every deposit is matched by a short of the same size, and every withdrawal by its reduce.
Deposit
A deposit mints shares at the current share price and adds to the vault's kHYPE. The vault values it in HYPE at Kinetiq's rate, and the hedge keeper sends one intent: HYPE perp, sell, immediate-or-cancel, sized to the change.
Matching and netting
HyperCore's minimum order is 10 USDC, so deposits and withdrawals are netted. The keeper re-matches the short once the net change passes about 11 USDC (about 0.17 HYPE at today's price). Below that step the difference stays under the drift limit.
- The keeper reads
totalAssets()and the recorded short. - It computes the target short as assets times the Kinetiq rate, rounded to two decimals.
- It calls
rematch(), which sends one intent for the difference, reduce-only when the short shrinks.
Withdrawal
Withdrawals are paid at once in kHYPE from the vault, with no keeper in the path. You can also take HYPE through the v4 pool at market. The short is reduced after the fact by a reduce-only buy.
Receipts
Each intent gets one final receipt on Elysium: filled size, average price, fee and the HyperCore order id. onReceipt updates the recorded short. A dropped or unanswered intent leaves the short unchanged, and the keeper sends a new one.