DeFi Saver
Action that returns LP tokens to Balancer Vault in exchange for underlying tokens. This is a standard DFS action.
User needs to approve the DSProxy to pull Balancer LP token.
  • bytes32 poolId - ID of balancer pool
  • address from - Address from where the tokens will be pulled from
  • address to - Address that will receive LP tokens from Balancer pool
  • uint256 lpTokenAmount - amount of LP tokens to pull to DSProxy and send to pool
  • address[] tokens - addresses of underlying pool tokens
  • uint256[] minAmountsOut - minimal amounts of tokens that you want to receive in return for LP tokens sent
  • bytes userData - Specially encoded param that tells pool more info about the withdraw action (
Copy link