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
.address sender
- Address from which to pulltokenA
.address receiver
- Address that will receivetokenB
.address pool
- Pool to use for the swap.address tokenA
address tokenB
uint256 amount
- Amount oftokenA
to use in the swap.uint256 expected
- Minimum amount oftokenB
to accept.
Last modified 2yr ago