DeFi Saver
Search…
CurveSwap
Action that swaps amount of tokenA for at least expected amount of tokenB using pool.
User needs to approve the DSProxy to pull tokenA.
If tokenA == 0xEeee... the user needs to have amount balance of WETH that will be used instead of native ETH. User needs to approve the DSProxy to pull WETH.

Parameters:

  • address sender - Address from which to pull tokenA .
  • address receiver - Address that will receive tokenB .
  • address pool - Pool to use for the swap.
  • address tokenA
  • address tokenB
  • uint256 amount - Amount of tokenA to use in the swap.
  • uint256 expected - Minimum amount of tokenB to accept.
Last modified 2mo ago
Copy link