diff --git a/.gas-snapshot b/.gas-snapshot index 45766c3..51dba99 100644 --- a/.gas-snapshot +++ b/.gas-snapshot @@ -1,72 +1,72 @@ -QueryProcessorTest:testFindNearestSample_CanFindExactValue(uint32,uint256,uint256,uint256) (runs: 256, μ: 65090324, ~: 74975370) -QueryProcessorTest:testFindNearestSample_CanFindIntermediateValue(uint32,uint256,uint256,uint256) (runs: 256, μ: 64771162, ~: 74583507) -QueryProcessorTest:testFindNearestSample_NotInitialized() (gas: 1056945756) -QueryProcessorTest:testFindNearestSample_OneSample(uint256) (runs: 256, μ: 80327, ~: 80360) -QueryProcessorTest:testGetInstantValue() (gas: 124248) -QueryProcessorTest:testGetInstantValue_NotInitialized(uint256) (runs: 256, μ: 19397, ~: 19397) -QueryProcessorTest:testGetInstantValue_NotInitialized_BeyondBufferSize(uint8,uint16) (runs: 256, μ: 68389670, ~: 68389600) -QueryProcessorTest:testGetPastAccumulator_BufferEmpty(uint8) (runs: 256, μ: 27016, ~: 27087) -QueryProcessorTest:testGetPastAccumulator_ExactMatch(uint32,uint256,uint256,uint16) (runs: 256, μ: 70591497, ~: 80271384) -QueryProcessorTest:testGetPastAccumulator_ExactMatch_LatestAccumulator(uint32,uint256,uint256) (runs: 256, μ: 69164823, ~: 77928090) -QueryProcessorTest:testGetPastAccumulator_ExactMatch_OldestAccumulator(uint32,uint256,uint256) (runs: 256, μ: 69194817, ~: 77959690) -QueryProcessorTest:testGetPastAccumulator_ExtrapolatesBeyondLatest(uint32,uint256,uint256,uint256) (runs: 256, μ: 64744868, ~: 74555386) -QueryProcessorTest:testGetPastAccumulator_InterpolatesBetweenPastAccumulators(uint32,uint256,uint256,uint256) (runs: 256, μ: 64778894, ~: 74589515) -QueryProcessorTest:testGetPastAccumulator_InvalidAgo(uint32,uint256,uint256,uint256) (runs: 256, μ: 64736471, ~: 74546552) -QueryProcessorTest:testGetPastAccumulator_QueryTooOld(uint32,uint256,uint256,uint256) (runs: 256, μ: 64748015, ~: 74556435) -QueryProcessorTest:testGetTimeWeightedAverage(uint32,uint256,uint256,uint256,uint256) (runs: 256, μ: 102669133, ~: 112352230) -QueryProcessorTest:testGetTimeWeightedAverage_BadSecs() (gas: 10995) -ReservoirPriceOracleTest:testClearRoute() (gas: 52339) -ReservoirPriceOracleTest:testClearRoute_AllWordsCleared() (gas: 159879) -ReservoirPriceOracleTest:testDesignatePair() (gas: 29068) -ReservoirPriceOracleTest:testDesignatePair_IncorrectPair() (gas: 21155) -ReservoirPriceOracleTest:testDesignatePair_NotOwner() (gas: 17553) -ReservoirPriceOracleTest:testDesignatePair_TokenOrderReversed() (gas: 30639) -ReservoirPriceOracleTest:testGetQuote(uint256,uint256) (runs: 256, μ: 34001, ~: 34118) -ReservoirPriceOracleTest:testGetQuote_AmountInTooLarge() (gas: 12963) -ReservoirPriceOracleTest:testGetQuote_BaseIsVault(uint256) (runs: 256, μ: 411282, ~: 411040) -ReservoirPriceOracleTest:testGetQuote_ComplicatedDecimals() (gas: 10354017) -ReservoirPriceOracleTest:testGetQuote_Inverse(uint256,uint256) (runs: 256, μ: 36138, ~: 36254) -ReservoirPriceOracleTest:testGetQuote_MultipleHops() (gas: 111841) -ReservoirPriceOracleTest:testGetQuote_MultipleHops_Inverse() (gas: 112163) -ReservoirPriceOracleTest:testGetQuote_MultipleHops_PriceZero() (gas: 122567) -ReservoirPriceOracleTest:testGetQuote_NoFallbackOracle() (gas: 20820) -ReservoirPriceOracleTest:testGetQuote_PriceZero() (gas: 15958) -ReservoirPriceOracleTest:testGetQuote_RandomizeAllParam_1HopRoute(uint256,uint256,address,address,uint8,uint8) (runs: 256, μ: 5329100, ~: 5329104) -ReservoirPriceOracleTest:testGetQuote_RandomizeAllParam_2HopRoute(uint256,uint256,uint256,address,address,address,uint8,uint8,uint8) (runs: 256, μ: 10496290, ~: 10496408) -ReservoirPriceOracleTest:testGetQuote_SameBaseQuote(uint256,address) (runs: 256, μ: 8941, ~: 8941) -ReservoirPriceOracleTest:testGetQuote_UseFallback() (gas: 38334) -ReservoirPriceOracleTest:testGetQuote_ZeroIn() (gas: 36975) -ReservoirPriceOracleTest:testGetQuotes(uint256,uint256) (runs: 256, μ: 26512, ~: 26629) -ReservoirPriceOracleTest:testPriceCache_Inverted() (gas: 22001) -ReservoirPriceOracleTest:testSetFallbackOracle_NotOwner() (gas: 10938) -ReservoirPriceOracleTest:testSetRoute() (gas: 61093) -ReservoirPriceOracleTest:testSetRoute_InvalidRewardThreshold() (gas: 37330) -ReservoirPriceOracleTest:testSetRoute_InvalidRoute() (gas: 20154) -ReservoirPriceOracleTest:testSetRoute_InvalidRouteLength() (gas: 19294) -ReservoirPriceOracleTest:testSetRoute_MultipleHops() (gas: 201309) -ReservoirPriceOracleTest:testSetRoute_NotSorted() (gas: 13028) -ReservoirPriceOracleTest:testSetRoute_OverwriteExisting() (gas: 169666) -ReservoirPriceOracleTest:testSetRoute_SameToken() (gas: 13041) -ReservoirPriceOracleTest:testUndesignatePair() (gas: 30256) -ReservoirPriceOracleTest:testUndesignatePair_NotOwner() (gas: 15355) -ReservoirPriceOracleTest:testUpdatePrice_AboveThresholdBelowMaxReward(uint256) (runs: 256, μ: 165939, ~: 165959) -ReservoirPriceOracleTest:testUpdatePrice_BelowThreshold(uint256) (runs: 256, μ: 150797, ~: 150473) -ReservoirPriceOracleTest:testUpdatePrice_BeyondMaxReward(uint256) (runs: 256, μ: 163444, ~: 163469) -ReservoirPriceOracleTest:testUpdatePrice_FirstUpdate() (gas: 154418) -ReservoirPriceOracleTest:testUpdatePrice_IntermediateRoutes() (gas: 16111065) -ReservoirPriceOracleTest:testUpdatePrice_PriceOutOfRange() (gas: 5353482) -ReservoirPriceOracleTest:testUpdatePrice_RewardEligible_ContractNoReceive() (gas: 153582) -ReservoirPriceOracleTest:testUpdatePrice_RewardEligible_InsufficientReward(uint256) (runs: 256, μ: 212147, ~: 212363) -ReservoirPriceOracleTest:testUpdatePrice_RewardEligible_ZeroRecipient() (gas: 147250) -ReservoirPriceOracleTest:testUpdateRewardGasAmount() (gas: 19039) -ReservoirPriceOracleTest:testUpdateRewardGasAmount_NotOwner() (gas: 10940) -ReservoirPriceOracleTest:testUpdateTwapPeriod(uint256) (runs: 256, μ: 21687, ~: 21778) -ReservoirPriceOracleTest:testUpdateTwapPeriod_InvalidTwapPeriod(uint256) (runs: 256, μ: 17825, ~: 18120) -ReservoirPriceOracleTest:testWritePriceCache(uint256) (runs: 256, μ: 30219, ~: 29977) -RoutesLibTest:testGetDecimalDifference() (gas: 3974) -RoutesLibTest:testIsCompositeRoute() (gas: 4341) -RoutesLibTest:testPackSimplePrice(int8,uint256) (runs: 256, μ: 8200, ~: 7962) -SamplesTest:testAccumulator() (gas: 3959) -SamplesTest:testAccumulator_BadVariableRequest() (gas: 3523) -SamplesTest:testInstant() (gas: 3909) -SamplesTest:testInstant_BadVariableRequest() (gas: 3566) \ No newline at end of file +QueryProcessorTest:testFindNearestSample_CanFindExactValue(uint32,uint256,uint256,uint256) (runs: 256, μ: 67131189, ~: 74970077) +QueryProcessorTest:testFindNearestSample_CanFindIntermediateValue(uint32,uint256,uint256,uint256) (runs: 256, μ: 67275063, ~: 75584848) +QueryProcessorTest:testFindNearestSample_NotInitialized() (gas: 1056944892) +QueryProcessorTest:testFindNearestSample_OneSample(uint256) (runs: 256, μ: 80136, ~: 80169) +QueryProcessorTest:testGetInstantValue() (gas: 123891) +QueryProcessorTest:testGetInstantValue_NotInitialized(uint256) (runs: 256, μ: 19378, ~: 19378) +QueryProcessorTest:testGetInstantValue_NotInitialized_BeyondBufferSize(uint8,uint16) (runs: 256, μ: 68260442, ~: 68260368) +QueryProcessorTest:testGetPastAccumulator_BufferEmpty(uint8) (runs: 256, μ: 26901, ~: 26962) +QueryProcessorTest:testGetPastAccumulator_ExactMatch(uint32,uint256,uint256,uint16) (runs: 256, μ: 72548137, ~: 80824705) +QueryProcessorTest:testGetPastAccumulator_ExactMatch_LatestAccumulator(uint32,uint256,uint256) (runs: 256, μ: 67657128, ~: 76073918) +QueryProcessorTest:testGetPastAccumulator_ExactMatch_OldestAccumulator(uint32,uint256,uint256) (runs: 256, μ: 67686828, ~: 76105399) +QueryProcessorTest:testGetPastAccumulator_ExtrapolatesBeyondLatest(uint32,uint256,uint256,uint256) (runs: 256, μ: 67249010, ~: 75556685) +QueryProcessorTest:testGetPastAccumulator_InterpolatesBetweenPastAccumulators(uint32,uint256,uint256,uint256) (runs: 256, μ: 67282896, ~: 75591074) +QueryProcessorTest:testGetPastAccumulator_InvalidAgo(uint32,uint256,uint256,uint256) (runs: 256, μ: 67240616, ~: 75547815) +QueryProcessorTest:testGetPastAccumulator_QueryTooOld(uint32,uint256,uint256,uint256) (runs: 256, μ: 67252023, ~: 75558006) +QueryProcessorTest:testGetTimeWeightedAverage(uint32,uint256,uint256,uint256,uint256) (runs: 256, μ: 107327695, ~: 115516665) +QueryProcessorTest:testGetTimeWeightedAverage_BadSecs() (gas: 10981) +ReservoirPriceOracleTest:testClearRoute() (gas: 52216) +ReservoirPriceOracleTest:testClearRoute_AllWordsCleared() (gas: 159654) +ReservoirPriceOracleTest:testDesignatePair() (gas: 29038) +ReservoirPriceOracleTest:testDesignatePair_IncorrectPair() (gas: 21133) +ReservoirPriceOracleTest:testDesignatePair_NotOwner() (gas: 17541) +ReservoirPriceOracleTest:testDesignatePair_TokenOrderReversed() (gas: 30605) +ReservoirPriceOracleTest:testGetQuote(uint256,uint256) (runs: 256, μ: 33689, ~: 33805) +ReservoirPriceOracleTest:testGetQuote_AmountInTooLarge() (gas: 12950) +ReservoirPriceOracleTest:testGetQuote_BaseIsVault(uint256) (runs: 256, μ: 401370, ~: 401124) +ReservoirPriceOracleTest:testGetQuote_ComplicatedDecimals() (gas: 10127860) +ReservoirPriceOracleTest:testGetQuote_Inverse(uint256,uint256) (runs: 256, μ: 35812, ~: 35926) +ReservoirPriceOracleTest:testGetQuote_MultipleHops() (gas: 111603) +ReservoirPriceOracleTest:testGetQuote_MultipleHops_Inverse() (gas: 111924) +ReservoirPriceOracleTest:testGetQuote_MultipleHops_PriceZero() (gas: 122238) +ReservoirPriceOracleTest:testGetQuote_NoFallbackOracle() (gas: 20788) +ReservoirPriceOracleTest:testGetQuote_PriceZero() (gas: 15930) +ReservoirPriceOracleTest:testGetQuote_RandomizeAllParam_1HopRoute(uint256,uint256,address,address,uint8,uint8) (runs: 256, μ: 5198013, ~: 5198035) +ReservoirPriceOracleTest:testGetQuote_RandomizeAllParam_2HopRoute(uint256,uint256,uint256,address,address,address,uint8,uint8,uint8) (runs: 256, μ: 10269557, ~: 10269655) +ReservoirPriceOracleTest:testGetQuote_SameBaseQuote(uint256,address) (runs: 256, μ: 8927, ~: 8927) +ReservoirPriceOracleTest:testGetQuote_UseFallback() (gas: 38250) +ReservoirPriceOracleTest:testGetQuote_ZeroIn() (gas: 36635) +ReservoirPriceOracleTest:testGetQuotes(uint256,uint256) (runs: 256, μ: 26211, ~: 26327) +ReservoirPriceOracleTest:testPriceCache_Inverted() (gas: 21949) +ReservoirPriceOracleTest:testSetFallbackOracle_NotOwner() (gas: 10928) +ReservoirPriceOracleTest:testSetRoute() (gas: 61014) +ReservoirPriceOracleTest:testSetRoute_InvalidRewardThreshold() (gas: 37278) +ReservoirPriceOracleTest:testSetRoute_InvalidRoute() (gas: 20106) +ReservoirPriceOracleTest:testSetRoute_InvalidRouteLength() (gas: 19253) +ReservoirPriceOracleTest:testSetRoute_MultipleHops() (gas: 201105) +ReservoirPriceOracleTest:testSetRoute_NotSorted() (gas: 13006) +ReservoirPriceOracleTest:testSetRoute_OverwriteExisting() (gas: 169491) +ReservoirPriceOracleTest:testSetRoute_SameToken() (gas: 13019) +ReservoirPriceOracleTest:testUndesignatePair() (gas: 30215) +ReservoirPriceOracleTest:testUndesignatePair_NotOwner() (gas: 15344) +ReservoirPriceOracleTest:testUpdatePrice_AboveThresholdBelowMaxReward(uint256) (runs: 256, μ: 163637, ~: 163657) +ReservoirPriceOracleTest:testUpdatePrice_BelowThreshold(uint256) (runs: 256, μ: 148524, ~: 148195) +ReservoirPriceOracleTest:testUpdatePrice_BeyondMaxReward(uint256) (runs: 256, μ: 161152, ~: 161177) +ReservoirPriceOracleTest:testUpdatePrice_FirstUpdate() (gas: 152255) +ReservoirPriceOracleTest:testUpdatePrice_IntermediateRoutes() (gas: 15927172) +ReservoirPriceOracleTest:testUpdatePrice_PriceOutOfRange() (gas: 5288225) +ReservoirPriceOracleTest:testUpdatePrice_RewardEligible_ContractNoReceive() (gas: 151436) +ReservoirPriceOracleTest:testUpdatePrice_RewardEligible_InsufficientReward(uint256) (runs: 256, μ: 209559, ~: 209771) +ReservoirPriceOracleTest:testUpdatePrice_RewardEligible_ZeroRecipient() (gas: 145106) +ReservoirPriceOracleTest:testUpdateRewardGasAmount() (gas: 19027) +ReservoirPriceOracleTest:testUpdateRewardGasAmount_NotOwner() (gas: 10930) +ReservoirPriceOracleTest:testUpdateTwapPeriod(uint256) (runs: 256, μ: 21574, ~: 21656) +ReservoirPriceOracleTest:testUpdateTwapPeriod_InvalidTwapPeriod(uint256) (runs: 256, μ: 17696, ~: 17994) +ReservoirPriceOracleTest:testWritePriceCache(uint256) (runs: 256, μ: 30053, ~: 29807) +RoutesLibTest:testGetDecimalDifference() (gas: 3966) +RoutesLibTest:testIsCompositeRoute() (gas: 4332) +RoutesLibTest:testPackSimplePrice(int8,uint256) (runs: 256, μ: 8097, ~: 7862) +SamplesTest:testAccumulator() (gas: 3952) +SamplesTest:testAccumulator_BadVariableRequest() (gas: 3355) +SamplesTest:testInstant() (gas: 3902) +SamplesTest:testInstant_BadVariableRequest() (gas: 3398) \ No newline at end of file