Developers
Read the vault from your contract.
Strategy hooks let external contracts read vault state and inventory through a public interface. Every quote input, inventory change, hedge intent and fill is an event.
Strategy hooks
A public read surface.
Build a hedge-aware router, a dashboard or a risk monitor on top of the vault. These are the read functions of the vault as written and tested. Mainnet deployment and the open-source repo are In progress.
IPropiumVault.solTested · not deployed
interface IPropiumVault {
function inventory() external view returns (int256);
function netDelta() external view returns (int256);
function navPerShare() external view returns (uint256);
function freshMid() external view returns (uint256);
function slippage(uint256 usd) external view returns (uint256);
function quote(bool sellHype, uint256 amountIn)
external view returns (uint256 out, uint256 cost, uint256 slip, int256 skew);
}Event log
Every step, from block one.
| Event | Carries | When |
|---|---|---|
| Quote | pool, mid, slippage, skew, fee, core height, data age | every swap |
| InventoryUpdated | pool, delta, new inventory | every swap |
| HedgeIntent | nonce, side, size, price limit | threshold crossing |
| HedgeFilled | nonce, filled size, avg price | fill reconciled |
| Paused | who, paused or resumed | owner (multisig) |
| PriceUpdated | core height, timestamp, mid | newer signed price |
Chain
Elysium mainnet, chain id 99901. 100 ms blocks.
Hedge venue
HyperCore, through the ElysiumCoreWriter predeploy. In progress.
Signed feed
Live at dapp.propium.app/api/feed: HYPE mid and hedge slippage, EIP-712 signed by 0x8c11…5c93.