Module sapio_contrib::contracts::derivatives [−][src]
A collection of modules for creating derivative contracts with Sapio
Re-exports
pub use oracle::Oracle; |
pub use oracle::Symbol; |
Modules
apis | External required APIs in order to use Derivative contracts |
call | Call Options |
exploding | Contracts which have a expiration date before which they must be executed… |
oracle | A Price Oracle trait for Derivatives |
put | Put Contract |
risk_reversal | RiskReversal represents a specific contract where we specify a set of price ranges that we want to keep purchasing power flat within. |
Structs
GenericBet | A GenericBet takes a sorted list of outcomes and a cached table of oracle lookups and assembles a binary contract tree for the GenericBet |
GenericBetArguments | To setup a GenericBet select an amount, a list of outcomes, and an oracle. The outcomes do not need to be sorted but must be unique. |