-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from hifi-finance/feat/flash-swap-uni-v3-mult…
…i-hop * feat(flash-swap): add "Path.sol" library feat(flash-swap): add "BytesLib.sol" library refactor(flash-swap): move "NoDelegateCall.sol" to "libraries/" dir * feat(flash-swap): add support for n-hop swaps in "flashLiquidate" function 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 * fix(flash-swap): bug in "uniswapV3SwapCallback" function regarding "repayAmount" 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 * chore(flash-swap): skip test coverage for "uniswap-v3/libraries" dir chore(flash-swap): re-generate types * chore(flash-swap): disable solhint for Uniswap V3 libraries * test(flash-swap): update integration tests to mirror FlashUniswapV3 contract 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 * chore(flash-swap): fix lint issues * docs(flash-swap): add dev NatSpec comments to libraries
- Loading branch information
1 parent
913b982
commit 44bec5f
Showing
20 changed files
with
532 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.