Skip to content

Commit

Permalink
Base: Add SwapRouter02 (#3120)
Browse files Browse the repository at this point in the history
# Description
Add `SwapRouter02` to `Base`, since `SwapRouter` is not available. The
interface for the function we use (`ExactOutputSingle`) is the same for
`SwapRouter02` and `SwapRouter`.
  • Loading branch information
m-lord-renkse authored Nov 21, 2024
1 parent 1d59e95 commit 27e3c3b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/contracts/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,10 @@ fn main() {
.add_network_str(GOERLI, "0xE592427A0AEce92De3Edee1F18E0157C05861564")
.add_network_str(SEPOLIA, "0xE592427A0AEce92De3Edee1F18E0157C05861564")
.add_network_str(ARBITRUM_ONE, "0xE592427A0AEce92De3Edee1F18E0157C05861564")
// Not available on Gnosis Chain and Base
// For Base it is only available SwapRouter02
// <https://docs.uniswap.org/contracts/v3/reference/deployments/base-deployments>
.add_network_str(BASE, "0x2626664c2603336E57B271c5C0b26F421741e481")
// Not available on Gnosis Chain
});
generate_contract("UniswapV3Pool");
generate_contract_with_config("WETH9", |builder| {
Expand Down

0 comments on commit 27e3c3b

Please sign in to comment.