Skip to content

tradingstrategy-ai/swap-router-contracts

 
 

Repository files navigation

Base SwapRouter02 deployment

To deploy

npx hardhat run scripts/deploy.js --network base

Contracts

Deployed SwapRouter02 is:

0x5788F91Aa320e0610122fb88B39Ab8f35e50040b

Uniswap v2 contracts on Base:

    "base": {
        "factory": "0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6",
        "router": "0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24",
        "init_code_hash": "96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f",
    }

Uniswap v3 contracts on Base:

factory: 0x33128a8fC17869897dcE68Ed026d694621f6FDfD
position_manager: 0x03a520b32C04BF3bEEf7BEb72E919cf822Ed34f1
weth9: 0x4200000000000000000000000000000000000006

And now deployed:

Deployment

To deploy:

# From Basescan.org
export ETHESCAN_API_KEY=

# Top it up
export PRIVATE_KEY=

npx hardhat run scripts/deploy.js --network base

About

Smart contracts for swapping on Uniswap V2 and V3. Superseded by https://github.com/Uniswap/universal-router

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 63.8%
  • Solidity 35.9%
  • JavaScript 0.3%