Skip to content

Commit 6149c67

Browse files
committed
โœจ Add info logs
1 parent dacfa69 commit 6149c67

File tree

7 files changed

+65
-50
lines changed

7 files changed

+65
-50
lines changed

โ€ŽREADME.mdโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- run: forge test --gas-report > gasreport.ansi
3535

3636
- name: Compare gas reports
37-
uses: Rubilmax/foundry-gas-report@v2
37+
uses: Rubilmax/foundry-gas-report@v2.1
3838
with:
3939
workflowId: foundry-gas-report.yml # must be the name of the workflow file
4040
ignore: test/**/* # optionally filter out gas reports from specific paths

โ€Ž__tests__/mocks/gas_report.1.ansiโ€Ž

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
installing solc version "0.8.13"
22
Successfully installed solc 0.8.13
33
Compiling 87 files with 0.8.13
4-
Solc 0.8.13 finished in 29.46s
4+
Solc 0.8.13 finished in 37.23s
55
Compiler run successful
66

77
Running 8 tests for test-foundry/compound/TestBorrow.t.sol:TestBorrow
@@ -13,12 +13,12 @@ Running 8 tests for test-foundry/compound/TestBorrow.t.sol:TestBorrow
1313
[PASS] testBorrow6() (gas: 9764653)
1414
[PASS] testBorrowMultipleAssets() (gas: 1451008)
1515
[PASS] testBorrowOnPoolThreshold() (gas: 1188466)
16-
Test result: ok. 8 passed; 0 failed; finished in 52.32s
16+
Test result: ok. 8 passed; 0 failed; finished in 54.71s
1717

1818
Running 11 tests for test-foundry/compound/TestEth.t.sol:TestEth
1919
[PASS] testBorrowEthInP2P() (gas: 1673930)
2020
[PASS] testBorrowEthOnPool() (gas: 1294931)
21-
[PASS] testRepayEthInP2P() (gas: 2116767)
21+
[PASS] testRepayEthInP2P() (gas: 2116767)a
2222
[PASS] testRepayEthOnPool() (gas: 1467685)
2323
[PASS] testShouldGetEthMarketConfiguration() (gas: 62730)
2424
[PASS] testShouldLiquidateUserWithEthAsCollateral() (gas: 2685318)
@@ -27,7 +27,7 @@ Running 11 tests for test-foundry/compound/TestEth.t.sol:TestEth
2727
[PASS] testSupplyEthOnPool() (gas: 545941)
2828
[PASS] testWithdrawEthInP2P() (gas: 1953208)
2929
[PASS] testWithdrawEthOnPool() (gas: 755950)
30-
Test result: ok. 11 passed; 0 failed; finished in 8.22s
30+
Test result: ok. 11 passed; 0 failed; finished in 9.97s
3131

3232
Running 12 tests for test-foundry/compound/TestFees.t.sol:TestFees
3333
[PASS] testOnlyOwnerCanSetTreasuryVault() (gas: 27635)
@@ -42,7 +42,7 @@ Running 12 tests for test-foundry/compound/TestFees.t.sol:TestFees
4242
[PASS] testShouldPayFee() (gas: 4617709)
4343
[PASS] testShouldReduceTheFeeToRepay() (gas: 4652828)
4444
[PASS] testShouldRevertWhenClaimingToZeroAddress() (gas: 3986060)
45-
Test result: ok. 12 passed; 0 failed; finished in 3.58s
45+
Test result: ok. 12 passed; 0 failed; finished in 3.82s
4646

4747
Running 16 tests for test-foundry/compound/TestGovernance.t.sol:TestGovernance
4848
[PASS] testOnlyOwnerCanCreateMarkets() (gas: 537403)
@@ -61,7 +61,7 @@ Running 16 tests for test-foundry/compound/TestGovernance.t.sol:TestGovernance
6161
[PASS] testShouldDeployContractWithTheRightValues() (gas: 30540)
6262
[PASS] testShouldRevertWhenCreatingMarketWithAnImproperMarket() (gas: 60324)
6363
[PASS] testShouldSetMaxGasWithRightValues() (gas: 52228)
64-
Test result: ok. 16 passed; 0 failed; finished in 3.60s
64+
Test result: ok. 16 passed; 0 failed; finished in 3.75s
6565

6666
Running 8 tests for test-foundry/compound/TestIncentivesVault.t.sol:TestIncentivesVault
6767
[PASS] testFailWhenContractNotActive() (gas: 39113)
@@ -72,7 +72,7 @@ Running 8 tests for test-foundry/compound/TestIncentivesVault.t.sol:TestIncentiv
7272
[PASS] testOnlyOwnerShouldSetPauseStatus() (gas: 30779)
7373
[PASS] testOnlyOwnerShouldTransferTokensToDao() (gas: 57911)
7474
[PASS] testShouldGiveTheRightAmountOfRewards() (gas: 272730)
75-
Test result: ok. 8 passed; 0 failed; finished in 1.22s
75+
Test result: ok. 8 passed; 0 failed; finished in 1.29s
7676

7777
Running 6 tests for test-foundry/compound/TestInterestRates.t.sol:TestInterestRates
7878
[PASS] testIndexComputation() (gas: 23153)
@@ -81,7 +81,7 @@ Running 6 tests for test-foundry/compound/TestInterestRates.t.sol:TestInterestRa
8181
[PASS] testIndexComputationWithDelta() (gas: 27428)
8282
[PASS] testIndexComputationWithDeltaAndReserveFactor() (gas: 27471)
8383
[PASS] testIndexComputationWithReserveFactor() (gas: 23197)
84-
Test result: ok. 6 passed; 0 failed; finished in 8.89ms
84+
Test result: ok. 6 passed; 0 failed; finished in 3.62ms
8585

8686
Running 42 tests for test-foundry/compound/TestLens.t.sol:TestLens
8787
[PASS] testComputeLiquidation() (gas: 1814249)
@@ -126,7 +126,7 @@ Running 42 tests for test-foundry/compound/TestLens.t.sol:TestLens
126126
[PASS] testUserLiquidityDataForAssetWithSupply() (gas: 598077)
127127
[PASS] testUserLiquidityDataForAssetWithSupplyAndBorrow() (gas: 1236591)
128128
[PASS] testUserLiquidityDataForAssetWithSupplyAndBorrowWithMultipleAssets() (gas: 1366374)
129-
Test result: ok. 42 passed; 0 failed; finished in 15.86s
129+
Test result: ok. 42 passed; 0 failed; finished in 16.25s
130130

131131
Running 7 tests for test-foundry/compound/TestLiquidate.t.sol:TestLiquidate
132132
[PASS] testCannotBorrowLiquidateInSameBlock() (gas: 1791689)
@@ -136,38 +136,38 @@ Running 7 tests for test-foundry/compound/TestLiquidate.t.sol:TestLiquidate
136136
[PASS] testShouldLiquidateWhileInP2PAndPool() (gas: 3481373)
137137
[PASS] testShouldNotBePossibleToLiquidateUserAboveWater() (gas: 1348944)
138138
[PASS] testShouldPartiallyLiquidateWhileInP2PAndPool() (gas: 3488742)
139-
Test result: ok. 7 passed; 0 failed; finished in 6.89s
139+
Test result: ok. 7 passed; 0 failed; finished in 7.47s
140140

141141
Running 4 tests for test-foundry/compound/TestMarketMember.t.sol:TestMarketMember
142142
[PASS] testShouldNotLiquidateUserNotOnMemberOfMarketAsBorrow() (gas: 1297949)
143143
[PASS] testShouldNotLiquidateUserNotOnMemberOfMarketAsCollateral() (gas: 1298273)
144144
[PASS] testShouldNotRepayWhenNotMarketMember() (gas: 70749)
145145
[PASS] testShouldNotWithdrawWhenNotMarketMember() (gas: 42227)
146-
Test result: ok. 4 passed; 0 failed; finished in 608.99ms
146+
Test result: ok. 4 passed; 0 failed; finished in 607.83ms
147147

148148
Running 4 tests for test-foundry/compound/TestMarketStrategy.t.sol:TestMarketStrategy
149149
[PASS] testShouldPutBorrowerOnPool() (gas: 1649052)
150150
[PASS] testShouldPutBorrowersOnPool() (gas: 2974938)
151151
[PASS] testShouldPutSupplierOnPool() (gas: 1649060)
152152
[PASS] testShouldPutSuppliersOnPool() (gas: 2201505)
153-
Test result: ok. 4 passed; 0 failed; finished in 877.39ms
153+
Test result: ok. 4 passed; 0 failed; finished in 973.45ms
154154

155155
Running 5 tests for test-foundry/compound/TestMorphoGetters.t.sol:TestMorphoGetters
156156
[PASS] testEnteredMarkets() (gas: 1203515)
157157
[PASS] testFailUserLeftMarkets() (gas: 952855)
158158
[PASS] testGetAllMarkets() (gas: 55384)
159159
[PASS] testGetHead() (gas: 1762534)
160160
[PASS] testGetNext() (gas: 38294486)
161-
Test result: ok. 5 passed; 0 failed; finished in 104.99s
161+
Test result: ok. 5 passed; 0 failed; finished in 110.43s
162162

163163
Running 1 test for test-foundry/compound/TestMorphoUtils.t.sol:TestMorphoUtils
164164
[PASS] testUserShouldNotUpdateP2PIndexesOfMarketNotCreated() (gas: 21001)
165-
Test result: ok. 1 passed; 0 failed; finished in 34.61ms
165+
Test result: ok. 1 passed; 0 failed; finished in 49.30ms
166166

167167
Running 2 tests for test-foundry/compound/TestP2PDisable.t.sol:TestP2PDisable
168168
[PASS] testShouldMatchBorrowDeltaWithP2PDisabled() (gas: 3722265)
169169
[PASS] testShouldMatchSupplyDeltaWithP2PDisabled() (gas: 2776843)
170-
Test result: ok. 2 passed; 0 failed; finished in 115.38ms
170+
Test result: ok. 2 passed; 0 failed; finished in 131.27ms
171171

172172
Running 7 tests for test-foundry/compound/TestPausableMarket.t.sol:TestPausableMarket
173173
[PASS] testOnlyOwnerShouldTriggerPartialPauseFunction() (gas: 49981)
@@ -177,7 +177,7 @@ Running 7 tests for test-foundry/compound/TestPausableMarket.t.sol:TestPausableM
177177
[PASS] testShouldDisableMarketWhenPaused() (gas: 3507469)
178178
[PASS] testShouldOnlyEnableRepayWithdrawLiquidateWhenPartiallyPaused() (gas: 4114195)
179179
[PASS] testShouldTriggerFunctionsWhenNotPaused() (gas: 2751285)
180-
Test result: ok. 7 passed; 0 failed; finished in 215.58ms
180+
Test result: ok. 7 passed; 0 failed; finished in 240.84ms
181181

182182
Running 39 tests for test-foundry/compound/TestRatesLens.t.sol:TestRatesLens
183183
[PASS] testAverageBorrowRateShouldEqual0WhenNoBorrow() (gas: 139351)
@@ -219,7 +219,7 @@ Running 39 tests for test-foundry/compound/TestRatesLens.t.sol:TestRatesLens
219219
[PASS] testUserRatesShouldEqualP2PRatesWhenFullyMatched() (gas: 2294065)
220220
[PASS] testUserSupplyRateShouldEqualMidrateWhenHalfMatched() (gas: 2051945)
221221
[PASS] testUserSupplyRateShouldEqualPoolRateWhenNotMatched() (gas: 606862)
222-
Test result: ok. 39 passed; 0 failed; finished in 2.37s
222+
Test result: ok. 39 passed; 0 failed; finished in 2.69s
223223

224224
Running 11 tests for test-foundry/compound/TestSupply.t.sol:TestSupply
225225
[PASS] testFailSupplyZero() (gas: 27213)
@@ -233,7 +233,7 @@ Running 11 tests for test-foundry/compound/TestSupply.t.sol:TestSupply
233233
[PASS] testSupplyOnPoolThreshold() (gas: 422567)
234234
[PASS] testSupplyRepayOnBehalf() (gas: 1722779)
235235
[PASS] testSupplyUpdateIndexesSameAsCompound() (gas: 1634879)
236-
Test result: ok. 11 passed; 0 failed; finished in 53.36s
236+
Test result: ok. 11 passed; 0 failed; finished in 57.36s
237237

238238
Running 12 tests for test-foundry/compound/TestUpgradeable.t.sol:TestUpgradeable
239239
[PASS] testLensImplementationsShouldBeInitialized() (gas: 15162)
@@ -248,7 +248,7 @@ Running 12 tests for test-foundry/compound/TestUpgradeable.t.sol:TestUpgradeable
248248
[PASS] testUpgradeLens() (gas: 4907058)
249249
[PASS] testUpgradeMorpho() (gas: 3733583)
250250
[PASS] testUpgradeRewardsManager() (gas: 1037240)
251-
Test result: ok. 12 passed; 0 failed; finished in 73.69ms
251+
Test result: ok. 12 passed; 0 failed; finished in 88.07ms
252252

253253
Running 15 tests for test-foundry/compound/TestWithdraw.t.sol:TestWithdraw
254254
[PASS] testDeltaWithdraw() (gas: 109649792)
@@ -266,7 +266,7 @@ Running 15 tests for test-foundry/compound/TestWithdraw.t.sol:TestWithdraw
266266
[PASS] testWithdrawAll() (gas: 796039)
267267
[PASS] testWithdrawWhileAttackerSendsCToken() (gas: 2292227)
268268
[PASS] testWithdrawnOnPoolThreshold() (gas: 601135)
269-
Test result: ok. 15 passed; 0 failed; finished in 10.25s
269+
Test result: ok. 15 passed; 0 failed; finished in 11.09s
270270

271271
Running 15 tests for test-foundry/compound/TestRepay.t.sol:TestRepay
272272
[PASS] testCannotBorrowRepayInSameBlock() (gas: 1309315)
@@ -284,13 +284,13 @@ Running 15 tests for test-foundry/compound/TestRepay.t.sol:TestRepay
284284
[PASS] testRepayOnPoolThreshold() (gas: 1435211)
285285
[PASS] testRepayRepayOnBehalf() (gas: 1463431)
286286
[PASS] testRepayUpdateIndexesSameAsCompound() (gas: 3355141)
287-
Test result: ok. 15 passed; 0 failed; finished in 82.77s
287+
Test result: ok. 15 passed; 0 failed; finished in 88.20s
288288

289289
Running 3 tests for test-foundry/compound/TestRoundings.t.sol:TestRounding
290290
[PASS] testRoundingError1() (gas: 531881)
291291
[PASS] testRoundingError2() (gas: 417481)
292292
[PASS] testRoundingError3() (gas: 595622)
293-
Test result: ok. 3 passed; 0 failed; finished in 1.32s
293+
Test result: ok. 3 passed; 0 failed; finished in 1.41s
294294

295295
Running 19 tests for test-foundry/compound/TestRewards.t.sol:TestRewards
296296
[PASS] testFailShouldNotClaimRewardsWhenRewardsManagerIsAddressZero() (gas: 3585442)
@@ -312,7 +312,7 @@ Running 19 tests for test-foundry/compound/TestRewards.t.sol:TestRewards
312312
[PASS] testShouldUpdateCorrectSupplyIndex() (gas: 1457380)
313313
[PASS] testShouldUpdateCorrectSupplyIndexWhenSpeedIs0() (gas: 1276761)
314314
[PASS] testUsersShouldClaimRewardsIndependently() (gas: 4667193)
315-
Test result: ok. 19 passed; 0 failed; finished in 9.42s
315+
Test result: ok. 19 passed; 0 failed; finished in 9.86s
316316
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
317317
โ”‚ contracts/compound/IncentivesVault.sol:IncentivesVault contract โ”† โ”† โ”† โ”† โ”† โ”‚
318318
โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ชโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ชโ•โ•โ•โ•โ•โ•โ•โ•ชโ•โ•โ•โ•โ•โ•โ•โ•โ•ชโ•โ•โ•โ•โ•โ•โ•โ•ชโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ก

0 commit comments

Comments
ย (0)