Skip to content

Commit

Permalink
gas: update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
xenide committed Dec 10, 2024
1 parent 6c80ae8 commit 5a9da2f
Showing 1 changed file with 58 additions and 58 deletions.
116 changes: 58 additions & 58 deletions .gas-snapshot
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
AssetManagedPairTest:testAdjustManagement(uint256,uint256) (runs: 256, μ: 315370, ~: 315670)
AssetManagedPairTest:testAdjustManagement_AdjustAfterLoss(uint256) (runs: 256, μ: 539195, ~: 543614)
AssetManagedPairTest:testAdjustManagement_DecreaseManagement(uint256,uint256) (runs: 256, μ: 508029, ~: 508841)
AssetManagedPairTest:testAdjustManagement(uint256,uint256) (runs: 256, μ: 315400, ~: 315670)
AssetManagedPairTest:testAdjustManagement_AdjustAfterLoss(uint256) (runs: 256, μ: 538969, ~: 543614)
AssetManagedPairTest:testAdjustManagement_DecreaseManagement(uint256,uint256) (runs: 256, μ: 508066, ~: 508841)
AssetManagedPairTest:testAdjustManagement_GreaterThanUint104() (gas: 124232)
AssetManagedPairTest:testAdjustManagement_Int256Min() (gas: 124764)
AssetManagedPairTest:testAdjustManagement_KStillHolds(uint256) (runs: 256, μ: 632517, ~: 632195)
AssetManagedPairTest:testAdjustManagement_KStillHolds(uint256) (runs: 256, μ: 632527, ~: 632195)
AssetManagedPairTest:testAdjustManagement_Uint104() (gas: 745418)
AssetManagedPairTest:testBurn_AfterAlmostTotalLoss() (gas: 633477)
AssetManagedPairTest:testBurn_AfterLoss(uint256,uint256) (runs: 256, μ: 712836, ~: 705238)
AssetManagedPairTest:testMint_AfterLoss(uint256,uint256) (runs: 256, μ: 613406, ~: 624365)
AssetManagedPairTest:testBurn_AfterLoss(uint256,uint256) (runs: 256, μ: 714141, ~: 712027)
AssetManagedPairTest:testMint_AfterLoss(uint256,uint256) (runs: 256, μ: 614530, ~: 624495)
AssetManagedPairTest:testSetManager() (gas: 131642)
AssetManagedPairTest:testSetManager_CannotMigrateWithManaged(uint256,uint256) (runs: 256, μ: 412032, ~: 412332)
AssetManagedPairTest:testSetManager_CannotMigrateWithManaged(uint256,uint256) (runs: 256, μ: 412062, ~: 412332)
AssetManagedPairTest:testSkimExcessManaged() (gas: 406472)
AssetManagedPairTest:testSkimExcessManaged_InvalidToken() (gas: 68737)
AssetManagedPairTest:testSkimExcessManaged_NoExcess() (gas: 308150)
AssetManagedPairTest:testSwap_AfterLoss(uint256) (runs: 256, μ: 811803, ~: 816273)
AssetManagedPairTest:testSync(uint256,uint256,uint256,uint256) (runs: 256, μ: 520770, ~: 530158)
AssetManagedPairTest:testSyncManaged_ConstantProduct(uint256,uint256) (runs: 256, μ: 347080, ~: 355420)
AssetManagedPairTest:testSyncManaged_Stable(uint256,uint256) (runs: 256, μ: 385005, ~: 379768)
AssetManagedPairTest:testSwap_AfterLoss(uint256) (runs: 256, μ: 811658, ~: 816273)
AssetManagedPairTest:testSync(uint256,uint256,uint256,uint256) (runs: 256, μ: 518737, ~: 530121)
AssetManagedPairTest:testSyncManaged_ConstantProduct(uint256,uint256) (runs: 256, μ: 347969, ~: 355451)
AssetManagedPairTest:testSyncManaged_Stable(uint256,uint256) (runs: 256, μ: 385860, ~: 380008)
BufferTest:testAdd_IndexGreaterThanBufferSize(uint16,uint16) (runs: 256, μ: 6788, ~: 6755)
BufferTest:testNext_AtLimit() (gas: 3343)
BufferTest:testNext_GreaterThanBufferSize(uint16) (runs: 256, μ: 7375, ~: 7333)
BufferTest:testPrev_AtLimit() (gas: 3321)
BufferTest:testSub_IndexGreaterThanBufferSize(uint16,uint16) (runs: 256, μ: 6844, ~: 6811)
ConstantProductMathTest:testCalcLogPrice_ReturnsOneWeiWhenPriceDiffGreaterThan1e18(uint256,uint256) (runs: 256, μ: 10746, ~: 10722)
ConstantProductMathTest:testCalcLogPrice_ReturnsOneWeiWhenPriceDiffGreaterThan1e18(uint256,uint256) (runs: 256, μ: 10742, ~: 10722)
ConstantProductMathTest:testConstantProductOracleMath() (gas: 34880)
ConstantProductPairGas:testGasBurn() (gas: 93601)
ConstantProductPairGas:testGasMint() (gas: 101264)
Expand All @@ -41,52 +41,52 @@ ConstantProductPairTest:testOracle_ClampedPrice_AtLimit() (gas: 147983)
ConstantProductPairTest:testOracle_ClampedPrice_NoDiffWithinLimit() (gas: 148995)
ConstantProductPairTest:testOracle_ClampedPrice_OverLimit() (gas: 150131)
ConstantProductPairTest:testOracle_CorrectPrice(uint32) (runs: 256, μ: 4777873, ~: 4777873)
ConstantProductPairTest:testOracle_CorrectPriceDiffDecimals(uint32) (runs: 256, μ: 4700061, ~: 4700067)
ConstantProductPairTest:testOracle_CorrectPriceDiffDecimals(uint32) (runs: 256, μ: 4700062, ~: 4700067)
ConstantProductPairTest:testOracle_SimplePrices(uint32) (runs: 256, μ: 4743033, ~: 4743033)
ConstantProductPairTest:testSwap() (gas: 113322)
ConstantProductPairTest:testSwap_ExactOut(uint256) (runs: 256, μ: 110423, ~: 100405)
ConstantProductPairTest:testSwap_ExactOut(uint256) (runs: 256, μ: 110909, ~: 120249)
ConstantProductPairTest:testSwap_ExactOutExceedReserves() (gas: 28772)
ConstantProductPairTest:testSwap_ExactOut_NewReservesExceedUint104() (gas: 78855)
ConstantProductPairTest:testSwap_ExtremeAmounts() (gas: 4647340)
ConstantProductPairTest:testSwap_MinInt256() (gas: 15306)
ConstantProductPairTest:testSwap_Reenter() (gas: 78501)
FixedPointMathLibTest:testFullMulDiv(uint256,uint256,uint256) (runs: 256, μ: 9691, ~: 9580)
FixedPointMathLibTest:testMulDiv(uint256,uint256,uint256) (runs: 256, μ: 9274, ~: 9312)
FlashSwapTest:testSwap_FlashSwap_ExactIn(uint256) (runs: 256, μ: 283557, ~: 239367)
FlashSwapTest:testSwap_FlashSwap_ExactOut(uint256) (runs: 256, μ: 258913, ~: 240186)
FlashSwapTest:testSwap_FlashSwap_NoPay(uint256) (runs: 256, μ: 174996, ~: 176637)
FlashSwapTest:testSwap_FlashSwap_ExactIn(uint256) (runs: 256, μ: 281389, ~: 239367)
FlashSwapTest:testSwap_FlashSwap_ExactOut(uint256) (runs: 256, μ: 258912, ~: 240186)
FlashSwapTest:testSwap_FlashSwap_NoPay(uint256) (runs: 256, μ: 175044, ~: 176637)
GenericFactoryGasTest:testCreateConstantProductPair() (gas: 4411143)
GenericFactoryGasTest:testCreateFactory() (gas: 890382)
GenericFactoryGasTest:testCreateFactory() (gas: 847078)
GenericFactoryGasTest:testCreateStablePair() (gas: 5212488)
GenericFactoryTest:testAddCurve() (gas: 119232)
GenericFactoryTest:testAddCurve_OnlyOwner() (gas: 14164)
GenericFactoryTest:testAllPairs() (gas: 9609681)
GenericFactoryTest:testCreatePair_AllCurves(uint256) (runs: 256, μ: 4870305, ~: 5220834)
GenericFactoryTest:testCreatePair_Create2AddressCorrect() (gas: 9680198)
GenericFactoryTest:testCreatePair_CurveDoesNotExist(uint256) (runs: 256, μ: 21248, ~: 21244)
GenericFactoryTest:testCreatePair_IdenticalAddress(uint256) (runs: 256, μ: 14891, ~: 14850)
GenericFactoryTest:testCreatePair_MoreThan18Decimals(uint256) (runs: 256, μ: 156205, ~: 159334)
GenericFactoryTest:testCreatePair_PairAlreadyExists(uint256) (runs: 256, μ: 19140, ~: 19099)
GenericFactoryTest:testCreatePair_ZeroAddress(uint256) (runs: 256, μ: 15037, ~: 14996)
GenericFactoryTest:testCreatePair_IdenticalAddress(uint256) (runs: 256, μ: 14762, ~: 14721)
GenericFactoryTest:testCreatePair_MoreThan18Decimals(uint256) (runs: 256, μ: 156106, ~: 159235)
GenericFactoryTest:testCreatePair_PairAlreadyExists(uint256) (runs: 256, μ: 19045, ~: 19004)
GenericFactoryTest:testCreatePair_ZeroAddress(uint256) (runs: 256, μ: 14908, ~: 14867)
GenericFactoryTest:testGetBytecode_CorrectConstructorData() (gas: 112679)
GenericFactoryTest:testGetPair() (gas: 20918)
OracleWriterTest:testMaxChangeRate_Default() (gas: 68110)
OracleWriterTest:testOracle_MintWrongPriceThenConverge() (gas: 247897806)
OracleWriterTest:testOracle_NoWriteInSameTimestamp() (gas: 488841)
OracleWriterTest:testOracle_OverflowAccPrice(uint32) (runs: 256, μ: 376778, ~: 376684)
OracleWriterTest:testOracle_SamePriceDiffLiq(uint32) (runs: 256, μ: 10158278, ~: 10158292)
OracleWriterTest:testOracle_SamePriceSameLiq(uint32) (runs: 256, μ: 10154890, ~: 10154904)
OracleWriterTest:testOracle_OverflowAccPrice(uint32) (runs: 256, μ: 376761, ~: 376684)
OracleWriterTest:testOracle_SamePriceDiffLiq(uint32) (runs: 256, μ: 10158279, ~: 10158292)
OracleWriterTest:testOracle_SamePriceSameLiq(uint32) (runs: 256, μ: 10154891, ~: 10154904)
OracleWriterTest:testOracle_SameReservesDiffPrice(uint32) (runs: 256, μ: 10146791, ~: 10146779)
OracleWriterTest:testOracle_WrapsAroundAfterFull() (gas: 4217529379)
OracleWriterTest:testSetClampParams_OnlyFactory() (gas: 91155)
OracleWriterTest:testSetClampParams_TooHigh(uint256) (runs: 256, μ: 76548, ~: 76652)
OracleWriterTest:testSetClampParams_TooHigh(uint256) (runs: 256, μ: 76542, ~: 76652)
OracleWriterTest:testSetClampParams_TooLow() (gas: 69054)
OracleWriterTest:testUpdateOracle_AccumulateOldPricesNotNew() (gas: 221072)
OracleWriterTest:testUpdateOracle_DecreasePrice_ExceedBothMaxChangeRateAndMaxChangePerTrade() (gas: 357498)
OracleWriterTest:testUpdateOracle_DecreasePrice_ExceedMaxChangePerTrade() (gas: 305783)
OracleWriterTest:testUpdateOracle_DecreasePrice_ExceedMaxChangeRate() (gas: 306501)
OracleWriterTest:testUpdateOracle_DecreasePrice_LongElapsedTime() (gas: 299742)
OracleWriterTest:testUpdateOracle_LatestTimestampWritten(uint256) (runs: 256, μ: 290892, ~: 291226)
OracleWriterTest:testUpdateOracle_LatestTimestampWritten(uint256) (runs: 256, μ: 290872, ~: 291226)
OracleWriterTest:testUpdateOracle_MintThenSwapSameBlock() (gas: 314930)
OracleWriterTest:testUpdateOracle_MultipleSwapsSameBlock() (gas: 410086)
OracleWriterTest:testWriteObservations() (gas: 431094)
Expand All @@ -96,10 +96,10 @@ PairTest:testEmitEventOnCreation() (gas: 9601363)
PairTest:testNonPayable() (gas: 79592)
PairTest:testRecoverToken() (gas: 200069)
PairTest:testSetPlatformFeeForPair() (gas: 111080)
PairTest:testSetPlatformFeeForPair_BreachMaximum(uint256) (runs: 256, μ: 110825, ~: 110445)
PairTest:testSetPlatformFeeForPair_BreachMaximum(uint256) (runs: 256, μ: 110818, ~: 110445)
PairTest:testSetPlatformFeeForPair_Reset() (gas: 118525)
PairTest:testSetSwapFeeForPair() (gas: 112048)
PairTest:testSetSwapFeeForPair_BreachMaximum(uint256) (runs: 256, μ: 111034, ~: 110691)
PairTest:testSetSwapFeeForPair_BreachMaximum(uint256) (runs: 256, μ: 111023, ~: 110691)
PairTest:testSetSwapFeeForPair_Reset() (gas: 125017)
PairTest:testSwapFee_UseDefault() (gas: 19026)
PairTest:testUpdateDefaultFees() (gas: 166371)
Expand All @@ -117,17 +117,17 @@ ReservoirPairTest:testCheckedTransfer_RevertWhenTransferReverts() (gas: 433392)
ReservoirPairTest:testPlatformFee_Disable() (gas: 1019616)
ReservoirPairTest:testPlatformFee_DisableReenable() (gas: 1435332)
ReservoirPairTest:testReentrancyGuard_LargeTimestamp() (gas: 197899)
ReservoirPairTest:testSkim(uint256,uint256) (runs: 256, μ: 257047, ~: 256997)
ReservoirPairTest:testSkim(uint256,uint256) (runs: 256, μ: 257053, ~: 256997)
ReservoirPairTest:testSync() (gas: 192471)
ReservoirTimelockTest:testRampA(uint32) (runs: 256, μ: 36152, ~: 36152)
ReservoirTimelockTest:testRampA_NotAdmin() (gas: 17972)
ReservoirTimelockTest:testSetCustomPlatformFee(uint256) (runs: 256, μ: 134496, ~: 135161)
ReservoirTimelockTest:testSetCustomPlatformFee_NotAdmin() (gas: 81368)
ReservoirTimelockTest:testSetCustomSwapFee(uint256) (runs: 256, μ: 136564, ~: 137194)
ReservoirTimelockTest:testSetCustomSwapFee_NotAdmin() (gas: 81676)
StableMathTest:testComputeLiquidityFromAdjustedBalances_ConvergeEvenWithVeryUnbalancedValues(uint256,uint256,uint256) (runs: 256, μ: 14117, ~: 12439)
StableMathTest:testGetAmountIn(uint256,uint256,uint256) (runs: 256, μ: 22172, ~: 21987)
StableMathTest:testGetAmountOut(uint256,uint256,uint256) (runs: 256, μ: 26127, ~: 25722)
ReservoirTimelockTest:testRampA(uint32) (runs: 256, μ: 36132, ~: 36132)
ReservoirTimelockTest:testRampA_NotAdmin() (gas: 17852)
ReservoirTimelockTest:testSetCustomPlatformFee(uint256) (runs: 256, μ: 134458, ~: 135105)
ReservoirTimelockTest:testSetCustomPlatformFee_NotAdmin() (gas: 81112)
ReservoirTimelockTest:testSetCustomSwapFee(uint256) (runs: 256, μ: 136532, ~: 137142)
ReservoirTimelockTest:testSetCustomSwapFee_NotAdmin() (gas: 81406)
StableMathTest:testComputeLiquidityFromAdjustedBalances_ConvergeEvenWithVeryUnbalancedValues(uint256,uint256,uint256) (runs: 256, μ: 13985, ~: 12424)
StableMathTest:testGetAmountIn(uint256,uint256,uint256) (runs: 256, μ: 22131, ~: 21987)
StableMathTest:testGetAmountOut(uint256,uint256,uint256) (runs: 256, μ: 26076, ~: 25762)
StableMathTest:testMinALessThanMaxA() (gas: 3381)
StablePairGas:testGasBurn() (gas: 102875)
StablePairGas:testGasMint() (gas: 124790)
Expand All @@ -138,28 +138,28 @@ StablePairGas:testGasSwap_UpdateOracleClamped() (gas: 102230)
StablePairTest:testAttackWhileRampingDown_LongInterval() (gas: 202899)
StablePairTest:testAttackWhileRampingDown_ShortInterval() (gas: 204209)
StablePairTest:testBurn() (gas: 144841)
StablePairTest:testBurn_DiffDecimalPlaces(uint256) (runs: 256, μ: 5491448, ~: 5491299)
StablePairTest:testBurn_DiffDecimalPlaces(uint256) (runs: 256, μ: 5491420, ~: 5491299)
StablePairTest:testBurn_LastInvariantUseReserveInsteadOfBalance() (gas: 263676)
StablePairTest:testBurn_Reenter() (gas: 48719)
StablePairTest:testBurn_SucceedEvenIfMintFeeReverts() (gas: 143703)
StablePairTest:testBurn_WhenRampingA(uint256,uint32) (runs: 256, μ: 332415, ~: 332430)
StablePairTest:testBurn_WhenRampingA(uint256,uint32) (runs: 256, μ: 332413, ~: 332430)
StablePairTest:testBurn_Zero() (gas: 81490)
StablePairTest:testFactoryAmpTooHigh() (gas: 271186)
StablePairTest:testFactoryAmpTooLow() (gas: 266776)
StablePairTest:testFactoryAmpTooHigh() (gas: 271071)
StablePairTest:testFactoryAmpTooLow() (gas: 266661)
StablePairTest:testGetCurrentA() (gas: 32277)
StablePairTest:testMint() (gas: 117916)
StablePairTest:testMintFee_CallableBySelf() (gas: 16698)
StablePairTest:testMintFee_DiffPlatformFees(uint256) (runs: 256, μ: 6911987, ~: 6913235)
StablePairTest:testMintFee_DiffPlatformFees(uint256) (runs: 256, μ: 6911981, ~: 6913235)
StablePairTest:testMintFee_NotCallableByOthers() (gas: 8541)
StablePairTest:testMintFee_WhenRampingA_PoolBalanced(uint256) (runs: 256, μ: 6980785, ~: 6980823)
StablePairTest:testMintFee_WhenRampingA_PoolUnbalanced(uint256) (runs: 256, μ: 6396059, ~: 6395907)
StablePairTest:testMintFee_WhenRampingA_PoolBalanced(uint256) (runs: 256, μ: 6980778, ~: 6980823)
StablePairTest:testMintFee_WhenRampingA_PoolUnbalanced(uint256) (runs: 256, μ: 6396046, ~: 6395907)
StablePairTest:testMint_CalculationOverflowInStableMath() (gas: 5318816)
StablePairTest:testMint_NonOptimalProportion() (gas: 172605)
StablePairTest:testMint_NonOptimalProportion_ThenBurn() (gas: 354840)
StablePairTest:testMint_OnlyTransferOneToken() (gas: 5257255)
StablePairTest:testMint_PlatformFeeOff() (gas: 120979)
StablePairTest:testMint_Reenter() (gas: 48141)
StablePairTest:testMint_WhenRampingA(uint256,uint32) (runs: 256, μ: 356877, ~: 356887)
StablePairTest:testMint_WhenRampingA(uint256,uint32) (runs: 256, μ: 356874, ~: 356887)
StablePairTest:testOracle_ClampedPrice_NoDiffWithinLimit() (gas: 164912)
StablePairTest:testOracle_CorrectPrice(uint32) (runs: 256, μ: 5618924, ~: 5618924)
StablePairTest:testOracle_SimplePrices(uint32) (runs: 256, μ: 5624665, ~: 5624665)
Expand All @@ -173,25 +173,25 @@ StablePairTest:testRampA_MaxSpeed_Halve() (gas: 29006)
StablePairTest:testRampA_OnlyFactory() (gas: 8715)
StablePairTest:testRampA_SetAtMaximum() (gas: 27421)
StablePairTest:testRampA_SetAtMinimum() (gas: 26938)
StablePairTest:testRampA_SwappingDuringRampingDown(uint256,uint256,uint256,uint256) (runs: 256, μ: 575084, ~: 457676)
StablePairTest:testRampA_SwappingDuringRampingUp(uint256,uint256,uint256,uint256) (runs: 256, μ: 574515, ~: 458549)
StablePairTest:testRampA_SwappingDuringRampingDown(uint256,uint256,uint256,uint256) (runs: 256, μ: 576232, ~: 459071)
StablePairTest:testRampA_SwappingDuringRampingUp(uint256,uint256,uint256,uint256) (runs: 256, μ: 575664, ~: 458802)
StablePairTest:testStopRampA() (gas: 34839)
StablePairTest:testStopRampA_Early(uint256,uint32) (runs: 256, μ: 43066, ~: 43162)
StablePairTest:testStopRampA_Late(uint256) (runs: 256, μ: 42507, ~: 42590)
StablePairTest:testStopRampA_Early(uint256,uint32) (runs: 256, μ: 43076, ~: 43162)
StablePairTest:testStopRampA_Late(uint256) (runs: 256, μ: 42508, ~: 42590)
StablePairTest:testStopRampA_OnlyFactory() (gas: 9181)
StablePairTest:testSwap() (gas: 119527)
StablePairTest:testSwap_BetterPerformanceThanConstantProduct() (gas: 187191)
StablePairTest:testSwap_DiffAs(uint256,uint256,uint256,uint256) (runs: 256, μ: 5554183, ~: 5555271)
StablePairTest:testSwap_DiffSwapFees(uint256) (runs: 256, μ: 5531184, ~: 5532106)
StablePairTest:testSwap_DiffAs(uint256,uint256,uint256,uint256) (runs: 256, μ: 5554278, ~: 5555287)
StablePairTest:testSwap_DiffSwapFees(uint256) (runs: 256, μ: 5531346, ~: 5532106)
StablePairTest:testSwap_ExactInExceedUint104() (gas: 74746)
StablePairTest:testSwap_ExactOutExceedReserves() (gas: 29861)
StablePairTest:testSwap_IncreasingSwapFees(uint256,uint256,uint256) (runs: 256, μ: 389359, ~: 389504)
StablePairTest:testSwap_IncreasingSwapFees(uint256,uint256,uint256) (runs: 256, μ: 389336, ~: 389504)
StablePairTest:testSwap_MinInt256() (gas: 19284)
StablePairTest:testSwap_Reenter() (gas: 87163)
StablePairTest:testSwap_Token0ExactOut(uint256) (runs: 256, μ: 151280, ~: 137530)
StablePairTest:testSwap_Token1ExactOut(uint256) (runs: 256, μ: 151468, ~: 137667)
StablePairTest:testSwap_VeryLargeLiquidity(uint256) (runs: 256, μ: 5481980, ~: 5480098)
StablePairTest:testSwap_VerySmallLiquidity(uint256,uint256,uint256) (runs: 256, μ: 5520147, ~: 5498945)
StablePairTest:testSwap_Token0ExactOut(uint256) (runs: 256, μ: 152002, ~: 137530)
StablePairTest:testSwap_Token1ExactOut(uint256) (runs: 256, μ: 152191, ~: 137667)
StablePairTest:testSwap_VeryLargeLiquidity(uint256) (runs: 256, μ: 5481880, ~: 5480098)
StablePairTest:testSwap_VerySmallLiquidity(uint256,uint256,uint256) (runs: 256, μ: 5520407, ~: 5498975)
StablePairTest:testSwap_ZeroInput() (gas: 12788)
StdMathTest:testPercentDelta() (gas: 3351)
StdMathTest:testPercentDelta_MinusOne() (gas: 3197)
Expand Down

0 comments on commit 5a9da2f

Please sign in to comment.