Deposit and Withdraw/Redeem

joinDynaset(uint256 expectedSharesToMint)
        external
        override
        nonReentrant
        returns (uint256 sharesToMint)

Mint new dynaset tokens by providing the proportional amount of each underlying token's balance relative to the proportion of dynaset tokens minted. function can only be called by the forge contracts and min/max amounts checks are implemented in forge contracts.

For any underlying tokens which are not initialized, the caller must provide the proportional share of the minimum balance for the token rather than the actual balance.

dynasetAmountOut Amount of dynaset tokens to mint order as the dynaset's dynasetTokens list.

 exitDynaset(uint256 dynasetAmountIn)
        external
        override
        nonReentrant

Burns _amount dynaset tokens in exchange for the amounts of each underlying token's balance proportional to the ratio of tokens burned to total dynaset supply. function can only be called by the forge contracts and min/max amounts checks are implemented in forge contracts.

dynasetAmountIn Exact amount of dynaset tokens to burn

Last updated