🟧ConvexDeposit

Action that deposits 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 STAKE otherwise LP tokens are pulled

  • address to - address that will receive wrapped LP tokens if option is WRAP otherwise it is the address for which to stake

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

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

  • DepositOption option - enum ( WRAP = 0, STAKE = 1, WRAP AND STAKE = 2)

Last updated