-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gas-snapshot
205 lines (205 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
204
205
AssetManagedPairTest:testAdjustManagement(uint256,uint256) (runs: 256, μ: 313762, ~: 314127)
AssetManagedPairTest:testAdjustManagement_AdjustAfterLoss(uint256) (runs: 256, μ: 533889, ~: 538510)
AssetManagedPairTest:testAdjustManagement_DecreaseManagement(uint256,uint256) (runs: 256, μ: 500183, ~: 501030)
AssetManagedPairTest:testAdjustManagement_GreaterThanUint104() (gas: 121228)
AssetManagedPairTest:testAdjustManagement_Int256Min() (gas: 121610)
AssetManagedPairTest:testAdjustManagement_KStillHolds(uint256) (runs: 256, μ: 662147, ~: 661618)
AssetManagedPairTest:testAdjustManagement_Uint104() (gas: 647474)
AssetManagedPairTest:testBurn_AfterAlmostTotalLoss() (gas: 649878)
AssetManagedPairTest:testBurn_AfterLoss(uint256,uint256) (runs: 256, μ: 731663, ~: 722874)
AssetManagedPairTest:testMint_AfterLoss(uint256,uint256) (runs: 256, μ: 630609, ~: 642834)
AssetManagedPairTest:testSetManager() (gas: 126046)
AssetManagedPairTest:testSetManager_CannotMigrateWithManaged(uint256,uint256) (runs: 256, μ: 408864, ~: 409229)
AssetManagedPairTest:testSkimExcessManaged() (gas: 402814)
AssetManagedPairTest:testSkimExcessManaged_InvalidToken() (gas: 69512)
AssetManagedPairTest:testSkimExcessManaged_NoExcess() (gas: 303815)
AssetManagedPairTest:testSwap_AfterLoss(uint256) (runs: 256, μ: 825194, ~: 829704)
AssetManagedPairTest:testSync(uint256,uint256,uint256,uint256) (runs: 256, μ: 519916, ~: 528247)
AssetManagedPairTest:testSyncManaged_ConstantProduct(uint256,uint256) (runs: 256, μ: 348581, ~: 356773)
AssetManagedPairTest:testSyncManaged_Stable(uint256,uint256) (runs: 256, μ: 413452, ~: 409324)
BufferTest:testAdd_IndexGreaterThanBufferSize(uint16,uint16) (runs: 256, μ: 4346, ~: 4290)
BufferTest:testNext_AtLimit() (gas: 445)
BufferTest:testNext_GreaterThanBufferSize(uint16) (runs: 256, μ: 4515, ~: 4450)
BufferTest:testPrev_AtLimit() (gas: 500)
BufferTest:testSub_IndexGreaterThanBufferSize(uint16,uint16) (runs: 256, μ: 4407, ~: 4351)
ConstantProductMathTest:testCalcLogPrice_ReturnsOneWeiWhenPriceDiffGreaterThan1e18(uint256,uint256) (runs: 256, μ: 8377, ~: 8351)
ConstantProductMathTest:testConstantProductOracleMath() (gas: 27828)
ConstantProductPairGas:testGasBurn() (gas: 95376)
ConstantProductPairGas:testGasMint() (gas: 102694)
ConstantProductPairGas:testGasMint_Initial() (gas: 215771)
ConstantProductPairGas:testGasSwap() (gas: 85614)
ConstantProductPairGas:testGasSwap_UpdateOracle() (gas: 93621)
ConstantProductPairGas:testGasSwap_UpdateOracleClamped() (gas: 90297)
ConstantProductPairTest:testBurn() (gas: 137654)
ConstantProductPairTest:testBurn_Zero() (gas: 75611)
ConstantProductPairTest:testMint() (gas: 105845)
ConstantProductPairTest:testMint_InitialMint() (gas: 29198)
ConstantProductPairTest:testMint_JustAboveMinimumLiquidity() (gas: 5229720)
ConstantProductPairTest:testMint_MinimumLiquidity() (gas: 5177200)
ConstantProductPairTest:testMint_UnderMinimumLiquidity() (gas: 5122764)
ConstantProductPairTest:testOracle_ClampedPrice_AtLimit() (gas: 157160)
ConstantProductPairTest:testOracle_ClampedPrice_NoDiffWithinLimit() (gas: 158168)
ConstantProductPairTest:testOracle_ClampedPrice_OverLimit() (gas: 159642)
ConstantProductPairTest:testOracle_CorrectPrice(uint32) (runs: 256, μ: 5426135, ~: 5426193)
ConstantProductPairTest:testOracle_CorrectPriceDiffDecimals(uint32) (runs: 256, μ: 5337600, ~: 5337601)
ConstantProductPairTest:testOracle_SimplePrices(uint32) (runs: 256, μ: 5383358, ~: 5383358)
ConstantProductPairTest:testSwap() (gas: 110771)
ConstantProductPairTest:testSwap_ExactOut(uint256) (runs: 256, μ: 110282, ~: 100275)
ConstantProductPairTest:testSwap_ExactOutExceedReserves() (gas: 40749)
ConstantProductPairTest:testSwap_ExactOut_NewReservesExceedUint104() (gas: 81361)
ConstantProductPairTest:testSwap_ExtremeAmounts() (gas: 5274974)
ConstantProductPairTest:testSwap_MinInt256() (gas: 17101)
ConstantProductPairTest:testSwap_Reenter() (gas: 79880)
FixedPointMathLibTest:testFullMulDiv(uint256,uint256,uint256) (runs: 256, μ: 7408, ~: 6917)
FixedPointMathLibTest:testMulDiv(uint256,uint256,uint256) (runs: 256, μ: 7658, ~: 6795)
FlashSwapTest:testSwap_FlashSwap_ExactIn(uint256) (runs: 256, μ: 298964, ~: 244263)
FlashSwapTest:testSwap_FlashSwap_ExactOut(uint256) (runs: 256, μ: 263878, ~: 245063)
FlashSwapTest:testSwap_FlashSwap_NoPay(uint256) (runs: 256, μ: 184667, ~: 186366)
GenericFactoryGasTest:testCreateConstantProductPair() (gas: 5039427)
GenericFactoryGasTest:testCreateFactory() (gas: 6232226)
GenericFactoryGasTest:testCreateStablePair() (gas: 5354251)
GenericFactoryTest:testAddCurve() (gas: 115442)
GenericFactoryTest:testAddCurve_OnlyOwner() (gas: 13592)
GenericFactoryTest:testAllPairs() (gas: 10376781)
GenericFactoryTest:testCreatePair_AllCurves(uint256) (runs: 256, μ: 5202376, ~: 5202163)
GenericFactoryTest:testCreatePair_Create2AddressCorrect() (gas: 10701132)
GenericFactoryTest:testCreatePair_CurveDoesNotExist(uint256) (runs: 256, μ: 21517, ~: 21512)
GenericFactoryTest:testCreatePair_IdenticalAddress(uint256) (runs: 256, μ: 15000, ~: 14941)
GenericFactoryTest:testCreatePair_MoreThan18Decimals(uint256) (runs: 256, μ: 202320, ~: 202107)
GenericFactoryTest:testCreatePair_PairAlreadyExists(uint256) (runs: 256, μ: 19451, ~: 19392)
GenericFactoryTest:testCreatePair_ZeroAddress(uint256) (runs: 256, μ: 15021, ~: 14962)
GenericFactoryTest:testGetBytecode_CorrectConstructorData() (gas: 368345)
GenericFactoryTest:testGetPair() (gas: 18228)
OracleCallerTest:testObservation_NotWhitelisted(uint256) (runs: 256, μ: 88110, ~: 88674)
OracleCallerTest:testWhitelistAddress() (gas: 147150)
OracleCallerTest:testWhitelistAddress_NotOwner() (gas: 15117)
OracleWriterTest:testMaxChangeRate_Default() (gas: 66146)
OracleWriterTest:testObservation_NotOracleCaller(uint256) (runs: 256, μ: 78347, ~: 78903)
OracleWriterTest:testOracle_MintWrongPriceThenConverge() (gas: 247899032)
OracleWriterTest:testOracle_NoWriteInSameTimestamp() (gas: 513812)
OracleWriterTest:testOracle_OverflowAccPrice(uint32) (runs: 256, μ: 410825, ~: 410755)
OracleWriterTest:testOracle_SamePriceDiffLiq(uint32) (runs: 256, μ: 10959313, ~: 10959316)
OracleWriterTest:testOracle_SamePriceSameLiq(uint32) (runs: 256, μ: 10956590, ~: 10956593)
OracleWriterTest:testOracle_SameReservesDiffPrice(uint32) (runs: 256, μ: 10946003, ~: 10946004)
OracleWriterTest:testOracle_WrapsAroundAfterFull() (gas: 4325744875)
OracleWriterTest:testSetClampParams_OnlyFactory() (gas: 88578)
OracleWriterTest:testSetClampParams_TooHigh(uint256) (runs: 256, μ: 76470, ~: 76716)
OracleWriterTest:testSetClampParams_TooLow() (gas: 68300)
OracleWriterTest:testUpdateOracleCaller() (gas: 113151)
OracleWriterTest:testUpdateOracleCaller_NoChange() (gas: 81330)
OracleWriterTest:testUpdateOracle_AccumulateOldPricesNotNew() (gas: 241307)
OracleWriterTest:testUpdateOracle_DecreasePrice_ExceedBothMaxChangeRateAndMaxChangePerTrade() (gas: 408399)
OracleWriterTest:testUpdateOracle_DecreasePrice_ExceedMaxChangePerTrade() (gas: 331088)
OracleWriterTest:testUpdateOracle_DecreasePrice_ExceedMaxChangeRate() (gas: 331524)
OracleWriterTest:testUpdateOracle_DecreasePrice_LongElapsedTime() (gas: 329436)
OracleWriterTest:testUpdateOracle_LatestTimestampWritten(uint256) (runs: 256, μ: 315784, ~: 316310)
OracleWriterTest:testUpdateOracle_MintThenSwapSameBlock() (gas: 339625)
OracleWriterTest:testUpdateOracle_MultipleSwapsSameBlock() (gas: 450032)
OracleWriterTest:testWriteObservations() (gas: 462336)
PairTest:testCustomPlatformFee_OffByDefault() (gas: 71752)
PairTest:testCustomSwapFee_OffByDefault() (gas: 65987)
PairTest:testEmitEventOnCreation() (gas: 10373650)
PairTest:testNonPayable() (gas: 79170)
PairTest:testRecoverToken() (gas: 197932)
PairTest:testSetPlatformFeeForPair() (gas: 109095)
PairTest:testSetPlatformFeeForPair_BreachMaximum(uint256) (runs: 256, μ: 111032, ~: 110489)
PairTest:testSetPlatformFeeForPair_Reset() (gas: 117312)
PairTest:testSetSwapFeeForPair() (gas: 109207)
PairTest:testSetSwapFeeForPair_BreachMaximum(uint256) (runs: 256, μ: 110838, ~: 110406)
PairTest:testSetSwapFeeForPair_Reset() (gas: 123208)
PairTest:testSwapFee_UseDefault() (gas: 14955)
PairTest:testUpdateDefaultFees() (gas: 161424)
ReservoirERC20Gas:testGasApprove() (gas: 31847)
ReservoirERC20Gas:testGasBurn() (gas: 17550)
ReservoirERC20Gas:testGasMint() (gas: 36848)
ReservoirERC20Gas:testGasPermit() (gas: 70835)
ReservoirERC20Gas:testGasTransfer() (gas: 36963)
ReservoirERC20Gas:testGasTransferFrom() (gas: 40603)
ReservoirERC20Test:testApprove_TransferAll() (gas: 50551)
ReservoirERC20Test:testApprove_TransferOne() (gas: 67079)
ReservoirERC20Test:testApprove_TransferTooMuch() (gas: 39261)
ReservoirPairTest:testCheckedTransfer_RevertWhenTransferFail() (gas: 140133)
ReservoirPairTest:testCheckedTransfer_RevertWhenTransferReverts() (gas: 389232)
ReservoirPairTest:testPlatformFee_Disable() (gas: 1016300)
ReservoirPairTest:testPlatformFee_DisableReenable() (gas: 1479141)
ReservoirPairTest:testReentrancyGuard_LargeTimestamp() (gas: 159965)
ReservoirPairTest:testSkim(uint256,uint256) (runs: 256, μ: 257828, ~: 257729)
ReservoirPairTest:testSync() (gas: 190687)
ReservoirTimelockTest:testRampA(uint32) (runs: 256, μ: 36393, ~: 36393)
ReservoirTimelockTest:testRampA_NotAdmin() (gas: 17548)
ReservoirTimelockTest:testSetCustomPlatformFee(uint256) (runs: 256, μ: 133291, ~: 134189)
ReservoirTimelockTest:testSetCustomPlatformFee_NotAdmin() (gas: 80709)
ReservoirTimelockTest:testSetCustomSwapFee(uint256) (runs: 256, μ: 133399, ~: 134191)
ReservoirTimelockTest:testSetCustomSwapFee_NotAdmin() (gas: 80685)
StableMathTest:testComputeLiquidityFromAdjustedBalances_ConvergeEvenWithVeryUnbalancedValues(uint256,uint256,uint256) (runs: 256, μ: 15278, ~: 12921)
StableMathTest:testGetAmountIn(uint256,uint256,uint256) (runs: 256, μ: 23807, ~: 23918)
StableMathTest:testGetAmountOut(uint256,uint256,uint256) (runs: 256, μ: 26252, ~: 26013)
StableMathTest:testMinALessThanMaxA() (gas: 266)
StablePairGas:testGasBurn() (gas: 119903)
StablePairGas:testGasMint() (gas: 139142)
StablePairGas:testGasMint_Initial() (gas: 287468)
StablePairGas:testGasSwap() (gas: 84737)
StablePairGas:testGasSwap_UpdateOracle() (gas: 109696)
StablePairGas:testGasSwap_UpdateOracleClamped() (gas: 106901)
StablePairTest:testAttackWhileRampingDown_LongInterval() (gas: 210569)
StablePairTest:testAttackWhileRampingDown_ShortInterval() (gas: 211574)
StablePairTest:testBurn() (gas: 157614)
StablePairTest:testBurn_DiffDecimalPlaces(uint256) (runs: 256, μ: 5650972, ~: 5650742)
StablePairTest:testBurn_LastInvariantUseReserveInsteadOfBalance() (gas: 298626)
StablePairTest:testBurn_Reenter() (gas: 54326)
StablePairTest:testBurn_SucceedEvenIfMintFeeReverts() (gas: 162089)
StablePairTest:testBurn_WhenRampingA(uint256,uint32) (runs: 256, μ: 362197, ~: 362302)
StablePairTest:testBurn_Zero() (gas: 94655)
StablePairTest:testFactoryAmpTooHigh() (gas: 345931)
StablePairTest:testFactoryAmpTooLow() (gas: 340932)
StablePairTest:testGetCurrentA() (gas: 32113)
StablePairTest:testMint() (gas: 127428)
StablePairTest:testMintFee_CallableBySelf() (gas: 21204)
StablePairTest:testMintFee_DiffPlatformFees(uint256) (runs: 256, μ: 7321160, ~: 7322777)
StablePairTest:testMintFee_NotCallableByOthers() (gas: 11625)
StablePairTest:testMintFee_WhenRampingA_PoolBalanced(uint256) (runs: 256, μ: 7376423, ~: 7376539)
StablePairTest:testMintFee_WhenRampingA_PoolUnbalanced(uint256) (runs: 256, μ: 6694082, ~: 6693911)
StablePairTest:testMint_CalculationOverflowInStableMath() (gas: 5463582)
StablePairTest:testMint_NonOptimalProportion() (gas: 183300)
StablePairTest:testMint_NonOptimalProportion_ThenBurn() (gas: 388688)
StablePairTest:testMint_OnlyTransferOneToken() (gas: 5401520)
StablePairTest:testMint_PlatformFeeOff() (gas: 132039)
StablePairTest:testMint_Reenter() (gas: 54160)
StablePairTest:testMint_WhenRampingA(uint256,uint32) (runs: 256, μ: 387162, ~: 387262)
StablePairTest:testOracle_ClampedPrice_NoDiffWithinLimit() (gas: 180223)
StablePairTest:testOracle_CorrectPrice(uint32) (runs: 256, μ: 5801166, ~: 5801166)
StablePairTest:testOracle_SimplePrices(uint32) (runs: 256, μ: 5813821, ~: 5813821)
StablePairTest:testRampA() (gas: 32256)
StablePairTest:testRampA_BreachMaxSpeed() (gas: 24074)
StablePairTest:testRampA_BreachMaxSpeed_Halve() (gas: 24114)
StablePairTest:testRampA_BreachMaximum() (gas: 20070)
StablePairTest:testRampA_BreachMinimum() (gas: 20028)
StablePairTest:testRampA_MaxSpeed_Double() (gas: 26220)
StablePairTest:testRampA_MaxSpeed_Halve() (gas: 26192)
StablePairTest:testRampA_OnlyFactory() (gas: 8749)
StablePairTest:testRampA_SetAtMaximum() (gas: 24888)
StablePairTest:testRampA_SetAtMinimum() (gas: 24910)
StablePairTest:testRampA_SwappingDuringRampingDown(uint256,uint256,uint256,uint256) (runs: 256, μ: 653551, ~: 551321)
StablePairTest:testRampA_SwappingDuringRampingUp(uint256,uint256,uint256,uint256) (runs: 256, μ: 651172, ~: 551353)
StablePairTest:testStopRampA() (gas: 33552)
StablePairTest:testStopRampA_Early(uint256,uint32) (runs: 256, μ: 42321, ~: 42482)
StablePairTest:testStopRampA_Late(uint256) (runs: 256, μ: 40441, ~: 40604)
StablePairTest:testStopRampA_OnlyFactory() (gas: 8442)
StablePairTest:testSwap() (gas: 120997)
StablePairTest:testSwap_BetterPerformanceThanConstantProduct() (gas: 190032)
StablePairTest:testSwap_DiffAs(uint256,uint256,uint256,uint256) (runs: 256, μ: 5723507, ~: 5724819)
StablePairTest:testSwap_DiffSwapFees(uint256) (runs: 256, μ: 5690736, ~: 5691591)
StablePairTest:testSwap_ExactInExceedUint104() (gas: 79049)
StablePairTest:testSwap_ExactOutExceedReserves() (gas: 40881)
StablePairTest:testSwap_IncreasingSwapFees(uint256,uint256,uint256) (runs: 256, μ: 403062, ~: 403339)
StablePairTest:testSwap_MinInt256() (gas: 21216)
StablePairTest:testSwap_Reenter() (gas: 89574)
StablePairTest:testSwap_Token0ExactOut(uint256) (runs: 256, μ: 165272, ~: 142791)
StablePairTest:testSwap_Token1ExactOut(uint256) (runs: 256, μ: 165453, ~: 142928)
StablePairTest:testSwap_VeryLargeLiquidity(uint256) (runs: 256, μ: 5635948, ~: 5632823)
StablePairTest:testSwap_VerySmallLiquidity(uint256,uint256,uint256) (runs: 256, μ: 5686933, ~: 5662112)
StablePairTest:testSwap_ZeroInput() (gas: 14403)
StdMathTest:testPercentDelta() (gas: 573)
StdMathTest:testPercentDelta_MinusOne() (gas: 596)
StdMathTest:testPercentDelta_PlusOne() (gas: 531)
Uint31LibTest:testSub() (gas: 354)