Skip to content

Commit cd30d09

Browse files
authored
Merge pull request #671 from superform-xyz/feat/fixRouterPlusIssue
fix: routerplus issue SUP-10435
2 parents de195a0 + 1984e62 commit cd30d09

25 files changed

+224
-167
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ build-sizes: ## Builds the project and shows sizes
121121

122122
.PHONY: test-vvv
123123
test-vvv: ## Runs tests with verbose output
124-
forge test --match-test test_superRegistryAddresses --evm-version cancun -vv
124+
forge test --match-test test_rebalanceFromSinglePosition_toOneVault_hack --evm-version cancun -vvv
125125

126126
.PHONY: ftest
127127
ftest: ## Runs tests with cancun evm version

script/deployments/v1_deployment/1/Ethereum-latest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
"DeBridgeValidator": "0x04A9e7318544DA4dd8c3d76E9c72d2087e285a8d",
3131
"AsyncStateRegistry": "0x0000000000000000000000000000000000000000",
3232
"ERC7540Form": "0x0000000000000000000000000000000000000000",
33-
"SuperformRouterPlus": "0x4393C2a521ef115cd32C1d45897E7ce33aDa7aa9"
33+
"SuperformRouterPlus": "0xC417496D46eD390514cEABE2297ec6d65Df214a4"
3434
}

script/deployments/v1_deployment/10/Optimism-latest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
"DeBridgeValidator": "0x04A9e7318544DA4dd8c3d76E9c72d2087e285a8d",
3131
"AsyncStateRegistry": "0x0000000000000000000000000000000000000000",
3232
"ERC7540Form": "0x0000000000000000000000000000000000000000",
33-
"SuperformRouterPlus": "0x4393C2a521ef115cd32C1d45897E7ce33aDa7aa9"
33+
"SuperformRouterPlus": "0xC417496D46eD390514cEABE2297ec6d65Df214a4"
3434
}

script/deployments/v1_deployment/137/Polygon-latest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
"DeBridgeValidator": "0x04A9e7318544DA4dd8c3d76E9c72d2087e285a8d",
3131
"AsyncStateRegistry": "0x0000000000000000000000000000000000000000",
3232
"ERC7540Form": "0x0000000000000000000000000000000000000000",
33-
"SuperformRouterPlus": "0x4393C2a521ef115cd32C1d45897E7ce33aDa7aa9"
33+
"SuperformRouterPlus": "0xC417496D46eD390514cEABE2297ec6d65Df214a4"
3434
}

script/deployments/v1_deployment/42161/Arbitrum-latest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
"DeBridgeValidator": "0x04A9e7318544DA4dd8c3d76E9c72d2087e285a8d",
3131
"AsyncStateRegistry": "0x0000000000000000000000000000000000000000",
3232
"ERC7540Form": "0x0000000000000000000000000000000000000000",
33-
"SuperformRouterPlus": "0x4393C2a521ef115cd32C1d45897E7ce33aDa7aa9"
33+
"SuperformRouterPlus": "0xC417496D46eD390514cEABE2297ec6d65Df214a4"
3434
}

script/deployments/v1_deployment/43114/Avalanche-latest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
"DeBridgeValidator": "0x04A9e7318544DA4dd8c3d76E9c72d2087e285a8d",
3131
"AsyncStateRegistry": "0x0000000000000000000000000000000000000000",
3232
"ERC7540Form": "0x0000000000000000000000000000000000000000",
33-
"SuperformRouterPlus": "0x4393C2a521ef115cd32C1d45897E7ce33aDa7aa9"
33+
"SuperformRouterPlus": "0xC417496D46eD390514cEABE2297ec6d65Df214a4"
3434
}

script/deployments/v1_deployment/56/Binance-latest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
"DeBridgeValidator": "0x04A9e7318544DA4dd8c3d76E9c72d2087e285a8d",
3131
"AsyncStateRegistry": "0x0000000000000000000000000000000000000000",
3232
"ERC7540Form": "0x0000000000000000000000000000000000000000",
33-
"SuperformRouterPlus": "0x4393C2a521ef115cd32C1d45897E7ce33aDa7aa9"
33+
"SuperformRouterPlus": "0xC417496D46eD390514cEABE2297ec6d65Df214a4"
3434
}

script/deployments/v1_deployment/59144/Linea-latest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
"WormholeSRImplementation": "0x0000000000000000000000000000000000000000",
3131
"AsyncStateRegistry": "0x0000000000000000000000000000000000000000",
3232
"ERC7540Form": "0x0000000000000000000000000000000000000000",
33-
"SuperformRouterPlus": "0x4393C2a521ef115cd32C1d45897E7ce33aDa7aa9"
33+
"SuperformRouterPlus": "0xC417496D46eD390514cEABE2297ec6d65Df214a4"
3434
}

script/deployments/v1_deployment/81457/Blast-latest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
"WormholeSRImplementation": "0x2827eFf89affacf9E80D671bca6DeCf7dbdcCaCa",
3131
"AsyncStateRegistry": "0x0000000000000000000000000000000000000000",
3232
"ERC7540Form": "0x0000000000000000000000000000000000000000",
33-
"SuperformRouterPlus": "0x4393C2a521ef115cd32C1d45897E7ce33aDa7aa9"
33+
"SuperformRouterPlus": "0xC417496D46eD390514cEABE2297ec6d65Df214a4"
3434
}

script/deployments/v1_deployment/8453/Base-latest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
"DeBridgeValidator": "0x04A9e7318544DA4dd8c3d76E9c72d2087e285a8d",
3131
"AsyncStateRegistry": "0x0000000000000000000000000000000000000000",
3232
"ERC7540Form": "0x0000000000000000000000000000000000000000",
33-
"SuperformRouterPlus": "0x4393C2a521ef115cd32C1d45897E7ce33aDa7aa9"
33+
"SuperformRouterPlus": "0xC417496D46eD390514cEABE2297ec6d65Df214a4"
3434
}

script/deployments/v1_staging_deployment/10/Optimism-latest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
"ERC5115Form": "0x93f5fD75460aC5F0686eBfE22e556F1129F504B0",
3131
"OneInchValidator": "0x480140a26c3eb10F0F17e56495CE588320f45Cfe",
3232
"ERC5115To4626WrapperFactory": "0x14Bc2728DaE89FE7c828833a186DdC5E9AE439C3",
33-
"SuperformRouterPlus": "0xA4bf3ab533Bd9dd0cC8C71D273B748E968065249",
33+
"SuperformRouterPlus": "0x57bf790F609e35e7C30F35fe53A886A657f8C7d1",
3434
"SuperformRouterPlusAsync": "0xbc1300e95393cF481b7c2d29d85B54689ef04fc8"
3535
}

script/deployments/v1_staging_deployment/42161/Arbitrum-latest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
"ERC5115Form": "0x93f5fD75460aC5F0686eBfE22e556F1129F504B0",
3131
"OneInchValidator": "0x480140a26c3eb10F0F17e56495CE588320f45Cfe",
3232
"ERC5115To4626WrapperFactory": "0x14Bc2728DaE89FE7c828833a186DdC5E9AE439C3",
33-
"SuperformRouterPlus": "0xA4bf3ab533Bd9dd0cC8C71D273B748E968065249",
33+
"SuperformRouterPlus": "0x57bf790F609e35e7C30F35fe53A886A657f8C7d1",
3434
"SuperformRouterPlusAsync": "0xbc1300e95393cF481b7c2d29d85B54689ef04fc8"
3535
}

script/deployments/v1_staging_deployment/56/Binance-latest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
"ERC5115Form": "0x93f5fD75460aC5F0686eBfE22e556F1129F504B0",
3131
"OneInchValidator": "0x480140a26c3eb10F0F17e56495CE588320f45Cfe",
3232
"ERC5115To4626WrapperFactory": "0x14Bc2728DaE89FE7c828833a186DdC5E9AE439C3",
33-
"SuperformRouterPlus": "0xA4bf3ab533Bd9dd0cC8C71D273B748E968065249",
33+
"SuperformRouterPlus": "0x57bf790F609e35e7C30F35fe53A886A657f8C7d1",
3434
"SuperformRouterPlusAsync": "0xbc1300e95393cF481b7c2d29d85B54689ef04fc8"
3535
}

script/deployments/v1_staging_deployment/59144/Linea-latest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
"VaultClaimer": "0xf1930eD240cF9c4F1840aDB689E5d231687922C5",
3131
"WormholeARImplementation": "0x0000000000000000000000000000000000000000",
3232
"WormholeSRImplementation": "0x0000000000000000000000000000000000000000",
33-
"SuperformRouterPlus": "0xA4bf3ab533Bd9dd0cC8C71D273B748E968065249",
33+
"SuperformRouterPlus": "0x57bf790F609e35e7C30F35fe53A886A657f8C7d1",
3434
"SuperformRouterPlusAsync": "0xbc1300e95393cF481b7c2d29d85B54689ef04fc8"
3535
}

script/deployments/v1_staging_deployment/81457/Blast-latest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
"VaultClaimer": "0xf1930eD240cF9c4F1840aDB689E5d231687922C5",
3131
"WormholeARImplementation": "0x71ec658F19AcF74D258c55A025ADC534c34EcaDA",
3232
"WormholeSRImplementation": "0x44b451Ca87267a62A0C853ECFbaaC1C3E528a82C",
33-
"SuperformRouterPlus": "0xA4bf3ab533Bd9dd0cC8C71D273B748E968065249",
33+
"SuperformRouterPlus": "0x57bf790F609e35e7C30F35fe53A886A657f8C7d1",
3434
"SuperformRouterPlusAsync": "0xbc1300e95393cF481b7c2d29d85B54689ef04fc8"
3535
}

script/deployments/v1_staging_deployment/8453/Base-latest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
"ERC5115Form": "0x93f5fD75460aC5F0686eBfE22e556F1129F504B0",
3131
"OneInchValidator": "0x480140a26c3eb10F0F17e56495CE588320f45Cfe",
3232
"ERC5115To4626WrapperFactory": "0x14Bc2728DaE89FE7c828833a186DdC5E9AE439C3",
33-
"SuperformRouterPlus": "0xA4bf3ab533Bd9dd0cC8C71D273B748E968065249",
33+
"SuperformRouterPlus": "0x57bf790F609e35e7C30F35fe53A886A657f8C7d1",
3434
"SuperformRouterPlusAsync": "0xbc1300e95393cF481b7c2d29d85B54689ef04fc8"
3535
}

script/forge-scripts/Abstract.Deploy.Single.s.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ abstract contract AbstractDeploySingle is BatchScript {
363363
uint64 public constant BLAST = 81_457;
364364
uint64 public constant BARTIO = 80_084;
365365

366-
uint256[] public manualNonces = [23, 23, 23, 23, 22, 22, 21, 10, 4, 3, 0];
366+
uint256[] public manualNonces = [24, 24, 24, 24, 23, 23, 22, 10, 6, 5, 0];
367367
uint64[] public chainIds = [1, 56, 43_114, 137, 42_161, 10, 8453, 250, 59_144, 81_457, 80_084];
368368
string[] public chainNames = [
369369
"Ethereum",

script/forge-scripts/misc/Abstract.Deploy.RouterPlus.s.sol

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ abstract contract AbstractDeployRouterPlus is EnvironmentUtils {
4949

5050
SuperRegistry(superRegistry).setAddress(keccak256("SUPERFORM_ROUTER_PLUS"), superformRouterPlus, vars.chainId);
5151

52-
address superformRouterPlusAsync = address(new SuperformRouterPlusAsync{ salt: salt }(superRegistry));
53-
contracts[vars.chainId][bytes32(bytes("SuperformRouterPlusAsync"))] = superformRouterPlusAsync;
52+
// address superformRouterPlusAsync = address(new SuperformRouterPlusAsync{ salt: salt }(superRegistry));
53+
// contracts[vars.chainId][bytes32(bytes("SuperformRouterPlusAsync"))] = superformRouterPlusAsync;
5454

55-
SuperRegistry(superRegistry).setAddress(
56-
keccak256("SUPERFORM_ROUTER_PLUS_ASYNC"), superformRouterPlusAsync, vars.chainId
57-
);
55+
// SuperRegistry(superRegistry).setAddress(
56+
// keccak256("SUPERFORM_ROUTER_PLUS_ASYNC"), superformRouterPlusAsync, vars.chainId
57+
// );
5858

5959
vm.stopBroadcast();
6060

script/utils/misc/run_script_mainnet_routerplus.sh

Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,43 +12,62 @@ export FANTOM_RPC_URL=$(op read op://5ylebqljbh3x6zomdxi3qd7tsa/FANTOM_RPC_URL/c
1212
export LINEA_RPC_URL=$(op read op://5ylebqljbh3x6zomdxi3qd7tsa/LINEA_RPC_URL/credential)
1313
export BLAST_RPC_URL=$(op read op://5ylebqljbh3x6zomdxi3qd7tsa/BLAST_RPC_URL/credential)
1414

15-
# Run the script
16-
echo Deploying Router Plus on prod: ...
1715

18-
# # FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusProd(uint256,uint256,uint256)" 0 0 0 --rpc-url $ETHEREUM_RPC_URL --slow --account default --broadcast --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92 --legacy
19-
# # wait
16+
# echo Deploying Router Plus on staging: ...
17+
18+
# FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusStaging(uint256,uint256,uint256)" 1 0 0 --rpc-url $BSC_RPC_URL --broadcast --slow --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92 --legacy
19+
# wait
20+
21+
# FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusStaging(uint256,uint256,uint256)" 1 1 0 --rpc-url $ARBITRUM_RPC_URL --broadcast --slow --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92
22+
# wait
23+
24+
# FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusStaging(uint256,uint256,uint256)" 1 2 0 --rpc-url $OPTIMISM_RPC_URL --broadcast --slow --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92 --legacy
25+
# wait
26+
27+
# FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusStaging(uint256,uint256,uint256)" 1 3 0 --rpc-url $BASE_RPC_URL --broadcast --slow --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92 --legacy
28+
# wait
29+
30+
# FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusStaging(uint256,uint256,uint256)" 1 5 0 --rpc-url $LINEA_RPC_URL --broadcast --slow --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92 --legacy
31+
# wait
32+
33+
# FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusStaging(uint256,uint256,uint256)" 1 6 0 --rpc-url $BLAST_RPC_URL --broadcast --slow --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92 --legacy
34+
# wait
35+
2036

21-
# FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusProd(uint256,uint256,uint256)" 0 1 0 --rpc-url $BSC_RPC_URL --broadcast --slow --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92 --legacy
37+
# Run the script
38+
# echo Deploying Router Plus on prod: ...
39+
40+
# FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusProd(uint256,uint256,uint256)" 0 0 0 --rpc-url $ETHEREUM_RPC_URL --slow --broadcast --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92 --legacy
2241
# wait
2342

24-
# FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusProd(uint256,uint256,uint256)" 0 2 0 --rpc-url $AVALANCHE_RPC_URL --broadcast --slow --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92 --legacy
43+
# FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusProd(uint256,uint256,uint256)" 0 1 0 --rpc-url $BSC_RPC_URL --slow --broadcast --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92 --legacy
2544
# wait
2645

27-
# FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusProd(uint256,uint256,uint256)" 0 3 0 --rpc-url $POLYGON_RPC_URL --broadcast --slow --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92 --legacy
46+
# FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusProd(uint256,uint256,uint256)" 0 2 0 --rpc-url $AVALANCHE_RPC_URL --slow --broadcast --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92 --legacy
2847
# wait
2948

30-
# FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusProd(uint256,uint256,uint256)" 0 4 0 --rpc-url $ARBITRUM_RPC_URL --broadcast --slow --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92
49+
# FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusProd(uint256,uint256,uint256)" 0 3 0 --rpc-url $POLYGON_RPC_URL --slow --broadcast --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92 --legacy
3150
# wait
3251

33-
# FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusProd(uint256,uint256,uint256)" 0 5 0 --rpc-url $OPTIMISM_RPC_URL --broadcast --slow --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92 --legacy
52+
# FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusProd(uint256,uint256,uint256)" 0 4 0 --rpc-url $ARBITRUM_RPC_URL --slow --broadcast --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92
3453
# wait
3554

36-
# FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusProd(uint256,uint256,uint256)" 0 6 0 --rpc-url $BASE_RPC_URL --broadcast --slow --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92 --legacy
55+
# FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusProd(uint256,uint256,uint256)" 0 5 0 --rpc-url $OPTIMISM_RPC_URL --slow --broadcast --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92 --legacy
3756
# wait
3857

39-
# # FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusProd(uint256,uint256,uint256)" 0 7 0 --rpc-url $FANTOM_RPC_URL --slow --broadcast --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92 --legacy
40-
# # wait
58+
# FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusProd(uint256,uint256,uint256)" 0 6 0 --rpc-url $BASE_RPC_URL --slow --broadcast --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92 --legacy
59+
# wait
4160

42-
# FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusProd(uint256,uint256,uint256)" 0 8 0 --rpc-url $LINEA_RPC_URL --broadcast --slow --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92 --legacy
61+
# FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusProd(uint256,uint256,uint256)" 0 8 0 --rpc-url $LINEA_RPC_URL --slow --broadcast --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92 --legacy
4362
# wait
4463

45-
# FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusProd(uint256,uint256,uint256)" 0 9 0 --rpc-url $BLAST_RPC_URL --broadcast --slow --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92 --legacy
64+
# FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlusProd(uint256,uint256,uint256)" 0 9 0 --rpc-url $BLAST_RPC_URL --slow --broadcast --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92 --legacy
4665
# wait
4766

4867
echo Configuring Router Plus on prod: ...
4968

50-
# # //FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "configureRouterPlusProd(uint256,uint256,uint256)" 0 0 0 --rpc-url $ETHEREUM_RPC_URL --slow --sender 0x1985df46791BEBb1e3ed9Ec60417F38CECc1D349
51-
# # // wait
69+
FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "configureRouterPlusProd(uint256,uint256,uint256)" 0 0 0 --rpc-url $ETHEREUM_RPC_URL --slow --sender 0x1985df46791BEBb1e3ed9Ec60417F38CECc1D349
70+
wait
5271

5372
FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "configureRouterPlusProd(uint256,uint256,uint256)" 0 1 0 --rpc-url $BSC_RPC_URL --slow --sender 0x1985df46791BEBb1e3ed9Ec60417F38CECc1D349
5473
wait
@@ -68,15 +87,8 @@ wait
6887
FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "configureRouterPlusProd(uint256,uint256,uint256)" 0 6 0 --rpc-url $BASE_RPC_URL --slow --sender 0x1985df46791BEBb1e3ed9Ec60417F38CECc1D349
6988
wait
7089

71-
# // FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "configureRouterPlusProd(uint256,uint256,uint256)" 0 7 0 --rpc-url $FANTOM_RPC_URL --slow --broadcast --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92 --legacy
72-
# // wait
73-
7490
FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "configureRouterPlusProd(uint256,uint256,uint256)" 0 8 0 --rpc-url $LINEA_RPC_URL --slow --sender 0x1985df46791BEBb1e3ed9Ec60417F38CECc1D349
7591
wait
7692

7793
FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "configureRouterPlusProd(uint256,uint256,uint256)" 0 9 0 --rpc-url $BLAST_RPC_URL --slow --sender 0x1985df46791BEBb1e3ed9Ec60417F38CECc1D349
78-
wait
79-
80-
echo disable ftm cross chain
81-
FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "disableFTMCrossChain(uint256,uint256,uint256)" 0 7 1 --rpc-url $FANTOM_RPC_URL --slow --sender 0x1985df46791BEBb1e3ed9Ec60417F38CECc1D349
82-
wait
94+
wait

script/utils/verify_contracts.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ contract_addresses=(
185185
0x35E3057FF29ebC5b8dEF18EC66FEde16f1B237F5
186186
0x664E1e7b8393DF4aC4EFAbEf9d56B2100098FCE2
187187
0xc100592b40eeb4CBC7524092A00400917421ab64
188-
0x4393C2a521ef115cd32C1d45897E7ce33aDa7aa9
188+
0xC417496D46eD390514cEABE2297ec6d65Df214a4
189189
# Add more addresses here if needed
190190
)
191191

@@ -252,7 +252,7 @@ contract_addresses_linea=(
252252
0x35E3057FF29ebC5b8dEF18EC66FEde16f1B237F5
253253
0x664E1e7b8393DF4aC4EFAbEf9d56B2100098FCE2
254254
0xc100592b40eeb4CBC7524092A00400917421ab64
255-
0x4393C2a521ef115cd32C1d45897E7ce33aDa7aa9
255+
0xC417496D46eD390514cEABE2297ec6d65Df214a4
256256
# Add more addresses here if needed
257257
)
258258

@@ -286,7 +286,7 @@ contract_addresses_blast=(
286286
0x5266958cb4b8E6A1534c6Ac19f4220909cf3F7FA
287287
0x664E1e7b8393DF4aC4EFAbEf9d56B2100098FCE2
288288
0xc100592b40eeb4CBC7524092A00400917421ab64
289-
0x4393C2a521ef115cd32C1d45897E7ce33aDa7aa9
289+
0xC417496D46eD390514cEABE2297ec6d65Df214a4
290290
# Add more addresses here if needed
291291
)
292292

0 commit comments

Comments
 (0)