Trading
In all structures below, rollover_hints_list
can be left empty
Buying a Derivative
buy
method expresses collateral and minimal derivative amounts in minimal units.
redeemable
boolean parameter determines whether or not to update all of user's derivative positions in the pool and withdraw all settlment proceeds to wallet, if any (this will be done automatically for the derivative being traded).
Selling a Derivative
sell
method expresses derivative and collateral amounts in minimal units.
redeemable
boolean parameter determines whether or not to update all of user's derivative positions in the pool and withdraw all settlment proceeds to wallet, if any (this will be done automatically for the derivative being traded).
Transferring Trader's Whole Portfolio
All derivative positions associated with a trader's portoflio NFT can be transferred to another NFT by the standard ERC721 method transferFrom
. The transferred portfolio is merged with any existing portfolio of the destination NFT, and the origin NFT will be burnt.
Transferring a Derivative Position
moveDerivative
method is used to transfer part of a derivative position to another account. Derivative amount is expressed in minimal units.
Last updated