Skip to content

Commit

Permalink
🐛 rewards: fix released calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
santichez authored and cruzdanilo committed May 25, 2024
1 parent e71f770 commit 5d1a282
Show file tree
Hide file tree
Showing 4 changed files with 168 additions and 101 deletions.
5 changes: 5 additions & 0 deletions .changeset/moody-beds-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@exactly/protocol": patch
---

🐛 rewards: fix released calculation
187 changes: 94 additions & 93 deletions .gas-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ DebtManagerTest:testFloatingToFixedRollHigherThanAvailableLiquidityWithSlippage(
DebtManagerTest:testFloatingToFixedRollHigherThanAvailableLiquidityWithSlippageWithThreePools() (gas: 2787984)
DebtManagerTest:testFloatingToFixedRollWithAccurateSlippage() (gas: 1687218)
DebtManagerTest:testFloatingToFixedRollWithAccurateSlippageWithPreviousPosition() (gas: 1924341)
DebtManagerTest:testFuzzRolls(uint8[4],uint8[4],uint256[4],uint40[4],uint8[4]) (runs: 256, μ: 6526945, ~: 6552300)
DebtManagerTest:testFuzzRolls(uint8[4],uint8[4],uint256[4],uint40[4],uint8[4]) (runs: 256, μ: 6515515, ~: 6559863)
DebtManagerTest:testLateFixedRoll() (gas: 1310831)
DebtManagerTest:testLateFixedRollWithThreeLoops() (gas: 1897545)
DebtManagerTest:testLateFixedToFloatingRoll() (gas: 1273784)
Expand Down Expand Up @@ -143,11 +143,11 @@ InterestRateModelTest:testFixedRateRevertUtilizationExceeded() (gas: 2065065)
InterestRateModelTest:testFloatingBorrowRate() (gas: 2057206)
InterestRateModelTest:testFuzzFixedRateGrowth(uint256,uint256,uint256,uint256) (runs: 256, μ: 2078748, ~: 2075570)
InterestRateModelTest:testFuzzFixedRateTimeSensitivity(uint256,uint256,uint256) (runs: 256, μ: 2084820, ~: 2084876)
InterestRateModelTest:testFuzzReferenceLegacyRateFixed(uint32,uint256,uint256[2],uint256[2],uint256,uint256,uint256) (runs: 256, μ: 10025047, ~: 10193270)
InterestRateModelTest:testFuzzReferenceLegacyRateFixed(uint32,uint256,uint256[2],uint256[2],uint256,uint256,uint256) (runs: 256, μ: 10025059, ~: 10193282)
InterestRateModelTest:testFuzzReferenceRateFixed(uint256,uint256,uint256,uint256,uint256,uint256,(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,int256,uint256,uint256)) (runs: 256, μ: 2349173, ~: 2351589)
InterestRateModelTest:testFuzzReferenceRateFloating(uint256,uint256,(uint256,uint256,uint256,uint256,uint256,uint256,uint256)) (runs: 256, μ: 2287231, ~: 2288127)
InterestRateModelTest:testMinTimeToMaturity() (gas: 2075220)
InterestRateModelTest:testRevertMaxUtilizationLowerThanWad() (gas: 267533)
InterestRateModelTest:testRevertMaxUtilizationLowerThanWad() (gas: 267545)
MarketTest:testAccountLiquidityAdjustedDebt() (gas: 499440)
MarketTest:testAnotherUserRedeemWhenOwnerHasShortfall() (gas: 819075)
MarketTest:testAnotherUserWithdrawWhenOwnerHasShortfall() (gas: 806834)
Expand Down Expand Up @@ -190,7 +190,7 @@ MarketTest:testDepositWhenFrozen() (gas: 176471)
MarketTest:testDistributeMultipleAccumulatedEarnings() (gas: 1382717)
MarketTest:testDistributionOfLossesShouldReduceFromFloatingBackupBorrowedAccordingly() (gas: 6415331)
MarketTest:testEarlyRepayLiquidationUnassignedEarnings() (gas: 2063693)
MarketTest:testEarlyRepaymentWithExcessiveAmountOfFees() (gas: 3419092)
MarketTest:testEarlyRepaymentWithExcessiveAmountOfFees() (gas: 3419104)
MarketTest:testEarlyWithdrawFromFreeLunchShouldNotRevertWithFloatingFullUtilization() (gas: 1050081)
MarketTest:testEmergencyAdminRole() (gas: 317263)
MarketTest:testEmitFrozen() (gas: 91114)
Expand Down Expand Up @@ -228,24 +228,24 @@ MarketTest:testLiquidateWithZeroAsMaxAssets() (gas: 1039143)
MarketTest:testLiquidationClearingDebtOfAllAccountMarkets() (gas: 3105086)
MarketTest:testLiquidationResultingInZeroCollateralAndZeroDebt() (gas: 1981047)
MarketTest:testMaturityInsufficientProtocolLiquidity() (gas: 1464163)
MarketTest:testMultipleBorrowsForMultipleAssets() (gas: 2463574685)
MarketTest:testMultipleBorrowsForMultipleAssets() (gas: 2463574733)
MarketTest:testMultipleDepositsToSmartPool() (gas: 915551)
MarketTest:testMultipleFixedBorrowsRepays() (gas: 1348281)
MarketTest:testMultipleLiquidationSameUser() (gas: 2958649)
MarketTest:testNotEnteredMarketShouldNotBeSeized() (gas: 8600714)
MarketTest:testNotEnteredMarketShouldNotBeSeized() (gas: 8600726)
MarketTest:testOnlyAdminCanFreezeUnfreeze() (gas: 207681)
MarketTest:testOperationsShouldUpdateFloatingAssetsAverage() (gas: 1395087)
MarketTest:testOperationsWithBtcWbtcRate() (gas: 8302157)
MarketTest:testOperationsWithStEthAsset() (gas: 8178055)
MarketTest:testOperationsWithBtcWbtcRate() (gas: 8302169)
MarketTest:testOperationsWithStEthAsset() (gas: 8178067)
MarketTest:testPausable() (gas: 158114)
MarketTest:testPauserRole() (gas: 78206)
MarketTest:testPreviewOperationsWithSmartPoolCorrectlyAccountingEarnings() (gas: 1976217)
MarketTest:testRepayAtMaturity() (gas: 586677)
MarketTest:testRepayDisagreement() (gas: 593998)
MarketTest:testRepayFlexibleBorrow() (gas: 1076329)
MarketTest:testRepayWhenFrozen() (gas: 535304)
MarketTest:testRoundingDownAssetsToValidateShortfallWhenTransferring() (gas: 7561044)
MarketTest:testRoundingDownAssetsToValidateShortfallWhenTransferringFrom() (gas: 7616373)
MarketTest:testRoundingDownAssetsToValidateShortfallWhenTransferring() (gas: 7561032)
MarketTest:testRoundingDownAssetsToValidateShortfallWhenTransferringFrom() (gas: 7616361)
MarketTest:testRoundingDownAssetsWhenTransferingFromAnAccountWithoutShortfall() (gas: 1030122)
MarketTest:testRoundingDownAssetsWhenTransferingWithAnAccountWithoutShortfall() (gas: 974777)
MarketTest:testRoundingUpAllowanceWhenBorrowingAtMaturity() (gas: 845552)
Expand All @@ -254,8 +254,8 @@ MarketTest:testSetAssetSymbol() (gas: 54991)
MarketTest:testSetAssetSymbolNotAdmin() (gas: 66288)
MarketTest:testSetDampSpeedFactorShouldUpdateFloatingAssetsAverage() (gas: 386872)
MarketTest:testSetEarningsAccumulatorSmoothFactorShouldDistributeEarnings() (gas: 722371)
MarketTest:testSetInterestRateModelShouldUpdateFloatingDebt() (gas: 2821252)
MarketTest:testSetInterestRateModelWithAddressZeroShouldNotUpdateFloatingDebt() (gas: 2582208)
MarketTest:testSetInterestRateModelShouldUpdateFloatingDebt() (gas: 2821264)
MarketTest:testSetInterestRateModelWithAddressZeroShouldNotUpdateFloatingDebt() (gas: 2582220)
MarketTest:testShareValueNotDecreasingAfterDeposit() (gas: 707842)
MarketTest:testShareValueNotDecreasingWhenMintingToTreasury() (gas: 763178)
MarketTest:testSingleFloatingBorrow() (gas: 417405)
Expand Down Expand Up @@ -292,24 +292,24 @@ PreviewerTest:testAccountsReturningUtilizationForDifferentMaturities() (gas: 418
PreviewerTest:testAccountsWithAccountOnlyDeposit() (gas: 862391)
PreviewerTest:testAccountsWithAccountThatHasBalances() (gas: 2265026)
PreviewerTest:testAccountsWithEmptyAccount() (gas: 690558)
PreviewerTest:testAccountsWithIntermediateOperationsReturningAccurateAmounts() (gas: 17663691)
PreviewerTest:testActualTimeBeforeStartDistributionRewards() (gas: 7788417)
PreviewerTest:testEmptyExactly() (gas: 5668798)
PreviewerTest:testAccountsWithIntermediateOperationsReturningAccurateAmounts() (gas: 17663715)
PreviewerTest:testActualTimeBeforeStartDistributionRewards() (gas: 7809786)
PreviewerTest:testEmptyExactly() (gas: 5690096)
PreviewerTest:testExactlyReturningInterestRateModelData() (gas: 688149)
PreviewerTest:testFixedAvailableLiquidityProjectingNewFloatingDebt() (gas: 13347784)
PreviewerTest:testFixedPoolsA() (gas: 19364529)
PreviewerTest:testFixedAvailableLiquidityProjectingNewFloatingDebt() (gas: 13347808)
PreviewerTest:testFixedPoolsA() (gas: 19364553)
PreviewerTest:testFixedPoolsChangingMaturityInTime() (gas: 1627253)
PreviewerTest:testFixedPoolsRatesAndUtilizations() (gas: 14861272)
PreviewerTest:testFixedPoolsWithFloatingAssetsAverage() (gas: 15684496)
PreviewerTest:testFlexibleAvailableLiquidity() (gas: 17288625)
PreviewerTest:testFixedPoolsRatesAndUtilizations() (gas: 14861296)
PreviewerTest:testFixedPoolsWithFloatingAssetsAverage() (gas: 15684520)
PreviewerTest:testFlexibleAvailableLiquidity() (gas: 17288649)
PreviewerTest:testFlexibleBorrowSharesAndAssets() (gas: 4401038)
PreviewerTest:testFloatingAvailableLiquidityProjectingNewFloatingDebt() (gas: 12600522)
PreviewerTest:testFloatingAvailableLiquidityProjectingNewFloatingDebt() (gas: 12600546)
PreviewerTest:testFloatingRateAndUtilization() (gas: 1128246)
PreviewerTest:testJustUpdatedRewardRatesShouldStillReturnRate() (gas: 7198150)
PreviewerTest:testJustUpdatedRewardRatesShouldStillReturnRate() (gas: 7219492)
PreviewerTest:testMaxBorrowAssetsCapacity() (gas: 2469700)
PreviewerTest:testMaxBorrowAssetsCapacityForAccountWithShortfall() (gas: 11038041)
PreviewerTest:testMaxBorrowAssetsCapacityPerMarket() (gas: 13228166)
PreviewerTest:testOraclePriceReturningAccurateValues() (gas: 10179881)
PreviewerTest:testMaxBorrowAssetsCapacityForAccountWithShortfall() (gas: 11038065)
PreviewerTest:testMaxBorrowAssetsCapacityPerMarket() (gas: 13228190)
PreviewerTest:testOraclePriceReturningAccurateValues() (gas: 10179905)
PreviewerTest:testPreviewBorrowAtAllMaturitiesReturningAccurateAmount() (gas: 4240988)
PreviewerTest:testPreviewBorrowAtMaturityReturningAccurateAmount() (gas: 623350)
PreviewerTest:testPreviewBorrowAtMaturityReturningAccurateAmountWithIntermediateOperations() (gas: 1954376)
Expand Down Expand Up @@ -352,12 +352,12 @@ PreviewerTest:testPreviewWithdrawAtMaturityWithOneUnit() (gas: 251718)
PreviewerTest:testPreviewWithdrawAtMaturityWithSameTimestamp() (gas: 233406)
PreviewerTest:testPreviewWithdrawAtMaturityWithZeroAmount() (gas: 251675)
PreviewerTest:testReserveFactor() (gas: 707280)
PreviewerTest:testReturnRewardAssetUsdPrice() (gas: 6732312)
PreviewerTest:testRewardsRateAfterDistributionEnd() (gas: 7504451)
PreviewerTest:testRewardsRateOnlyWithFixedBorrows() (gas: 6811626)
PreviewerTest:testRewardsRateWithDifferentRewardLengths() (gas: 19322231)
PreviewerTest:testRewardsRateWithMarketWithDifferentDecimals() (gas: 18453470)
PreviewerTest:testRewardsRateX() (gas: 8150986)
PreviewerTest:testReturnRewardAssetUsdPrice() (gas: 6753659)
PreviewerTest:testRewardsRateAfterDistributionEnd() (gas: 7525793)
PreviewerTest:testRewardsRateOnlyWithFixedBorrows() (gas: 6832946)
PreviewerTest:testRewardsRateWithDifferentRewardLengths() (gas: 19343622)
PreviewerTest:testRewardsRateWithMarketWithDifferentDecimals() (gas: 18474907)
PreviewerTest:testRewardsRateX() (gas: 8172399)
PriceFeedDoubleTest:testPriceFeedDoubleReturningAccurateDecimals() (gas: 632562)
PriceFeedDoubleTest:testPriceFeedDoubleReturningPrice() (gas: 53190)
PriceFeedDoubleTest:testPriceFeedDoubleWithActualOnChainValues() (gas: 76310)
Expand All @@ -374,69 +374,70 @@ PriceFeedWrapperTest:testPriceFeedWrapperReturningPriceAfterRebase() (gas: 48989
PriceFeedWrapperTest:testPriceFeedWrapperWithActualOnChainValues() (gas: 75210)
PriceFeedWrapperTest:testPriceFeedWrapperWithNegativePriceShouldRevert() (gas: 164216)
PriceFeedWrapperTest:testPriceFeedWrapperWithUsdPriceFeed() (gas: 1278197)
RewardsControllerTest:testAccrueRewardsForWholeDistributionPeriod() (gas: 1245256)
RewardsControllerTest:testAccrueRewardsWithBadDebtClearingOfFixedBorrow() (gas: 3338579)
RewardsControllerTest:testAccrueRewardsWithRepayOfBorrowBalance() (gas: 1602527)
RewardsControllerTest:testAccrueRewardsWithRepayOfFixedBorrowBalance() (gas: 1791601)
RewardsControllerTest:testAccrueRewardsWithSeizeOfAllDepositShares() (gas: 1991092)
RewardsControllerTest:testAfterDistributionPeriodEnd() (gas: 1818279)
RewardsControllerTest:testAllClaimableUSDCWithAnotherAccountInPool() (gas: 2273354)
RewardsControllerTest:testAllClaimableUSDCWithDeposit() (gas: 1627706)
RewardsControllerTest:testAllClaimableUSDCWithFloatingBorrow() (gas: 1560044)
RewardsControllerTest:testAllClaimableUSDCWithFloatingRefund() (gas: 1667236)
RewardsControllerTest:testAllClaimableUSDCWithFloatingRepay() (gas: 1673750)
RewardsControllerTest:testAllClaimableUSDCWithMint() (gas: 1284296)
RewardsControllerTest:testAllClaimableUSDCWithRedeem() (gas: 1640399)
RewardsControllerTest:testAllClaimableUSDCWithTransfer() (gas: 2220308)
RewardsControllerTest:testAllClaimableUSDCWithTransferFrom() (gas: 2135247)
RewardsControllerTest:testAllClaimableUSDCWithWithdraw() (gas: 1641434)
RewardsControllerTest:testAllClaimableWETH() (gas: 1247789)
RewardsControllerTest:testAllClaimableWithMaturedFixedPool() (gas: 1127875)
RewardsControllerTest:testAllClaimableWithTimeElapsedZero() (gas: 1624639)
RewardsControllerTest:testClaim() (gas: 1192161)
RewardsControllerTest:testClaimAll() (gas: 2188738)
RewardsControllerTest:testClaimMarketWithoutRewards() (gas: 1240983)
RewardsControllerTest:testClaimWithNotEnabledRewardAsset() (gas: 1222637)
RewardsControllerTest:testConfigSettingNewStartWithOnGoingDistributionShouldNotUpdate() (gas: 430182)
RewardsControllerTest:testConfigWithDistributionNotYetStartedShouldNotFail() (gas: 613404)
RewardsControllerTest:testConfigWithTransitionFactorHigherOrEqThanCap() (gas: 107189)
RewardsControllerTest:testConfigWithZeroDepositAllocationWeightFactorShouldRevert() (gas: 71542)
RewardsControllerTest:testDifferentDistributionTimeForDifferentRewards() (gas: 2025649)
RewardsControllerTest:testEmitAccrue() (gas: 1317916)
RewardsControllerTest:testEmitClaimRewards() (gas: 1112375)
RewardsControllerTest:testEmitConfigUpdate() (gas: 439567)
RewardsControllerTest:testEmitIndexUpdate() (gas: 1445530)
RewardsControllerTest:testLastUndistributed() (gas: 2189661)
RewardsControllerTest:testOperationAfterDistributionEnded() (gas: 722976)
RewardsControllerTest:testOperationsBeforeDistributionStart() (gas: 1674576)
RewardsControllerTest:testPermitClaim() (gas: 1275282)
RewardsControllerTest:testSetDistributionConfigWithDifferentDecimals() (gas: 11502722)
RewardsControllerTest:testSetDistributionOperationShouldUpdateIndex() (gas: 136200)
RewardsControllerTest:testSetDistributionWithOnGoingMarketOperations() (gas: 1202358)
RewardsControllerTest:testSetHigherTotalDistribution() (gas: 1831201)
RewardsControllerTest:testSetLowerAndEqualDistributionPeriodThanCurrentTimestampShouldRevert() (gas: 1274696)
RewardsControllerTest:testSetLowerAndEqualTotalDistributionThanReleasedShouldRevert() (gas: 1267721)
RewardsControllerTest:testSetLowerDistributionPeriod() (gas: 2284176)
RewardsControllerTest:testSetLowerDistributionPeriodAndLowerTotalDistribution() (gas: 2286901)
RewardsControllerTest:testSetLowerTotalDistribution() (gas: 1831114)
RewardsControllerTest:testSetNewDistributionPeriod() (gas: 3143972)
RewardsControllerTest:testSetNewDistributionPeriodAfterDistributionEnds() (gas: 1406666)
RewardsControllerTest:testSetNewTargetDebt() (gas: 1671525)
RewardsControllerTest:testSetNewTargetDebtAfterDistributionEnds() (gas: 1734966)
RewardsControllerTest:testSetNewTargetDebtWithClaimOnlyAtEnd() (gas: 1389661)
RewardsControllerTest:testSetNewTreasuryFeeShouldImpactAllocation() (gas: 658882)
RewardsControllerTest:testSetTargetDebtMultipleTimes() (gas: 2719324)
RewardsControllerTest:testSetTargetDebtMultipleTimesAfterEnd() (gas: 2756094)
RewardsControllerTest:testSetTotalDistributionMultipleTimes() (gas: 1838222)
RewardsControllerTest:testTriggerHandleBorrowHookBeforeUpdatingFloatingDebt() (gas: 1879339)
RewardsControllerTest:testUpdateConfig() (gas: 1328855)
RewardsControllerTest:testUpdateIndexesWithUtilizationEqualToOne() (gas: 1257771)
RewardsControllerTest:testUpdateIndexesWithUtilizationHigherThanOne() (gas: 1352512)
RewardsControllerTest:testUpdateWithTotalDebtZeroShouldUpdateLastUndistributed() (gas: 575506)
RewardsControllerTest:testUtilizationEqualZero() (gas: 921863)
RewardsControllerTest:testWithTwelveFixedPools() (gas: 8055024)
RewardsControllerTest:testAccrueRewardsForWholeDistributionPeriod() (gas: 1245322)
RewardsControllerTest:testAccrueRewardsWithBadDebtClearingOfFixedBorrow() (gas: 3338667)
RewardsControllerTest:testAccrueRewardsWithRepayOfBorrowBalance() (gas: 1602615)
RewardsControllerTest:testAccrueRewardsWithRepayOfFixedBorrowBalance() (gas: 1791645)
RewardsControllerTest:testAccrueRewardsWithSeizeOfAllDepositShares() (gas: 1991114)
RewardsControllerTest:testAfterDistributionPeriodEnd() (gas: 1818322)
RewardsControllerTest:testAllClaimableUSDCWithAnotherAccountInPool() (gas: 2274252)
RewardsControllerTest:testAllClaimableUSDCWithDeposit() (gas: 1628756)
RewardsControllerTest:testAllClaimableUSDCWithFloatingBorrow() (gas: 1560744)
RewardsControllerTest:testAllClaimableUSDCWithFloatingRefund() (gas: 1667674)
RewardsControllerTest:testAllClaimableUSDCWithFloatingRepay() (gas: 1674188)
RewardsControllerTest:testAllClaimableUSDCWithMint() (gas: 1284996)
RewardsControllerTest:testAllClaimableUSDCWithRedeem() (gas: 1640815)
RewardsControllerTest:testAllClaimableUSDCWithTransfer() (gas: 2221471)
RewardsControllerTest:testAllClaimableUSDCWithTransferFrom() (gas: 2136365)
RewardsControllerTest:testAllClaimableUSDCWithWithdraw() (gas: 1641850)
RewardsControllerTest:testAllClaimableWETH() (gas: 1248402)
RewardsControllerTest:testAllClaimableWithMaturedFixedPool() (gas: 1128007)
RewardsControllerTest:testAllClaimableWithTimeElapsedZero() (gas: 1624747)
RewardsControllerTest:testClaim() (gas: 1192249)
RewardsControllerTest:testClaimAll() (gas: 2188892)
RewardsControllerTest:testClaimMarketWithoutRewards() (gas: 1241017)
RewardsControllerTest:testClaimWithNotEnabledRewardAsset() (gas: 1222725)
RewardsControllerTest:testConfigSettingNewStartWithOnGoingDistributionShouldNotUpdate() (gas: 430252)
RewardsControllerTest:testConfigWithDistributionNotYetStartedShouldNotFail() (gas: 613248)
RewardsControllerTest:testConfigWithTransitionFactorHigherOrEqThanCap() (gas: 107077)
RewardsControllerTest:testConfigWithZeroDepositAllocationWeightFactorShouldRevert() (gas: 71475)
RewardsControllerTest:testDifferentDistributionTimeForDifferentRewards() (gas: 2025778)
RewardsControllerTest:testEmitAccrue() (gas: 1317982)
RewardsControllerTest:testEmitClaimRewards() (gas: 1112419)
RewardsControllerTest:testEmitConfigUpdate() (gas: 439411)
RewardsControllerTest:testEmitIndexUpdate() (gas: 1445640)
RewardsControllerTest:testLastUndistributed() (gas: 2189926)
RewardsControllerTest:testOperationAfterDistributionEnded() (gas: 723020)
RewardsControllerTest:testOperationsBeforeDistributionStart() (gas: 1674553)
RewardsControllerTest:testPermitClaim() (gas: 1275326)
RewardsControllerTest:testSetDistributionConfigWithDifferentDecimals() (gas: 11502865)
RewardsControllerTest:testSetDistributionOperationShouldUpdateIndex() (gas: 136066)
RewardsControllerTest:testSetDistributionWithOnGoingMarketOperations() (gas: 1202335)
RewardsControllerTest:testSetHigherTotalDistribution() (gas: 1831337)
RewardsControllerTest:testSetLowerAndEqualDistributionPeriodThanCurrentTimestampShouldRevert() (gas: 1274818)
RewardsControllerTest:testSetLowerAndEqualTotalDistributionThanReleasedShouldRevert() (gas: 1267821)
RewardsControllerTest:testSetLowerDistributionPeriod() (gas: 2284312)
RewardsControllerTest:testSetLowerDistributionPeriodAndLowerTotalDistribution() (gas: 2287059)
RewardsControllerTest:testSetLowerTotalDistribution() (gas: 1831250)
RewardsControllerTest:testSetNewDistributionPeriod() (gas: 3144152)
RewardsControllerTest:testSetNewDistributionPeriodAfterDistributionEnds() (gas: 1406553)
RewardsControllerTest:testSetNewTargetDebt() (gas: 1671639)
RewardsControllerTest:testSetNewTargetDebtAfterDistributionEnds() (gas: 1735009)
RewardsControllerTest:testSetNewTargetDebtWithClaimOnlyAtEnd() (gas: 1389753)
RewardsControllerTest:testSetNewTreasuryFeeShouldImpactAllocation() (gas: 658948)
RewardsControllerTest:testSetTargetDebtMultipleTimes() (gas: 2719552)
RewardsControllerTest:testSetTargetDebtMultipleTimesAfterEnd() (gas: 2756047)
RewardsControllerTest:testSetTotalDistributionMultipleTimes() (gas: 1838384)
RewardsControllerTest:testTriggerHandleBorrowHookBeforeUpdatingFloatingDebt() (gas: 1879494)
RewardsControllerTest:testUpdateConfig() (gas: 1328946)
RewardsControllerTest:testUpdateConfigIncreaseRewardDistribution() (gas: 405501)
RewardsControllerTest:testUpdateIndexesWithUtilizationEqualToOne() (gas: 1257815)
RewardsControllerTest:testUpdateIndexesWithUtilizationHigherThanOne() (gas: 1352623)
RewardsControllerTest:testUpdateWithTotalDebtZeroShouldUpdateLastUndistributed() (gas: 575527)
RewardsControllerTest:testUtilizationEqualZero() (gas: 921840)
RewardsControllerTest:testWithTwelveFixedPools() (gas: 8055310)
RewardsControllerTest:testWithdrawAllRewardBalance() (gas: 71913)
RewardsControllerTest:testWithdrawOnlyAdminRole() (gas: 122309)
RewardsControllerTest:testWithdrawOnlyAdminRole() (gas: 122331)
SwapperTest:testSwapBasic() (gas: 216831)
SwapperTest:testSwapWithAllowance() (gas: 481530)
SwapperTest:testSwapWithInaccurateSlippageSendsETHToAccount() (gas: 297968)
Expand Down
Loading

0 comments on commit 5d1a282

Please sign in to comment.