Open kopy-kat opened 6 months ago
started working on this issue, will make a PR soon with changes native <-> ERC20 swap calls
@kopy-kat @zeroknots
also enhancing approveAndSwap
to support
at moment it does approve
followed by swapExactInoutSingle
tokenIn
to SWAPROUTER_ADDRESS
swapExactInputSingle
we can support all scenarios here:
Currently, the helper lib only easily supports ERC20-ERC20 swaps but should also support ETH-ERC20 or ERC20-ETH swaps