@@ -96,46 +96,7 @@ abstract contract RiskStewardsBase is ProtocolV3TestBase {
9696 IRiskSteward.PriceCapStableUpdate[] memory stablePriceCapUpdates = stablePriceCapsUpdates ();
9797
9898 if (skipTimelock) {
99- // warp to the max timelock
100-
101- uint40 [] memory timelocks = new uint40 [](15 );
102- uint256 index = 0 ; // Track the current index for adding elements
103-
104- IRiskSteward.Config memory riskConfig = STEWARD.getRiskConfig ();
105- if (capUpdates.length != 0 ) {
106- timelocks[index++ ] = riskConfig.capConfig.supplyCap.minDelay;
107- timelocks[index++ ] = riskConfig.capConfig.borrowCap.minDelay;
108- }
109- if (collateralUpdates.length != 0 ) {
110- timelocks[index++ ] = riskConfig.collateralConfig.ltv.minDelay;
111- timelocks[index++ ] = riskConfig.collateralConfig.liquidationThreshold.minDelay;
112- timelocks[index++ ] = riskConfig.collateralConfig.liquidationBonus.minDelay;
113- timelocks[index++ ] = riskConfig.collateralConfig.debtCeiling.minDelay;
114- }
115- if (eModeUpdates.length != 0 ) {
116- timelocks[index++ ] = riskConfig.eModeConfig.ltv.minDelay;
117- timelocks[index++ ] = riskConfig.eModeConfig.liquidationThreshold.minDelay;
118- timelocks[index++ ] = riskConfig.eModeConfig.liquidationBonus.minDelay;
119- }
120- if (rateUpdates.length != 0 ) {
121- timelocks[index++ ] = riskConfig.rateConfig.baseVariableBorrowRate.minDelay;
122- timelocks[index++ ] = riskConfig.rateConfig.optimalUsageRatio.minDelay;
123- timelocks[index++ ] = riskConfig.rateConfig.variableRateSlope1.minDelay;
124- timelocks[index++ ] = riskConfig.rateConfig.variableRateSlope2.minDelay;
125- }
126- if (lstPriceCapUpdates.length != 0 ) {
127- timelocks[index++ ] = riskConfig.priceCapConfig.priceCapLst.minDelay;
128- }
129- if (stablePriceCapUpdates.length != 0 ) {
130- timelocks[index++ ] = riskConfig.priceCapConfig.priceCapStable.minDelay;
131- }
132- uint40 maxTimelock = 0 ;
133- for (uint256 i = 0 ; i < timelocks.length ; i++ ) {
134- if (timelocks[i] > maxTimelock) {
135- maxTimelock = timelocks[i];
136- }
137- }
138- vm.warp (block .timestamp + uint256 (maxTimelock) + 1 );
99+ vm.warp (block .timestamp + 15 days);
139100 }
140101
141102 if (generateDiffReport) createConfigurationSnapshot (pre, POOL, true , true , false , false );
0 commit comments