rhinestonewtf / modulekit

Development Kit for building Smart Account Modules
https://docs.rhinestone.wtf/modulekit/
45 stars 26 forks source link

feat: uniswap libary functions refactored to support eth-erc20 and erc20-eth swaps #89

Open kanthgithub opened 4 months ago

kanthgithub commented 4 months ago

Change Description

  1. add support to swap erc20-eth and eth-erc20
  2. refactor swapExactInputSingle and swapExactOutputSingle functions to support all swap types
    • ERC20 -> ERC20
    • ETH -> ERC20
    • ERC20 -> ETH
  3. Natspecs added
  4. rename approveAndSwap to approveAndSwapExactInput

Issue

https://github.com/rhinestonewtf/modulekit/issues/75