🟧ConvexWithdraw
Action that withdraws assets into Convex.
This is a standard DFS action.
User needs to approve the DSProxy
to pull entry asset.
If amount is uint.max it will pull whole from balance of tokens being pulled and used
Parameters:
address from
- address from which to pull wrapped LP tokens if option is UNWRAP otherwise it is ignored and address(this) is usedaddress to
- address to which to withdraw wrapped LP tokens if option is UNSTAKE otherwise LP tokens are withdrawnuint256 poolId
- curve pool id according to Convex Booster contractuint256 amount
- vault contract address for the imAsset (imAssetVault address)WithdrawOption option
- enum ( UNWRAP = 0, UNSTAKE = 1, UNSTAKE and UNWRAP = 2)
Last updated