Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for n-hop swaps in FlashUniswapV3 #105

Merged
merged 8 commits into from
Dec 12, 2023

Commits on Dec 6, 2023

  1. feat(flash-swap): add "Path.sol" library

    feat(flash-swap): add "BytesLib.sol" library
    refactor(flash-swap): move "NoDelegateCall.sol" to "libraries/" dir
    scorpion9979 committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    7f9d23c View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2023

  1. feat(flash-swap): add support for n-hop swaps in "flashLiquidate" fun…

    …ction
    
    feat(flash-swap): add "swapExactOutputInternal" function
    feat(flash-swap): replace "poolFee" param in "FlashLiquidateParams" struct with "path"
    feat(flash-swap): add "FlashUniswapV3__InsufficientSwapOutputAmount" error
    refactor(flash-swap): use specific imports
    refactor(flash-swap): rename "FlashSwapAndLiquidateBorrow" event to "FlashLiquidate"
    refactor(flash-swap): rename "UniswapV3SwapCallback" structs to "FlashLiquidateCallback"
    test(flash-swap): update "getSwapCallbackData" function to mirror contract changes
    chore(flash-swap): re-generate types
    scorpion9979 committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    5347e32 View commit details
    Browse the repository at this point in the history
  2. fix(flash-swap): bug in "uniswapV3SwapCallback" function regarding "r…

    …epayAmount" recalculation
    
    refactor(flash-swap): merge "getPoolKey" and "poolFor" functions into a single "getPool" function
    refactor(flash-swap): rename "FlashLiquidateCallbackParams" struct to "UniswapV3SwapCallbackParams"
    refactor(flash-swap): rename "benificiary" param in "swapExactOutputInternal" function to "to"
    chore(flash-swap): regenerate types
    scorpion9979 committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    3aa0721 View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2023

  1. chore(flash-swap): skip test coverage for "uniswap-v3/libraries" dir

    chore(flash-swap): re-generate types
    scorpion9979 committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    d23cc03 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0f5868c View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2023

  1. test(flash-swap): update integration tests to mirror FlashUniswapV3 c…

    …ontract changes
    
    test(flash-swap): remove "uniswapV3Pool" contract type to "Contracts" interface
    test(flash-swap): add "dai" contract type to "Contracts" interface
    feat(constants): add "DAI_{DECIMALS,NAME,SYMBOL}" constants to tokens.ts
    feat(constants): add "DEFAULT_FEE" constant to oracles.ts
    scorpion9979 committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    2e519d3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    adfe961 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    66cdc7c View commit details
    Browse the repository at this point in the history