@@ -183,14 +183,6 @@ contract RewardsDistributionTemplate is HybridProposal, Networks {
183183 /// @notice Track reserve automation contract balances before proposal execution
184184 mapping (address => uint256 ) public reserveAutomationBalancesBefore;
185185
186- /// @notice Track leftover xWELL balance in Temporal Governor on Base before proposal execution
187- /// TODO: Remove this after x34 - this is a one-time cleanup for leftover funds
188- uint256 public temporalGovernorLeftoverBalance;
189-
190- /// @notice Track F-DEVGRANT's xWELL balance on Base before proposal execution
191- /// TODO: Remove this after x34 - this is a one-time cleanup for leftover funds
192- uint256 public devGrantBalanceBeforeBase;
193-
194186 bytes public constant payloadMerkleCampaignBase =
195187 hex "000000000000000000000000a88594d404727625a9437c3f886c7643872296ae00000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 " ;
196188
@@ -238,21 +230,6 @@ contract RewardsDistributionTemplate is HybridProposal, Networks {
238230 );
239231 wellBalancesBefore[reserve] = xwell.balanceOf (reserve);
240232
241- // On Base, check for leftover xWELL in Temporal Governor
242- // TODO: Remove this after x34 - this is a one-time cleanup for leftover funds
243- if (chainId == BASE_CHAIN_ID) {
244- address temporalGovernor = addresses.getAddress (
245- "TEMPORAL_GOVERNOR "
246- );
247- temporalGovernorLeftoverBalance = xwell.balanceOf (
248- temporalGovernor
249- );
250-
251- // Also track F-DEVGRANT's balance on Base before the proposal
252- address devGrant = addresses.getAddress ("F-DEVGRANT " );
253- devGrantBalanceBeforeBase = xwell.balanceOf (devGrant);
254- }
255-
256233 // Save initial balances for reserve automation contracts
257234 JsonSpecExternalChain memory spec = externalChainActions[
258235 chainId
@@ -439,20 +416,6 @@ contract RewardsDistributionTemplate is HybridProposal, Networks {
439416
440417 vm.selectFork (BASE_FORK_ID);
441418
442- // TODO remove this after testing
443- deal (
444- addresses.getAddress ("xWELL_PROXY " ),
445- addresses.getAddress ("F-AERO_MULTISIG " ),
446- 600191928791850000000000
447- );
448-
449- vm.startPrank (addresses.getAddress ("F-AERO_MULTISIG " ));
450- IERC20 (addresses.getAddress ("xWELL_PROXY " )).approve (
451- addresses.getAddress ("TEMPORAL_GOVERNOR " ),
452- 600191928791850000000000
453- );
454- vm.stopPrank ();
455-
456419 vm.selectFork (MOONBEAM_FORK_ID);
457420 }
458421
@@ -978,11 +941,10 @@ contract RewardsDistributionTemplate is HybridProposal, Networks {
978941 _saveWithdrawWell (addresses, data, prefix, _chainId);
979942
980943 if (_chainId != BASE_CHAIN_ID) {
981- // TODO remove the missing rewards after x32
982944 assertApproxEqRel (
983945 ecosystemReserveProxyAmount,
984946 (externalChainActions[_chainId].stkWellEmissionsPerSecond *
985- (endTimeStamp - startTimeStamp)) + 323094721447738864000000 ,
947+ (endTimeStamp - startTimeStamp)),
986948 1e18 ,
987949 "Amount transferred to ECOSYSTEM_RESERVE_PROXY must be equal to the stkWellEmissionsPerSecond * the epoch duration "
988950 );
@@ -1345,27 +1307,6 @@ contract RewardsDistributionTemplate is HybridProposal, Networks {
13451307 }
13461308 }
13471309
1348- // On Base, return any leftover xWELL in Temporal Governor to F-DEVGRANT
1349- // TODO: Remove this after x34 - this is a one-time cleanup for leftover funds
1350- if (_chainId == BASE_CHAIN_ID && temporalGovernorLeftoverBalance > 0 ) {
1351- address xwell = addresses.getAddress ("xWELL_PROXY " );
1352- address devGrant = addresses.getAddress ("F-DEVGRANT " );
1353-
1354- _pushAction (
1355- xwell,
1356- abi.encodeWithSignature (
1357- "transfer(address,uint256) " ,
1358- devGrant,
1359- temporalGovernorLeftoverBalance
1360- ),
1361- string .concat (
1362- "Return leftover " ,
1363- vm.toString (temporalGovernorLeftoverBalance / 1e18 ),
1364- " xWELL from Temporal Governor to F-DEVGRANT on Base "
1365- )
1366- );
1367- }
1368-
13691310 for (uint256 i = 0 ; i < spec.setRewardSpeed.length ; i++ ) {
13701311 SetMRDRewardSpeed memory setRewardSpeed = spec.setRewardSpeed[i];
13711312
@@ -2109,42 +2050,6 @@ contract RewardsDistributionTemplate is HybridProposal, Networks {
21092050 }
21102051 }
21112052
2112- // Validate leftover xWELL transfer on Base
2113- // TODO: Remove this after x34 - this is a one-time cleanup for leftover funds
2114- if (_chainId == BASE_CHAIN_ID && temporalGovernorLeftoverBalance > 0 ) {
2115- address temporalGovernor = addresses.getAddress (
2116- "TEMPORAL_GOVERNOR "
2117- );
2118- address devGrant = addresses.getAddress ("F-DEVGRANT " );
2119- IERC20 xwell = IERC20 (addresses.getAddress ("xWELL_PROXY " ));
2120-
2121- // Verify Temporal Governor balance is now zero (leftovers were sent out)
2122- uint256 currentTempGovBalance = xwell.balanceOf (temporalGovernor);
2123- assertApproxEqAbs (
2124- currentTempGovBalance,
2125- 0 ,
2126- 1e18 ,
2127- string .concat (
2128- "Temporal Governor should have zero xWELL balance after returning leftover " ,
2129- vm.toString (temporalGovernorLeftoverBalance / 1e18 ),
2130- " xWELL to F-DEVGRANT on Base "
2131- )
2132- );
2133-
2134- // Verify F-DEVGRANT received the leftover amount on Base
2135- uint256 expectedDevGrantBalance = devGrantBalanceBeforeBase +
2136- temporalGovernorLeftoverBalance;
2137- assertEq (
2138- xwell.balanceOf (devGrant),
2139- expectedDevGrantBalance,
2140- string .concat (
2141- "F-DEVGRANT on Base should have received leftover " ,
2142- vm.toString (temporalGovernorLeftoverBalance / 1e18 ),
2143- " xWELL from Temporal Governor "
2144- )
2145- );
2146- }
2147-
21482053 {
21492054 // validate emissions per second for the Safety Module
21502055 IStakedWell stkWell = IStakedWell (
0 commit comments