Skip to content

Commit

Permalink
chore: deploy swap router (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
simplyoptimistic authored Jul 28, 2024
1 parent 87e4aae commit 7b50de4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@ Velodrome has a live bug bounty hosted on ([Immunefi](https://immunefi.com/bount
| QuoterV2 | [0x89D8218ed5fF1e46d8dcd33fb0bbeE3be1621466](https://optimistic.etherscan.io/address/0x89D8218ed5fF1e46d8dcd33fb0bbeE3be1621466#code) |
| CustomSwapFeeModule | [0x7361E9079920fb75496E9764A2665d8ee5049D5f](https://optimistic.etherscan.io/address/0x7361E9079920fb75496E9764A2665d8ee5049D5f#code) |
| CustomUnstakedFeeModule | [0xC565F7ba9c56b157Da983c4Db30e13F5f06C59D9](https://optimistic.etherscan.io/address/0xC565F7ba9c56b157Da983c4Db30e13F5f06C59D9#code) |
| Swap Router | [0x0792a633F0c19c351081CF4B211F68F79bCc9676](http://optimistic.etherscan.io/address/0x0792a633F0c19c351081CF4B211F68F79bCc9676#code) |
| LpMigrator | [0x3Fdb481B25b24824A2339a4A1AbD0B0BC7534e71](http://optimistic.etherscan.io/address/0x3Fdb481B25b24824A2339a4A1AbD0B0BC7534e71#code) |
4 changes: 4 additions & 0 deletions script/DeployCL.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {CustomSwapFeeModule} from "contracts/core/fees/CustomSwapFeeModule.sol";
import {CustomUnstakedFeeModule} from "contracts/core/fees/CustomUnstakedFeeModule.sol";
import {MixedRouteQuoterV1} from "contracts/periphery/lens/MixedRouteQuoterV1.sol";
import {QuoterV2} from "contracts/periphery/lens/QuoterV2.sol";
import {SwapRouter} from "contracts/periphery/SwapRouter.sol";

contract DeployCL is Script {
using stdJson for string;
Expand Down Expand Up @@ -47,6 +48,7 @@ contract DeployCL is Script {
CustomUnstakedFeeModule public unstakedFeeModule;
MixedRouteQuoterV1 public mixedQuoter;
QuoterV2 public quoter;
SwapRouter public swapRouter;

function run() public {
string memory root = vm.projectRoot();
Expand Down Expand Up @@ -105,6 +107,7 @@ contract DeployCL is Script {

mixedQuoter = new MixedRouteQuoterV1({_factory: address(poolFactory), _factoryV2: factoryV2, _WETH9: weth});
quoter = new QuoterV2({_factory: address(poolFactory), _WETH9: weth});
swapRouter = new SwapRouter({_factory: address(poolFactory), _WETH9: weth});
vm.stopBroadcast();

// write to file
Expand All @@ -120,6 +123,7 @@ contract DeployCL is Script {
vm.writeJson(vm.serializeAddress("", "UnstakedFeeModule", address(unstakedFeeModule)), path);
vm.writeJson(vm.serializeAddress("", "MixedQuoter", address(mixedQuoter)), path);
vm.writeJson(vm.serializeAddress("", "Quoter", address(quoter)), path);
vm.writeJson(vm.serializeAddress("", "SwapRouter", address(swapRouter)), path);
}

function concat(string memory a, string memory b) internal pure returns (string memory) {
Expand Down

0 comments on commit 7b50de4

Please sign in to comment.