-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We switch to Uniswap's `SwapRouter02` from `SwapRouter` because `SwapRouter` isn't supported on chains like Base. The routers are mostly the same, with `SwapRouter02` being newer and having support for Uniswap v2. However, their interfaces do differ slightly as the swap params for `SwapRouter02` no longer take a `deadline`. This is fine since a) recurring swaps don't need a deadline anyways and b) we can use the QuarkOperation's `expiry` to set the deadline for one-time swaps. We have to manually import parts of `ISwapRouter02` because one of its dependencies [locks the compiler version](Uniswap/swap-router-contracts#72) to `=0.7.6`, so the library cannot be directly used for higher Solidity versions without modifications.
- Loading branch information
1 parent
09d67e9
commit 4d433bd
Showing
24 changed files
with
335 additions
and
138 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
Submodule swap-router-contracts
added at
c696aa
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.