Skip to content

Commit 3777a06

Browse files
committed
deploying the swapper contract
1 parent db55898 commit 3777a06

File tree

12 files changed

+3742
-5
lines changed

12 files changed

+3742
-5
lines changed

deploy/0_proxyAdmin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ const func: DeployFunction = async ({ deployments, ethers, network }) => {
2222

2323
console.log(`Now deploying ProxyAdmin on the chain ${network.config.chainId}`);
2424
console.log('Guardian address is ', guardian);
25-
await deploy('ProxyAdmin', {
25+
await deploy('ProxyAdminGuardian', {
2626
contract: 'ProxyAdmin',
2727
from: deployer.address,
2828
log: !argv.ci,
2929
});
30-
const proxyAdminAddress = (await ethers.getContract('ProxyAdmin')).address;
30+
const proxyAdminAddress = (await ethers.getContract('ProxyAdminGuardian')).address;
3131

3232
proxyAdmin = new ethers.Contract(proxyAdminAddress, ProxyAdmin__factory.createInterface(), deployer) as ProxyAdmin;
3333

deploy/7_swapper.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,19 @@ const func: DeployFunction = async ({ deployments, ethers, network }) => {
1212
const core = (await deployments.get('CoreBorrow')).address;
1313

1414
console.log('Now deploying the swapper contract');
15-
const angleRouter = registry(network.config.chainId as ChainId)?.AngleRouterV2;
15+
// const angleRouter = registry(network.config.chainId as ChainId)?.AngleRouterV2;
16+
const angleRouter = '0xf530b844fb797D2C6863D56a94777C3e411CEc86';
1617
console.log('Checking contract addresses');
1718
console.log(`${core} ${json.uniswapV3Router} ${json.oneInchRouter} ${angleRouter}`);
1819

19-
await deploy(`Swapper`, {
20+
await deploy(`SwapperV2`, {
2021
contract: 'Swapper',
2122
from: deployer.address,
2223
args: [core, json.uniswapV3Router, json.oneInchRouter, angleRouter],
2324
log: !argv.ci,
2425
});
2526
console.log('Success');
26-
const swapperAddress = (await deployments.get('Swapper')).address;
27+
const swapperAddress = (await deployments.get('SwapperV2')).address;
2728
console.log(`${swapperAddress}`);
2829
};
2930

deployments/arbitrum/SwapperV2.json

Lines changed: 262 additions & 0 deletions
Large diffs are not rendered by default.

deployments/arbitrum/solcInputs/891a411f4f277461fb1354bee4d4be13.json

Lines changed: 541 additions & 0 deletions
Large diffs are not rendered by default.

deployments/avalanche/ProxyAdminGuardian.json

Lines changed: 246 additions & 0 deletions
Large diffs are not rendered by default.

deployments/avalanche/SwapperV2.json

Lines changed: 262 additions & 0 deletions
Large diffs are not rendered by default.

deployments/mainnet/SwapperV2.json

Lines changed: 262 additions & 0 deletions
Large diffs are not rendered by default.

deployments/mainnet/solcInputs/891a411f4f277461fb1354bee4d4be13.json

Lines changed: 541 additions & 0 deletions
Large diffs are not rendered by default.

deployments/optimism/SwapperV2.json

Lines changed: 262 additions & 0 deletions
Large diffs are not rendered by default.

deployments/optimism/solcInputs/891a411f4f277461fb1354bee4d4be13.json

Lines changed: 541 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)