Skip to content

Commit

Permalink
Deploy FeeTaker on all networks
Browse files Browse the repository at this point in the history
  • Loading branch information
zZoMROT committed Feb 1, 2025
1 parent d9000e4 commit 76bd66b
Show file tree
Hide file tree
Showing 15 changed files with 6,049 additions and 126 deletions.
2 changes: 1 addition & 1 deletion deploy/deploy-FeeTaker-zksync.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const WETH = {
};

const ROUTER_V6_ADDR = '0x6fd4383cB451173D5f9304F041C7BCBf27d561fF';
const ACCESS_TOKEN_ADDR = '0xC2c4fE863EC835D7DdbFE91Fe33cf1C7Df45Fa7C';
const ACCESS_TOKEN_ADDR = '0x46B64318C4f764F6Fe81dFd1F26282A52E0f1680';

module.exports = async ({ deployments, getNamedAccounts }) => {
const networkName = hre.network.name;
Expand Down
6 changes: 4 additions & 2 deletions deploy/deploy-FeeTaker.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ const WETH = {
8217: '0xe4f05A66Ec68B54A58B17c22107b02e0232cC817', // Klaytn
8453: '0x4200000000000000000000000000000000000006', // Base
31337: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', // Hardhat
59144: '0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f', // Linea
};

const ROUTER_V6_ADDR = '0x111111125421ca6dc452d289314280a0f8842a65';
const ACCESS_TOKEN_ADDR = '0xACCe550000159e70908C0499a1119D04e7039C28';
const ACCESS_TOKEN_ADDR = '0xAccE550000863572B867E661647CD7D97b72C507';

const create3Deployer = '0xD935a2bb926019E0ed6fb31fbD5b1Bbb7c05bf65';
const FEE_TAKER_SALT = ethers.keccak256(ethers.toUtf8Bytes('FeeTaker'));

module.exports = async ({ deployments, getNamedAccounts }) => {
Expand All @@ -42,7 +44,7 @@ module.exports = async ({ deployments, getNamedAccounts }) => {
await deployAndGetContractWithCreate3({
contractName: 'FeeTaker',
constructorArgs: [ROUTER_V6_ADDR, ACCESS_TOKEN_ADDR, WETH[chainId], deployer],
create3Deployer: (await deployments.get('Create3Deployer')).address,
create3Deployer,
salt: FEE_TAKER_SALT,
deployments,
});
Expand Down
Loading

0 comments on commit 76bd66b

Please sign in to comment.