Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SC-1436] Deploy FeeTaker #357

Merged
merged 1 commit into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading