Search…
⌃K
🏗

Smart Contract Architecture

Rysk DHV architecture
The dynamic hedging vault is a product that issues options and trades other derivatives with the aim of generating yield and targeting delta 0 in order to achieve a market uncorrelated return stream.
Users deposit a single collateral (USDC to begin with) into the vault (LiquidityPool) in exchange for shares, the flow follows a Deposit and Withdraw Mechanism whereby deposits and withdraws are queued and then completed after a certain epoch it has various inputs from oracles which are described in OracleFeeds.md . This collateral is then used to collateralise or "short" options which are sold to any option buyer, the buyer pays a "premium" to buy an option, this premium represents the yield on collateral (but this yield comes at the risk of the options exposure, where if an option expires ITM it can result in a loss for the short position holder). A user might deposit into this vault to access high yields that are uncorrelated to the market. Users can withdraw at any time, this can be processed after an "epoch" completion so long as there is sufficient capital available.
Options buyers interact with the OptionHandler. This is a contract that is authorised to interact with options buying/selling functionality of the LiquidityPool. Then the liquidityPool will take the instruction from the handler, process it and pass it to the optionsRegistry for processing on the opyn-rysk gamma protocol alongside any funds needed to collateralise the option positon if it is a write operation.
The pool can hedge its delta off using other derivatives such as perps or spot by using contracts known as hedging reactors.