-
Notifications
You must be signed in to change notification settings - Fork 12
/
.gas-snapshot
199 lines (199 loc) · 14.2 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
TestController:testAcceptAdmin() (gas: 18502)
TestController:testCannotAcceptAdminNonPendingAdminr() (gas: 15378)
TestController:testCannotPauseNonPauseGuardian() (gas: 15422)
TestController:testCannotPauseWhenPaused() (gas: 42262)
TestController:testCannotSetGuardianNonAdmin(address) (runs: 256, μ: 15750, ~: 15750)
TestController:testCannotUnpauseNonPauseGuardian() (gas: 42101)
TestController:testCannotUnpauseWhenNopaused() (gas: 19329)
TestController:testIsAdmin() (gas: 14319)
TestController:testPause() (gas: 41419)
TestController:testSetGuardian(address) (runs: 256, μ: 22086, ~: 22086)
TestController:testSetPendingAdmin(address) (runs: 256, μ: 39674, ~: 39674)
TestController:testUnpause() (gas: 31432)
TestFixedInterestRateModel:testCannotSetInterestRateTooHigh(uint256) (runs: 256, μ: 11748, ~: 11748)
TestFixedInterestRateModel:testGetBorrowRate() (gas: 10580)
TestFixedInterestRateModel:testGetSupplyRate(uint256) (runs: 256, μ: 13244, ~: 13244)
TestFixedInterestRateModel:testSetInterestRate(uint256) (runs: 256, μ: 17785, ~: 18217)
TestMarketRegistry:testCannotAddUTokenNonAdmin() (gas: 16199)
TestMarketRegistry:testCannotAddUserMangerNonAdmin() (gas: 16104)
TestMarketRegistry:testGetUToken(address,address) (runs: 256, μ: 41468, ~: 41468)
TestMarketRegistry:testGetUserManagers(address,address) (runs: 256, μ: 41459, ~: 41459)
TestMarketRegistry:testHasUToken(address,address) (runs: 256, μ: 44961, ~: 44961)
TestMarketRegistry:testHasUserManager(address,address) (runs: 256, μ: 44825, ~: 44825)
TestPureTokenAdapter:testCannotDepositUnsupportedToken() (gas: 14428)
TestPureTokenAdapter:testCannotSetAssetManagerNonAdmin() (gas: 16033)
TestPureTokenAdapter:testCannotSetCeilingNonAdmin() (gas: 16149)
TestPureTokenAdapter:testCannotSetFloorNonAdmin() (gas: 16038)
TestPureTokenAdapter:testCannotWithdrawAllNonAssetManager(address,uint256) (runs: 256, μ: 66464, ~: 68175)
TestPureTokenAdapter:testCannotWithdrawNonAssetManager(uint256) (runs: 256, μ: 65945, ~: 68122)
TestPureTokenAdapter:testClaimRewards() (gas: 14857)
TestPureTokenAdapter:testDeposit() (gas: 18303)
TestPureTokenAdapter:testGetRate() (gas: 10550)
TestPureTokenAdapter:testGetSupply(uint256) (runs: 256, μ: 61733, ~: 63910)
TestPureTokenAdapter:testGetSupplyView(uint256) (runs: 256, μ: 61664, ~: 63841)
TestPureTokenAdapter:testSetAssetManager(address) (runs: 256, μ: 19276, ~: 19276)
TestPureTokenAdapter:testSetCeiling(address,uint256) (runs: 256, μ: 35813, ~: 36669)
TestPureTokenAdapter:testSetFloor(address,uint256) (runs: 256, μ: 35799, ~: 36655)
TestPureTokenAdapter:testSupportsToken() (gas: 27858)
TestPureTokenAdapter:testWithdraw(uint256) (runs: 256, μ: 77374, ~: 79551)
TestPureTokenAdapter:testWithdrawAll(uint256) (runs: 256, μ: 78262, ~: 80439)
TestWadRayMath:testCannotWadMulWhenOverflow() (gas: 3458)
TestWadRayMath:testWadDiv() (gas: 859)
TestWadRayMath:testWadMul() (gas: 930)
TestDebtWriteOff:testCannotDebtWriteOffWhenInsufficientBalance(uint256) (runs: 256, μ: 20529, ~: 20529)
TestDebtWriteOff:testDebtWriteOff(uint256) (runs: 256, μ: 145968, ~: 145971)
TestDepositWithdraw:testCannotDepositNotAdmin() (gas: 29004)
TestDepositWithdraw:testCannotWithdrawBalanceTooLow(uint256) (runs: 256, μ: 36595, ~: 36595)
TestDepositWithdraw:testCannotWithdrawNotAdmin() (gas: 33958)
TestDepositWithdraw:testDeposit(uint256) (runs: 256, μ: 231862, ~: 231862)
TestDepositWithdraw:testDepositAsUToken(uint256) (runs: 256, μ: 160183, ~: 160183)
TestDepositWithdraw:testDepositWhenAdapterRevert(uint256) (runs: 256, μ: 258509, ~: 258509)
TestDepositWithdraw:testWithdraw(uint256) (runs: 256, μ: 177515, ~: 177515)
TestDepositWithdraw:testWithdrawAsUToken(uint256) (runs: 256, μ: 193797, ~: 193800)
TestManageMoneyMarkets:testAddAdapter(address) (runs: 256, μ: 85840, ~: 85840)
TestManageMoneyMarkets:testAddAdapterTwice(address) (runs: 256, μ: 89889, ~: 89889)
TestManageMoneyMarkets:testAddToken(address) (runs: 256, μ: 83413, ~: 83413)
TestManageMoneyMarkets:testCannotAddAdapterNonAdmin(address) (runs: 256, μ: 16143, ~: 16143)
TestManageMoneyMarkets:testCannotAddTokenAlreadyExists(address) (runs: 256, μ: 88000, ~: 88000)
TestManageMoneyMarkets:testCannotAddTokenNonAdmin(address) (runs: 256, μ: 16186, ~: 16186)
TestManageMoneyMarkets:testCannotRemoveAdapterNonAdmin(address) (runs: 256, μ: 90548, ~: 90548)
TestManageMoneyMarkets:testCannotRemoveAdapterWhenRemainingFunds() (gas: 248773)
TestManageMoneyMarkets:testCannotRemoveTokenNonAdmin(address) (runs: 256, μ: 88161, ~: 88161)
TestManageMoneyMarkets:testCannotRemoveTokenWhenRemainingFunds() (gas: 248449)
TestManageMoneyMarkets:testGetMoneyMarket(uint256) (runs: 256, μ: 169666, ~: 170755)
TestManageMoneyMarkets:testRemoveAdapter(address) (runs: 256, μ: 74297, ~: 74280)
TestManageMoneyMarkets:testRemoveMarketsApprovals() (gas: 161890)
TestManageMoneyMarkets:testRemoveToken(address) (runs: 256, μ: 71684, ~: 71668)
TestManageMoneyMarkets:testRemoveTokenApprovals() (gas: 162521)
TestManageMoneyMarkets:testSetMarketRegistry() (gas: 20668)
TestRebalance:testCannotRebalanceNonAdmin() (gas: 18668)
TestRebalance:testCannotRebalanceUnsupported() (gas: 18513)
TestRebalance:testRebalance() (gas: 79024)
TestRebalance:testRebalance5050() (gas: 74892)
TestView:testGetLoanableAmount(uint256) (runs: 256, μ: 66386, ~: 68577)
TestView:testGetLoanableAmountWithPrincipal(uint256) (runs: 256, μ: 230638, ~: 230638)
TestView:testGetPoolBalance(uint256) (runs: 256, μ: 63919, ~: 66096)
TestView:testGetPoolBalanceSupportedMarket(uint256,uint256) (runs: 256, μ: 343193, ~: 345215)
TestView:testIsMarketSupported() (gas: 87066)
TestView:testMoneyMarketsCount() (gas: 171665)
TestView:testSupportedTokensCount() (gas: 86348)
TestView:testTotalSupply(uint256) (runs: 256, μ: 294535, ~: 296168)
TestView:testTotalSupplyView(uint256) (runs: 256, μ: 294600, ~: 296233)
TestDepositWithdraw:testCannotSetWithdrawSequenceNotParity(uint256[]) (runs: 256, μ: 20161, ~: 20171)
TestDepositWithdraw:testSetWithdrawSequence() (gas: 43666)
TestDepositWithdraw:testWithdrawSequence(uint256) (runs: 256, μ: 388831, ~: 388834)
TestCalculateRewards:testCalculateRewardsByBlocks() (gas: 366705)
TestCalculateRewards:testGetRewardsMultiplierMember() (gas: 286142)
TestCalculateRewards:testGetRewardsMultiplierNonMember() (gas: 265532)
TestCalculateRewards:testInflationPerBlock0() (gas: 12799)
TestCalculateRewards:testInflationPerBlock1() (gas: 12845)
TestCalculateRewards:testInflationPerBlock2() (gas: 12867)
TestCalculateRewards:testInflationPerBlock3() (gas: 12912)
TestCalculateRewards:testInflationPerBlock4() (gas: 12934)
TestCalculateRewards:testInflationPerBlock5() (gas: 13002)
TestCalculateRewards:testInflationPerBlock6() (gas: 12959)
TestCalculateRewards:testInflationPerBlock7() (gas: 13035)
TestInternals:testGetInflationIndex() (gas: 22562)
TestInternals:testLookup() (gas: 39296)
TestSetters:testCannotSetHalfDecayPointNonAdmin() (gas: 15813)
TestSetters:testCannotSetHalfDecayPointZero() (gas: 15494)
TestSetters:testCannotUpdateTotalStakedNotUserManager() (gas: 52501)
TestSetters:testSetHalfDecayPoint(uint256) (runs: 256, μ: 21726, ~: 21726)
TestSetters:testUpdateTotalStaked(uint256) (runs: 256, μ: 73612, ~: 73609)
TestWithdrawRewards:testWithdrawRewards() (gas: 359715)
TestBorrowRepay:testBorrowFeeAndInterest(uint256) (runs: 256, μ: 204396, ~: 204396)
TestBorrowRepay:testBorrowWhenNotEnough(uint256) (runs: 256, μ: 186674, ~: 186674)
TestBorrowRepay:testCannotBorrowNonMember() (gas: 22240)
TestBorrowRepay:testDebtWriteOff(uint256) (runs: 256, μ: 159655, ~: 159675)
TestBorrowRepay:testRepayBorrow(uint256) (runs: 256, μ: 276061, ~: 276062)
TestBorrowRepay:testRepayBorrowLessThanInterest(uint256) (runs: 256, μ: 299432, ~: 299432)
TestBorrowRepay:testRepayBorrowOnBehalf(uint256) (runs: 256, μ: 259245, ~: 259246)
TestBorrowRepay:testRepayBorrowOnBehalfAll(uint256) (runs: 256, μ: 252345, ~: 252346)
TestBorrowRepay:testRepayBorrowWhenOverdue(uint256) (runs: 256, μ: 279669, ~: 279670)
TestBorrowRepay:testRepayInterest(uint256) (runs: 256, μ: 286875, ~: 286875)
TestMintRedeem:testExchangeRate() (gas: 408536)
TestMintRedeem:testMintUToken(uint256) (runs: 256, μ: 177763, ~: 177765)
TestMintRedeem:testRedeemUToken(uint256) (runs: 256, μ: 190674, ~: 190676)
TestMintRedeem:testRedeemUTokenWhenRemaining(uint256) (runs: 256, μ: 187184, ~: 187185)
TestMintRedeem:testRedeemUnderlying(uint256) (runs: 256, μ: 190620, ~: 190621)
TestMintRedeem:testSupplyRate() (gas: 21740)
TestReserves:testAddAndRemoveReserve(uint256) (runs: 256, μ: 150772, ~: 150774)
TestReserves:testRemoveReserveWhenRemaining(uint256) (runs: 256, μ: 147796, ~: 147797)
TestSetters:testCannotSetAssetManagerNotAdmin(address) (runs: 256, μ: 15853, ~: 15853)
TestSetters:testCannotSetDebtCeilingNotAdmin(uint256) (runs: 256, μ: 15682, ~: 15682)
TestSetters:testCannotSetInterestRateModelNotAdmin(address) (runs: 256, μ: 15752, ~: 15752)
TestSetters:testCannotSetMaxBorrowNotAdmin(uint256) (runs: 256, μ: 15683, ~: 15683)
TestSetters:testCannotSetMinBorrowNotAdmin(uint256) (runs: 256, μ: 15681, ~: 15681)
TestSetters:testCannotSetOriginationFeeNotAdmin(uint256) (runs: 256, μ: 15683, ~: 15683)
TestSetters:testCannotSetOverdueBlocksNotAdmin(uint256) (runs: 256, μ: 15660, ~: 15660)
TestSetters:testCannotSetReserveFactorExceedLimit(uint256) (runs: 256, μ: 16838, ~: 16838)
TestSetters:testCannotSetReserveFactorNotAdmin(uint256) (runs: 256, μ: 15682, ~: 15682)
TestSetters:testCannotSetUserManagerNotAdmin(address) (runs: 256, μ: 15798, ~: 15798)
TestSetters:testSetAssetManager(address) (runs: 256, μ: 23079, ~: 23079)
TestSetters:testSetDebtCeiling(uint256) (runs: 256, μ: 21949, ~: 22212)
TestSetters:testSetInterestRateModels() (gas: 23244)
TestSetters:testSetMaxBorrow(uint256) (runs: 256, μ: 22043, ~: 22306)
TestSetters:testSetMinBorrow(uint256) (runs: 256, μ: 22062, ~: 22325)
TestSetters:testSetOriginationFee(uint256) (runs: 256, μ: 21997, ~: 22260)
TestSetters:testSetOverdueBlocks(uint256) (runs: 256, μ: 22041, ~: 22304)
TestSetters:testSetReserveFactorModels(uint256) (runs: 256, μ: 22284, ~: 22716)
TestSetters:testSetUserManager(address) (runs: 256, μ: 22971, ~: 22971)
TestGetFrozenInfo:testGetStakeInfo() (gas: 90906)
TestGetFrozenInfo:testGetStakeInfoPastBlocks(uint96) (runs: 256, μ: 114160, ~: 114379)
TestRegister:testCannotRegisterNotEnoughStakers() (gas: 22159)
TestRegister:testCannotRegisterWhenIsMember() (gas: 17788)
TestRegister:testCannotReigsterWithZeroVouchStakers() (gas: 191273)
TestRegister:testRegister() (gas: 381745)
TestSettersAndQuery:testAddMember(address) (runs: 256, μ: 40639, ~: 40639)
TestSettersAndQuery:testCannotAddMemberNotAdmin(address) (runs: 256, μ: 15817, ~: 15817)
TestSettersAndQuery:testCannotSetEffectiveCountNotAdmin(uint256) (runs: 256, μ: 15684, ~: 15684)
TestSettersAndQuery:testCannotSetMaxOverdueNotAdmin(uint96) (runs: 256, μ: 15748, ~: 15748)
TestSettersAndQuery:testCannotSetMaxStakeAmountNotAdmin(uint96) (runs: 256, μ: 15756, ~: 15756)
TestSettersAndQuery:testCannotSetNewMemberFeeNotAdmin(uint96) (runs: 256, μ: 15769, ~: 15769)
TestSettersAndQuery:testCannotSetUTokenNotAdmin(address) (runs: 256, μ: 15798, ~: 15798)
TestSettersAndQuery:testGetCreditLimit() (gas: 29152)
TestSettersAndQuery:testGetLockedStake(uint96) (runs: 256, μ: 67463, ~: 67682)
TestSettersAndQuery:testGetStakerBalance() (gas: 12782)
TestSettersAndQuery:testGetTotalLockedStake(uint96) (runs: 256, μ: 64616, ~: 64835)
TestSettersAndQuery:testGetVoucherCount() (gas: 12830)
TestSettersAndQuery:testGetVouchingAmount() (gas: 28628)
TestSettersAndQuery:testSetEffectiveCount(uint256) (runs: 256, μ: 22766, ~: 23696)
TestSettersAndQuery:testSetMaxOverdue(uint96) (runs: 256, μ: 23008, ~: 23290)
TestSettersAndQuery:testSetMaxStakeAmount(uint96) (runs: 256, μ: 23567, ~: 23567)
TestSettersAndQuery:testSetNewMemberFee(uint96) (runs: 256, μ: 23006, ~: 23288)
TestSettersAndQuery:testSetUToken(address) (runs: 256, μ: 23761, ~: 23761)
TestStakeAndUnstake:testCannotStakeAboveLimit(uint96) (runs: 256, μ: 31383, ~: 31383)
TestStakeAndUnstake:testCannotStakeWhenDepositFailed(uint96) (runs: 256, μ: 172553, ~: 179662)
TestStakeAndUnstake:testCannotUnstakeAboveStake(uint96) (runs: 256, μ: 152456, ~: 152456)
TestStakeAndUnstake:testCannotUnstakeWhenWithdrawFailed(uint96) (runs: 256, μ: 160356, ~: 160356)
TestStakeAndUnstake:testStake(uint96) (runs: 256, μ: 148433, ~: 148436)
TestStakeAndUnstake:testUnstake(uint96) (runs: 256, μ: 162255, ~: 162257)
TestStakeAndUnstake:testUnstakeWhenRemaining(uint96) (runs: 256, μ: 163110, ~: 163110)
TestUpdateFrozenInfo:testUpdateFrozenInfo() (gas: 174646)
TestUpdateLocked:testCannotUpdateWithRemaining(uint96) (runs: 256, μ: 139848, ~: 139848)
TestUpdateLocked:testLocksEntireCreditline() (gas: 147621)
TestUpdateLocked:testLocksFirstInFirst(uint96) (runs: 256, μ: 67533, ~: 67752)
TestUpdateLocked:testUnlocksFirstInFirst() (gas: 145364)
TestUpdateLocked:testUpdatesLastUpdated(uint96) (runs: 256, μ: 70050, ~: 70269)
TestUpdateTrust:testCancelNoVouch() (gas: 21340)
TestUpdateTrust:testCancelStakeNonZero() (gas: 211220)
TestUpdateTrust:testCancelVouch(uint96) (runs: 256, μ: 143946, ~: 143953)
TestUpdateTrust:testCannotCancelNotStakerOrBorrower() (gas: 18907)
TestUpdateTrust:testCannotLessThanOutstanding() (gas: 189)
TestUpdateTrust:testCannotNonMember() (gas: 16279)
TestUpdateTrust:testCannotOnSelf() (gas: 18785)
TestUpdateTrust:testCannotOverdue() (gas: 181040)
TestUpdateTrust:testCannotRecieveVouchesForMoreThanMaxLimit() (gas: 231663)
TestUpdateTrust:testCannotVouchForMoreThanMaxLimit() (gas: 304007)
TestUpdateTrust:testCreatesVouch(uint96) (runs: 256, μ: 174393, ~: 174393)
TestUpdateTrust:testExistingVouch(uint96,uint96) (runs: 256, μ: 179945, ~: 179945)
TestUpdateTrust:testGetCreditLimit(uint96) (runs: 256, μ: 179906, ~: 179906)
TestUpdateTrust:testSavesVouchIndex() (gas: 169389)
TestWriteOffDebt:testCannotVoucherNotFound(uint96) (runs: 256, μ: 32036, ~: 32036)
TestWriteOffDebt:testCannotWriteOffDebtAmountZero() (gas: 18000)
TestWriteOffDebt:testCannotWriteOffDebtExceedsLocked(uint96) (runs: 256, μ: 38822, ~: 38822)
TestWriteOffDebt:testCannotWriteOffDebtNoAuth(uint96) (runs: 256, μ: 32073, ~: 32073)
TestWriteOffDebt:testDebtWriteOffAll() (gas: 111532)
TestWriteOffDebt:testDebtWriteOffPart(uint96,uint96) (runs: 256, μ: 116887, ~: 116887)
TestWriteOffDebt:testDebtWriteOffPartWithFrozen(uint96,uint96) (runs: 256, μ: 122862, ~: 122862)
TestWriteOffDebt:testDebtWriteOffPartWithoutFrozen(uint96,uint96) (runs: 256, μ: 228658, ~: 228658)