diff --git a/.gas-snapshot b/.gas-snapshot index 30a9b50a4..eb54274b8 100644 --- a/.gas-snapshot +++ b/.gas-snapshot @@ -1,10 +1,10 @@ AirdropTest:testClaim() (gas: 255158) -AirdropTest:testClaimTwiceShouldRevert() (gas: 251568) +AirdropTest:testClaimTwiceShouldRevert() (gas: 251590) AirdropTest:testClaimWithInvalidProofShouldRevert() (gas: 26225) -AirdropTest:testClaimWrongAmountShouldRevert() (gas: 37237) -AirdropTest:testClaimZeroShouldRevert() (gas: 23592) +AirdropTest:testClaimWrongAmountShouldRevert() (gas: 37259) +AirdropTest:testClaimZeroShouldRevert() (gas: 23525) AirdropTest:testSablierStreamWithdraw() (gas: 289597) -AirdropTest:testSablierStreamWithdrawMax() (gas: 291732) +AirdropTest:testSablierStreamWithdrawMax() (gas: 291754) AuditorTest:testAccountShortfall() (gas: 159721) AuditorTest:testAccountShortfallRevert() (gas: 183495) AuditorTest:testBorrowMPValidation() (gas: 159377) @@ -12,76 +12,76 @@ AuditorTest:testBorrowMPValidationRevert() (gas: 183258) AuditorTest:testDynamicCloseFactor() (gas: 1069299) AuditorTest:testEnableEnterExitMultipleMarkets() (gas: 1051269) AuditorTest:testEnableMarket() (gas: 131896) -AuditorTest:testEnableMarketAlreadyListed() (gas: 127756) +AuditorTest:testEnableMarketAlreadyListed() (gas: 127778) AuditorTest:testEnableMarketAuditorMismatch() (gas: 24805) AuditorTest:testEnableMarketShouldRevertWithInvalidPriceFeed() (gas: 149281) AuditorTest:testEnterExitMarket() (gas: 178761) AuditorTest:testExitMarketOwning() (gas: 177445) -DebtManagerTest:testAllowanceSurplus() (gas: 851895) -DebtManagerTest:testApproveMaliciousMarket() (gas: 29093) -DebtManagerTest:testApproveMarket() (gas: 61551) -DebtManagerTest:testBalancerFlashloanCallFromDifferentOrigin() (gas: 65927) -DebtManagerTest:testCallReceiveFlashLoanFromAnyAddress() (gas: 33751) -DebtManagerTest:testDeleverage() (gas: 825954) -DebtManagerTest:testDeleverageHalfPosition() (gas: 842265) -DebtManagerTest:testDeleverageIncremental() (gas: 1167615) -DebtManagerTest:testDeleverageWithMoreThanBalancerAvailableLiquidity() (gas: 1034694) -DebtManagerTest:testDeleverageWithPartialWithdraw() (gas: 856820) -DebtManagerTest:testDeleverageWithWithdraw() (gas: 834077) +DebtManagerTest:testAllowanceSurplus() (gas: 851911) +DebtManagerTest:testApproveMaliciousMarket() (gas: 29115) +DebtManagerTest:testApproveMarket() (gas: 61573) +DebtManagerTest:testBalancerFlashloanCallFromDifferentOrigin() (gas: 65949) +DebtManagerTest:testCallReceiveFlashLoanFromAnyAddress() (gas: 33684) +DebtManagerTest:testDeleverage() (gas: 825976) +DebtManagerTest:testDeleverageHalfPosition() (gas: 842287) +DebtManagerTest:testDeleverageIncremental() (gas: 1167548) +DebtManagerTest:testDeleverageWithMoreThanBalancerAvailableLiquidity() (gas: 1034716) +DebtManagerTest:testDeleverageWithPartialWithdraw() (gas: 856733) +DebtManagerTest:testDeleverageWithWithdraw() (gas: 834099) DebtManagerTest:testFakeMarketDeleverage() (gas: 1089757) DebtManagerTest:testFakeMarketLeverage() (gas: 1121060) -DebtManagerTest:testFakeMarketRollFixed() (gas: 1675192) +DebtManagerTest:testFakeMarketRollFixed() (gas: 1675125) DebtManagerTest:testFixedRoll() (gas: 840416) -DebtManagerTest:testFixedRollSameMaturityWithThreeLoops() (gas: 715421) +DebtManagerTest:testFixedRollSameMaturityWithThreeLoops() (gas: 715443) DebtManagerTest:testFixedRollWithAccurateBorrowSlippage() (gas: 1192916) -DebtManagerTest:testFixedRollWithAccurateBorrowSlippageWithThreeLoops() (gas: 2116906) +DebtManagerTest:testFixedRollWithAccurateBorrowSlippageWithThreeLoops() (gas: 2116839) DebtManagerTest:testFixedRollWithAccurateRepaySlippage() (gas: 1192876) -DebtManagerTest:testFixedRollWithAccurateRepaySlippageWithThreeLoops() (gas: 2111644) +DebtManagerTest:testFixedRollWithAccurateRepaySlippageWithThreeLoops() (gas: 2111578) DebtManagerTest:testFixedToFloatingRoll() (gas: 795802) -DebtManagerTest:testFixedToFloatingRollHigherThanAvailableLiquidity() (gas: 925934) +DebtManagerTest:testFixedToFloatingRollHigherThanAvailableLiquidity() (gas: 925956) DebtManagerTest:testFixedToFloatingRollHigherThanAvailableLiquidityWithSlippage() (gas: 1386611) -DebtManagerTest:testFixedToFloatingRollHigherThanAvailableLiquidityWithSlippageWithThreeLoops() (gas: 1986076) -DebtManagerTest:testFixedToFloatingRollWithAccurateSlippage() (gas: 1090130) -DebtManagerTest:testFlashloanFeeGreaterThanZero() (gas: 735075) +DebtManagerTest:testFixedToFloatingRollHigherThanAvailableLiquidityWithSlippageWithThreeLoops() (gas: 1986098) +DebtManagerTest:testFixedToFloatingRollWithAccurateSlippage() (gas: 1090152) +DebtManagerTest:testFlashloanFeeGreaterThanZero() (gas: 735008) DebtManagerTest:testFloatingToFixedRoll() (gas: 816850) DebtManagerTest:testFloatingToFixedRollHigherThanAvailableLiquidity() (gas: 984322) DebtManagerTest:testFloatingToFixedRollHigherThanAvailableLiquidityWithSlippage() (gas: 1508744) -DebtManagerTest:testFloatingToFixedRollHigherThanAvailableLiquidityWithSlippageWithThreePools() (gas: 2253463) -DebtManagerTest:testFloatingToFixedRollWithAccurateSlippage() (gas: 1169941) -DebtManagerTest:testFloatingToFixedRollWithAccurateSlippageWithPreviousPosition() (gas: 1177962) -DebtManagerTest:testLateFixedRoll() (gas: 924005) -DebtManagerTest:testLateFixedRollWithThreeLoops() (gas: 1441362) -DebtManagerTest:testLateFixedToFloatingRoll() (gas: 878053) -DebtManagerTest:testLateFixedToFloatingRollWithThreeLoops() (gas: 1367798) -DebtManagerTest:testLeverage() (gas: 658336) -DebtManagerTest:testLeverageIncremental() (gas: 1020551) -DebtManagerTest:testLeverageShouldFailWhenHealthFactorNearOne() (gas: 1336745) +DebtManagerTest:testFloatingToFixedRollHigherThanAvailableLiquidityWithSlippageWithThreePools() (gas: 2253485) +DebtManagerTest:testFloatingToFixedRollWithAccurateSlippage() (gas: 1169963) +DebtManagerTest:testFloatingToFixedRollWithAccurateSlippageWithPreviousPosition() (gas: 1177876) +DebtManagerTest:testLateFixedRoll() (gas: 924045) +DebtManagerTest:testLateFixedRollWithThreeLoops() (gas: 1441402) +DebtManagerTest:testLateFixedToFloatingRoll() (gas: 878075) +DebtManagerTest:testLateFixedToFloatingRollWithThreeLoops() (gas: 1367820) +DebtManagerTest:testLeverage() (gas: 658358) +DebtManagerTest:testLeverageIncremental() (gas: 1020484) +DebtManagerTest:testLeverageShouldFailWhenHealthFactorNearOne() (gas: 1336767) DebtManagerTest:testLeverageWithAlreadyDepositedAmount() (gas: 691057) DebtManagerTest:testLeverageWithInvalidBalancerVault() (gas: 3649263) -DebtManagerTest:testLeverageWithMoreThanBalancerAvailableLiquidity() (gas: 1122916) -DebtManagerTest:testLeverageWithNegativePrincipal() (gas: 971675) -DebtManagerTest:testLeverageWithPartialNegativePrincipal() (gas: 1013455) -DebtManagerTest:testMockBalancerVault() (gas: 5362152) -DebtManagerTest:testPartialDeleverageWithWithdrawAndNewRatio() (gas: 885426) +DebtManagerTest:testLeverageWithMoreThanBalancerAvailableLiquidity() (gas: 1122938) +DebtManagerTest:testLeverageWithNegativePrincipal() (gas: 971697) +DebtManagerTest:testLeverageWithPartialNegativePrincipal() (gas: 1013477) +DebtManagerTest:testMockBalancerVault() (gas: 5362171) +DebtManagerTest:testPartialDeleverageWithWithdrawAndNewRatio() (gas: 885448) DebtManagerTest:testPartialDeleverageWithWithdrawKeepingRatio() (gas: 885454) -DebtManagerTest:testPartialFixedRoll() (gas: 883680) +DebtManagerTest:testPartialFixedRoll() (gas: 883702) DebtManagerTest:testPartialFixedToFloatingRoll() (gas: 854122) -DebtManagerTest:testPartialLateFixedRoll() (gas: 968856) -DebtManagerTest:testPartialLateFixedToFloatingRoll() (gas: 945615) -DebtManagerTest:testPermit2AndLeverage() (gas: 756695) -DebtManagerTest:testPermitAndDeleverage() (gas: 852546) -DebtManagerTest:testPermitAndLeverage() (gas: 653406) -DebtManagerTest:testPermitAndRollFloatingToFixed() (gas: 908751) -DebtManagerTest:testPermitAndTransferLeverage() (gas: 775373) +DebtManagerTest:testPartialLateFixedRoll() (gas: 968878) +DebtManagerTest:testPartialLateFixedToFloatingRoll() (gas: 945549) +DebtManagerTest:testPermit2AndLeverage() (gas: 756756) +DebtManagerTest:testPermitAndDeleverage() (gas: 852456) +DebtManagerTest:testPermitAndLeverage() (gas: 653426) +DebtManagerTest:testPermitAndRollFloatingToFixed() (gas: 908773) +DebtManagerTest:testPermitAndTransferLeverage() (gas: 775367) DebtPreviewerTest:testDeleverageRatesSameAsset() (gas: 925563) DebtPreviewerTest:testLeverageRatesCrossAsset() (gas: 775949) DebtPreviewerTest:testLeverageRatesSameAsset() (gas: 485262) DebtPreviewerTest:testLeverageRatesWithNativeBorrow() (gas: 413453) -DebtPreviewerTest:testLeverageRatesWithNegativeNativeResult() (gas: 413469) +DebtPreviewerTest:testLeverageRatesWithNegativeNativeResult() (gas: 413536) DebtPreviewerTest:testLeverageRatesZeroPrincipalCrossAsset() (gas: 707926) DebtPreviewerTest:testLeverageRatesZeroPrincipalSameAsset() (gas: 415045) DebtPreviewerTest:testPreviewDeleverageSameAsset() (gas: 1754516) -DebtPreviewerTest:testPreviewEmptyLeverage() (gas: 313675) +DebtPreviewerTest:testPreviewEmptyLeverage() (gas: 313653) DebtPreviewerTest:testPreviewLeverage() (gas: 908297) DebtPreviewerTest:testPreviewLeverageBalancerAvailableLiquidity() (gas: 318318) DebtPreviewerTest:testPreviewLeverageSameAsset() (gas: 1066188) @@ -95,211 +95,211 @@ DebtPreviewerTest:testPreviewMaxRatioWithdrawWithSameAssetLeverage() (gas: 10205 DebtPreviewerTest:testPreviewSameAssetInvalidLeverageShouldCapRatio() (gas: 910754) EscrowedEXATest:testCancelExternalStreams() (gas: 452412) EscrowedEXATest:testCancelExternalStreamsWithesEXACancel() (gas: 903956) -EscrowedEXATest:testCancelFromStreamAndGetReserveBack() (gas: 453373) -EscrowedEXATest:testCancelFromStreamJustCreated() (gas: 406436) -EscrowedEXATest:testCancelShouldDeleteReserves() (gas: 472593) -EscrowedEXATest:testCancelShouldGiveReservesBack() (gas: 679565) -EscrowedEXATest:testCancelTwiceShouldRevert() (gas: 458839) +EscrowedEXATest:testCancelFromStreamAndGetReserveBack() (gas: 453395) +EscrowedEXATest:testCancelFromStreamJustCreated() (gas: 406325) +EscrowedEXATest:testCancelShouldDeleteReserves() (gas: 472615) +EscrowedEXATest:testCancelShouldGiveReservesBack() (gas: 679587) +EscrowedEXATest:testCancelTwiceShouldRevert() (gas: 458861) EscrowedEXATest:testCancelWithInvalidAccount() (gas: 349827) EscrowedEXATest:testFakeTokenWithesEXARecipient() (gas: 932415) EscrowedEXATest:testGrantTransferrerRoleAsAdmin() (gas: 45878) -EscrowedEXATest:testMint() (gas: 165075) +EscrowedEXATest:testMint() (gas: 165097) EscrowedEXATest:testMintMoreThanBalance() (gas: 27454) EscrowedEXATest:testMintToAnother() (gas: 167271) EscrowedEXATest:testMintZero() (gas: 14075) EscrowedEXATest:testRedeemAsNotRedeemer() (gas: 214695) EscrowedEXATest:testRedeemAsRedeemer() (gas: 165427) EscrowedEXATest:testRedeemAsRedeemerToAnother() (gas: 170328) -EscrowedEXATest:testSetReserveRatioAsAdmin() (gas: 24539) +EscrowedEXATest:testSetReserveRatioAsAdmin() (gas: 24561) EscrowedEXATest:testSetReserveRatioAsNotAdmin() (gas: 47340) EscrowedEXATest:testSetReserveRatioAsZero() (gas: 16315) -EscrowedEXATest:testSetVestingPeriodAsAdmin() (gas: 24686) +EscrowedEXATest:testSetVestingPeriodAsAdmin() (gas: 24708) EscrowedEXATest:testSetVestingPeriodAsNotAdmin() (gas: 47433) EscrowedEXATest:testTransferToNotTransferrer() (gas: 174816) -EscrowedEXATest:testTransferToTransferrer() (gas: 210419) -EscrowedEXATest:testVest() (gas: 348466) -EscrowedEXATest:testVestDisagreement() (gas: 181934) -EscrowedEXATest:testVestToAnother() (gas: 405315) +EscrowedEXATest:testTransferToTransferrer() (gas: 210441) +EscrowedEXATest:testVest() (gas: 348488) +EscrowedEXATest:testVestDisagreement() (gas: 181824) +EscrowedEXATest:testVestToAnother() (gas: 405337) EscrowedEXATest:testVestToAnotherAndCancel() (gas: 491113) -EscrowedEXATest:testVestWithPermitReserve() (gas: 459061) +EscrowedEXATest:testVestWithPermitReserve() (gas: 459083) EscrowedEXATest:testVestZero() (gas: 20986) EscrowedEXATest:testWithdrawFromStreamAndGetReserveBack() (gas: 331358) -EscrowedEXATest:testWithdrawFromUnknownStream() (gas: 898393) +EscrowedEXATest:testWithdrawFromUnknownStream() (gas: 898415) EscrowedEXATest:testWithdrawMaxFromMultipleStreams() (gas: 1015334) EscrowedEXATest:testWithdrawMaxShouldGiveReserveBackWhenDepleted() (gas: 329348) -EscrowedEXATest:testWithdrawMaxWithInvalidSender() (gas: 342466) -InterestRateModelTest:testFixedBorrowRate() (gas: 8089) -InterestRateModelTest:testFloatingBorrowRate() (gas: 6236) -InterestRateModelTest:testMinFixedRate() (gas: 7610) -InterestRateModelTest:testRevertFixedMaxUtilizationLowerThanWad() (gas: 81593) -InterestRateModelTest:testRevertFloatingMaxUtilizationLowerThanWad() (gas: 81681) +EscrowedEXATest:testWithdrawMaxWithInvalidSender() (gas: 342488) +InterestRateModelTest:testFixedBorrowRate() (gas: 8111) +InterestRateModelTest:testFloatingBorrowRate() (gas: 6170) +InterestRateModelTest:testMinFixedRate() (gas: 7654) +InterestRateModelTest:testRevertFixedMaxUtilizationLowerThanWad() (gas: 81742) +InterestRateModelTest:testRevertFloatingMaxUtilizationLowerThanWad() (gas: 81808) MarketTest:testAccountLiquidityAdjustedDebt() (gas: 380810) -MarketTest:testAnotherUserRedeemWhenOwnerHasShortfall() (gas: 483858) -MarketTest:testAnotherUserWithdrawWhenOwnerHasShortfall() (gas: 472735) -MarketTest:testBorrowAtMaturity() (gas: 403817) -MarketTest:testBorrowAtMaturityUpdatesFloatingDebtAndFloatingAssets() (gas: 598824) +MarketTest:testAnotherUserRedeemWhenOwnerHasShortfall() (gas: 483880) +MarketTest:testAnotherUserWithdrawWhenOwnerHasShortfall() (gas: 472757) +MarketTest:testBorrowAtMaturity() (gas: 403839) +MarketTest:testBorrowAtMaturityUpdatesFloatingDebtAndFloatingAssets() (gas: 598846) MarketTest:testBorrowAtMaturityWithZeroAssets() (gas: 16039) MarketTest:testBorrowDisagreement() (gas: 170580) -MarketTest:testBorrowFromFreeLunchShouldNotRevertWithFloatingFullUtilization() (gas: 759027) -MarketTest:testCappedLiquidation() (gas: 693613) +MarketTest:testBorrowFromFreeLunchShouldNotRevertWithFloatingFullUtilization() (gas: 759049) +MarketTest:testCappedLiquidation() (gas: 693635) MarketTest:testChargeTreasuryToEarlyWithdraws() (gas: 631407) MarketTest:testChargeTreasuryToFixedBorrows() (gas: 678943) -MarketTest:testClearBadDebtAvoidingFixedBorrowsIfAccumulatorLower() (gas: 978296) +MarketTest:testClearBadDebtAvoidingFixedBorrowsIfAccumulatorLower() (gas: 978318) MarketTest:testClearBadDebtCalledByAccount() (gas: 13529) -MarketTest:testClearBadDebtExactlyRepaysFixedBorrowWithAccumulatorAmount() (gas: 811822) -MarketTest:testClearBadDebtPartiallyRepaysEachFixedBorrow() (gas: 843854) +MarketTest:testClearBadDebtExactlyRepaysFixedBorrowWithAccumulatorAmount() (gas: 811777) +MarketTest:testClearBadDebtPartiallyRepaysEachFixedBorrow() (gas: 843876) MarketTest:testClearBadDebtPartiallyRepaysFloatingDebt() (gas: 946881) -MarketTest:testClearBadDebtShouldAccrueAccumulatedEarningsBeforeSpreadingLosses() (gas: 945226) +MarketTest:testClearBadDebtShouldAccrueAccumulatedEarningsBeforeSpreadingLosses() (gas: 945162) MarketTest:testClearBadDebtWithEmptyAccumulatorShouldNotRevert() (gas: 576896) -MarketTest:testClearMaturity() (gas: 621668) -MarketTest:testCollectTreasuryFreeLunchToEarlyWithdraws() (gas: 761625) -MarketTest:testCollectTreasuryFreeLunchToEarlyWithdrawsWithZeroFees() (gas: 273367) -MarketTest:testCollectTreasuryFreeLunchToFixedBorrows() (gas: 709038) -MarketTest:testCollectTreasuryFreeLunchToFixedBorrowsWithZeroFees() (gas: 477572) +MarketTest:testClearMaturity() (gas: 621686) +MarketTest:testCollectTreasuryFreeLunchToEarlyWithdraws() (gas: 761560) +MarketTest:testCollectTreasuryFreeLunchToEarlyWithdrawsWithZeroFees() (gas: 273389) +MarketTest:testCollectTreasuryFreeLunchToFixedBorrows() (gas: 708975) +MarketTest:testCollectTreasuryFreeLunchToFixedBorrowsWithZeroFees() (gas: 477594) MarketTest:testCrossMaturityLiquidation() (gas: 1231896) -MarketTest:testDepositAtMaturity() (gas: 156560) +MarketTest:testDepositAtMaturity() (gas: 156494) MarketTest:testDepositAtMaturityWithZeroAssets() (gas: 15936) MarketTest:testDepositDisagreement() (gas: 32880) -MarketTest:testDepositShouldUpdateFlexibleBorrowVariables() (gas: 443236) -MarketTest:testDepositToSmartPool() (gas: 157676) -MarketTest:testDistributeMultipleAccumulatedEarnings() (gas: 585395) +MarketTest:testDepositShouldUpdateFlexibleBorrowVariables() (gas: 443258) +MarketTest:testDepositToSmartPool() (gas: 157698) +MarketTest:testDistributeMultipleAccumulatedEarnings() (gas: 585417) MarketTest:testDistributionOfLossesShouldReduceFromFloatingBackupBorrowedAccordingly() (gas: 2041444) -MarketTest:testEarlyRepaymentWithExcessiveAmountOfFees() (gas: 1300381) -MarketTest:testEarlyWithdrawFromFreeLunchShouldNotRevertWithFloatingFullUtilization() (gas: 611070) -MarketTest:testFixedBorrowFailingWhenFlexibleBorrowAccruesDebt() (gas: 778544) -MarketTest:testFlexibleBorrow() (gas: 329289) +MarketTest:testEarlyRepaymentWithExcessiveAmountOfFees() (gas: 1300403) +MarketTest:testEarlyWithdrawFromFreeLunchShouldNotRevertWithFloatingFullUtilization() (gas: 611092) +MarketTest:testFixedBorrowFailingWhenFlexibleBorrowAccruesDebt() (gas: 778566) +MarketTest:testFlexibleBorrow() (gas: 329311) MarketTest:testFlexibleBorrowAccountingDebt() (gas: 322305) -MarketTest:testFlexibleBorrowChargingDebtToTreasury() (gas: 476494) -MarketTest:testFlexibleBorrowExceedingReserve() (gas: 520796) -MarketTest:testFlexibleBorrowExceedingReserveIncludingFixedBorrow() (gas: 703235) +MarketTest:testFlexibleBorrowChargingDebtToTreasury() (gas: 476516) +MarketTest:testFlexibleBorrowExceedingReserve() (gas: 520818) +MarketTest:testFlexibleBorrowExceedingReserveIncludingFixedBorrow() (gas: 703257) MarketTest:testFlexibleBorrowExceedingReserveWithNewDebt() (gas: 656739) MarketTest:testFlexibleBorrowFromAnotherUserSubtractsAllowance() (gas: 351605) MarketTest:testFlexibleBorrowFromAnotherUserWithAllowance() (gas: 344548) -MarketTest:testFlexibleBorrowFromAnotherUserWithoutAllowance() (gas: 178946) -MarketTest:testFrontRunSmartPoolEarningsDistributionWithBigPenaltyRepayment() (gas: 583494) -MarketTest:testInsufficientProtocolLiquidity() (gas: 859683) +MarketTest:testFlexibleBorrowFromAnotherUserWithoutAllowance() (gas: 178968) +MarketTest:testFrontRunSmartPoolEarningsDistributionWithBigPenaltyRepayment() (gas: 583516) +MarketTest:testInsufficientProtocolLiquidity() (gas: 859705) MarketTest:testLiquidateAndChargeIncentiveForLenders() (gas: 979426) MarketTest:testLiquidateAndDistributeLosses() (gas: 1180195) -MarketTest:testLiquidateAndSeizeExactAmountWithDustAsCollateral() (gas: 1161127) -MarketTest:testLiquidateAndSeizeFromEmptyCollateral() (gas: 612570) -MarketTest:testLiquidateAndSubtractLossesFromAccumulator() (gas: 1517972) -MarketTest:testLiquidateFlexibleAndFixedBorrowPositionsInSingleCall() (gas: 1139242) -MarketTest:testLiquidateFlexibleBorrow() (gas: 1078407) -MarketTest:testLiquidateFlexibleBorrowChargeLendersAssetsToLiquidator() (gas: 725170) +MarketTest:testLiquidateAndSeizeExactAmountWithDustAsCollateral() (gas: 1161062) +MarketTest:testLiquidateAndSeizeFromEmptyCollateral() (gas: 612592) +MarketTest:testLiquidateAndSubtractLossesFromAccumulator() (gas: 1517989) +MarketTest:testLiquidateFlexibleAndFixedBorrowPositionsInSingleCall() (gas: 1139176) +MarketTest:testLiquidateFlexibleBorrow() (gas: 1078362) +MarketTest:testLiquidateFlexibleBorrowChargeLendersAssetsToLiquidator() (gas: 725192) MarketTest:testLiquidateFlexibleBorrowConsideringDebtOverTime() (gas: 826657) -MarketTest:testLiquidateLeavingDustAsCollateral() (gas: 1357742) -MarketTest:testLiquidateWithTwoUnitsAsMaxAssets() (gas: 869206) -MarketTest:testLiquidateWithZeroAsMaxAssets() (gas: 612585) -MarketTest:testLiquidationClearingDebtOfAllAccountMarkets() (gas: 1318558) -MarketTest:testLiquidationResultingInZeroCollateralAndZeroDebt() (gas: 913261) -MarketTest:testMaturityInsufficientProtocolLiquidity() (gas: 881535) -MarketTest:testMultipleBorrowsForMultipleAssets() (gas: 601661044) -MarketTest:testMultipleDepositsToSmartPool() (gas: 326688) -MarketTest:testMultipleFixedBorrowsRepays() (gas: 755368) +MarketTest:testLiquidateLeavingDustAsCollateral() (gas: 1357697) +MarketTest:testLiquidateWithTwoUnitsAsMaxAssets() (gas: 869139) +MarketTest:testLiquidateWithZeroAsMaxAssets() (gas: 612540) +MarketTest:testLiquidationClearingDebtOfAllAccountMarkets() (gas: 1318580) +MarketTest:testLiquidationResultingInZeroCollateralAndZeroDebt() (gas: 913283) +MarketTest:testMaturityInsufficientProtocolLiquidity() (gas: 881469) +MarketTest:testMultipleBorrowsForMultipleAssets() (gas: 601660994) +MarketTest:testMultipleDepositsToSmartPool() (gas: 326710) +MarketTest:testMultipleFixedBorrowsRepays() (gas: 755323) MarketTest:testMultipleLiquidationSameUser() (gas: 1288307) -MarketTest:testNotEnteredMarketShouldNotBeSeized() (gas: 7093349) -MarketTest:testOperationsShouldUpdateFloatingAssetsAverage() (gas: 639901) +MarketTest:testNotEnteredMarketShouldNotBeSeized() (gas: 7093371) +MarketTest:testOperationsShouldUpdateFloatingAssetsAverage() (gas: 639923) MarketTest:testOperationsWithBtcWbtcRate() (gas: 6981918) -MarketTest:testOperationsWithStEthAsset() (gas: 6935338) -MarketTest:testPreviewOperationsWithSmartPoolCorrectlyAccountingEarnings() (gas: 862728) -MarketTest:testRepayAtMaturity() (gas: 352634) -MarketTest:testRepayDisagreement() (gas: 429951) -MarketTest:testRepayFlexibleBorrow() (gas: 549006) -MarketTest:testRoundingDownAssetsToValidateShortfallWhenTransferring() (gas: 6382842) -MarketTest:testRoundingDownAssetsToValidateShortfallWhenTransferringFrom() (gas: 6411588) +MarketTest:testOperationsWithStEthAsset() (gas: 6935360) +MarketTest:testPreviewOperationsWithSmartPoolCorrectlyAccountingEarnings() (gas: 862750) +MarketTest:testRepayAtMaturity() (gas: 352652) +MarketTest:testRepayDisagreement() (gas: 429887) +MarketTest:testRepayFlexibleBorrow() (gas: 549028) +MarketTest:testRoundingDownAssetsToValidateShortfallWhenTransferring() (gas: 6382864) +MarketTest:testRoundingDownAssetsToValidateShortfallWhenTransferringFrom() (gas: 6411610) MarketTest:testRoundingDownAssetsWhenTransferingFromAnAccountWithoutShortfall() (gas: 588774) MarketTest:testRoundingDownAssetsWhenTransferingWithAnAccountWithoutShortfall() (gas: 561909) -MarketTest:testRoundingUpAllowanceWhenBorrowingAtMaturity() (gas: 489697) -MarketTest:testRoundingUpAllowanceWhenWithdrawingAtMaturity() (gas: 502306) +MarketTest:testRoundingUpAllowanceWhenBorrowingAtMaturity() (gas: 489719) +MarketTest:testRoundingUpAllowanceWhenWithdrawingAtMaturity() (gas: 502328) MarketTest:testSetDampSpeedFactorShouldUpdateFloatingAssetsAverage() (gas: 240216) -MarketTest:testSetEarningsAccumulatorSmoothFactorShouldDistributeEarnings() (gas: 495671) -MarketTest:testSetInterestRateModelShouldUpdateFloatingDebt() (gas: 988353) -MarketTest:testSetInterestRateModelWithAddressZeroShouldNotUpdateFloatingDebt() (gas: 870586) -MarketTest:testShareValueNotDecreasingAfterDeposit() (gas: 468612) -MarketTest:testShareValueNotDecreasingWhenMintingToTreasury() (gas: 473384) -MarketTest:testSingleFloatingBorrow() (gas: 326415) +MarketTest:testSetEarningsAccumulatorSmoothFactorShouldDistributeEarnings() (gas: 495693) +MarketTest:testSetInterestRateModelShouldUpdateFloatingDebt() (gas: 988375) +MarketTest:testSetInterestRateModelWithAddressZeroShouldNotUpdateFloatingDebt() (gas: 870608) +MarketTest:testShareValueNotDecreasingAfterDeposit() (gas: 468634) +MarketTest:testShareValueNotDecreasingWhenMintingToTreasury() (gas: 473317) +MarketTest:testSingleFloatingBorrow() (gas: 326437) MarketTest:testSingleFloatingRepay() (gas: 284398) MarketTest:testSmartPoolEarningsDistribution() (gas: 534492) -MarketTest:testSmartPoolSharesDoNotAccountUnassignedEarningsFromMoreThanOneIntervalPastMaturities() (gas: 430907) -MarketTest:testSumDebtPlusEffectsShouldntRoundUpWhenWithdrawing() (gas: 569332) -MarketTest:testTotalAssetsProjectingBackupEarningsCorrectly() (gas: 411623) +MarketTest:testSmartPoolSharesDoNotAccountUnassignedEarningsFromMoreThanOneIntervalPastMaturities() (gas: 430929) +MarketTest:testSumDebtPlusEffectsShouldntRoundUpWhenWithdrawing() (gas: 569354) +MarketTest:testTotalAssetsProjectingBackupEarningsCorrectly() (gas: 411645) MarketTest:testTotalAssetsProjectingFloatingDebtCorrectly() (gas: 473925) MarketTest:testUpdateAccumulatedEarningsFactorToZero() (gas: 641674) -MarketTest:testUpdateFloatingAssetsAverageWhenDepositingAndBorrowingContinuously() (gas: 236080) -MarketTest:testUpdateFloatingAssetsAverageWhenDepositingRightBeforeBorrow() (gas: 435111) -MarketTest:testUpdateFloatingAssetsAverageWhenDepositingRightBeforeEarlyWithdraw() (gas: 322586) -MarketTest:testUpdateFloatingAssetsAverageWhenDepositingSomeSecondsBeforeBorrow() (gas: 493065) -MarketTest:testUpdateFloatingAssetsAverageWhenWithdrawingRightBeforeBorrow() (gas: 440788) -MarketTest:testUpdateFloatingAssetsAverageWhenWithdrawingRightBeforeEarlyWithdraw() (gas: 339261) +MarketTest:testUpdateFloatingAssetsAverageWhenDepositingAndBorrowingContinuously() (gas: 236102) +MarketTest:testUpdateFloatingAssetsAverageWhenDepositingRightBeforeBorrow() (gas: 435045) +MarketTest:testUpdateFloatingAssetsAverageWhenDepositingRightBeforeEarlyWithdraw() (gas: 322541) +MarketTest:testUpdateFloatingAssetsAverageWhenDepositingSomeSecondsBeforeBorrow() (gas: 493087) +MarketTest:testUpdateFloatingAssetsAverageWhenWithdrawingRightBeforeBorrow() (gas: 440810) +MarketTest:testUpdateFloatingAssetsAverageWhenWithdrawingRightBeforeEarlyWithdraw() (gas: 339283) MarketTest:testUpdateFloatingAssetsAverageWhenWithdrawingSomeSecondsBeforeBorrow() (gas: 267151) MarketTest:testUpdateFloatingAssetsAverageWithDampSpeedDown() (gas: 253721) -MarketTest:testUpdateFloatingAssetsAverageWithDampSpeedUp() (gas: 173355) -MarketTest:testUpdateFloatingDebtBeforeSettingTreasury() (gas: 82134) -MarketTest:testWithdrawAtMaturity() (gas: 166516) -MarketTest:testWithdrawFromSmartPool() (gas: 167435) -MarketTest:testWithdrawShouldUpdateFlexibleBorrowVariables() (gas: 489838) +MarketTest:testUpdateFloatingAssetsAverageWithDampSpeedUp() (gas: 173377) +MarketTest:testUpdateFloatingDebtBeforeSettingTreasury() (gas: 82156) +MarketTest:testWithdrawAtMaturity() (gas: 166533) +MarketTest:testWithdrawFromSmartPool() (gas: 167399) +MarketTest:testWithdrawShouldUpdateFlexibleBorrowVariables() (gas: 489793) PoolLibTest:testAtomicDepositBorrowRepayWithdraw() (gas: 38660) PoolLibTest:testBackupBorrow() (gas: 29493) PoolLibTest:testEarningsAccrual() (gas: 37660) PoolLibTest:testEarningsDistribution() (gas: 29462) PoolLibTest:testMaturityRangeLimit() (gas: 3761) PoolLibTest:testMaturityRangeTooWide() (gas: 6858) -PreviewerTest:testAccountsReturningAccurateAmounts() (gas: 1074525) +PreviewerTest:testAccountsReturningAccurateAmounts() (gas: 1074471) PreviewerTest:testAccountsReturningUtilizationForDifferentMaturities() (gas: 3018824) PreviewerTest:testAccountsWithAccountOnlyDeposit() (gas: 761274) -PreviewerTest:testAccountsWithAccountThatHasBalances() (gas: 1492650) +PreviewerTest:testAccountsWithAccountThatHasBalances() (gas: 1492672) PreviewerTest:testAccountsWithEmptyAccount() (gas: 612769) PreviewerTest:testAccountsWithIntermediateOperationsReturningAccurateAmounts() (gas: 12518624) -PreviewerTest:testActualTimeBeforeStartDistributionRewards() (gas: 6738336) +PreviewerTest:testActualTimeBeforeStartDistributionRewards() (gas: 6738358) PreviewerTest:testEmptyExactly() (gas: 5187072) PreviewerTest:testExactlyReturningInterestRateModelData() (gas: 608773) PreviewerTest:testFixedAvailableLiquidityProjectingNewFloatingDebt() (gas: 9233328) PreviewerTest:testFixedPoolsA() (gas: 14055742) -PreviewerTest:testFixedPoolsChangingMaturityInTime() (gas: 1459297) +PreviewerTest:testFixedPoolsChangingMaturityInTime() (gas: 1459208) PreviewerTest:testFixedPoolsRatesAndUtilizations() (gas: 9679504) -PreviewerTest:testFixedPoolsWithFloatingAssetsAverage() (gas: 11535075) +PreviewerTest:testFixedPoolsWithFloatingAssetsAverage() (gas: 11535097) PreviewerTest:testFlexibleAvailableLiquidity() (gas: 12664123) PreviewerTest:testFlexibleBorrowSharesAndAssets() (gas: 3135227) -PreviewerTest:testFloatingAvailableLiquidityProjectingNewFloatingDebt() (gas: 8862064) -PreviewerTest:testFloatingRateAndUtilization() (gas: 878971) +PreviewerTest:testFloatingAvailableLiquidityProjectingNewFloatingDebt() (gas: 8862086) +PreviewerTest:testFloatingRateAndUtilization() (gas: 878993) PreviewerTest:testJustUpdatedRewardRatesShouldStillReturnRate() (gas: 6152855) -PreviewerTest:testMaxBorrowAssetsCapacity() (gas: 1878362) +PreviewerTest:testMaxBorrowAssetsCapacity() (gas: 1878384) PreviewerTest:testMaxBorrowAssetsCapacityForAccountWithShortfall() (gas: 7771748) PreviewerTest:testMaxBorrowAssetsCapacityPerMarket() (gas: 9087984) PreviewerTest:testOraclePriceReturningAccurateValues() (gas: 7301411) PreviewerTest:testPreviewBorrowAtAllMaturitiesReturningAccurateAmount() (gas: 1907447) -PreviewerTest:testPreviewBorrowAtAllMaturitiesReturningMaxUint256() (gas: 391940) -PreviewerTest:testPreviewBorrowAtMaturityReturningAccurateAmount() (gas: 480896) +PreviewerTest:testPreviewBorrowAtAllMaturitiesReturningMaxUint256() (gas: 391962) +PreviewerTest:testPreviewBorrowAtMaturityReturningAccurateAmount() (gas: 480918) PreviewerTest:testPreviewBorrowAtMaturityReturningAccurateAmountWithIntermediateOperations() (gas: 1040885) PreviewerTest:testPreviewBorrowAtMaturityReturningAccurateUtilization() (gas: 327633) PreviewerTest:testPreviewBorrowAtMaturityWithFiveUnits() (gas: 289190) -PreviewerTest:testPreviewBorrowAtMaturityWithInvalidMaturity() (gas: 184636) +PreviewerTest:testPreviewBorrowAtMaturityWithInvalidMaturity() (gas: 184658) PreviewerTest:testPreviewBorrowAtMaturityWithMaturedMaturity() (gas: 50190) PreviewerTest:testPreviewBorrowAtMaturityWithOneUnit() (gas: 289169) PreviewerTest:testPreviewBorrowAtMaturityWithSameTimestamp() (gas: 50130) -PreviewerTest:testPreviewBorrowAtMaturityWithZeroAmount() (gas: 184612) +PreviewerTest:testPreviewBorrowAtMaturityWithZeroAmount() (gas: 184524) PreviewerTest:testPreviewDepositAtAllMaturitiesReturningAccurateAmounts() (gas: 1498441) -PreviewerTest:testPreviewDepositAtMaturityReturningAccurateAmount() (gas: 567802) -PreviewerTest:testPreviewDepositAtMaturityReturningAccurateAmountWithIntermediateOperations() (gas: 820746) +PreviewerTest:testPreviewDepositAtMaturityReturningAccurateAmount() (gas: 567824) +PreviewerTest:testPreviewDepositAtMaturityReturningAccurateAmountWithIntermediateOperations() (gas: 820768) PreviewerTest:testPreviewDepositAtMaturityWithEmptyMaturity() (gas: 46054) -PreviewerTest:testPreviewDepositAtMaturityWithEmptyMaturityAndZeroAmount() (gas: 46032) +PreviewerTest:testPreviewDepositAtMaturityWithEmptyMaturityAndZeroAmount() (gas: 46054) PreviewerTest:testPreviewDepositAtMaturityWithInvalidMaturity() (gas: 46056) -PreviewerTest:testPreviewDepositAtMaturityWithMaturedMaturity() (gas: 12544) -PreviewerTest:testPreviewDepositAtMaturityWithOneUnit() (gas: 480603) -PreviewerTest:testPreviewDepositAtMaturityWithSameTimestamp() (gas: 48590) -PreviewerTest:testPreviewDepositAtMaturityWithZeroAmount() (gas: 480626) -PreviewerTest:testPreviewRepayAtMaturityReturningAccurateAmount() (gas: 727468) -PreviewerTest:testPreviewRepayAtMaturityReturningAccurateAmountWithIntermediateOperations() (gas: 757664) +PreviewerTest:testPreviewDepositAtMaturityWithMaturedMaturity() (gas: 12566) +PreviewerTest:testPreviewDepositAtMaturityWithOneUnit() (gas: 480625) +PreviewerTest:testPreviewDepositAtMaturityWithSameTimestamp() (gas: 48612) +PreviewerTest:testPreviewDepositAtMaturityWithZeroAmount() (gas: 480648) +PreviewerTest:testPreviewRepayAtMaturityReturningAccurateAmount() (gas: 727379) +PreviewerTest:testPreviewRepayAtMaturityReturningAccurateAmountWithIntermediateOperations() (gas: 757686) PreviewerTest:testPreviewRepayAtMaturityWithEmptyMaturity() (gas: 35365) PreviewerTest:testPreviewRepayAtMaturityWithEmptyMaturityAndZeroAmount() (gas: 35386) -PreviewerTest:testPreviewRepayAtMaturityWithInvalidMaturity() (gas: 35385) +PreviewerTest:testPreviewRepayAtMaturityWithInvalidMaturity() (gas: 35407) PreviewerTest:testPreviewRepayAtMaturityWithMaturedMaturity() (gas: 479783) PreviewerTest:testPreviewRepayAtMaturityWithOneUnit() (gas: 482973) PreviewerTest:testPreviewRepayAtMaturityWithSameTimestamp() (gas: 478172) -PreviewerTest:testPreviewRepayAtMaturityWithZeroAmount() (gas: 483040) -PreviewerTest:testPreviewValueInFixedOperations() (gas: 1841290) +PreviewerTest:testPreviewRepayAtMaturityWithZeroAmount() (gas: 482951) +PreviewerTest:testPreviewValueInFixedOperations() (gas: 1841312) PreviewerTest:testPreviewWithdrawAtMaturityReturningAccurateAmount() (gas: 203077) -PreviewerTest:testPreviewWithdrawAtMaturityReturningAccurateAmountWithIntermediateOperations() (gas: 704660) +PreviewerTest:testPreviewWithdrawAtMaturityReturningAccurateAmountWithIntermediateOperations() (gas: 704682) PreviewerTest:testPreviewWithdrawAtMaturityWithEmptyMaturity() (gas: 35276) PreviewerTest:testPreviewWithdrawAtMaturityWithEmptyMaturityAndZeroAmount() (gas: 35320) PreviewerTest:testPreviewWithdrawAtMaturityWithFiveUnits() (gas: 206662) @@ -312,93 +312,93 @@ PreviewerTest:testReturnRewardAssetUsdPrice() (gas: 6157256) PreviewerTest:testRewardsRate() (gas: 6923226) PreviewerTest:testRewardsRateAfterDistributionEnd() (gas: 6304542) PreviewerTest:testRewardsRateOnlyWithFixedBorrows() (gas: 6074398) -PreviewerTest:testRewardsRateWithDifferentRewardLengths() (gas: 15055572) +PreviewerTest:testRewardsRateWithDifferentRewardLengths() (gas: 15055594) PreviewerTest:testRewardsRateWithMarketWithDifferentDecimals() (gas: 14243115) -PriceFeedDoubleTest:testPriceFeedDoubleReturningAccurateDecimals() (gas: 433282) -PriceFeedDoubleTest:testPriceFeedDoubleReturningPrice() (gas: 26143) -PriceFeedDoubleTest:testPriceFeedDoubleWithActualOnChainValues() (gas: 30976) -PriceFeedDoubleTest:testPriceFeedDoubleWithNegativePriceShouldRevert() (gas: 46943) -PriceFeedDoubleTest:testPriceFeedDoubleWithUsdPriceFeed() (gas: 327246) +PriceFeedDoubleTest:testPriceFeedDoubleReturningAccurateDecimals() (gas: 433304) +PriceFeedDoubleTest:testPriceFeedDoubleReturningPrice() (gas: 26165) +PriceFeedDoubleTest:testPriceFeedDoubleWithActualOnChainValues() (gas: 30909) +PriceFeedDoubleTest:testPriceFeedDoubleWithNegativePriceShouldRevert() (gas: 46965) +PriceFeedDoubleTest:testPriceFeedDoubleWithUsdPriceFeed() (gas: 327268) PriceFeedPoolTest:testPriceFeedPoolReturningPrice() (gas: 24154) PriceFeedPoolTest:testPriceFeedPoolReturningPriceWithToken0False() (gas: 1787053) -PriceFeedPoolTest:testPriceFeedPoolWithAllDifferentDecimals() (gas: 1780205) +PriceFeedPoolTest:testPriceFeedPoolWithAllDifferentDecimals() (gas: 1780227) PriceFeedPoolTest:testPriceFeedPoolWithAllDifferentDecimalsWithToken0False() (gas: 1785289) PriceFeedPoolTest:testPriceFeedPoolWithDifferentDecimals() (gas: 1780205) PriceFeedPoolTest:testPriceFeedPoolWithDifferentDecimalsWithToken0False() (gas: 1785310) -PriceFeedWrapperTest:testPriceFeedWrapperReturningPrice() (gas: 16449) -PriceFeedWrapperTest:testPriceFeedWrapperReturningPriceAfterRebase() (gas: 22863) +PriceFeedWrapperTest:testPriceFeedWrapperReturningPrice() (gas: 16383) +PriceFeedWrapperTest:testPriceFeedWrapperReturningPriceAfterRebase() (gas: 22885) PriceFeedWrapperTest:testPriceFeedWrapperWithActualOnChainValues() (gas: 30295) PriceFeedWrapperTest:testPriceFeedWrapperWithNegativePriceShouldRevert() (gas: 43144) -PriceFeedWrapperTest:testPriceFeedWrapperWithUsdPriceFeed() (gas: 1054289) -RewardsControllerTest:testAccrueRewardsForWholeDistributionPeriod() (gas: 1025943) -RewardsControllerTest:testAccrueRewardsWithBadDebtClearingOfFixedBorrow() (gas: 2087060) +PriceFeedWrapperTest:testPriceFeedWrapperWithUsdPriceFeed() (gas: 1054311) +RewardsControllerTest:testAccrueRewardsForWholeDistributionPeriod() (gas: 1025965) +RewardsControllerTest:testAccrueRewardsWithBadDebtClearingOfFixedBorrow() (gas: 2087070) RewardsControllerTest:testAccrueRewardsWithRepayOfBorrowBalance() (gas: 1131844) RewardsControllerTest:testAccrueRewardsWithRepayOfFixedBorrowBalance() (gas: 1249633) -RewardsControllerTest:testAccrueRewardsWithSeizeOfAllDepositShares() (gas: 1311700) +RewardsControllerTest:testAccrueRewardsWithSeizeOfAllDepositShares() (gas: 1311722) RewardsControllerTest:testAfterDistributionPeriodEnd() (gas: 1521687) -RewardsControllerTest:testAllClaimableUSDCWithAnotherAccountInPool() (gas: 1973860) -RewardsControllerTest:testAllClaimableUSDCWithDeposit() (gas: 1572694) -RewardsControllerTest:testAllClaimableUSDCWithFloatingBorrow() (gas: 1409206) +RewardsControllerTest:testAllClaimableUSDCWithAnotherAccountInPool() (gas: 1973882) +RewardsControllerTest:testAllClaimableUSDCWithDeposit() (gas: 1572716) +RewardsControllerTest:testAllClaimableUSDCWithFloatingBorrow() (gas: 1409228) RewardsControllerTest:testAllClaimableUSDCWithFloatingRefund() (gas: 1316934) RewardsControllerTest:testAllClaimableUSDCWithFloatingRepay() (gas: 1322264) -RewardsControllerTest:testAllClaimableUSDCWithMint() (gas: 1208967) +RewardsControllerTest:testAllClaimableUSDCWithMint() (gas: 1208989) RewardsControllerTest:testAllClaimableUSDCWithRedeem() (gas: 1265096) -RewardsControllerTest:testAllClaimableUSDCWithTransfer() (gas: 1901170) -RewardsControllerTest:testAllClaimableUSDCWithTransferFrom() (gas: 1778828) +RewardsControllerTest:testAllClaimableUSDCWithTransfer() (gas: 1901081) +RewardsControllerTest:testAllClaimableUSDCWithTransferFrom() (gas: 1778740) RewardsControllerTest:testAllClaimableUSDCWithWithdraw() (gas: 1266144) RewardsControllerTest:testAllClaimableWETH() (gas: 1186996) RewardsControllerTest:testAllClaimableWithMaturedFixedPool() (gas: 1056516) -RewardsControllerTest:testAllClaimableWithTimeElapsedZero() (gas: 1189310) +RewardsControllerTest:testAllClaimableWithTimeElapsedZero() (gas: 1189222) RewardsControllerTest:testClaim() (gas: 993822) RewardsControllerTest:testClaimAll() (gas: 1737989) RewardsControllerTest:testClaimMarketWithoutRewards() (gas: 941762) -RewardsControllerTest:testClaimWithNotEnabledRewardAsset() (gas: 1030164) +RewardsControllerTest:testClaimWithNotEnabledRewardAsset() (gas: 1030177) RewardsControllerTest:testConfigSettingNewStartWithOnGoingDistributionShouldNotUpdate() (gas: 363920) -RewardsControllerTest:testConfigWithDistributionNotYetStartedShouldNotFail() (gas: 495810) +RewardsControllerTest:testConfigWithDistributionNotYetStartedShouldNotFail() (gas: 495826) RewardsControllerTest:testConfigWithTransitionFactorHigherOrEqThanCap() (gas: 49747) -RewardsControllerTest:testConfigWithZeroDepositAllocationWeightFactorShouldRevert() (gas: 42868) -RewardsControllerTest:testDifferentDistributionTimeForDifferentRewards() (gas: 1562981) -RewardsControllerTest:testEmitAccrue() (gas: 1019348) -RewardsControllerTest:testEmitClaimRewards() (gas: 913271) -RewardsControllerTest:testEmitConfigUpdate() (gas: 382782) -RewardsControllerTest:testEmitIndexUpdate() (gas: 1082203) +RewardsControllerTest:testConfigWithZeroDepositAllocationWeightFactorShouldRevert() (gas: 42890) +RewardsControllerTest:testDifferentDistributionTimeForDifferentRewards() (gas: 1562895) +RewardsControllerTest:testEmitAccrue() (gas: 1019367) +RewardsControllerTest:testEmitClaimRewards() (gas: 913293) +RewardsControllerTest:testEmitConfigUpdate() (gas: 382789) +RewardsControllerTest:testEmitIndexUpdate() (gas: 1082209) RewardsControllerTest:testLastUndistributed() (gas: 1529988) RewardsControllerTest:testOperationAfterDistributionEnded() (gas: 625430) -RewardsControllerTest:testOperationsBeforeDistributionStart() (gas: 1258339) -RewardsControllerTest:testPermitClaim() (gas: 1071570) -RewardsControllerTest:testSetDistributionConfigWithDifferentDecimals() (gas: 9752429) -RewardsControllerTest:testSetDistributionOperationShouldUpdateIndex() (gas: 111744) -RewardsControllerTest:testSetDistributionWithOnGoingMarketOperations() (gas: 968462) +RewardsControllerTest:testOperationsBeforeDistributionStart() (gas: 1258361) +RewardsControllerTest:testPermitClaim() (gas: 1071483) +RewardsControllerTest:testSetDistributionConfigWithDifferentDecimals() (gas: 9752478) +RewardsControllerTest:testSetDistributionOperationShouldUpdateIndex() (gas: 111735) +RewardsControllerTest:testSetDistributionWithOnGoingMarketOperations() (gas: 968466) RewardsControllerTest:testSetHigherTotalDistribution() (gas: 1326059) RewardsControllerTest:testSetLowerAndEqualDistributionPeriodThanCurrentTimestampShouldRevert() (gas: 911446) -RewardsControllerTest:testSetLowerAndEqualTotalDistributionThanReleasedShouldRevert() (gas: 909237) -RewardsControllerTest:testSetLowerDistributionPeriod() (gas: 1548317) +RewardsControllerTest:testSetLowerAndEqualTotalDistributionThanReleasedShouldRevert() (gas: 909259) +RewardsControllerTest:testSetLowerDistributionPeriod() (gas: 1548339) RewardsControllerTest:testSetLowerDistributionPeriodAndLowerTotalDistribution() (gas: 1551064) RewardsControllerTest:testSetLowerTotalDistribution() (gas: 1325972) RewardsControllerTest:testSetNewDistributionPeriod() (gas: 2053493) -RewardsControllerTest:testSetNewDistributionPeriodAfterDistributionEnds() (gas: 1154710) -RewardsControllerTest:testSetNewTargetDebt() (gas: 1239865) +RewardsControllerTest:testSetNewDistributionPeriodAfterDistributionEnds() (gas: 1154701) +RewardsControllerTest:testSetNewTargetDebt() (gas: 1239887) RewardsControllerTest:testSetNewTargetDebtAfterDistributionEnds() (gas: 1272105) -RewardsControllerTest:testSetNewTargetDebtWithClaimOnlyAtEnd() (gas: 1127594) +RewardsControllerTest:testSetNewTargetDebtWithClaimOnlyAtEnd() (gas: 1127616) RewardsControllerTest:testSetNewTreasuryFeeShouldImpactAllocation() (gas: 513229) RewardsControllerTest:testSetTargetDebtMultipleTimes() (gas: 1797437) RewardsControllerTest:testSetTargetDebtMultipleTimesAfterEnd() (gas: 1803569) -RewardsControllerTest:testSetTotalDistributionMultipleTimes() (gas: 1299256) -RewardsControllerTest:testTriggerHandleBorrowHookBeforeUpdatingFloatingDebt() (gas: 1300935) -RewardsControllerTest:testUpdateConfig() (gas: 1068241) +RewardsControllerTest:testSetTotalDistributionMultipleTimes() (gas: 1299278) +RewardsControllerTest:testTriggerHandleBorrowHookBeforeUpdatingFloatingDebt() (gas: 1300868) +RewardsControllerTest:testUpdateConfig() (gas: 1068232) RewardsControllerTest:testUpdateIndexesWithUtilizationEqualToOne() (gas: 1004865) -RewardsControllerTest:testUpdateIndexesWithUtilizationHigherThanOne() (gas: 1056434) +RewardsControllerTest:testUpdateIndexesWithUtilizationHigherThanOne() (gas: 1056367) RewardsControllerTest:testUpdateWithTotalDebtZeroShouldUpdateLastUndistributed() (gas: 426147) RewardsControllerTest:testUtilizationEqualZero() (gas: 622308) -RewardsControllerTest:testWithTwelveFixedPools() (gas: 3990041) -RewardsControllerTest:testWithdrawAllRewardBalance() (gas: 47146) -RewardsControllerTest:testWithdrawOnlyAdminRole() (gas: 84719) +RewardsControllerTest:testWithTwelveFixedPools() (gas: 3990063) +RewardsControllerTest:testWithdrawAllRewardBalance() (gas: 47168) +RewardsControllerTest:testWithdrawOnlyAdminRole() (gas: 84741) SwapperTest:testSwapBasic() (gas: 194321) SwapperTest:testSwapWithAllowance() (gas: 524360) SwapperTest:testSwapWithInaccurateSlippageSendsETHToAccount() (gas: 215405) SwapperTest:testSwapWithKeepAmount() (gas: 201230) SwapperTest:testSwapWithKeepEqualToValue() (gas: 41783) SwapperTest:testSwapWithKeepHigherThanValue() (gas: 41804) -SwapperTest:testSwapWithPermit() (gas: 566299) +SwapperTest:testSwapWithPermit() (gas: 566277) SwapperTest:testSwapWithPermit2() (gas: 560666) -VotePreviewerTest:testExternalVotes() (gas: 243041) \ No newline at end of file +VotePreviewerTest:testExternalVotes() (gas: 243063) \ No newline at end of file diff --git a/contracts/mocks/FixedPoolHarness.sol b/contracts/mocks/FixedPoolHarness.sol index b4339ab66..274a676e8 100644 --- a/contracts/mocks/FixedPoolHarness.sol +++ b/contracts/mocks/FixedPoolHarness.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import { FixedLib } from "../utils/FixedLib.sol"; diff --git a/contracts/mocks/MarketHarness.sol b/contracts/mocks/MarketHarness.sol index 7e9216372..b0f353507 100644 --- a/contracts/mocks/MarketHarness.sol +++ b/contracts/mocks/MarketHarness.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import { Auditor, ERC20, InterestRateModel, Market } from "../Market.sol"; diff --git a/contracts/mocks/MockBalancerVault.sol b/contracts/mocks/MockBalancerVault.sol index 73e66ccf8..b6ab31484 100644 --- a/contracts/mocks/MockBalancerVault.sol +++ b/contracts/mocks/MockBalancerVault.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import { ERC20 } from "solmate/src/tokens/ERC20.sol"; import { ReentrancyGuard } from "solmate/src/utils/ReentrancyGuard.sol"; diff --git a/contracts/mocks/MockInterestRateModel.sol b/contracts/mocks/MockInterestRateModel.sol index 62e7367d2..7b06fce0d 100644 --- a/contracts/mocks/MockInterestRateModel.sol +++ b/contracts/mocks/MockInterestRateModel.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; contract MockInterestRateModel { uint256 public borrowRate; diff --git a/contracts/mocks/MockPriceFeed.sol b/contracts/mocks/MockPriceFeed.sol index 7b93e3ab8..db3162f84 100644 --- a/contracts/mocks/MockPriceFeed.sol +++ b/contracts/mocks/MockPriceFeed.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import { MockERC20 } from "solmate/src/test/utils/mocks/MockERC20.sol"; import { IPriceFeed } from "../utils/IPriceFeed.sol"; diff --git a/contracts/mocks/MockStETH.sol b/contracts/mocks/MockStETH.sol index 78b9762a8..0bacae894 100644 --- a/contracts/mocks/MockStETH.sol +++ b/contracts/mocks/MockStETH.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import { ERC20 } from "solmate/src/tokens/ERC20.sol"; diff --git a/contracts/utils/IPriceFeed.sol b/contracts/utils/IPriceFeed.sol index aa8bb1886..7255095bb 100644 --- a/contracts/utils/IPriceFeed.sol +++ b/contracts/utils/IPriceFeed.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; interface IPriceFeed { function decimals() external view returns (uint8); diff --git a/contracts/utils/import.sol b/contracts/utils/import.sol index fcc45157c..2df7a6872 100644 --- a/contracts/utils/import.sol +++ b/contracts/utils/import.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import { ProxyAdmin } from "@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol"; import { TimelockController } from "@openzeppelin/contracts/governance/TimelockController.sol"; diff --git a/scripts/Base.s.sol b/scripts/Base.s.sol index 3337828c3..1bc6ee3b7 100644 --- a/scripts/Base.s.sol +++ b/scripts/Base.s.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import { ForkTest } from "../test/Fork.t.sol"; diff --git a/test/Airdrop.t.sol b/test/Airdrop.t.sol index d6932f653..816536520 100644 --- a/test/Airdrop.t.sol +++ b/test/Airdrop.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import { MockERC20 } from "solmate/src/test/utils/mocks/MockERC20.sol"; import { ERC1967Proxy } from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol"; diff --git a/test/Auditor.t.sol b/test/Auditor.t.sol index 58a6d5046..3b302ccc7 100644 --- a/test/Auditor.t.sol +++ b/test/Auditor.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import { Vm } from "forge-std/Vm.sol"; import { Test } from "forge-std/Test.sol"; diff --git a/test/DebtManager.t.sol b/test/DebtManager.t.sol index e3609b966..1cd692896 100644 --- a/test/DebtManager.t.sol +++ b/test/DebtManager.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import { ForkTest, stdJson, stdError } from "./Fork.t.sol"; import { FixedPointMathLib } from "solmate/src/utils/FixedPointMathLib.sol"; diff --git a/test/DebtPreviewer.t.sol b/test/DebtPreviewer.t.sol index a26fa8fa5..783a63e34 100644 --- a/test/DebtPreviewer.t.sol +++ b/test/DebtPreviewer.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import { ForkTest, stdError } from "./Fork.t.sol"; import { FixedPointMathLib } from "solmate/src/utils/FixedPointMathLib.sol"; diff --git a/test/EscrowedEXA.t.sol b/test/EscrowedEXA.t.sol index a164dde8b..81edc4098 100644 --- a/test/EscrowedEXA.t.sol +++ b/test/EscrowedEXA.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import { FixedPointMathLib } from "solmate/src/utils/FixedPointMathLib.sol"; import { ERC1967Proxy } from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol"; diff --git a/test/FixedLib.t.sol b/test/FixedLib.t.sol index 24924be36..47c3fbaf6 100644 --- a/test/FixedLib.t.sol +++ b/test/FixedLib.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import { Vm } from "forge-std/Vm.sol"; import { Test, stdError } from "forge-std/Test.sol"; diff --git a/test/Fork.t.sol b/test/Fork.t.sol index b35683e10..f44946641 100644 --- a/test/Fork.t.sol +++ b/test/Fork.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import { Test, stdError, stdJson } from "forge-std/Test.sol"; import { ProxyAdmin, ITransparentUpgradeableProxy } from "@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol"; diff --git a/test/InterestRateModel.t.sol b/test/InterestRateModel.t.sol index eca01b3d6..9515a423c 100644 --- a/test/InterestRateModel.t.sol +++ b/test/InterestRateModel.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import { Test } from "forge-std/Test.sol"; import { FixedPointMathLib } from "solmate/src/utils/FixedPointMathLib.sol"; diff --git a/test/Market.t.sol b/test/Market.t.sol index 3a4c98d6e..eb81550f0 100644 --- a/test/Market.t.sol +++ b/test/Market.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import { MockERC20 } from "solmate/src/test/utils/mocks/MockERC20.sol"; import { ERC1967Proxy } from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol"; diff --git a/test/Previewer.t.sol b/test/Previewer.t.sol index 5bc819638..d87373409 100644 --- a/test/Previewer.t.sol +++ b/test/Previewer.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import { Vm } from "forge-std/Vm.sol"; import { Test } from "forge-std/Test.sol"; diff --git a/test/PriceFeedDouble.t.sol b/test/PriceFeedDouble.t.sol index 6409fff79..e37d21c53 100644 --- a/test/PriceFeedDouble.t.sol +++ b/test/PriceFeedDouble.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import { Vm } from "forge-std/Vm.sol"; import { Test, stdError } from "forge-std/Test.sol"; diff --git a/test/PriceFeedPool.t.sol b/test/PriceFeedPool.t.sol index 317f93a46..4fc81fad2 100644 --- a/test/PriceFeedPool.t.sol +++ b/test/PriceFeedPool.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import { MockERC20 } from "solmate/src/test/utils/mocks/MockERC20.sol"; import { Test, stdError } from "forge-std/Test.sol"; diff --git a/test/PriceFeedWrapper.t.sol b/test/PriceFeedWrapper.t.sol index d2bba4b16..e7df72375 100644 --- a/test/PriceFeedWrapper.t.sol +++ b/test/PriceFeedWrapper.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import { Vm } from "forge-std/Vm.sol"; import { Test, stdError } from "forge-std/Test.sol"; diff --git a/test/Protocol.t.sol b/test/Protocol.t.sol index ac2c8740f..e632752e7 100644 --- a/test/Protocol.t.sol +++ b/test/Protocol.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import { Vm } from "forge-std/Vm.sol"; import { LibString } from "solmate/src/utils/LibString.sol"; diff --git a/test/RewardsController.t.sol b/test/RewardsController.t.sol index ffec58f01..849b292fd 100644 --- a/test/RewardsController.t.sol +++ b/test/RewardsController.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import { Vm } from "forge-std/Vm.sol"; import { MockERC20 } from "solmate/src/test/utils/mocks/MockERC20.sol"; diff --git a/test/Swapper.t.sol b/test/Swapper.t.sol index 29506fa0e..910ee7f96 100644 --- a/test/Swapper.t.sol +++ b/test/Swapper.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import { ForkTest } from "./Fork.t.sol"; import { FixedPointMathLib } from "solmate/src/utils/FixedPointMathLib.sol";