diff --git a/.forge-snapshots/simple swap native.snap b/.forge-snapshots/simple swap native.snap deleted file mode 100644 index 65b732d63..000000000 --- a/.forge-snapshots/simple swap native.snap +++ /dev/null @@ -1 +0,0 @@ -132772 \ No newline at end of file diff --git a/.gas-snapshot b/.gas-snapshot deleted file mode 100644 index 9ccb0d944..000000000 --- a/.gas-snapshot +++ /dev/null @@ -1,347 +0,0 @@ -ClaimsTest:testCanBurn(uint256) (runs: 100, μ: 32977, ~: 33304) -ClaimsTest:testCanTransfer(uint256) (runs: 100, μ: 50745, ~: 51836) -ClaimsTest:testCanTransferToZeroAddress() (gas: 51088) -ClaimsTest:testCatchesOverflowOnTransfer() (gas: 45550) -ClaimsTest:testCatchesUnderflowOnBurn(uint256) (runs: 100, μ: 39917, ~: 40912) -ClaimsTest:testCatchesUnderflowOnTransfer(uint256) (runs: 100, μ: 40054, ~: 41049) -ClaimsTest:testTransferToClaimsContractFails() (gas: 36392) -FeesTest:testCollectFees() (gas: 609556) -FeesTest:testHookWithdrawFeeProtocolWithdrawFee(uint16,uint16) (runs: 100, μ: 484798, ~: 490490) -FeesTest:testInitializeAllFees(uint16,uint16,uint16,uint16) (runs: 100, μ: 140571, ~: 136939) -FeesTest:testInitializeBothHookFee(uint16,uint16) (runs: 100, μ: 86164, ~: 93440) -FeesTest:testInitializeFailsNoHook() (gas: 20233) -FeesTest:testInitializeHookProtocolSwapFee(uint16,uint16) (runs: 100, μ: 103467, ~: 109343) -FeesTest:testInitializeHookSwapFee(uint16) (runs: 100, μ: 68387, ~: 70884) -FeesTest:testInitializeHookWithdrawFee(uint16) (runs: 100, μ: 68654, ~: 70924) -FeesTest:testInitializeWithSwapProtocolFeeAndHookFeeDifferentDirections() (gas: 569221) -FeesTest:testNoHookProtocolFee(uint16,uint16) (runs: 100, μ: 761575, ~: 767899) -FeesTest:testProtocolFeeOnWithdrawalRemainsZeroIfNoHookWithdrawalFeeSet(uint16,uint16) (runs: 100, μ: 464839, ~: 466748) -FeesTest:testProtocolSwapFeeAndHookSwapFeeSameDirection() (gas: 589612) -FeesTest:testSwapWithProtocolFeeAllAndHookFeeAllButOnlySwapFlag() (gas: 638678) -FullMathTest:testResultOverflowsHelper() (gas: 3964) -FullMathTest:test_mulDivRounding(uint256,uint256,uint256) (runs: 100, μ: 4728, ~: 4445) -FullMathTest:test_mulDivRoundingUp_fuzz(uint256,uint256,uint256) (runs: 100, μ: 4655, ~: 4687) -FullMathTest:test_mulDivRoundingUp_revertsIfMulDivOverflows256BitsAfterRoundingUp() (gas: 3643) -FullMathTest:test_mulDivRoundingUp_revertsIfMulDivOverflows256BitsAfterRoundingUpCase2() (gas: 3718) -FullMathTest:test_mulDivRoundingUp_revertsWith0Denominator(uint256,uint256) (runs: 100, μ: 3289, ~: 3289) -FullMathTest:test_mulDivRoundingUp_validWithAllMaxInputs() (gas: 890) -FullMathTest:test_mulDivRoundingUp_validWithNoPhantomOverflow() (gas: 1090) -FullMathTest:test_mulDivRoundingUp_validWithPhantomOverflow() (gas: 1101) -FullMathTest:test_mulDivRoundingUp_validWithPhantomOverflowRepeatingDecimal() (gas: 1339) -FullMathTest:test_mulDiv_fuzz(uint256,uint256,uint256) (runs: 100, μ: 4347, ~: 4347) -FullMathTest:test_mulDiv_phantomOverflowRepeatingDecimal() (gas: 1167) -FullMathTest:test_mulDiv_recomputed(uint256,uint256,uint256) (runs: 100, μ: 4981, ~: 4681) -FullMathTest:test_mulDiv_revertsIfOutputOverflows() (gas: 3236) -FullMathTest:test_mulDiv_revertsOverflowWithAllMaxInputs() (gas: 3292) -FullMathTest:test_mulDiv_revertsWith0Denominator(uint256,uint256) (runs: 100, μ: 3264, ~: 3264) -FullMathTest:test_mulDiv_revertsWithOverflowingNumeratorAndZeroDenominator() (gas: 3191) -FullMathTest:test_mulDiv_validAllMaxInputs() (gas: 736) -FullMathTest:test_mulDiv_validWithPhantomOverflow() (gas: 1167) -FullMathTest:test_mulDiv_validWithoutPhantomOverflow() (gas: 853) -HooksTest:testAfterDonateInvalidReturn() (gas: 89120) -HooksTest:testAfterInitializeInvalidReturn() (gas: 100731) -HooksTest:testAfterModifyPositionInvalidReturn() (gas: 168689) -HooksTest:testAfterSwapInvalidReturn() (gas: 162167) -HooksTest:testBeforeDonateInvalidReturn() (gas: 89162) -HooksTest:testBeforeInitializeInvalidReturn() (gas: 49217) -HooksTest:testBeforeModifyPositionInvalidReturn() (gas: 64783) -HooksTest:testBeforeSwapInvalidReturn() (gas: 91596) -HooksTest:testDonateSucceedsWithHook() (gas: 448027) -HooksTest:testGas() (gas: 38358) -HooksTest:testInitializeSucceedsWithHook() (gas: 208231) -HooksTest:testInvalidIfNoFlags() (gas: 1108) -HooksTest:testIsValidHookAddressAnyFlags() (gas: 2099) -HooksTest:testIsValidHookAddressZeroAddress() (gas: 443) -HooksTest:testIsValidIfDynamicFee() (gas: 935) -HooksTest:testModifyPositionSucceedsWithHook() (gas: 301337) -HooksTest:testSwapSucceedsWithHook() (gas: 373007) -HooksTest:testValidateHookAddressAfterDonate(uint152) (runs: 100, μ: 1854, ~: 1854) -HooksTest:testValidateHookAddressAfterInitialize(uint152) (runs: 100, μ: 1855, ~: 1855) -HooksTest:testValidateHookAddressAfterModify(uint152) (runs: 100, μ: 1835, ~: 1835) -HooksTest:testValidateHookAddressAfterSwap(uint152) (runs: 100, μ: 1855, ~: 1855) -HooksTest:testValidateHookAddressAllHooks(uint152) (runs: 100, μ: 1667, ~: 1667) -HooksTest:testValidateHookAddressBeforeAndAfterDonate(uint152) (runs: 100, μ: 1804, ~: 1804) -HooksTest:testValidateHookAddressBeforeAndAfterInitialize(uint152) (runs: 100, μ: 1828, ~: 1828) -HooksTest:testValidateHookAddressBeforeAndAfterModify(uint152) (runs: 100, μ: 1838, ~: 1838) -HooksTest:testValidateHookAddressBeforeAndAfterSwap(uint152) (runs: 100, μ: 1785, ~: 1785) -HooksTest:testValidateHookAddressBeforeDonate(uint152) (runs: 100, μ: 1856, ~: 1856) -HooksTest:testValidateHookAddressBeforeInitialize(uint152) (runs: 100, μ: 1837, ~: 1837) -HooksTest:testValidateHookAddressBeforeInitializeAfterModify(uint152) (runs: 100, μ: 1784, ~: 1784) -HooksTest:testValidateHookAddressBeforeModify(uint152) (runs: 100, μ: 1863, ~: 1863) -HooksTest:testValidateHookAddressBeforeSwap(uint152) (runs: 100, μ: 1856, ~: 1856) -HooksTest:testValidateHookAddressFailsAllHooks(uint152,uint8) (runs: 100, μ: 4784, ~: 4729) -HooksTest:testValidateHookAddressFailsNoHooks(uint152,uint8) (runs: 100, μ: 4795, ~: 4729) -HooksTest:testValidateHookAddressNoHooks(uint152) (runs: 100, μ: 1845, ~: 1845) -LockersLibrary:testLockerLengthAndNonzeroDeltaCount() (gas: 52392) -LockersLibrary:test_clear(address[]) (runs: 100, μ: 114024, ~: 111101) -LockersLibrary:test_decrementNonzeroDeltaCount() (gas: 1157) -LockersLibrary:test_decrementNonzeroDeltaCountFuzz(uint8) (runs: 100, μ: 110701, ~: 53214) -LockersLibrary:test_getCurrentLocker_multipleAddressesFuzz(address[]) (runs: 100, μ: 273024, ~: 265967) -LockersLibrary:test_incrementNonzeroDeltaCount() (gas: 807) -LockersLibrary:test_incrementNonzeroDeltaCountFuzz(uint8) (runs: 100, μ: 66000, ~: 31700) -LockersLibrary:test_pop() (gas: 1770) -LockersLibrary:test_pop_multipleAddressesFuzz(address[]) (runs: 100, μ: 240601, ~: 234397) -LockersLibrary:test_push() (gas: 1421) -LockersLibrary:test_push_multipleAddressesFuzz(address[]) (runs: 100, μ: 250569, ~: 244093) -OwnedTest:testConstructor(address) (runs: 100, μ: 166413, ~: 166413) -OwnedTest:testSetOwnerFromNonOwner(address,address) (runs: 100, μ: 167372, ~: 167571) -OwnedTest:testSetOwnerFromOwner(address,address) (runs: 100, μ: 169642, ~: 169642) -PoolManagerInitializeTest:test_initialize((address,address,uint24,int24,address),uint160) (runs: 100, μ: 21815, ~: 15963) -PoolManagerInitializeTest:test_initialize_failsIfTickSpaceNeg(uint160) (runs: 100, μ: 20764, ~: 20764) -PoolManagerInitializeTest:test_initialize_failsIfTickSpaceTooLarge(uint160) (runs: 100, μ: 21747, ~: 21747) -PoolManagerInitializeTest:test_initialize_failsIfTickSpaceZero(uint160) (runs: 100, μ: 20801, ~: 20801) -PoolManagerInitializeTest:test_initialize_failsWithIncorrectSelectors() (gas: 1016152) -PoolManagerInitializeTest:test_initialize_fetchFeeWhenController(uint160) (runs: 100, μ: 95683, ~: 95796) -PoolManagerInitializeTest:test_initialize_forNativeTokens(uint160) (runs: 100, μ: 72060, ~: 72285) -PoolManagerInitializeTest:test_initialize_gas() (gas: 87067) -PoolManagerInitializeTest:test_initialize_revertsWhenPoolAlreadyInitialized(uint160) (runs: 100, μ: 65008, ~: 65131) -PoolManagerInitializeTest:test_initialize_revertsWithIdenticalTokens(uint160) (runs: 100, μ: 22624, ~: 22624) -PoolManagerInitializeTest:test_initialize_revertsWithSameTokenCombo(uint160) (runs: 100, μ: 27702, ~: 27702) -PoolManagerInitializeTest:test_initialize_succeedsWithCorrectSelectors() (gas: 1012968) -PoolManagerInitializeTest:test_initialize_succeedsWithEmptyHooks(uint160) (runs: 100, μ: 978650, ~: 978753) -PoolManagerInitializeTest:test_initialize_succeedsWithHooks(uint160) (runs: 100, μ: 8937393460516839818, ~: 8937393460516839937) -PoolManagerInitializeTest:test_initialize_succeedsWithMaxTickSpacing(uint160) (runs: 100, μ: 65781, ~: 65915) -PoolManagerReentrancyTest:testParallelLocker() (gas: 1928644) -PoolManagerReentrancyTest:testSimpleLinearLocker() (gas: 390198) -PoolManagerReentrancyTest:testTokenLocker() (gas: 566947) -PoolManagerReentrancyTest:testTokenRevert() (gas: 585641) -PoolManagerTest:test_bytecodeSize() (gas: 12185) -PoolManagerTest:test_collectProtocolFees_ERC20_allowsOwnerToAccumulateFees_gas() (gas: 289458) -PoolManagerTest:test_collectProtocolFees_ERC20_returnsAllFeesIf0IsProvidedAsParameter() (gas: 254611) -PoolManagerTest:test_collectProtocolFees_initializesWithProtocolFeeIfCalled() (gas: 87808) -PoolManagerTest:test_collectProtocolFees_nativeToken_allowsOwnerToAccumulateFees_gas() (gas: 284617) -PoolManagerTest:test_collectProtocolFees_nativeToken_returnsAllFeesIf0IsProvidedAsParameter() (gas: 248486) -PoolManagerTest:test_donate_OneToken_gas() (gas: 148330) -PoolManagerTest:test_donate_failsIfNoLiquidity(uint160) (runs: 100, μ: 114825, ~: 114937) -PoolManagerTest:test_donate_failsIfNotInitialized() (gas: 59830) -PoolManagerTest:test_donate_failsWithIncorrectSelectors() (gas: 1427126) -PoolManagerTest:test_donate_succeedsForNativeTokensWhenPoolHasLiquidity() (gas: 161042) -PoolManagerTest:test_donate_succeedsWhenPoolHasLiquidity() (gas: 208247) -PoolManagerTest:test_donate_succeedsWithCorrectSelectors() (gas: 1395867) -PoolManagerTest:test_feeControllerSet() (gas: 5068465) -PoolManagerTest:test_getPosition() (gas: 24376) -PoolManagerTest:test_lock_EmitsCorrectId() (gas: 18848) -PoolManagerTest:test_lock_NoOpIsOk() (gas: 50332) -PoolManagerTest:test_mint_failsIfNotInitialized() (gas: 35317) -PoolManagerTest:test_mint_failsWithIncorrectSelectors() (gas: 1266991) -PoolManagerTest:test_mint_gas() (gas: 199973) -PoolManagerTest:test_mint_succeedsForNativeTokensIfInitialized(uint160) (runs: 100, μ: 166868, ~: 166868) -PoolManagerTest:test_mint_succeedsIfInitialized(uint160) (runs: 100, μ: 169963, ~: 169963) -PoolManagerTest:test_mint_succeedsWithCorrectSelectors() (gas: 1287264) -PoolManagerTest:test_mint_succeedsWithHooksIfInitialized(uint160) (runs: 100, μ: 8937393460517122061, ~: 8937393460517123618) -PoolManagerTest:test_mint_withHooks_gas() (gas: 1283808) -PoolManagerTest:test_mint_withNative_gas() (gas: 197549) -PoolManagerTest:test_setProtocolFee_updatesProtocolFeeForInitializedPool() (gas: 70461) -PoolManagerTest:test_swap_GasMintClaimIfOutputNotTaken() (gas: 216651) -PoolManagerTest:test_swap_GasUseClaimAsInput() (gas: 322262) -PoolManagerTest:test_swap_againstLiqWithNative_gas() (gas: 329462) -PoolManagerTest:test_swap_againstLiq_gas() (gas: 287756) -PoolManagerTest:test_swap_failsIfNotInitialized(uint160) (runs: 100, μ: 66369, ~: 66369) -PoolManagerTest:test_swap_failsWithIncorrectSelectors() (gas: 1427217) -PoolManagerTest:test_swap_gas() (gas: 200468) -PoolManagerTest:test_swap_succeedsIfInitialized() (gas: 182286) -PoolManagerTest:test_swap_succeedsWithCorrectSelectors() (gas: 1415774) -PoolManagerTest:test_swap_succeedsWithHooksIfInitialized() (gas: 8937393460517299315) -PoolManagerTest:test_swap_succeedsWithNativeTokensIfInitialized() (gas: 170592) -PoolManagerTest:test_swap_withHooks_gas() (gas: 1460713) -PoolManagerTest:test_swap_withNative_gas() (gas: 191105) -PoolManagerTest:test_take_failsWithInvalidTokensThatDoNotReturnTrueOnTransfer() (gas: 896667) -PoolManagerTest:test_take_failsWithNoLiquidity() (gas: 11038376) -PoolManagerTest:test_take_succeedsWithPoolWithLiquidity() (gas: 124513) -PoolManagerTest:test_take_succeedsWithPoolWithLiquidityWithNativeToken() (gas: 118130) -PoolTest:testModifyPosition(uint160,(address,int24,int24,int128,int24)) (runs: 100, μ: 19917, ~: 7542) -PoolTest:testPoolInitialize(uint160,uint16,uint16,uint24) (runs: 100, μ: 16461, ~: 6475) -PoolTest:testSwap(uint160,uint24,(int24,bool,int256,uint160)) (runs: 100, μ: 212320, ~: 7852) -SafeCastTest:testToInt128(int256) (runs: 100, μ: 1575, ~: 511) -SafeCastTest:testToInt128(uint256) (runs: 100, μ: 1150, ~: 390) -SafeCastTest:testToInt256(uint256) (runs: 100, μ: 760, ~: 450) -SafeCastTest:testToUint160(uint256) (runs: 100, μ: 1098, ~: 454) -SqrtPriceMathTestTest:test_getAmount0Delta_gasCostForAmount0WhereRoundUpIsFalse() (gas: 78530) -SqrtPriceMathTestTest:test_getAmount0Delta_gasCostForAmount0WhereRoundUpIsTrue() (gas: 78705) -SqrtPriceMathTestTest:test_getAmount0Delta_returns0IfLiquidityIs0() (gas: 922) -SqrtPriceMathTestTest:test_getAmount0Delta_returns0IfPricesAreEqual() (gas: 897) -SqrtPriceMathTestTest:test_getAmount0Delta_returns0_1Amount1ForPriceOf1To1_21() (gas: 1525) -SqrtPriceMathTestTest:test_getAmount0Delta_worksForPricesThatOverflow() (gas: 2060) -SqrtPriceMathTestTest:test_getAmount1Delta_gasCostForAmount1WhereRoundUpIsFalse() (gas: 78560) -SqrtPriceMathTestTest:test_getAmount1Delta_gasCostForAmount1WhereRoundUpIsTrue() (gas: 78668) -SqrtPriceMathTestTest:test_getAmount1Delta_returns0IfLiquidityIs0() (gas: 888) -SqrtPriceMathTestTest:test_getAmount1Delta_returns0IfPricesAreEqual() (gas: 862) -SqrtPriceMathTestTest:test_getAmount1Delta_returns0_1Amount1ForPriceOf1To1_21() (gas: 1563) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromInput_amountInGreaterThanType_uint96_maxAndZeroForOneEqualsTrue() (gas: 1057) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromInput_anyInputAmountCannotUnderflowThePrice() (gas: 1054) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromInput_canReturn1WithEnoughAmountInAndZeroForOneEqualsTrue() (gas: 965) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromInput_inputAmountOf0_1Currency0() (gas: 1081) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromInput_inputAmountOf0_1Currency1() (gas: 895) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromInput_returnsInputPriceIfAmountInIsZeroAndZeroForOneEqualsFalse() (gas: 882) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromInput_returnsInputPriceIfAmountInIsZeroAndZeroForOneEqualsTrue() (gas: 635) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromInput_returnsTheMinimumPriceForMaxInputs() (gas: 1235) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromInput_revertsIfInputAmountOverflowsThePrice() (gas: 3739) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromInput_revertsIfLiquidityIsZero() (gas: 3240) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromInput_revertsIfPriceIsZero() (gas: 3257) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromInput_zeroForOneEqualsFalseGas() (gas: 78627) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromInput_zeroForOneEqualsTrueGas() (gas: 78791) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromOutput_outputAmountOf0_1Currency0() (gas: 744) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromOutput_outputAmountOf0_1Currency1() (gas: 1164) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromOutput_puzzlingEchidnaTest() (gas: 3477) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromOutput_returnsInputPriceIfAmountInIsZeroAndZeroForOneEqualsFalse() (gas: 611) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromOutput_returnsInputPriceIfAmountInIsZeroAndZeroForOneEqualsTrue() (gas: 807) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromOutput_revertsIfAmountOutIsImpossibleInOneForZeroDirection() (gas: 3486) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromOutput_revertsIfAmountOutIsImpossibleInZeroForOneDirection() (gas: 3513) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromOutput_revertsIfLiquidityIsZero() (gas: 3262) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromOutput_revertsIfOutputAmountIsExactlyTheVirtualReservesOfCurrency0() (gas: 3477) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromOutput_revertsIfOutputAmountIsExactlyTheVirtualReservesOfCurrency1() (gas: 3528) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromOutput_revertsIfOutputAmountIsGreaterThanTheVirtualReservesOfCurrency0() (gas: 3521) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromOutput_revertsIfOutputAmountIsGreaterThanTheVirtualReservesOfCurrency1() (gas: 3517) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromOutput_revertsIfPriceIsZero() (gas: 3214) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromOutput_succeedsIfOutputAmountIsJustLessThanTheVirtualReservesOfCurrency1() (gas: 756) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromOutput_zeroForOneEqualsFalseGas() (gas: 78895) -SqrtPriceMathTestTest:test_getNextSqrtPriceFromOutput_zeroForOneEqualsTrueGas() (gas: 78501) -SqrtPriceMathTestTest:test_swapComputation_sqrtPTimessqrtQOverflows() (gas: 2383) -SwapMathTest:test_amountOut_isCappedAtTheDesiredAmountOut() (gas: 3351) -SwapMathTest:test_computeSwapStep_Invariants(uint160,uint160,uint128,int256,uint24) (runs: 100, μ: 8028, ~: 8050) -SwapMathTest:test_entireInputAmountTakenAsFee() (gas: 3498) -SwapMathTest:test_exactAmountIn_oneForZero_thatGetsCappedAtPriceTargetIn() (gas: 3459) -SwapMathTest:test_exactAmountIn_oneForZero_thatIsFullySpentIn() (gas: 4394) -SwapMathTest:test_exactAmountOut_oneForZero_thatGetsCappedAtPriceTargetIn() (gas: 3416) -SwapMathTest:test_exactAmountOut_oneForZero_thatIsFullyReceivedIn() (gas: 4947) -SwapMathTest:test_oneForZero_handlesIntermediateInsufficientLiquidityInExactOutputCase() (gas: 2766) -SwapMathTest:test_swapOneForZero_exactInCapped() (gas: 80119) -SwapMathTest:test_swapOneForZero_exactInPartial() (gas: 80971) -SwapMathTest:test_swapOneForZero_exactOutCapped() (gas: 79898) -SwapMathTest:test_swapOneForZero_exactOutPartial() (gas: 80951) -SwapMathTest:test_swapZeroForOne_exactInCapped() (gas: 80131) -SwapMathTest:test_swapZeroForOne_exactInPartial() (gas: 81171) -SwapMathTest:test_swapZeroForOne_exactOutCapped() (gas: 79866) -SwapMathTest:test_swapZeroForOne_exactOutPartial() (gas: 81175) -SwapMathTest:test_targetPriceOf1UsesPartialInputAmount() (gas: 2787) -SwapMathTest:test_zeroForOne_handlesIntermediateInsufficientLiquidityInExactOutputCase() (gas: 2755) -TestBalanceDelta:testAdd(int128,int128,int128,int128) (runs: 100, μ: 4750, ~: 4750) -TestBalanceDelta:testSub(int128,int128,int128,int128) (runs: 100, μ: 4724, ~: 4724) -TestBalanceDelta:testToBalanceDelta() (gas: 968) -TestBalanceDelta:testToBalanceDelta(int128,int128) (runs: 100, μ: 613, ~: 613) -TestBitMath:testLeastSignificantBit(uint256) (runs: 100, μ: 3870, ~: 3855) -TestBitMath:testLeastSignificantBitMaxUint256() (gas: 697) -TestBitMath:testLeastSignificantBitOne() (gas: 715) -TestBitMath:testLeastSignificantBitPowersOfTwo() (gas: 151449) -TestBitMath:testLeastSignificantBitTwo() (gas: 673) -TestBitMath:testLeastSignificantBitZero() (gas: 3086) -TestBitMath:testLsbGas() (gas: 115496) -TestBitMath:testMostSignificantBit(uint256) (runs: 100, μ: 12436, ~: 6996) -TestBitMath:testMostSignificantBitMaxUint256() (gas: 650) -TestBitMath:testMostSignificantBitOne() (gas: 538) -TestBitMath:testMostSignificantBitPowersOfTwo() (gas: 125789) -TestBitMath:testMostSignificantBitTwo() (gas: 523) -TestBitMath:testMostSignificantBitZero() (gas: 3087) -TestBitMath:testMsbGas() (gas: 115335) -TestCurrency:testCurrency_balanceOfSelf_native() (gas: 2470) -TestCurrency:testCurrency_balanceOfSelf_token() (gas: 7922) -TestCurrency:testCurrency_balanceOf_native() (gas: 2589) -TestCurrency:testCurrency_balanceOf_token() (gas: 7867) -TestCurrency:testCurrency_fromId_native_returns0() (gas: 2423) -TestCurrency:testCurrency_fromId_token_returnsAddressAsUint160() (gas: 2403) -TestCurrency:testCurrency_isNative_native_returnsTrue() (gas: 2382) -TestCurrency:testCurrency_isNative_token_returnsFalse() (gas: 2406) -TestCurrency:testCurrency_toId_native_returns0() (gas: 2389) -TestCurrency:testCurrency_toId_token_returnsAddressAsUint160() (gas: 2411) -TestCurrency:testCurrency_transfer_native_successfullyTransfersFunds() (gas: 12616) -TestCurrency:testCurrency_transfer_token_successfullyTransfersFunds() (gas: 20072) -TestDelegateCall:testCanCallIntoPrivateMethodWithModifier() (gas: 5426) -TestDelegateCall:testCannotDelegateCallPrivateMethodWithModifier() (gas: 10215) -TestDelegateCall:testDelegateCallNoModifier() (gas: 5734) -TestDelegateCall:testDelegateCallWithModifier() (gas: 10149) -TestDelegateCall:testGasOverhead() (gas: 13709) -TestDynamicFees:testCacheDynamicFeeAndSwap() (gas: 271914) -TestDynamicFees:testDynamicFeeAndBeforeSwapHook() (gas: 266199) -TestDynamicFees:testDynamicFeesCacheNoOtherHooks() (gas: 491901) -TestDynamicFees:testPoolInitializeFailsWithTooLargeFee() (gas: 1741103) -TestDynamicFees:testSwapWorks() (gas: 220615) -TestDynamicFees:testUpdateFailsWithTooLargeFee() (gas: 27209) -TestDynamicFees:testUpdateRevertsOnStaticFeePool() (gas: 65543) -TickBitmapTest:test_flipTick_flipsOnlyTheSpecifiedTick() (gas: 16607) -TickBitmapTest:test_flipTick_gasCostOfFlippingATickThatResultsInDeletingAWord() (gas: 78619) -TickBitmapTest:test_flipTick_gasCostOfFlippingFirstTickInWordToInitialized() (gas: 100560) -TickBitmapTest:test_flipTick_gasCostOfFlippingSecondTickInWordToInitialized() (gas: 83548) -TickBitmapTest:test_flipTick_revertsOnlyItself() (gas: 55781) -TickBitmapTest:test_isInitialized_isFalseAtFirst() (gas: 2972) -TickBitmapTest:test_isInitialized_isFlippedBackByFlipTick() (gas: 4122) -TickBitmapTest:test_isInitialized_isFlippedByFlipTick() (gas: 6580) -TickBitmapTest:test_isInitialized_isNotChangedByAnotherFlipToADifferentTick() (gas: 6346) -TickBitmapTest:test_isInitialized_isNotChangedByAnotherFlipToADifferentTickOnAnotherWord() (gas: 26395) -TickBitmapTest:test_nextInitializedTickWithinOneWord_fuzz(int24,bool) (runs: 100, μ: 108465, ~: 97523) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteFalse_doesNotExceedBoundary() (gas: 2970) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteFalse_gasCostForEntireWord() (gas: 80629) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteFalse_gasCostJustBelowBoundary() (gas: 103061) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteFalse_gasCostOnBoundary() (gas: 80629) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteFalse_returnsTheNextInitializedTickFromTheNextWord() (gas: 23828) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteFalse_returnsTheNextWordsInitializedTickIfOnTheRightBoundary() (gas: 2950) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteFalse_returnsTheNextWordsInitializedTickIfOnTheRightBoundary2() (gas: 3394) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteFalse_returnsTheTickDirectlyToTheRight() (gas: 3329) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteFalse_returnsTheTickDirectlyToTheRight2() (gas: 3387) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteFalse_returnsTickToRightIfAtInitializedTick() (gas: 3394) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteFalse_returnsTickToRightIfAtInitializedTick2() (gas: 3412) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteFalse_skipsEntireWord() (gas: 2927) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteFalse_skipsHalfWord() (gas: 2949) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteTrue_atTheWordBoundary() (gas: 2926) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteTrue_boundaryIsInitialized() (gas: 23680) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteTrue_entireEmptyWord() (gas: 2947) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteTrue_gasCostForEntireWord() (gas: 80606) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteTrue_gasCostJustBelowBoundary() (gas: 103348) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteTrue_gasCostOnBoundary() (gas: 80606) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteTrue_halfwayThroughEmptyWord() (gas: 2970) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteTrue_returnsSameTickIfInitialized() (gas: 3256) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteTrue_returnsTickDirectlyToTheLeftOfInputTickIfNotInitialized() (gas: 3280) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteTrue_willNotExceedTheWordBoundary() (gas: 2949) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteTrue_wordBoundary() (gas: 3012) -TickBitmapTest:test_nextInitializedTickWithinOneWord_lteTrue_wordBoundaryLess1nextInitializedTickInNextWord() (gas: 3218) -TickMathTestTest:test_MAX_TICK_equalsNegativeMIN_TICK() (gas: 6686) -TickMathTestTest:test_MIN_TICK_equalsNegativeMAX_TICK() (gas: 6662) -TickMathTestTest:test_getSqrtRatioAtTick_isGreaterThanJSImplMaxTick() (gas: 6909) -TickMathTestTest:test_getSqrtRatioAtTick_isLessThanJSImplMinTick() (gas: 6718) -TickMathTestTest:test_getSqrtRatioAtTick_isValidMaxTick() (gas: 9795) -TickMathTestTest:test_getSqrtRatioAtTick_isValidMaxTickSubOne() (gas: 6967) -TickMathTestTest:test_getSqrtRatioAtTick_isValidMinTick() (gas: 9494) -TickMathTestTest:test_getSqrtRatioAtTick_isValidMinTickAddOne() (gas: 6819) -TickMathTestTest:test_getSqrtRatioAtTick_matchesJavaScriptImplByOneHundrethOfABip() (gas: 865500) -TickMathTestTest:test_getSqrtRatioAtTick_throwsForTooHigh() (gas: 8800) -TickMathTestTest:test_getSqrtRatioAtTick_throwsForTooLow() (gas: 8736) -TickMathTestTest:test_getTickAtSqrtRatio_isValidMaxSqrtRatioMinusOne() (gas: 8287) -TickMathTestTest:test_getTickAtSqrtRatio_isValidMinSqrtRatio() (gas: 8008) -TickMathTestTest:test_getTickAtSqrtRatio_isValidMinSqrtRatioPlusOne() (gas: 8173) -TickMathTestTest:test_getTickAtSqrtRatio_isValidRatioClosestToMaxTick() (gas: 8462) -TickMathTestTest:test_getTickAtSqrtRatio_matchesJavascriptImplWithin1() (gas: 376378) -TickMathTestTest:test_getTickAtSqrtRatio_throwsForTooHigh() (gas: 8681) -TickMathTestTest:test_getTickAtSqrtRatio_throwsForTooLow() (gas: 8692) -TickTest:testTick_clear_deletesAllTheDataInTheTick() (gas: 8080) -TickTest:testTick_cross_flipsTheGrowthVariables() (gas: 68414) -TickTest:testTick_cross_twoFlipsAreNoOp() (gas: 69119) -TickTest:testTick_getFeeGrowthInside_returns0ForTwoUninitializedTicksIfTickIsAbove() (gas: 75692) -TickTest:testTick_getFeeGrowthInside_returns0ForTwoUninitializedTicksIfTickIsBelow() (gas: 75655) -TickTest:testTick_getFeeGrowthInside_returnsAllForTwoUninitializedTicksIfTickIsInside() (gas: 56028) -TickTest:testTick_getFeeGrowthInside_subtractsLowerTickIfAbove() (gas: 98673) -TickTest:testTick_getFeeGrowthInside_subtractsUpperAndLowerTickIfInside() (gas: 141292) -TickTest:testTick_getFeeGrowthInside_subtractsUpperTickIfBelow() (gas: 98732) -TickTest:testTick_getFeeGrowthInside_worksCorrectlyWithOverflowOnInsideTick() (gas: 141509) -TickTest:testTick_tickSpacingToMaxLiquidityPerTick_gasCost60TickSpacing() (gas: 78180) -TickTest:testTick_tickSpacingToMaxLiquidityPerTick_gasCostMaxTickSpacing() (gas: 78203) -TickTest:testTick_tickSpacingToMaxLiquidityPerTick_gasCostMinTickSpacing() (gas: 78202) -TickTest:testTick_tickSpacingToMaxLiquidityPerTick_returnsTheCorrectValueFor2302() (gas: 1724) -TickTest:testTick_tickSpacingToMaxLiquidityPerTick_returnsTheCorrectValueForEntireRange() (gas: 2049) -TickTest:testTick_tickSpacingToMaxLiquidityPerTick_returnsTheCorrectValueForHighFee() (gas: 1702) -TickTest:testTick_tickSpacingToMaxLiquidityPerTick_returnsTheCorrectValueForLowFee() (gas: 1745) -TickTest:testTick_tickSpacingToMaxLiquidityPerTick_returnsTheCorrectValueForMaxTickSpacing() (gas: 1746) -TickTest:testTick_tickSpacingToMaxLiquidityPerTick_returnsTheCorrectValueForMediumFee() (gas: 1746) -TickTest:testTick_tickSpacingToMaxLiquidityPerTick_returnsTheCorrectValueForMinTickSpacing() (gas: 1745) -TickTest:testTick_tickSpacingToParametersInvariants_fuzz(int24) (runs: 100, μ: 5304, ~: 5304) -TickTest:testTick_update_assumesAllGrowthHappensBelowTicksLteCurrentTick() (gas: 134932) -TickTest:testTick_update_doesNotFlipFromNonzeroToGreaterNonzero() (gas: 35992) -TickTest:testTick_update_doesNotFlipFromNonzeroToLesserZero() (gas: 36113) -TickTest:testTick_update_doesNotSetAnyGrowthFieldsForTicksGtCurrentTick() (gas: 94471) -TickTest:testTick_update_doesNotSetAnyGrowthFieldsIfTickIsAlreadyInitialized() (gas: 136268) -TickTest:testTick_update_flipsFromNonzeroToZero() (gas: 24659) -TickTest:testTick_update_flipsFromZeroToNonzero() (gas: 34678) -TickTest:testTick_update_liquidityParsing_parsesMaxInt128StoredLiquidityGrossAfterUpdate() (gas: 95728) -TickTest:testTick_update_liquidityParsing_parsesMaxInt128StoredLiquidityGrossBeforeUpdate() (gas: 95617) -TickTest:testTick_update_liquidityParsing_parsesMaxUint128StoredLiquidityGrossAfterUpdate() (gas: 95657) -TickTest:testTick_update_liquidityParsing_parsesMaxUint128StoredLiquidityGrossBeforeUpdate() (gas: 95361) -TickTest:testTick_update_netsTheLiquidityBasedOnUpperFlag() (gas: 39512) -TickTest:testTick_update_revertsOnOverflowLiquidityGross() (gas: 38987) \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8ea3c73a4..fff1e17a1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -39,9 +39,4 @@ jobs: run: forge test -vvv env: FOUNDRY_PROFILE: ci - - - name: Run forge snapshots - run: forge snapshot --check --tolerance 25 - env: - FOUNDRY_PROFILE: ci - FOUNDRY_FUZZ_SEED: "0x4444" +