@@ -17,6 +17,9 @@ import {
1717 PeripheryContract
1818} from "@gearbox-protocol/permissionless/contracts/market/legacy/MarketConfiguratorLegacy.sol " ;
1919
20+ // TODO: make sure pausableAdmins, unpausableAdmins and emergencyLiquidators are set properly
21+ // e.g., in some cases multipause is not added to pausable admins, etc.
22+
2023contract LegacyHelper {
2124 using LibString for bytes32 ;
2225
@@ -100,6 +103,7 @@ contract LegacyHelper {
100103 string name;
101104 address admin;
102105 address emergencyAdmin;
106+ address feeSplitterAdmin;
103107 bool deployGovernor;
104108 LegacyParams legacyParams;
105109 }
@@ -116,15 +120,17 @@ contract LegacyHelper {
116120 name: "Chaos Labs " ,
117121 admin: admin,
118122 emergencyAdmin: emergencyAdmin,
123+ feeSplitterAdmin: address (0 ),
119124 deployGovernor: false ,
120125 legacyParams: _getChaosLabsMainnetLegacyParams ()
121126 }),
122127 CuratorInfo ({
123128 chainId: 1 ,
124129 chainName: "Ethereum " ,
125130 name: "Nexo " ,
126- admin: address (0 ),
127- emergencyAdmin: address (0 ),
131+ admin: admin,
132+ emergencyAdmin: emergencyAdmin,
133+ feeSplitterAdmin: 0x349e22baeB15Da6fad00093b3873D5E16d5Bb842 ,
128134 deployGovernor: false ,
129135 legacyParams: _getNexoMainnetLegacyParams ()
130136 }),
@@ -134,6 +140,7 @@ contract LegacyHelper {
134140 name: "Chaos Labs " ,
135141 admin: admin,
136142 emergencyAdmin: emergencyAdmin,
143+ feeSplitterAdmin: address (0 ),
137144 deployGovernor: false ,
138145 legacyParams: _getChaosLabsOptimismLegacyParams ()
139146 }),
@@ -143,6 +150,7 @@ contract LegacyHelper {
143150 name: "Chaos Labs " ,
144151 admin: admin,
145152 emergencyAdmin: emergencyAdmin,
153+ feeSplitterAdmin: address (0 ),
146154 deployGovernor: false ,
147155 legacyParams: _getChaosLabsSonicLegacyParams ()
148156 }),
@@ -152,6 +160,7 @@ contract LegacyHelper {
152160 name: "Chaos Labs " ,
153161 admin: admin,
154162 emergencyAdmin: emergencyAdmin,
163+ feeSplitterAdmin: address (0 ),
155164 deployGovernor: false ,
156165 legacyParams: _getChaosLabsArbitrumLegacyParams ()
157166 })
@@ -188,6 +197,7 @@ contract LegacyHelper {
188197 addressProvider,
189198 curatorInfo.admin,
190199 curatorInfo.emergencyAdmin,
200+ curatorInfo.feeSplitterAdmin,
191201 curatorInfo.name,
192202 curatorInfo.deployGovernor,
193203 curatorInfo.legacyParams
@@ -202,6 +212,7 @@ contract LegacyHelper {
202212 addressProvider_: addressProvider,
203213 admin_: curatorInfo.admin,
204214 emergencyAdmin_: curatorInfo.emergencyAdmin,
215+ feeSplitterAdmin_: curatorInfo.feeSplitterAdmin,
205216 curatorName_: curatorInfo.name,
206217 deployGovernor_: curatorInfo.deployGovernor,
207218 legacyParams_: curatorInfo.legacyParams
@@ -423,24 +434,40 @@ contract LegacyHelper {
423434 }
424435
425436 function _getNexoMainnetLegacyParams () internal pure returns (LegacyParams memory ) {
426- address acl = 0xd98D75da123813D73c54bCF910BBd7FC0afF24d4 ;
427- address contractsRegister = 0xFC1952052dC1f439ccF0cBd9af5A02748b0cc1db ;
437+ address acl = 0x83347DbF1DC98db2989BeEf5746790431B934614 ;
438+ address contractsRegister = 0x0e1d8e931F0F3FE33FAdcA0bb517E5A8E1CD8E1B ;
428439 address gearStaking = 0x2fcbD02d5B1D52FC78d4c02890D7f4f47a459c33 ;
429440 address priceOracle = 0x599f585D1042A14aAb194AC8031b2048dEFdFB85 ;
430- address zapperRegister = 0x3E75276548a7722AbA517a35c35FB43CF3B0E723 ;
441+ address zapperRegister = 0x522c047660A2d81D8D831457770404B9621A6eD9 ;
431442
432- // TODO: add proper values for pausableAdmins, unpausableAdmins and emergencyLiquidators
433- address [] memory pausableAdmins = new address []( 0 ) ;
434-
435- address [] memory unpausableAdmins = new address []( 0 ) ;
436-
437- address [] memory emergencyLiquidators = new address []( 0 ) ;
443+ address [] memory pausableAdmins = new address []( 5 );
444+ pausableAdmins[ 0 ] = 0x3655Ae71eB5437F8FbD0187C012e4619064F9B41 ;
445+ pausableAdmins[ 1 ] = 0xdcC3FD83DBF480e8Ad74DD3A634CaE29B68b9814 ;
446+ pausableAdmins[ 2 ] = 0xdD84A24eeddE63F10Ec3e928f1c8302A47538b6B ;
447+ pausableAdmins[ 3 ] = 0x043BBDf51239bC7F958D0bF6c6fA4E2A825621f6 ;
448+ pausableAdmins[ 4 ] = 0x029De72Fa62A2AdB1E84E97A339F92ce4810e2a9 ;
438449
439- PeripheryContract[] memory peripheryContracts = new PeripheryContract [](4 );
440- peripheryContracts[0 ] = PeripheryContract ("BOT " , 0x223D666828A6a9DFd91081614d18f45bFe8B489B );
441- peripheryContracts[1 ] = PeripheryContract ("BOT " , 0xfF54A8876d6526359961f6171740E6a08B68ac5D );
442- peripheryContracts[2 ] = PeripheryContract ("BOT " , 0xD58931fAC75C6D763580253Fa028A427AD0f591f );
443- peripheryContracts[3 ] = PeripheryContract ("BOT " , 0x35756306F36378447bb959592F33f8b13Ce40833 );
450+ address [] memory unpausableAdmins = new address [](4 );
451+ unpausableAdmins[0 ] = 0x3655Ae71eB5437F8FbD0187C012e4619064F9B41 ;
452+ unpausableAdmins[1 ] = 0xdcC3FD83DBF480e8Ad74DD3A634CaE29B68b9814 ;
453+ unpausableAdmins[2 ] = 0xdD84A24eeddE63F10Ec3e928f1c8302A47538b6B ;
454+ unpausableAdmins[3 ] = 0x029De72Fa62A2AdB1E84E97A339F92ce4810e2a9 ;
455+
456+ address [] memory emergencyLiquidators = new address [](6 );
457+ emergencyLiquidators[0 ] = 0xbd796DdE46DEB00B1840e7be311eF469c375c940 ;
458+ emergencyLiquidators[1 ] = 0x98b0EB10A3a2aaf72CA2C362f8D8360FE6037E8b ;
459+ emergencyLiquidators[2 ] = 0x16040e932b5Ac7A3aB23b88a2f230B4185727b0d ;
460+ emergencyLiquidators[3 ] = 0x3c2E5548bCe88315D50eAB4f6b1Ffb2f1B8eBd7A ;
461+ emergencyLiquidators[4 ] = 0x1a396F9209BDbF7E1Bc95c488E7F1237DA796a03 ;
462+ emergencyLiquidators[5 ] = 0x3d673C58eA3486E95943F4418932c3b1776B3c8c ;
463+ emergencyLiquidators[6 ] = 0x32D956b225b0F1C1E78E676a53C886552c38ed70 ;
464+
465+ PeripheryContract[] memory peripheryContracts = new PeripheryContract [](5 );
466+ peripheryContracts[0 ] = PeripheryContract ("MULTI_PAUSE " , 0x029De72Fa62A2AdB1E84E97A339F92ce4810e2a9 );
467+ peripheryContracts[1 ] = PeripheryContract ("BOT " , 0xc82020f1922AE56CCF25d5F2E2d6155E44583ef9 );
468+ peripheryContracts[2 ] = PeripheryContract ("BOT " , 0x5397F95B1452EBEE91369c9b35149602d4ACBee2 );
469+ peripheryContracts[3 ] = PeripheryContract ("BOT " , 0xE5f56A2C92FAA510785d1dBe269774Cf815bCA4A );
470+ peripheryContracts[4 ] = PeripheryContract ("BOT " , 0x3E3a906C8b286b6f95e61E7580E1Eb081BD1299D );
444471
445472 return LegacyParams ({
446473 acl: acl,
0 commit comments