Ribbon Finance
Search…
Decentralization
The two major pieces for decentralization is (a) strike price selection, and (b) options sale. These pieces require new modules to be written.

Strike Selection

Instead of having the manager manually picking and setting the strike price, the strike price will be programmatically computed by the contract. The Strike Selection contract is a periphery contract.
Currently the vaults use a 0.1 delta for writing options. This means that the vault will only be selling far out-the-money options.
1
function getStrikePrice(uint256 expiryTimestamp, bool isPut)
Copied!
The StrikeSelection contract exposes the getStrikePrice function which iterates through a set of strike prices, evaluating its delta value, and settling on a strike price that has the closest match.

Open Auction

  1. 1.
    After the strike price is selected and the otokens are minted, we create a Gnosis auction and put the options up for sale. This allows anyone to bid on the otokens.
  2. 2.
    The vault will list all the tokens onto the auction, which will last for 1 hour (as of now).
  3. 3.
    The vault sets the minimum price it will receive for the options. This establishes a price floor.
  4. 4.
    Bidding commences - option buyers get to set limit orders on the amount and price they want to buy.
  5. 5.
    Bidding ends - Vault withdraws all the premiums paid by the auction participants.
The key data structure here is AuctionDetails.
1
struct AuctionDetails {
2
address oTokenAddress;
3
address gnosisEasyAuction;
4
address asset;
5
uint256 assetDecimals;
6
uint256 oTokenPremium;
7
uint256 duration;
8
}
Copied!
The oTokenPremium is the price per otoken that the theta vault has calculated using the OptionPremiumPricer from RVOL.
The duration is set by the vault. But it is 1 hour.