DeFi Saver
Action that deposits tokens into liquidity pool via depositTarget receiving lpToken.
User needs to approve every token in tokens which has a nonzero deposit amount specified in amounts.
If one of the tokens == 0xEeee... the user needs to have an appropriate balance of WETH that will be used instead of native ETH. User needs to approve the DSProxy to pull WETH.


  • address sender - Address from which to pull tokens.
  • address receiver - Address that will receive the lpToken.
  • address depositTarget - Pool contract or zap deposit contract in which to deposit.
  • address lpToken - Curve LP token received for the deposit.
  • bytes4 sig - Target contract deposit function selector.
  • uint256 minMintAmount - Minimum amount of lpToken to accept.
  • uint256[] amounts - Amount of each token in tokens to deposit.
  • address[] tokens - Tokens to deposit.
  • bool useUnderlying - Some pool contracts take this additional parameter.
Last modified 2mo ago
Copy link