Functions

Core protocol smart contract functions

collateralize

This function can be called to collateralize to depsit N Dai to generate the proportional amounts of volatility tokens.

Example:

Alice has 250 DAI. By calling the Volmex protocol collateralize function, Alice will mint 0.999 Ethereum Volatility Index Tokens (ETHV) and 0.999 Inverse Ethereum Volatility Index Tokens (iETHV) (after paying the 10 basis point minting fee).

redeem

This function can be called to redeem volatility tokens for proportional amounts of Dai from the protocol.

Example:

Alice has 10 Ethereum Volatility Index Tokens (ETHV) and 10 Inverse Ethereum Volatility Index Tokens (iETHV). By calling the redeem function, Alice can redeem ~2500 DAI from the protocol.

Last updated