Skip to content

Commit 19a7f66

Browse files
author
justin j. moses
authored
Mainnet deploy of Alnitak contracts and migration (Synthetixio#1383)
1 parent 457939c commit 19a7f66

File tree

3 files changed

+180
-246
lines changed

3 files changed

+180
-246
lines changed

contracts/migrations/Migration_Alnitak.sol

+9-17
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,15 @@ contract Migration_Alnitak is BaseMigration {
5656
require(owner == currentOwner, "Only the assigned owner can be re-assigned when complete");
5757

5858
// NEW CONTRACTS DEPLOYED TO BE ADDED TO PROTOCOL
59-
// https://etherscan.io/address/0x52dDE10B3eF5A817ccd0d2896876549ED9FaC8d0
60-
address new_Synthetix_contract = 0x52dDE10B3eF5A817ccd0d2896876549ED9FaC8d0;
61-
// https://etherscan.io/address/0x678440Ce2D706809d5A0835Cf177F13d78ea66b9
62-
address new_DebtCache_contract = 0x678440Ce2D706809d5A0835Cf177F13d78ea66b9;
63-
// https://etherscan.io/address/0x93F96a5C9C6B703b3703B0Ca7Bd596CF5599dFf0
64-
address new_Exchanger_contract = 0x93F96a5C9C6B703b3703B0Ca7Bd596CF5599dFf0;
59+
// https://etherscan.io/address/0x43AE8037179a5746D618DA077A38DdeEa9640cBa
60+
address new_Synthetix_contract = 0x43AE8037179a5746D618DA077A38DdeEa9640cBa;
61+
// https://etherscan.io/address/0x613c773c7a1D85D2F1DCC051B0573D33470762Eb
62+
address new_Exchanger_contract = 0x613c773c7a1D85D2F1DCC051B0573D33470762Eb;
6563

6664
require(
6765
ISynthetixNamedContract(new_Synthetix_contract).CONTRACT_NAME() == "Synthetix",
6866
"Invalid contract supplied for Synthetix"
6967
);
70-
require(
71-
ISynthetixNamedContract(new_DebtCache_contract).CONTRACT_NAME() == "DebtCache",
72-
"Invalid contract supplied for DebtCache"
73-
);
7468
require(
7569
ISynthetixNamedContract(new_Exchanger_contract).CONTRACT_NAME() == "Exchanger",
7670
"Invalid contract supplied for Exchanger"
@@ -88,14 +82,12 @@ contract Migration_Alnitak is BaseMigration {
8882

8983
// MIGRATION
9084
// Import all new contracts into the address resolver;
91-
bytes32[] memory addressresolver_importAddresses_names_0_0 = new bytes32[](3);
85+
bytes32[] memory addressresolver_importAddresses_names_0_0 = new bytes32[](2);
9286
addressresolver_importAddresses_names_0_0[0] = bytes32("Synthetix");
93-
addressresolver_importAddresses_names_0_0[1] = bytes32("DebtCache");
94-
addressresolver_importAddresses_names_0_0[2] = bytes32("Exchanger");
95-
address[] memory addressresolver_importAddresses_destinations_0_1 = new address[](3);
87+
addressresolver_importAddresses_names_0_0[1] = bytes32("Exchanger");
88+
address[] memory addressresolver_importAddresses_destinations_0_1 = new address[](2);
9689
addressresolver_importAddresses_destinations_0_1[0] = address(new_Synthetix_contract);
97-
addressresolver_importAddresses_destinations_0_1[1] = address(new_DebtCache_contract);
98-
addressresolver_importAddresses_destinations_0_1[2] = address(new_Exchanger_contract);
90+
addressresolver_importAddresses_destinations_0_1[1] = address(new_Exchanger_contract);
9991
addressresolver_i.importAddresses(
10092
addressresolver_importAddresses_names_0_0,
10193
addressresolver_importAddresses_destinations_0_1
@@ -111,7 +103,7 @@ contract Migration_Alnitak is BaseMigration {
111103
addressresolver_rebuildCaches_destinations_1_0[6] = MixinResolver(0xCd9D4988C0AE61887B075bA77f08cbFAd2b65068);
112104
addressresolver_rebuildCaches_destinations_1_0[7] = MixinResolver(0xd69b189020EF614796578AfE4d10378c5e7e1138);
113105
addressresolver_rebuildCaches_destinations_1_0[8] = MixinResolver(new_Synthetix_contract);
114-
addressresolver_rebuildCaches_destinations_1_0[9] = MixinResolver(new_DebtCache_contract);
106+
addressresolver_rebuildCaches_destinations_1_0[9] = MixinResolver(0x9bB05EF2cA7DBAafFC3da1939D1492e6b00F39b8);
115107
addressresolver_rebuildCaches_destinations_1_0[10] = MixinResolver(0x4D8dBD193d89b7B506BE5dC9Db75B91dA00D6a1d);
116108
addressresolver_rebuildCaches_destinations_1_0[11] = MixinResolver(0xC61b352fCc311Ae6B0301459A970150005e74b3E);
117109
addressresolver_rebuildCaches_destinations_1_0[12] = MixinResolver(0x388fD1A8a7d36e03eFA1ab100a1c5159a3A3d427);

0 commit comments

Comments
 (0)