From eef6e77d028d1e040ee516fe28216f05cbf8c570 Mon Sep 17 00:00:00 2001 From: "A.L." Date: Fri, 3 Jan 2025 21:04:00 +0800 Subject: [PATCH] gas: update snapshot --- .gas-snapshot | 290 +++++++++++++++++++++++++------------------------- 1 file changed, 145 insertions(+), 145 deletions(-) diff --git a/.gas-snapshot b/.gas-snapshot index 38b0d551..d0cb566d 100644 --- a/.gas-snapshot +++ b/.gas-snapshot @@ -1,105 +1,105 @@ -AssetManagedPairTest:testAdjustManagement(uint256,uint256) (runs: 256, μ: 315390, ~: 315670) -AssetManagedPairTest:testAdjustManagement_AdjustAfterLoss(uint256) (runs: 256, μ: 539244, ~: 543731) -AssetManagedPairTest:testAdjustManagement_DecreaseManagement(uint256,uint256) (runs: 256, μ: 508060, ~: 508841) +AssetManagedPairTest:testAdjustManagement(uint256,uint256) (runs: 256, μ: 315428, ~: 315670) +AssetManagedPairTest:testAdjustManagement_AdjustAfterLoss(uint256) (runs: 256, μ: 538783, ~: 543579) +AssetManagedPairTest:testAdjustManagement_DecreaseManagement(uint256,uint256) (runs: 256, μ: 508090, ~: 508841) AssetManagedPairTest:testAdjustManagement_GreaterThanUint104() (gas: 124232) AssetManagedPairTest:testAdjustManagement_Int256Min() (gas: 124764) -AssetManagedPairTest:testAdjustManagement_KStillHolds(uint256) (runs: 256, μ: 632771, ~: 632429) +AssetManagedPairTest:testAdjustManagement_KStillHolds(uint256) (runs: 256, μ: 632581, ~: 632239) AssetManagedPairTest:testAdjustManagement_Uint104() (gas: 745418) -AssetManagedPairTest:testBurn_AfterAlmostTotalLoss() (gas: 633614) -AssetManagedPairTest:testBurn_AfterLoss(uint256,uint256) (runs: 256, μ: 713733, ~: 706273) -AssetManagedPairTest:testMint_AfterLoss(uint256,uint256) (runs: 256, μ: 614347, ~: 624612) +AssetManagedPairTest:testBurn_AfterAlmostTotalLoss() (gas: 633418) +AssetManagedPairTest:testBurn_AfterLoss(uint256,uint256) (runs: 256, μ: 729414, ~: 742251) +AssetManagedPairTest:testMint_AfterLoss(uint256,uint256) (runs: 256, μ: 614766, ~: 624429) AssetManagedPairTest:testSetManager() (gas: 131642) -AssetManagedPairTest:testSetManager_CannotMigrateWithManaged(uint256,uint256) (runs: 256, μ: 412052, ~: 412332) -AssetManagedPairTest:testSkimExcessManaged() (gas: 406472) +AssetManagedPairTest:testSetManager_CannotMigrateWithManaged(uint256,uint256) (runs: 256, μ: 412090, ~: 412332) +AssetManagedPairTest:testSkimExcessManaged() (gas: 424102) AssetManagedPairTest:testSkimExcessManaged_InvalidToken() (gas: 68737) -AssetManagedPairTest:testSkimExcessManaged_NoExcess() (gas: 308150) -AssetManagedPairTest:testSwap_AfterLoss(uint256) (runs: 256, μ: 811797, ~: 816624) -AssetManagedPairTest:testSync(uint256,uint256,uint256,uint256) (runs: 256, μ: 521179, ~: 530275) -AssetManagedPairTest:testSyncManaged_ConstantProduct(uint256,uint256) (runs: 256, μ: 347733, ~: 355451) -AssetManagedPairTest:testSyncManaged_Stable(uint256,uint256) (runs: 256, μ: 386049, ~: 380359) -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, μ: 10724, ~: 10566) +AssetManagedPairTest:testSkimExcessManaged_NoExcess() (gas: 308106) +AssetManagedPairTest:testSwap_AfterLoss(uint256) (runs: 256, μ: 811489, ~: 816244) +AssetManagedPairTest:testSync(uint256,uint256,uint256,uint256) (runs: 256, μ: 519775, ~: 530079) +AssetManagedPairTest:testSyncManaged_ConstantProduct(uint256,uint256) (runs: 256, μ: 348053, ~: 355299) +AssetManagedPairTest:testSyncManaged_Stable(uint256,uint256) (runs: 256, μ: 386131, ~: 380220) +BufferTest:testAdd_IndexGreaterThanBufferSize(uint16,uint16) (runs: 256, μ: 8251, ~: 8196) +BufferTest:testNext_AtLimit() (gas: 3667) +BufferTest:testNext_GreaterThanBufferSize(uint16) (runs: 256, μ: 8970, ~: 8865) +BufferTest:testPrev_AtLimit() (gas: 3724) +BufferTest:testSub_IndexGreaterThanBufferSize(uint16,uint16) (runs: 256, μ: 8301, ~: 8246) +ConstantProductMathTest:testCalcLogPrice_ReturnsOneWeiWhenPriceDiffGreaterThan1e18(uint256,uint256) (runs: 256, μ: 10740, ~: 10722) ConstantProductMathTest:testConstantProductOracleMath() (gas: 34880) -ConstantProductPairGas:testGasBurn() (gas: 93601) -ConstantProductPairGas:testGasMint() (gas: 101264) -ConstantProductPairGas:testGasMint_Initial() (gas: 214681) -ConstantProductPairGas:testGasSwap() (gas: 84684) -ConstantProductPairGas:testGasSwap_UpdateOracle() (gas: 93094) -ConstantProductPairGas:testGasSwap_UpdateOracleClamped() (gas: 90021) -ConstantProductPairTest:testBurn() (gas: 137244) -ConstantProductPairTest:testBurn_Zero() (gas: 75140) -ConstantProductPairTest:testMint() (gas: 107429) +ConstantProductPairGas:testGasBurn() (gas: 93547) +ConstantProductPairGas:testGasMint() (gas: 101210) +ConstantProductPairGas:testGasMint_Initial() (gas: 214627) +ConstantProductPairGas:testGasSwap() (gas: 84630) +ConstantProductPairGas:testGasSwap_UpdateOracle() (gas: 93137) +ConstantProductPairGas:testGasSwap_UpdateOracleClamped() (gas: 90064) +ConstantProductPairTest:testBurn() (gas: 137190) +ConstantProductPairTest:testBurn_Zero() (gas: 75086) +ConstantProductPairTest:testMint() (gas: 107375) ConstantProductPairTest:testMint_InitialMint() (gas: 26664) -ConstantProductPairTest:testMint_JustAboveMinimumLiquidity() (gas: 4602957) -ConstantProductPairTest:testMint_MinimumLiquidity() (gas: 4548431) -ConstantProductPairTest:testMint_UnderMinimumLiquidity() (gas: 4494571) -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_SimplePrices(uint32) (runs: 256, μ: 4743033, ~: 4743033) -ConstantProductPairTest:testSwap() (gas: 113322) -ConstantProductPairTest:testSwap_ExactOut(uint256) (runs: 256, μ: 110506, ~: 100456) +ConstantProductPairTest:testMint_JustAboveMinimumLiquidity() (gas: 4630037) +ConstantProductPairTest:testMint_MinimumLiquidity() (gas: 4575565) +ConstantProductPairTest:testMint_UnderMinimumLiquidity() (gas: 4521705) +ConstantProductPairTest:testOracle_ClampedPrice_AtLimit() (gas: 148000) +ConstantProductPairTest:testOracle_ClampedPrice_NoDiffWithinLimit() (gas: 149012) +ConstantProductPairTest:testOracle_ClampedPrice_OverLimit() (gas: 150148) +ConstantProductPairTest:testOracle_CorrectPrice(uint32) (runs: 256, μ: 4805013, ~: 4805013) +ConstantProductPairTest:testOracle_CorrectPriceDiffDecimals(uint32) (runs: 256, μ: 4727159, ~: 4727164) +ConstantProductPairTest:testOracle_SimplePrices(uint32) (runs: 256, μ: 4770173, ~: 4770173) +ConstantProductPairTest:testSwap() (gas: 113268) +ConstantProductPairTest:testSwap_ExactOut(uint256) (runs: 256, μ: 110771, ~: 120195) ConstantProductPairTest:testSwap_ExactOutExceedReserves() (gas: 28772) -ConstantProductPairTest:testSwap_ExactOut_NewReservesExceedUint104() (gas: 78855) -ConstantProductPairTest:testSwap_ExtremeAmounts() (gas: 4647340) +ConstantProductPairTest:testSwap_ExactOut_NewReservesExceedUint104() (gas: 78832) +ConstantProductPairTest:testSwap_ExtremeAmounts() (gas: 4674366) 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, μ: 283135, ~: 240823) -FlashSwapTest:testSwap_FlashSwap_ExactOut(uint256) (runs: 256, μ: 259938, ~: 250754) -FlashSwapTest:testSwap_FlashSwap_NoPay(uint256) (runs: 256, μ: 175029, ~: 176637) -GenericFactoryGasTest:testCreateConstantProductPair() (gas: 4411143) +FixedPointMathLibTest:testFullMulDiv(uint256,uint256,uint256) (runs: 256, μ: 12730, ~: 12698) +FixedPointMathLibTest:testMulDiv(uint256,uint256,uint256) (runs: 256, μ: 12349, ~: 12639) +FlashSwapTest:testSwap_FlashSwap_ExactIn(uint256) (runs: 256, μ: 284332, ~: 240276) +FlashSwapTest:testSwap_FlashSwap_ExactOut(uint256) (runs: 256, μ: 259914, ~: 250640) +FlashSwapTest:testSwap_FlashSwap_NoPay(uint256) (runs: 256, μ: 174999, ~: 176631) +GenericFactoryGasTest:testCreateConstantProductPair() (gas: 4438277) GenericFactoryGasTest:testCreateFactory() (gas: 847078) -GenericFactoryGasTest:testCreateStablePair() (gas: 5222532) +GenericFactoryGasTest:testCreateStablePair() (gas: 5255046) GenericFactoryTest:testAddCurve() (gas: 119232) GenericFactoryTest:testAddCurve_OnlyOwner() (gas: 14164) -GenericFactoryTest:testAllPairs() (gas: 9619725) -GenericFactoryTest:testCreatePair_AllCurves(uint256) (runs: 256, μ: 4853773, ~: 5230878) -GenericFactoryTest:testCreatePair_Create2AddressCorrect() (gas: 9690377) +GenericFactoryTest:testAllPairs() (gas: 9679373) +GenericFactoryTest:testCreatePair_AllCurves(uint256) (runs: 256, μ: 4858267, ~: 5263170) +GenericFactoryTest:testCreatePair_Create2AddressCorrect() (gas: 9750624) GenericFactoryTest:testCreatePair_CurveDoesNotExist(uint256) (runs: 256, μ: 21248, ~: 21244) -GenericFactoryTest:testCreatePair_IdenticalAddress(uint256) (runs: 256, μ: 14765, ~: 14721) -GenericFactoryTest:testCreatePair_MoreThan18Decimals(uint256) (runs: 256, μ: 155930, ~: 159270) -GenericFactoryTest:testCreatePair_PairAlreadyExists(uint256) (runs: 256, μ: 19048, ~: 19004) -GenericFactoryTest:testCreatePair_ZeroAddress(uint256) (runs: 256, μ: 14911, ~: 14867) -GenericFactoryTest:testGetBytecode_CorrectConstructorData() (gas: 112802) +GenericFactoryTest:testCreatePair_IdenticalAddress(uint256) (runs: 256, μ: 14768, ~: 14721) +GenericFactoryTest:testCreatePair_MoreThan18Decimals(uint256) (runs: 256, μ: 155783, ~: 159117) +GenericFactoryTest:testCreatePair_PairAlreadyExists(uint256) (runs: 256, μ: 19051, ~: 19004) +GenericFactoryTest:testCreatePair_ZeroAddress(uint256) (runs: 256, μ: 14914, ~: 14867) +GenericFactoryTest:testGetBytecode_CorrectConstructorData() (gas: 113348) GenericFactoryTest:testGetPair() (gas: 20918) OracleWriterTest:testMaxChangeRate_Default() (gas: 68110) -OracleWriterTest:testOracle_MintWrongPriceThenConverge() (gas: 247897806) -OracleWriterTest:testOracle_NoWriteInSameTimestamp() (gas: 489192) -OracleWriterTest:testOracle_OverflowAccPrice(uint32) (runs: 256, μ: 377003, ~: 376918) -OracleWriterTest:testOracle_SamePriceDiffLiq(uint32) (runs: 256, μ: 10168674, ~: 10168687) -OracleWriterTest:testOracle_SamePriceSameLiq(uint32) (runs: 256, μ: 10165286, ~: 10165299) -OracleWriterTest:testOracle_SameReservesDiffPrice(uint32) (runs: 256, μ: 10157187, ~: 10157174) -OracleWriterTest:testOracle_WrapsAroundAfterFull() (gas: 4225197559) +OracleWriterTest:testOracle_MintWrongPriceThenConverge() (gas: 248287952) +OracleWriterTest:testOracle_NoWriteInSameTimestamp() (gas: 488862) +OracleWriterTest:testOracle_OverflowAccPrice(uint32) (runs: 256, μ: 341043, ~: 337263) +OracleWriterTest:testOracle_SamePriceDiffLiq(uint32) (runs: 256, μ: 10228261, ~: 10228274) +OracleWriterTest:testOracle_SamePriceSameLiq(uint32) (runs: 256, μ: 10224873, ~: 10224886) +OracleWriterTest:testOracle_SameReservesDiffPrice(uint32) (runs: 256, μ: 10216773, ~: 10216761) +OracleWriterTest:testOracle_WrapsAroundAfterFull() (gas: 4230440621) OracleWriterTest:testSetClampParams_OnlyFactory() (gas: 91155) -OracleWriterTest:testSetClampParams_TooHigh(uint256) (runs: 256, μ: 76549, ~: 76652) +OracleWriterTest:testSetClampParams_TooHigh(uint256) (runs: 256, μ: 76544, ~: 76652) OracleWriterTest:testSetClampParams_TooLow() (gas: 69054) -OracleWriterTest:testUpdateOracle_AccumulateOldPricesNotNew() (gas: 221189) -OracleWriterTest:testUpdateOracle_DecreasePrice_ExceedBothMaxChangeRateAndMaxChangePerTrade() (gas: 357615) -OracleWriterTest:testUpdateOracle_DecreasePrice_ExceedMaxChangePerTrade() (gas: 305900) -OracleWriterTest:testUpdateOracle_DecreasePrice_ExceedMaxChangeRate() (gas: 306618) -OracleWriterTest:testUpdateOracle_DecreasePrice_LongElapsedTime() (gas: 299859) -OracleWriterTest:testUpdateOracle_LatestTimestampWritten(uint256) (runs: 256, μ: 290996, ~: 291343) -OracleWriterTest:testUpdateOracle_MintThenSwapSameBlock() (gas: 315164) -OracleWriterTest:testUpdateOracle_MultipleSwapsSameBlock() (gas: 410437) -OracleWriterTest:testWriteObservations() (gas: 431328) +OracleWriterTest:testUpdateOracle_AccumulateOldPricesNotNew() (gas: 221137) +OracleWriterTest:testUpdateOracle_DecreasePrice_ExceedBothMaxChangeRateAndMaxChangePerTrade() (gas: 357557) +OracleWriterTest:testUpdateOracle_DecreasePrice_ExceedMaxChangePerTrade() (gas: 305842) +OracleWriterTest:testUpdateOracle_DecreasePrice_ExceedMaxChangeRate() (gas: 306560) +OracleWriterTest:testUpdateOracle_DecreasePrice_LongElapsedTime() (gas: 299801) +OracleWriterTest:testUpdateOracle_LatestTimestampWritten(uint256) (runs: 256, μ: 290940, ~: 291285) +OracleWriterTest:testUpdateOracle_MintThenSwapSameBlock() (gas: 315050) +OracleWriterTest:testUpdateOracle_MultipleSwapsSameBlock() (gas: 410151) +OracleWriterTest:testWriteObservations() (gas: 431580) PairTest:testCustomPlatformFee_OffByDefault() (gas: 74381) PairTest:testCustomSwapFee_OffByDefault() (gas: 68833) -PairTest:testEmitEventOnCreation() (gas: 9611407) +PairTest:testEmitEventOnCreation() (gas: 9671055) PairTest:testNonPayable() (gas: 79592) PairTest:testRecoverToken() (gas: 200069) PairTest:testSetPlatformFeeForPair() (gas: 111080) -PairTest:testSetPlatformFeeForPair_BreachMaximum(uint256) (runs: 256, μ: 110814, ~: 110445) +PairTest:testSetPlatformFeeForPair_BreachMaximum(uint256) (runs: 256, μ: 110833, ~: 110445) PairTest:testSetPlatformFeeForPair_Reset() (gas: 118525) PairTest:testSetSwapFeeForPair() (gas: 112048) -PairTest:testSetSwapFeeForPair_BreachMaximum(uint256) (runs: 256, μ: 111034, ~: 110691) +PairTest:testSetSwapFeeForPair_BreachMaximum(uint256) (runs: 256, μ: 111049, ~: 110691) PairTest:testSetSwapFeeForPair_Reset() (gas: 125017) PairTest:testSwapFee_UseDefault() (gas: 19026) PairTest:testUpdateDefaultFees() (gas: 166371) @@ -112,62 +112,62 @@ ReservoirERC20Gas:testGasTransferFrom() (gas: 40468) ReservoirERC20Test:testApprove_TransferAll() (gas: 50715) ReservoirERC20Test:testApprove_TransferOne() (gas: 67005) ReservoirERC20Test:testApprove_TransferTooMuch() (gas: 37978) -ReservoirPairTest:testCheckedTransfer_RevertWhenTransferFail() (gas: 131174) -ReservoirPairTest:testCheckedTransfer_RevertWhenTransferReverts() (gas: 433392) -ReservoirPairTest:testPlatformFee_Disable() (gas: 1020364) -ReservoirPairTest:testPlatformFee_DisableReenable() (gas: 1436642) -ReservoirPairTest:testReentrancyGuard_LargeTimestamp() (gas: 198133) -ReservoirPairTest:testSkim(uint256,uint256) (runs: 256, μ: 257057, ~: 256997) -ReservoirPairTest:testSync() (gas: 192588) +ReservoirPairTest:testCheckedTransfer_RevertWhenTransferFail() (gas: 131168) +ReservoirPairTest:testCheckedTransfer_RevertWhenTransferReverts() (gas: 433388) +ReservoirPairTest:testPlatformFee_Disable() (gas: 1019654) +ReservoirPairTest:testPlatformFee_DisableReenable() (gas: 1435394) +ReservoirPairTest:testReentrancyGuard_LargeTimestamp() (gas: 197973) +ReservoirPairTest:testSkim(uint256,uint256) (runs: 256, μ: 257047, ~: 256997) +ReservoirPairTest:testSync() (gas: 192480) ReservoirTimelockTest:testRampA(uint32) (runs: 256, μ: 36132, ~: 36132) ReservoirTimelockTest:testRampA_NotAdmin() (gas: 17852) -ReservoirTimelockTest:testSetCustomPlatformFee(uint256) (runs: 256, μ: 134458, ~: 135105) +ReservoirTimelockTest:testSetCustomPlatformFee(uint256) (runs: 256, μ: 134441, ~: 135105) ReservoirTimelockTest:testSetCustomPlatformFee_NotAdmin() (gas: 81112) -ReservoirTimelockTest:testSetCustomSwapFee(uint256) (runs: 256, μ: 136525, ~: 137142) +ReservoirTimelockTest:testSetCustomSwapFee(uint256) (runs: 256, μ: 136508, ~: 137142) ReservoirTimelockTest:testSetCustomSwapFee_NotAdmin() (gas: 81406) -StableMathTest:testComputeLiquidityFromAdjustedBalances_ConvergeEvenWithVeryUnbalancedValues(uint256,uint256,uint256) (runs: 256, μ: 14133, ~: 12439) -StableMathTest:testGetAmountIn(uint256,uint256,uint256) (runs: 256, μ: 22130, ~: 21987) -StableMathTest:testGetAmountOut(uint256,uint256,uint256) (runs: 256, μ: 26107, ~: 25722) +StableMathTest:testComputeLiquidityFromAdjustedBalances_ConvergeEvenWithVeryUnbalancedValues(uint256,uint256,uint256) (runs: 256, μ: 14031, ~: 12439) +StableMathTest:testGetAmountIn(uint256,uint256,uint256) (runs: 256, μ: 22184, ~: 22265) +StableMathTest:testGetAmountOut(uint256,uint256,uint256) (runs: 256, μ: 26116, ~: 25722) StableMathTest:testMinALessThanMaxA() (gas: 3381) -StableOracleMathTest:testCalcSpotPrice_CanonicalVersion_VerySmallAmounts(uint256,uint256) (runs: 256, μ: 13406, ~: 13271) -StableOracleMathTest:testCalcSpotPrice_VerySmallAmounts(uint256,uint256) (runs: 256, μ: 13728, ~: 13593) -StableOracleMathTest:testCalculatedSpotPriceIsCloseToEstimated(uint256,uint256) (runs: 256, μ: 21625, ~: 22024) -StableOracleMathTest:testPrice_Token0MoreExpensive() (gas: 9381) -StableOracleMathTest:testPrice_Token1MoreExpensive() (gas: 9679) -StablePairGas:testGasBurn() (gas: 102992) -StablePairGas:testGasMint() (gas: 124907) -StablePairGas:testGasMint_Initial() (gas: 254094) -StablePairGas:testGasSwap() (gas: 79053) -StablePairGas:testGasSwap_UpdateOracle() (gas: 105465) -StablePairGas:testGasSwap_UpdateOracleClamped() (gas: 102347) -StablePairTest:testAttackWhileRampingDown_LongInterval() (gas: 203133) -StablePairTest:testAttackWhileRampingDown_ShortInterval() (gas: 204443) -StablePairTest:testBurn() (gas: 144978) -StablePairTest:testBurn_DiffDecimalPlaces(uint256) (runs: 256, μ: 5501729, ~: 5501577) -StablePairTest:testBurn_LastInvariantUseReserveInsteadOfBalance() (gas: 264027) +StableOracleMathTest:testCalcSpotPrice_CanonicalVersion_VerySmallAmounts(uint256,uint256) (runs: 256, μ: 22665, ~: 22824) +StableOracleMathTest:testCalcSpotPrice_VerySmallAmounts(uint256,uint256) (runs: 256, μ: 23485, ~: 23644) +StableOracleMathTest:testCalculatedSpotPriceIsCloseToEstimated(uint256,uint256) (runs: 256, μ: 46690, ~: 47809) +StableOracleMathTest:testPrice_Token0MoreExpensive() (gas: 18593) +StableOracleMathTest:testPrice_Token1MoreExpensive() (gas: 18623) +StablePairGas:testGasBurn() (gas: 102938) +StablePairGas:testGasMint() (gas: 124866) +StablePairGas:testGasMint_Initial() (gas: 254053) +StablePairGas:testGasSwap() (gas: 78993) +StablePairGas:testGasSwap_UpdateOracle() (gas: 105502) +StablePairGas:testGasSwap_UpdateOracleClamped() (gas: 102384) +StablePairTest:testAttackWhileRampingDown_LongInterval() (gas: 203041) +StablePairTest:testAttackWhileRampingDown_ShortInterval() (gas: 204351) +StablePairTest:testBurn() (gas: 144924) +StablePairTest:testBurn_DiffDecimalPlaces(uint256) (runs: 256, μ: 5534096, ~: 5533880) +StablePairTest:testBurn_LastInvariantUseReserveInsteadOfBalance() (gas: 263859) StablePairTest:testBurn_Reenter() (gas: 48719) -StablePairTest:testBurn_SucceedEvenIfMintFeeReverts() (gas: 143820) -StablePairTest:testBurn_WhenRampingA(uint256,uint32) (runs: 256, μ: 332634, ~: 332664) -StablePairTest:testBurn_Zero() (gas: 81607) -StablePairTest:testFactoryAmpTooHigh() (gas: 271106) -StablePairTest:testFactoryAmpTooLow() (gas: 266696) +StablePairTest:testBurn_SucceedEvenIfMintFeeReverts() (gas: 143766) +StablePairTest:testBurn_WhenRampingA(uint256,uint32) (runs: 256, μ: 332595, ~: 332612) +StablePairTest:testBurn_Zero() (gas: 81553) +StablePairTest:testFactoryAmpTooHigh() (gas: 248826) +StablePairTest:testFactoryAmpTooLow() (gas: 244418) StablePairTest:testGetCurrentA() (gas: 32277) -StablePairTest:testMint() (gas: 118033) +StablePairTest:testMint() (gas: 117992) StablePairTest:testMintFee_CallableBySelf() (gas: 16698) -StablePairTest:testMintFee_DiffPlatformFees(uint256) (runs: 256, μ: 6926947, ~: 6928193) +StablePairTest:testMintFee_DiffPlatformFees(uint256) (runs: 256, μ: 6956948, ~: 6958212) StablePairTest:testMintFee_NotCallableByOthers() (gas: 8541) -StablePairTest:testMintFee_WhenRampingA_PoolBalanced(uint256) (runs: 256, μ: 6995863, ~: 6995898) -StablePairTest:testMintFee_WhenRampingA_PoolUnbalanced(uint256) (runs: 256, μ: 6408791, ~: 6408642) -StablePairTest:testMint_CalculationOverflowInStableMath() (gas: 5328860) -StablePairTest:testMint_NonOptimalProportion() (gas: 172722) -StablePairTest:testMint_NonOptimalProportion_ThenBurn() (gas: 355191) -StablePairTest:testMint_OnlyTransferOneToken() (gas: 5267299) -StablePairTest:testMint_PlatformFeeOff() (gas: 121096) -StablePairTest:testMint_Reenter() (gas: 48141) -StablePairTest:testMint_WhenRampingA(uint256,uint32) (runs: 256, μ: 357096, ~: 357121) -StablePairTest:testOracle_ClampedPrice_NoDiffWithinLimit() (gas: 165146) -StablePairTest:testOracle_CorrectPrice(uint32) (runs: 256, μ: 5629670, ~: 5629670) -StablePairTest:testOracle_SimplePrices(uint32) (runs: 256, μ: 5635411, ~: 5635411) +StablePairTest:testMintFee_WhenRampingA_PoolBalanced(uint256) (runs: 256, μ: 7025885, ~: 7025919) +StablePairTest:testMintFee_WhenRampingA_PoolUnbalanced(uint256) (runs: 256, μ: 6440056, ~: 6439863) +StablePairTest:testMint_CalculationOverflowInStableMath() (gas: 5361374) +StablePairTest:testMint_NonOptimalProportion() (gas: 172681) +StablePairTest:testMint_NonOptimalProportion_ThenBurn() (gas: 355036) +StablePairTest:testMint_OnlyTransferOneToken() (gas: 5299813) +StablePairTest:testMint_PlatformFeeOff() (gas: 121055) +StablePairTest:testMint_Reenter() (gas: 48144) +StablePairTest:testMint_WhenRampingA(uint256,uint32) (runs: 256, μ: 357083, ~: 357095) +StablePairTest:testOracle_ClampedPrice_NoDiffWithinLimit() (gas: 165157) +StablePairTest:testOracle_CorrectPrice(uint32) (runs: 256, μ: 5662191, ~: 5662191) +StablePairTest:testOracle_SimplePrices(uint32) (runs: 256, μ: 5667932, ~: 5667932) StablePairTest:testRampA() (gas: 32550) StablePairTest:testRampA_BreachMaxSpeed() (gas: 24046) StablePairTest:testRampA_BreachMaxSpeed_Halve() (gas: 23585) @@ -178,26 +178,26 @@ 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, μ: 577469, ~: 471062) -StablePairTest:testRampA_SwappingDuringRampingUp(uint256,uint256,uint256,uint256) (runs: 256, μ: 576885, ~: 470596) +StablePairTest:testRampA_SwappingDuringRampingDown(uint256,uint256,uint256,uint256) (runs: 256, μ: 580091, ~: 481151) +StablePairTest:testRampA_SwappingDuringRampingUp(uint256,uint256,uint256,uint256) (runs: 256, μ: 579487, ~: 482024) StablePairTest:testStopRampA() (gas: 34839) -StablePairTest:testStopRampA_Early(uint256,uint32) (runs: 256, μ: 43059, ~: 43162) -StablePairTest:testStopRampA_Late(uint256) (runs: 256, μ: 42500, ~: 42590) +StablePairTest:testStopRampA_Early(uint256,uint32) (runs: 256, μ: 43074, ~: 43162) +StablePairTest:testStopRampA_Late(uint256) (runs: 256, μ: 42499, ~: 42590) StablePairTest:testStopRampA_OnlyFactory() (gas: 9181) -StablePairTest:testSwap() (gas: 119644) -StablePairTest:testSwap_BetterPerformanceThanConstantProduct() (gas: 187308) -StablePairTest:testSwap_DiffAs(uint256,uint256,uint256,uint256) (runs: 256, μ: 5564592, ~: 5565549) -StablePairTest:testSwap_DiffSwapFees(uint256) (runs: 256, μ: 5541619, ~: 5542384) -StablePairTest:testSwap_ExactInExceedUint104() (gas: 74746) -StablePairTest:testSwap_ExactOutExceedReserves() (gas: 29861) -StablePairTest:testSwap_IncreasingSwapFees(uint256,uint256,uint256) (runs: 256, μ: 389693, ~: 389855) -StablePairTest:testSwap_MinInt256() (gas: 19284) -StablePairTest:testSwap_Reenter() (gas: 87163) -StablePairTest:testSwap_Token0ExactOut(uint256) (runs: 256, μ: 151273, ~: 137450) -StablePairTest:testSwap_Token1ExactOut(uint256) (runs: 256, μ: 151459, ~: 137587) -StablePairTest:testSwap_VeryLargeLiquidity(uint256) (runs: 256, μ: 5492201, ~: 5490376) -StablePairTest:testSwap_VerySmallLiquidity(uint256,uint256,uint256) (runs: 256, μ: 5530434, ~: 5508249) -StablePairTest:testSwap_ZeroInput() (gas: 12788) -StdMathTest:testPercentDelta() (gas: 3351) -StdMathTest:testPercentDelta_MinusOne() (gas: 3197) -StdMathTest:testPercentDelta_PlusOne() (gas: 3048) \ No newline at end of file +StablePairTest:testSwap() (gas: 119584) +StablePairTest:testSwap_BetterPerformanceThanConstantProduct() (gas: 187194) +StablePairTest:testSwap_DiffAs(uint256,uint256,uint256,uint256) (runs: 256, μ: 5597002, ~: 5597917) +StablePairTest:testSwap_DiffSwapFees(uint256) (runs: 256, μ: 5574022, ~: 5574797) +StablePairTest:testSwap_ExactInExceedUint104() (gas: 74717) +StablePairTest:testSwap_ExactOutExceedReserves() (gas: 29837) +StablePairTest:testSwap_IncreasingSwapFees(uint256,uint256,uint256) (runs: 256, μ: 389516, ~: 389675) +StablePairTest:testSwap_MinInt256() (gas: 19278) +StablePairTest:testSwap_Reenter() (gas: 87157) +StablePairTest:testSwap_Token0ExactOut(uint256) (runs: 256, μ: 153485, ~: 137587) +StablePairTest:testSwap_Token1ExactOut(uint256) (runs: 256, μ: 153676, ~: 137724) +StablePairTest:testSwap_VeryLargeLiquidity(uint256) (runs: 256, μ: 5524576, ~: 5522789) +StablePairTest:testSwap_VerySmallLiquidity(uint256,uint256,uint256) (runs: 256, μ: 5563217, ~: 5540662) +StablePairTest:testSwap_ZeroInput() (gas: 10421) +StdMathTest:testPercentDelta() (gas: 3950) +StdMathTest:testPercentDelta_MinusOne() (gas: 3973) +StdMathTest:testPercentDelta_PlusOne() (gas: 3908) \ No newline at end of file