-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gas-snapshot
203 lines (203 loc) · 14 KB
/
.gas-snapshot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
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_GreaterThanUint104() (gas: 124232)
AssetManagedPairTest:testAdjustManagement_Int256Min() (gas: 124764)
AssetManagedPairTest:testAdjustManagement_KStillHolds(uint256) (runs: 256, μ: 632771, ~: 632429)
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:testSetManager() (gas: 131642)
AssetManagedPairTest:testSetManager_CannotMigrateWithManaged(uint256,uint256) (runs: 256, μ: 412052, ~: 412332)
AssetManagedPairTest:testSkimExcessManaged() (gas: 406472)
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)
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)
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: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, μ: 283135, ~: 240823)
FlashSwapTest:testSwap_FlashSwap_ExactOut(uint256) (runs: 256, μ: 259938, ~: 250754)
FlashSwapTest:testSwap_FlashSwap_NoPay(uint256) (runs: 256, μ: 175029, ~: 176637)
GenericFactoryGasTest:testCreateConstantProductPair() (gas: 4411143)
GenericFactoryGasTest:testCreateFactory() (gas: 847078)
GenericFactoryGasTest:testCreateStablePair() (gas: 5222532)
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: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: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:testSetClampParams_OnlyFactory() (gas: 91155)
OracleWriterTest:testSetClampParams_TooHigh(uint256) (runs: 256, μ: 76549, ~: 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)
PairTest:testCustomPlatformFee_OffByDefault() (gas: 74381)
PairTest:testCustomSwapFee_OffByDefault() (gas: 68833)
PairTest:testEmitEventOnCreation() (gas: 9611407)
PairTest:testNonPayable() (gas: 79592)
PairTest:testRecoverToken() (gas: 200069)
PairTest:testSetPlatformFeeForPair() (gas: 111080)
PairTest:testSetPlatformFeeForPair_BreachMaximum(uint256) (runs: 256, μ: 110814, ~: 110445)
PairTest:testSetPlatformFeeForPair_Reset() (gas: 118525)
PairTest:testSetSwapFeeForPair() (gas: 112048)
PairTest:testSetSwapFeeForPair_BreachMaximum(uint256) (runs: 256, μ: 111034, ~: 110691)
PairTest:testSetSwapFeeForPair_Reset() (gas: 125017)
PairTest:testSwapFee_UseDefault() (gas: 19026)
PairTest:testUpdateDefaultFees() (gas: 166371)
ReservoirERC20Gas:testGasApprove() (gas: 31635)
ReservoirERC20Gas:testGasBurn() (gas: 17690)
ReservoirERC20Gas:testGasMint() (gas: 36680)
ReservoirERC20Gas:testGasPermit() (gas: 70545)
ReservoirERC20Gas:testGasTransfer() (gas: 37114)
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)
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, μ: 136525, ~: 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: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)
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:testGetCurrentA() (gas: 32277)
StablePairTest:testMint() (gas: 118033)
StablePairTest:testMintFee_CallableBySelf() (gas: 16698)
StablePairTest:testMintFee_DiffPlatformFees(uint256) (runs: 256, μ: 6926947, ~: 6928193)
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:testRampA() (gas: 32550)
StablePairTest:testRampA_BreachMaxSpeed() (gas: 24046)
StablePairTest:testRampA_BreachMaxSpeed_Halve() (gas: 23585)
StablePairTest:testRampA_BreachMaximum() (gas: 20193)
StablePairTest:testRampA_BreachMinimum() (gas: 19800)
StablePairTest:testRampA_MaxSpeed_Double() (gas: 27967)
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:testStopRampA() (gas: 34839)
StablePairTest:testStopRampA_Early(uint256,uint32) (runs: 256, μ: 43059, ~: 43162)
StablePairTest:testStopRampA_Late(uint256) (runs: 256, μ: 42500, ~: 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)