Skip to content

Commit 6cd4454

Browse files
Merge pull request #193 from bancorprotocol/deploy-vortex-bsc
Deploy vortex bsc
2 parents e868f92 + 1dece0b commit 6cd4454

File tree

18 files changed

+6068
-2174
lines changed

18 files changed

+6068
-2174
lines changed

.snyk

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
2+
version: v1.25.1
3+
# ignores vulnerabilities until expiry date; change duration by modifying expiry date
4+
ignore:
5+
SNYK-JS-UNDICI-10176064:
6+
- '*':
7+
reason: Hardhat 2.x requires legacy option; pinned to 5.28.5
8+
expires: 2026-10-20T00:00:00.000Z
9+
created: 2025-10-20T00:00:00.000Z
10+
patch: {}

data/named-accounts.ts

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,19 @@ const tac = (address: string) => {
192192
};
193193
};
194194

195+
const bsc = (address: string) => {
196+
if (TENDERLY_NETWORK_ID === chainIds[DeploymentNetwork.BSC]) {
197+
return {
198+
[DeploymentNetwork.BSC]: address,
199+
[DeploymentNetwork.Tenderly]: address,
200+
[DeploymentNetwork.TenderlyTestnet]: address
201+
};
202+
}
203+
return {
204+
[DeploymentNetwork.BSC]: address
205+
};
206+
};
207+
195208
const TestNamedAccounts = {
196209
ethWhale: {
197210
...getAddress(mainnet, '0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf'),
@@ -285,24 +298,28 @@ const BancorNamedAccounts = {
285298
...getAddress(berachain, '0x45d2e25C04F43A06f6C3e21e4f39B860D05a7aC8'),
286299
...getAddress(coti, '0x3F086F628678cF136C4fA7d2901ff5EBE2623435'),
287300
...getAddress(arbitrum, '0x8cE318919438982514F9f479FDfB40D32C6ab749'),
288-
...getAddress(tac, '0xBBAFF3Bf6eC4C15992c0Fb37F12491Fd62C5B496')
301+
...getAddress(tac, '0xBBAFF3Bf6eC4C15992c0Fb37F12491Fd62C5B496'),
302+
...getAddress(bsc, '0x45d2e25C04F43A06f6C3e21e4f39B860D05a7aC8')
289303
}
290304
};
291305

292306
const VortexNamedAccounts = {
293307
targetToken: {
294308
...getAddress(mainnet, NATIVE_TOKEN_ADDRESS),
295309
...getAddress(coti, '0x639aCc80569c5FC83c6FBf2319A6Cc38bBfe26d1'), // weth
296-
...getAddress(tac, NATIVE_TOKEN_ADDRESS) // tac
310+
...getAddress(tac, NATIVE_TOKEN_ADDRESS), // tac
311+
...getAddress(bsc, NATIVE_TOKEN_ADDRESS) // bnb
297312
},
298313
finalTargetToken: {
299314
...getAddress(mainnet, '0x1F573D6Fb3F13d689FF844B4cE37794d79a7FF1C'),
300-
...getAddress(tac, '0x61D66bC21fED820938021B06e9b2291f3FB91945') // weth
315+
...getAddress(tac, '0x61D66bC21fED820938021B06e9b2291f3FB91945'), // weth
316+
...getAddress(bsc, '0x4DB5a66E937A9F4473fA95b1cAF1d1E1D62E29EA') // wormhole weth
301317
},
302318
transferAddress: {
303319
...getAddress(mainnet, '0x1F573D6Fb3F13d689FF844B4cE37794d79a7FF1C'),
304320
...getAddress(coti, ZERO_ADDRESS),
305-
...getAddress(tac, ZERO_ADDRESS)
321+
...getAddress(tac, ZERO_ADDRESS),
322+
...getAddress(bsc, ZERO_ADDRESS)
306323
}
307324
};
308325

deploy/scripts/network/0004-CarbonVortex.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ const func: DeployFunction = async ({ getNamedAccounts }: HardhatRuntimeEnvironm
2222
{
2323
name: InstanceName.CarbonVortex,
2424
from: deployer,
25-
args: [carbonController.address, ZERO_ADDRESS, targetToken, finalTargetToken]
25+
args: [ZERO_ADDRESS, targetToken, finalTargetToken]
2626
},
2727
{
28-
args: [transferAddress]
28+
args: [transferAddress, [carbonController.address]]
2929
}
3030
);
3131

deploy/scripts/support/0002-CarbonVortex.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ const func: DeployFunction = async ({ getNamedAccounts }: HardhatRuntimeEnvironm
2929
{
3030
name: InstanceName.CarbonVortex,
3131
from: deployer,
32-
args: [ZERO_ADDRESS, vault, targetToken, finalTargetToken]
32+
args: [vault, targetToken, finalTargetToken]
3333
},
3434
{
35-
args: [transferAddress]
35+
args: [transferAddress, []]
3636
}
3737
);
3838

deployments/bsc/.chainId

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
56

deployments/bsc/.migrations.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"0001-ProxyAdmin": 1761035994,
3+
"0002-CarbonVortex": 1761036012
4+
}

0 commit comments

Comments
 (0)