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


  • address from - address from which to pull wrapped LP tokens if option is UNWRAP otherwise it is ignored and address(this) is used

  • address to - address to which to withdraw wrapped LP tokens if option is UNSTAKE otherwise LP tokens are withdrawn

  • uint256 poolId - curve pool id according to Convex Booster contract

  • uint256 amount - vault contract address for the imAsset (imAssetVault address)

  • WithdrawOption option - enum ( UNWRAP = 0, UNSTAKE = 1, UNSTAKE and UNWRAP = 2)

Last updated