-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.txt
More file actions
866 lines (841 loc) · 96.8 KB
/
Copy path.txt
File metadata and controls
866 lines (841 loc) · 96.8 KB
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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
Compiling 48 files with Solc 0.8.26
Solc 0.8.26 finished in 3.47s
Compiler run successful with warnings:
Warning (5159): "selfdestruct" has been deprecated. Note that, starting from the Cancun hard fork, the underlying opcode no longer deletes the code and data associated with an account and only transfers its Ether to the beneficiary, unless executed in the same transaction in which the contract was created (see EIP-6780). Any use in newly deployed contracts is strongly discouraged even if the new behavior is taken into account. Future changes to the EVM might further reduce the functionality of the opcode.
--> test/utils/SelfDestruct.sol:16:9:
|
16 | selfdestruct(recipient); // 💣 sends all ETH to recipient, deletes this contract
| ^^^^^^^^^^^^
Warning (2072): Unused local variable.
--> test/unit/YieldAggregatorTest.t.sol:412:9:
|
412 | uint256 OWNER_USDC_BALANCE_AFTER_INVESTING = IERC20(AAVE_ETH_MAINNET_USDC_ADDRESS).balanceOf(OWNER);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning (2072): Unused local variable.
--> test/unit/YieldAggregatorTest.t.sol:471:10:
|
471 | (bool success,) = address(yieldAggregator).call{value: 1 ether}("");
| ^^^^^^^^^^^^
Warning (2072): Unused local variable.
--> test/unit/YieldAggregatorTest.t.sol:497:10:
|
497 | (bool success,) = address(selfDestructContract).call{value: 1 ether}("");
| ^^^^^^^^^^^^
Warning (2072): Unused local variable.
--> test/unit/YieldAggregatorTest.t.sol:517:10:
|
517 | (bool success,) = address(selfDestructContract).call{value: 1 ether}("");
| ^^^^^^^^^^^^
Warning (2072): Unused local variable.
--> test/unit/YieldAggregatorTest.t.sol:951:9:
|
951 | uint256 SECOND_INVESTED_AMOUNT = 5000e6;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning (2072): Unused local variable.
--> test/unit/YieldAggregatorTest.t.sol:964:9:
|
964 | uint256 OWNER_USDC_BALANCE_BEFORE_INVESTING_FIRST_TIME = IERC20(AAVE_ETH_MAINNET_USDC_ADDRESS).balanceOf(OWNER);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning (2072): Unused local variable.
--> test/unit/YieldAggregatorTest.t.sol:979:9:
|
979 | uint256 ownerFirstPositionIndex =
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning (2072): Unused local variable.
--> test/unit/YieldAggregatorTest.t.sol:987:9:
|
987 | uint256 SECOND_INVESTED_AMOUNT = 5000e6;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning (2072): Unused local variable.
--> test/unit/YieldAggregatorTest.t.sol:1003:9:
|
1003 | uint256 OWNER_USDC_BALANCE_BEFORE_INVESTING_FIRST_TIME = IERC20(AAVE_ETH_MAINNET_USDC_ADDRESS).balanceOf(OWNER);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning (2072): Unused local variable.
--> test/unit/YieldAggregatorTest.t.sol:1018:9:
|
1018 | uint256 ownerFirstPositionIndex = yieldAggregator.invest(AAVE_ETH_MAINNET_USDC_ADDRESS, INVESTED_AMOUNT, "");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning (2072): Unused local variable.
--> test/unit/YieldAggregatorTest.t.sol:1024:9:
|
1024 | uint256 SECOND_INVESTED_AMOUNT = 5000e6;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning (2072): Unused local variable.
--> test/unit/YieldAggregatorTest.t.sol:1040:9:
|
1040 | uint256 OWNER_USDC_BALANCE_BEFORE_INVESTING_FIRST_TIME = IERC20(AAVE_ETH_MAINNET_USDC_ADDRESS).balanceOf(OWNER);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning (2018): Function state mutability can be restricted to view
--> src/adapters/AaveV3Adapter.sol:158:5:
|
158 | function getShareValue(address token, uint256 shares) external returns (uint256) {
| ^ (Relevant source part starts here and spans across multiple lines).
Warning (2018): Function state mutability can be restricted to view
--> src/adapters/CompoundV3Adapter.sol:109:5:
|
109 | function getShareValue(
| ^ (Relevant source part starts here and spans across multiple lines).
Analysing contracts...
Running tests...
Ran 24 tests for test/unit/YieldAggregatorTest.t.sol:YieldAggregatorTest
[PASS] testAddAdapterRevertsIfNotOwner() (gas: 19967)
[PASS] testAddAdapterRevertsIfZeroAddress() (gas: 17632)
[PASS] testAddCompoundAdapterIsSuccessful() (gas: 828754)
[PASS] testGetUserPositionsAfterInvestment() (gas: 3835728)
[PASS] testGetUserValueAndEarnedYield__Aave() (gas: 4161892)
[PASS] testGetUserValueAndEarnedYield__Compound() (gas: 3817669)
[PASS] testInvestRevertsIfCallerHasInsuffucientBalance() (gas: 3457788)
[PASS] testInvestRevertsIfInvalidTokenAddress() (gas: 3455513)
[PASS] testInvestRevertsIfZeroAmount() (gas: 3455471)
[PASS] testMultipleUsersCanInvestAndWithdrawSuccessfully__Aave() (gas: 4465358)
[PASS] testMultipleUsersCanInvestAndWithdrawSuccessfully__Compound() (gas: 4008832)
[PASS] testOwnerCanInvestIntoASpecificProtocolSuccesfully__Aave() (gas: 4140489)
[PASS] testOwnerCanInvestIntoASpecificProtocolSuccesfully__Compound() (gas: 3787817)
[PASS] testOwnerCanWithdrawFromASpecificProtocolSuccessfully__Aave() (gas: 4071999)
[PASS] testOwnerCanWithdrawFromASpecificProtocolSuccessfully__Compound() (gas: 3674441)
[PASS] testReceiveFunctionReverts() (gas: 20236)
[PASS] testRevertsIfInvestmentPositionDoesNotExist() (gas: 4145684)
[PASS] testRevertsIfProtocolIsNotSupported() (gas: 3727402)
[PASS] testRevertsIfUserTokenBalanceIsInsufficientWhileInvesting() (gas: 3540277)
[PASS] testUserCanInvestAndWithdrawSuccessfullyMultipleTimes__Aave() (gas: 4272572)
[PASS] testUserCanInvestAndWithdrawSuccessfullyMultipleTimes__Compound() (gas: 3835788)
[PASS] testWithdrawETHRevertsIncaseOfInsufficientBalance() (gas: 326406)
[PASS] testWithdrawETHWorksIncaseOfSelfDestruct() (gas: 332107)
[PASS] testWithdrawETHrevertsIfNotOwner() (gas: 19395)
Suite result: ok. 24 passed; 0 failed; 0 skipped; finished in 117.20s (385.24s CPU time)
Ran 1 test suite in 117.25s (117.20s CPU time): 24 tests passed, 0 failed, 0 skipped (24 total tests)
src/YieldAggregator.sol:
- Line (location: (source ID: 37, lines: 131..135, bytes: 6067..6188), hits: 21) -> "modifier validAmount(uint256 amo...nvalidAmount();\n _;\n }"
- Function "validAmount" (location: (source ID: 37, lines: 131..135, bytes: 6067..6188), hits: 21) -> "modifier validAmount(uint256 amo...nvalidAmount();\n _;\n }"
- Line (location: (source ID: 37, lines: 132..133, bytes: 6118..6129), hits: 21) -> "amount == 0"
- Statement (location: (source ID: 37, lines: 132..133, bytes: 6118..6129), hits: 21) -> "amount == 0"
- Statement (location: (source ID: 37, lines: 132..133, bytes: 6131..6170), hits: 1) -> "revert YieldAggregator__InvalidAmount()"
- Branch (branch: 0, path: 0) (location: (source ID: 37, lines: 132..133, bytes: 6131..6170), hits: 1) -> "revert YieldAggregator__InvalidAmount()"
- Line (location: (source ID: 37, lines: 136..140, bytes: 6194..6352), hits: 20) -> "modifier noneZeroAddress(address...apterAddress();\n _;\n }"
- Function "noneZeroAddress" (location: (source ID: 37, lines: 136..140, bytes: 6194..6352), hits: 20) -> "modifier noneZeroAddress(address...apterAddress();\n _;\n }"
- Line (location: (source ID: 37, lines: 137..138, bytes: 6257..6285), hits: 20) -> "adapterAddress == address(0)"
- Statement (location: (source ID: 37, lines: 137..138, bytes: 6257..6285), hits: 20) -> "adapterAddress == address(0)"
- Statement (location: (source ID: 37, lines: 137..138, bytes: 6287..6334), hits: 1) -> "revert YieldAggregator__InvalidAdapterAddress()"
- Branch (branch: 1, path: 0) (location: (source ID: 37, lines: 137..138, bytes: 6287..6334), hits: 1) -> "revert YieldAggregator__InvalidAdapterAddress()"
- Line (location: (source ID: 37, lines: 141..145, bytes: 6358..6484), hits: 20) -> "modifier validToken(address toke...InvalidToken();\n _;\n }"
- Function "validToken" (location: (source ID: 37, lines: 141..145, bytes: 6358..6484), hits: 20) -> "modifier validToken(address toke...InvalidToken();\n _;\n }"
- Line (location: (source ID: 37, lines: 142..143, bytes: 6407..6426), hits: 20) -> "token == address(0)"
- Statement (location: (source ID: 37, lines: 142..143, bytes: 6407..6426), hits: 20) -> "token == address(0)"
- Statement (location: (source ID: 37, lines: 142..143, bytes: 6428..6466), hits: 1) -> "revert YieldAggregator__InvalidToken()"
- Branch (branch: 2, path: 0) (location: (source ID: 37, lines: 142..143, bytes: 6428..6466), hits: 1) -> "revert YieldAggregator__InvalidToken()"
- Line (location: (source ID: 37, lines: 166..169, bytes: 7353..7445), hits: 1) -> "receive() external payable {\n ..._ETHDepositNotSupported();\n }"
- Function "receive" (location: (source ID: 37, lines: 166..169, bytes: 7353..7445), hits: 1) -> "receive() external payable {\n ..._ETHDepositNotSupported();\n }"
- Line (location: (source ID: 37, lines: 167..168, bytes: 7390..7438), hits: 1) -> "revert YieldAggregator__ETHDepositNotSupported()"
- Statement (location: (source ID: 37, lines: 167..168, bytes: 7390..7438), hits: 1) -> "revert YieldAggregator__ETHDepositNotSupported()"
- Line (location: (source ID: 37, lines: 179..182, bytes: 7988..8118), hits: 3) -> "function withdrawETH(address pay... _withdrawETH(to, amount);\n }"
- Function "withdrawETH" (location: (source ID: 37, lines: 179..182, bytes: 7988..8118), hits: 3) -> "function withdrawETH(address pay... _withdrawETH(to, amount);\n }"
- Line (location: (source ID: 37, lines: 180..181, bytes: 8087..8111), hits: 2) -> "_withdrawETH(to, amount)"
- Statement (location: (source ID: 37, lines: 180..181, bytes: 8087..8111), hits: 2) -> "_withdrawETH(to, amount)"
- Line (location: (source ID: 37, lines: 187..195, bytes: 8159..8389), hits: 20) -> "function addAdapter(string memor...ocolName, adapterAddress);\n }"
- Function "addAdapter" (location: (source ID: 37, lines: 187..195, bytes: 8159..8389), hits: 20) -> "function addAdapter(string memor...ocolName, adapterAddress);\n }"
- Line (location: (source ID: 37, lines: 193..194, bytes: 8341..8382), hits: 18) -> "_addAdapter(protocolName, adapterAddress)"
- Statement (location: (source ID: 37, lines: 193..194, bytes: 8341..8382), hits: 18) -> "_addAdapter(protocolName, adapterAddress)"
- Line (location: (source ID: 37, lines: 200..203, bytes: 8598..8702), hits: 11) -> "function withdraw(uint256 positi... _withdraw(positionIndex);\n }"
- Function "withdraw" (location: (source ID: 37, lines: 200..203, bytes: 8598..8702), hits: 11) -> "function withdraw(uint256 positi... _withdraw(positionIndex);\n }"
- Line (location: (source ID: 37, lines: 201..202, bytes: 8671..8695), hits: 11) -> "_withdraw(positionIndex)"
- Statement (location: (source ID: 37, lines: 201..202, bytes: 8671..8695), hits: 11) -> "_withdraw(positionIndex)"
- Line (location: (source ID: 37, lines: 204..213, bytes: 8708..8998), hits: 21) -> "function invest(address token, u...mount, preferredProtocol);\n }"
- Function "invest" (location: (source ID: 37, lines: 204..213, bytes: 8708..8998), hits: 21) -> "function invest(address token, u...mount, preferredProtocol);\n }"
- Line (location: (source ID: 37, lines: 211..212, bytes: 8934..8991), hits: 19) -> "positionIndex = _invest(token, amount, preferredProtocol)"
- Statement (location: (source ID: 37, lines: 211..212, bytes: 8934..8991), hits: 19) -> "positionIndex = _invest(token, amount, preferredProtocol)"
- Line (location: (source ID: 37, lines: 223..239, bytes: 9543..9986), hits: 2) -> "function _withdrawETH(address pa...ETHWithdrawal(to, amount);\n }"
- Function "_withdrawETH" (location: (source ID: 37, lines: 223..239, bytes: 9543..9986), hits: 2) -> "function _withdrawETH(address pa...ETHWithdrawal(to, amount);\n }"
- Line (location: (source ID: 37, lines: 225..226, bytes: 9642..9672), hits: 2) -> "address(this).balance < amount"
- Statement (location: (source ID: 37, lines: 225..226, bytes: 9642..9672), hits: 2) -> "address(this).balance < amount"
- Branch (branch: 3, path: 0) (location: (source ID: 37, lines: 225..228, bytes: 9674..9747), hits: 1) -> "{\n revert YieldAggreg...ufficientETHBalance();\n }"
- Line (location: (source ID: 37, lines: 226..227, bytes: 9688..9736), hits: 1) -> "revert YieldAggregator__InsufficientETHBalance()"
- Statement (location: (source ID: 37, lines: 226..227, bytes: 9688..9736), hits: 1) -> "revert YieldAggregator__InsufficientETHBalance()"
- Line (location: (source ID: 37, lines: 232..233, bytes: 9801..9845), hits: 1) -> "(bool success,) = to.call{value: amount}(\"\")"
- Statement (location: (source ID: 37, lines: 232..233, bytes: 9801..9845), hits: 1) -> "(bool success,) = to.call{value: amount}(\"\")"
- Statement (location: (source ID: 37, lines: 232..233, bytes: 9819..9845), hits: 1) -> "to.call{value: amount}(\"\")"
- Line (location: (source ID: 37, lines: 233..234, bytes: 9859..9867), hits: 1) -> "!success"
- Statement (location: (source ID: 37, lines: 233..234, bytes: 9859..9867), hits: 1) -> "!success"
- Branch (branch: 4, path: 0) (location: (source ID: 37, lines: 233..236, bytes: 9869..9939), hits: 0) -> "{\n revert YieldAggreg...FailedETHWithdrawal();\n }"
- Line (location: (source ID: 37, lines: 234..235, bytes: 9883..9928), hits: 0) -> "revert YieldAggregator__FailedETHWithdrawal()"
- Statement (location: (source ID: 37, lines: 234..235, bytes: 9883..9928), hits: 0) -> "revert YieldAggregator__FailedETHWithdrawal()"
- Line (location: (source ID: 37, lines: 237..238, bytes: 9949..9979), hits: 1) -> "emit ETHWithdrawal(to, amount)"
- Statement (location: (source ID: 37, lines: 237..238, bytes: 9949..9979), hits: 1) -> "emit ETHWithdrawal(to, amount)"
- Line (location: (source ID: 37, lines: 245..250, bytes: 10228..10434), hits: 18) -> "function _addAdapter(string memo...ocolName, adapterAddress);\n }"
- Function "_addAdapter" (location: (source ID: 37, lines: 245..250, bytes: 10228..10434), hits: 18) -> "function _addAdapter(string memo...ocolName, adapterAddress);\n }"
- Line (location: (source ID: 37, lines: 246..247, bytes: 10320..10369), hits: 18) -> "s_protocolAdapters[protocolName] = adapterAddress"
- Statement (location: (source ID: 37, lines: 246..247, bytes: 10320..10369), hits: 18) -> "s_protocolAdapters[protocolName] = adapterAddress"
- Line (location: (source ID: 37, lines: 248..249, bytes: 10380..10427), hits: 18) -> "emit AdapterAdded(protocolName, adapterAddress)"
- Statement (location: (source ID: 37, lines: 248..249, bytes: 10380..10427), hits: 18) -> "emit AdapterAdded(protocolName, adapterAddress)"
- Line (location: (source ID: 37, lines: 271..306, bytes: 11638..14150), hits: 11) -> "function _withdraw(uint256 posit...colName, amountWithdrawn);\n }"
- Function "_withdraw" (location: (source ID: 37, lines: 271..306, bytes: 11638..14150), hits: 11) -> "function _withdraw(uint256 posit...colName, amountWithdrawn);\n }"
- Line (location: (source ID: 37, lines: 274..275, bytes: 11908..11984), hits: 11) -> "UserPosition[] storage userInves...ns = s_userPositions[msg.sender]"
- Statement (location: (source ID: 37, lines: 274..275, bytes: 11908..11984), hits: 11) -> "UserPosition[] storage userInves...ns = s_userPositions[msg.sender]"
- Line (location: (source ID: 37, lines: 276..277, bytes: 12106..12153), hits: 11) -> "positionIndex >= userInvestmentPositions.length"
- Statement (location: (source ID: 37, lines: 276..277, bytes: 12106..12153), hits: 11) -> "positionIndex >= userInvestmentPositions.length"
- Branch (branch: 5, path: 0) (location: (source ID: 37, lines: 276..279, bytes: 12155..12222), hits: 1) -> "{\n revert YieldAggreg...r__PositionNotFound();\n }"
- Line (location: (source ID: 37, lines: 277..278, bytes: 12169..12211), hits: 1) -> "revert YieldAggregator__PositionNotFound()"
- Statement (location: (source ID: 37, lines: 277..278, bytes: 12169..12211), hits: 1) -> "revert YieldAggregator__PositionNotFound()"
- Line (location: (source ID: 37, lines: 281..282, bytes: 12312..12381), hits: 10) -> "UserPosition memory position = u...vestmentPositions[positionIndex]"
- Statement (location: (source ID: 37, lines: 281..282, bytes: 12312..12381), hits: 10) -> "UserPosition memory position = u...vestmentPositions[positionIndex]"
- Line (location: (source ID: 37, lines: 283..284, bytes: 12750..12809), hits: 10) -> "address adapter = s_protocolAdapters[position.protocolName]"
- Statement (location: (source ID: 37, lines: 283..284, bytes: 12750..12809), hits: 10) -> "address adapter = s_protocolAdapters[position.protocolName]"
- Line (location: (source ID: 37, lines: 285..286, bytes: 13073..13094), hits: 10) -> "adapter == address(0)"
- Statement (location: (source ID: 37, lines: 285..286, bytes: 13073..13094), hits: 10) -> "adapter == address(0)"
- Branch (branch: 6, path: 0) (location: (source ID: 37, lines: 285..288, bytes: 13096..13167), hits: 0) -> "{\n revert YieldAggreg...rotocolNotSupported();\n }"
- Line (location: (source ID: 37, lines: 286..287, bytes: 13110..13156), hits: 0) -> "revert YieldAggregator__ProtocolNotSupported()"
- Statement (location: (source ID: 37, lines: 286..287, bytes: 13110..13156), hits: 0) -> "revert YieldAggregator__ProtocolNotSupported()"
- Line (location: (source ID: 37, lines: 293..294, bytes: 13388..13488), hits: 10) -> "userInvestmentPositions[position...rInvestmentPositions.length - 1]"
- Statement (location: (source ID: 37, lines: 293..294, bytes: 13388..13488), hits: 10) -> "userInvestmentPositions[position...rInvestmentPositions.length - 1]"
- Line (location: (source ID: 37, lines: 294..295, bytes: 13498..13527), hits: 10) -> "userInvestmentPositions.pop()"
- Statement (location: (source ID: 37, lines: 294..295, bytes: 13498..13527), hits: 10) -> "userInvestmentPositions.pop()"
- Line (location: (source ID: 37, lines: 298..299, bytes: 13627..13727), hits: 10) -> "uint256 amountWithdrawn = IProto...n.token, position.currentShares)"
- Statement (location: (source ID: 37, lines: 298..299, bytes: 13627..13727), hits: 10) -> "uint256 amountWithdrawn = IProto...n.token, position.currentShares)"
- Statement (location: (source ID: 37, lines: 298..299, bytes: 13653..13727), hits: 10) -> "IProtocolAdapter(adapter).withdr...n.token, position.currentShares)"
- Line (location: (source ID: 37, lines: 301..302, bytes: 13980..14044), hits: 10) -> "IERC20(position.token).safeTransfer(msg.sender, amountWithdrawn)"
- Statement (location: (source ID: 37, lines: 301..302, bytes: 13980..14044), hits: 10) -> "IERC20(position.token).safeTransfer(msg.sender, amountWithdrawn)"
- Line (location: (source ID: 37, lines: 304..305, bytes: 14076..14143), hits: 10) -> "emit Withdrawal(msg.sender, posi...n.protocolName, amountWithdrawn)"
- Statement (location: (source ID: 37, lines: 304..305, bytes: 14076..14143), hits: 10) -> "emit Withdrawal(msg.sender, posi...n.protocolName, amountWithdrawn)"
- Line (location: (source ID: 37, lines: 314..375, bytes: 14574..17671), hits: 19) -> "function _invest(address token, ...l, token, amount, shares);\n }"
- Function "_invest" (location: (source ID: 37, lines: 314..375, bytes: 14574..17671), hits: 19) -> "function _invest(address token, ...l, token, amount, shares);\n }"
- Line (location: (source ID: 37, lines: 320..321, bytes: 14819..14854), hits: 19) -> "IERC20(token).balanceOf(msg.sender)"
- Statement (location: (source ID: 37, lines: 320..321, bytes: 14819..14854), hits: 19) -> "IERC20(token).balanceOf(msg.sender)"
- Statement (location: (source ID: 37, lines: 320..321, bytes: 14819..14863), hits: 19) -> "IERC20(token).balanceOf(msg.sender) < amount"
- Branch (branch: 7, path: 0) (location: (source ID: 37, lines: 320..323, bytes: 14865..14935), hits: 2) -> "{\n revert YieldAggreg...InsufficientBalance();\n }"
- Line (location: (source ID: 37, lines: 321..322, bytes: 14879..14924), hits: 2) -> "revert YieldAggregator__InsufficientBalance()"
- Statement (location: (source ID: 37, lines: 321..322, bytes: 14879..14924), hits: 2) -> "revert YieldAggregator__InsufficientBalance()"
- Line (location: (source ID: 37, lines: 325..326, bytes: 14990..15038), hits: 17) -> "string memory targetProtocol = preferredProtocol"
- Statement (location: (source ID: 37, lines: 325..326, bytes: 14990..15038), hits: 17) -> "string memory targetProtocol = preferredProtocol"
- Line (location: (source ID: 37, lines: 326..327, bytes: 15052..15088), hits: 17) -> "bytes(preferredProtocol).length == 0"
- Statement (location: (source ID: 37, lines: 326..327, bytes: 15052..15088), hits: 17) -> "bytes(preferredProtocol).length == 0"
- Branch (branch: 8, path: 0) (location: (source ID: 37, lines: 326..329, bytes: 15090..15161), hits: 1) -> "{\n revert YieldAggreg...rotocolNotSupported();\n }"
- Line (location: (source ID: 37, lines: 327..328, bytes: 15104..15150), hits: 1) -> "revert YieldAggregator__ProtocolNotSupported()"
- Statement (location: (source ID: 37, lines: 327..328, bytes: 15104..15150), hits: 1) -> "revert YieldAggregator__ProtocolNotSupported()"
- Line (location: (source ID: 37, lines: 331..332, bytes: 15243..15295), hits: 16) -> "address adapter = s_protocolAdapters[targetProtocol]"
- Statement (location: (source ID: 37, lines: 331..332, bytes: 15243..15295), hits: 16) -> "address adapter = s_protocolAdapters[targetProtocol]"
- Line (location: (source ID: 37, lines: 333..334, bytes: 15559..15580), hits: 16) -> "adapter == address(0)"
- Statement (location: (source ID: 37, lines: 333..334, bytes: 15559..15580), hits: 16) -> "adapter == address(0)"
- Branch (branch: 9, path: 0) (location: (source ID: 37, lines: 333..336, bytes: 15582..15653), hits: 0) -> "{\n revert YieldAggreg...rotocolNotSupported();\n }"
- Line (location: (source ID: 37, lines: 334..335, bytes: 15596..15642), hits: 0) -> "revert YieldAggregator__ProtocolNotSupported()"
- Statement (location: (source ID: 37, lines: 334..335, bytes: 15596..15642), hits: 0) -> "revert YieldAggregator__ProtocolNotSupported()"
- Line (location: (source ID: 37, lines: 339..340, bytes: 15753..15818), hits: 16) -> "IERC20(token).safeTransferFrom(m...g.sender, address(this), amount)"
- Statement (location: (source ID: 37, lines: 339..340, bytes: 15753..15818), hits: 16) -> "IERC20(token).safeTransferFrom(m...g.sender, address(this), amount)"
- Line (location: (source ID: 37, lines: 341..342, bytes: 16014..16057), hits: 16) -> "IERC20(token).forceApprove(adapter, amount)"
- Statement (location: (source ID: 37, lines: 341..342, bytes: 16014..16057), hits: 16) -> "IERC20(token).forceApprove(adapter, amount)"
- Line (location: (source ID: 37, lines: 343..344, bytes: 16221..16286), hits: 16) -> "uint256 shares = IProtocolAdapte...(adapter).deposit(token, amount)"
- Statement (location: (source ID: 37, lines: 343..344, bytes: 16221..16286), hits: 16) -> "uint256 shares = IProtocolAdapte...(adapter).deposit(token, amount)"
- Statement (location: (source ID: 37, lines: 343..344, bytes: 16238..16286), hits: 16) -> "IProtocolAdapter(adapter).deposit(token, amount)"
- Line (location: (source ID: 37, lines: 345..346, bytes: 16363..16388), hits: 16) -> "uint256 invalidShares = 0"
- Statement (location: (source ID: 37, lines: 345..346, bytes: 16363..16388), hits: 16) -> "uint256 invalidShares = 0"
- Line (location: (source ID: 37, lines: 347..348, bytes: 16440..16463), hits: 16) -> "shares == invalidShares"
- Statement (location: (source ID: 37, lines: 347..348, bytes: 16440..16463), hits: 16) -> "shares == invalidShares"
- Branch (branch: 10, path: 0) (location: (source ID: 37, lines: 347..350, bytes: 16465..16537), hits: 0) -> "{\n revert YieldAggreg...validSharesReceived();\n }"
- Line (location: (source ID: 37, lines: 348..349, bytes: 16479..16526), hits: 0) -> "revert YieldAggregator__InvalidSharesReceived()"
- Statement (location: (source ID: 37, lines: 348..349, bytes: 16479..16526), hits: 0) -> "revert YieldAggregator__InvalidSharesReceived()"
- Line (location: (source ID: 37, lines: 358..359, bytes: 17036..17086), hits: 16) -> "positionIndex = s_userPositions[msg.sender].length"
- Statement (location: (source ID: 37, lines: 358..359, bytes: 17036..17086), hits: 16) -> "positionIndex = s_userPositions[msg.sender].length"
- Line (location: (source ID: 37, lines: 360..371, bytes: 17097..17553), hits: 16) -> "s_userPositions[msg.sender].push...mestamp\n })\n )"
- Statement (location: (source ID: 37, lines: 360..371, bytes: 17097..17553), hits: 16) -> "s_userPositions[msg.sender].push...mestamp\n })\n )"
- Line (location: (source ID: 37, lines: 373..374, bytes: 17594..17664), hits: 16) -> "emit InvestmentMade(msg.sender, ...Protocol, token, amount, shares)"
- Statement (location: (source ID: 37, lines: 373..374, bytes: 17594..17664), hits: 16) -> "emit InvestmentMade(msg.sender, ...Protocol, token, amount, shares)"
- Line (location: (source ID: 37, lines: 387..400, bytes: 18223..19000), hits: 6) -> "function getPositionValue(addres..., position.currentShares);\n }"
- Function "getPositionValue" (location: (source ID: 37, lines: 387..400, bytes: 18223..19000), hits: 6) -> "function getPositionValue(addres..., position.currentShares);\n }"
- Line (location: (source ID: 37, lines: 388..389, bytes: 18336..18403), hits: 6) -> "UserPosition memory position = s...erPositions[user][positionIndex]"
- Statement (location: (source ID: 37, lines: 388..389, bytes: 18336..18403), hits: 6) -> "UserPosition memory position = s...erPositions[user][positionIndex]"
- Line (location: (source ID: 37, lines: 390..391, bytes: 18414..18473), hits: 6) -> "address adapter = s_protocolAdapters[position.protocolName]"
- Statement (location: (source ID: 37, lines: 390..391, bytes: 18414..18473), hits: 6) -> "address adapter = s_protocolAdapters[position.protocolName]"
- Line (location: (source ID: 37, lines: 393..394, bytes: 18738..18759), hits: 6) -> "adapter == address(0)"
- Statement (location: (source ID: 37, lines: 393..394, bytes: 18738..18759), hits: 6) -> "adapter == address(0)"
- Branch (branch: 11, path: 0) (location: (source ID: 37, lines: 393..396, bytes: 18761..18832), hits: 0) -> "{\n revert YieldAggreg...rotocolNotSupported();\n }"
- Line (location: (source ID: 37, lines: 394..395, bytes: 18775..18821), hits: 0) -> "revert YieldAggregator__ProtocolNotSupported()"
- Statement (location: (source ID: 37, lines: 394..395, bytes: 18775..18821), hits: 0) -> "revert YieldAggregator__ProtocolNotSupported()"
- Line (location: (source ID: 37, lines: 398..399, bytes: 18899..18993), hits: 6) -> "currentValue = IProtocolAdapter(...n.token, position.currentShares)"
- Statement (location: (source ID: 37, lines: 398..399, bytes: 18899..18993), hits: 6) -> "currentValue = IProtocolAdapter(...n.token, position.currentShares)"
- Line (location: (source ID: 37, lines: 407..414, bytes: 19218..19632), hits: 3) -> "function getYieldEarned(address ...ition.principalAmount : 0;\n }"
- Function "getYieldEarned" (location: (source ID: 37, lines: 407..414, bytes: 19218..19632), hits: 3) -> "function getYieldEarned(address ...ition.principalAmount : 0;\n }"
- Line (location: (source ID: 37, lines: 408..409, bytes: 19328..19395), hits: 3) -> "UserPosition memory position = s...erPositions[user][positionIndex]"
- Statement (location: (source ID: 37, lines: 408..409, bytes: 19328..19395), hits: 3) -> "UserPosition memory position = s...erPositions[user][positionIndex]"
- Line (location: (source ID: 37, lines: 409..410, bytes: 19405..19470), hits: 3) -> "uint256 currentValue = this.getP...sitionValue(user, positionIndex)"
- Statement (location: (source ID: 37, lines: 409..410, bytes: 19405..19470), hits: 3) -> "uint256 currentValue = this.getP...sitionValue(user, positionIndex)"
- Statement (location: (source ID: 37, lines: 409..410, bytes: 19428..19470), hits: 3) -> "this.getPositionValue(user, positionIndex)"
- Line (location: (source ID: 37, lines: 412..413, bytes: 19526..19625), hits: 3) -> "yieldEarned = currentValue > pos...e - position.principalAmount : 0"
- Statement (location: (source ID: 37, lines: 412..413, bytes: 19526..19625), hits: 3) -> "yieldEarned = currentValue > pos...e - position.principalAmount : 0"
- Line (location: (source ID: 37, lines: 420..423, bytes: 19908..20039), hits: 1) -> "function getUserPositions(addres...urn s_userPositions[user];\n }"
- Function "getUserPositions" (location: (source ID: 37, lines: 420..423, bytes: 19908..20039), hits: 1) -> "function getUserPositions(addres...urn s_userPositions[user];\n }"
- Line (location: (source ID: 37, lines: 421..422, bytes: 20004..20032), hits: 1) -> "return s_userPositions[user]"
- Statement (location: (source ID: 37, lines: 421..422, bytes: 20004..20032), hits: 1) -> "return s_userPositions[user]"
- Line (location: (source ID: 37, lines: 428..431, bytes: 20273..20401), hits: 7) -> "function getUserPositionCount(ad...serPositions[user].length;\n }"
- Function "getUserPositionCount" (location: (source ID: 37, lines: 428..431, bytes: 20273..20401), hits: 7) -> "function getUserPositionCount(ad...serPositions[user].length;\n }"
- Line (location: (source ID: 37, lines: 429..430, bytes: 20359..20394), hits: 7) -> "return s_userPositions[user].length"
- Statement (location: (source ID: 37, lines: 429..430, bytes: 20359..20394), hits: 7) -> "return s_userPositions[user].length"
- Line (location: (source ID: 37, lines: 439..445, bytes: 20764..21040), hits: 3) -> "function getUserPositionByIndex(...serPositions[user][index];\n }"
- Function "getUserPositionByIndex" (location: (source ID: 37, lines: 439..445, bytes: 20764..21040), hits: 3) -> "function getUserPositionByIndex(...serPositions[user][index];\n }"
- Line (location: (source ID: 37, lines: 440..441, bytes: 20883..20920), hits: 3) -> "index >= s_userPositions[user].length"
- Statement (location: (source ID: 37, lines: 440..441, bytes: 20883..20920), hits: 3) -> "index >= s_userPositions[user].length"
- Branch (branch: 12, path: 0) (location: (source ID: 37, lines: 440..443, bytes: 20922..20989), hits: 2) -> "{\n revert YieldAggreg...r__PositionNotFound();\n }"
- Line (location: (source ID: 37, lines: 441..442, bytes: 20936..20978), hits: 2) -> "revert YieldAggregator__PositionNotFound()"
- Statement (location: (source ID: 37, lines: 441..442, bytes: 20936..20978), hits: 2) -> "revert YieldAggregator__PositionNotFound()"
- Line (location: (source ID: 37, lines: 443..444, bytes: 20998..21033), hits: 1) -> "return s_userPositions[user][index]"
- Statement (location: (source ID: 37, lines: 443..444, bytes: 20998..21033), hits: 1) -> "return s_userPositions[user][index]"
src/adapters/AaveV3Adapter.sol:
- Line (location: (source ID: 38, lines: 52..58, bytes: 2470..2771), hits: 8) -> "constructor(\n address _aa...avePoolAddressesProvider);\n }"
- Function "constructor" (location: (source ID: 38, lines: 52..58, bytes: 2470..2771), hits: 8) -> "constructor(\n address _aa...avePoolAddressesProvider);\n }"
- Line (location: (source ID: 38, lines: 55..56, bytes: 2576..2616), hits: 8) -> "_aavePoolAddressesProvider == address(0)"
- Statement (location: (source ID: 38, lines: 55..56, bytes: 2576..2616), hits: 8) -> "_aavePoolAddressesProvider == address(0)"
- Statement (location: (source ID: 38, lines: 55..56, bytes: 2618..2674), hits: 0) -> "revert AaveV3Adapter__InvalidAavePoolAddressesProvider()"
- Branch (branch: 0, path: 0) (location: (source ID: 38, lines: 55..56, bytes: 2618..2674), hits: 0) -> "revert AaveV3Adapter__InvalidAavePoolAddressesProvider()"
- Line (location: (source ID: 38, lines: 56..57, bytes: 2684..2764), hits: 8) -> "i_aavePoolAddressesProvider = IP...ider(_aavePoolAddressesProvider)"
- Statement (location: (source ID: 38, lines: 56..57, bytes: 2684..2764), hits: 8) -> "i_aavePoolAddressesProvider = IP...ider(_aavePoolAddressesProvider)"
- Line (location: (source ID: 38, lines: 73..102, bytes: 3387..4546), hits: 8) -> "function deposit(address token, ...);\n\n return shares;\n }"
- Function "deposit" (location: (source ID: 38, lines: 73..102, bytes: 3387..4546), hits: 8) -> "function deposit(address token, ...);\n\n return shares;\n }"
- Line (location: (source ID: 38, lines: 75..76, bytes: 3546..3582), hits: 8) -> "address pool = _getAavePoolAddress()"
- Statement (location: (source ID: 38, lines: 75..76, bytes: 3546..3582), hits: 8) -> "address pool = _getAavePoolAddress()"
- Statement (location: (source ID: 38, lines: 75..76, bytes: 3561..3582), hits: 8) -> "_getAavePoolAddress()"
- Line (location: (source ID: 38, lines: 78..79, bytes: 3653..3694), hits: 8) -> "address aToken = _getATokenAddress(token)"
- Statement (location: (source ID: 38, lines: 78..79, bytes: 3653..3694), hits: 8) -> "address aToken = _getATokenAddress(token)"
- Statement (location: (source ID: 38, lines: 78..79, bytes: 3670..3694), hits: 8) -> "_getATokenAddress(token)"
- Line (location: (source ID: 38, lines: 81..82, bytes: 3786..3851), hits: 8) -> "IERC20(token).safeTransferFrom(m...g.sender, address(this), amount)"
- Statement (location: (source ID: 38, lines: 81..82, bytes: 3786..3851), hits: 8) -> "IERC20(token).safeTransferFrom(m...g.sender, address(this), amount)"
- Line (location: (source ID: 38, lines: 84..85, bytes: 3916..3992), hits: 8) -> "uint256 balanceBeforeSupply = IA...).scaledBalanceOf(address(this))"
- Statement (location: (source ID: 38, lines: 84..85, bytes: 3916..3992), hits: 8) -> "uint256 balanceBeforeSupply = IA...).scaledBalanceOf(address(this))"
- Statement (location: (source ID: 38, lines: 84..85, bytes: 3946..3992), hits: 8) -> "IAToken(aToken).scaledBalanceOf(address(this))"
- Line (location: (source ID: 38, lines: 87..88, bytes: 4055..4095), hits: 8) -> "IERC20(token).forceApprove(pool, amount)"
- Statement (location: (source ID: 38, lines: 87..88, bytes: 4055..4095), hits: 8) -> "IERC20(token).forceApprove(pool, amount)"
- Line (location: (source ID: 38, lines: 90..91, bytes: 4155..4206), hits: 8) -> "IPool(pool).supply(token, amount, address(this), 0)"
- Statement (location: (source ID: 38, lines: 90..91, bytes: 4155..4206), hits: 8) -> "IPool(pool).supply(token, amount, address(this), 0)"
- Line (location: (source ID: 38, lines: 93..94, bytes: 4270..4345), hits: 8) -> "uint256 balanceAfterSupply = IAT...).scaledBalanceOf(address(this))"
- Statement (location: (source ID: 38, lines: 93..94, bytes: 4270..4345), hits: 8) -> "uint256 balanceAfterSupply = IAT...).scaledBalanceOf(address(this))"
- Statement (location: (source ID: 38, lines: 93..94, bytes: 4299..4345), hits: 8) -> "IAToken(aToken).scaledBalanceOf(address(this))"
- Line (location: (source ID: 38, lines: 96..97, bytes: 4418..4467), hits: 8) -> "shares = balanceAfterSupply - balanceBeforeSupply"
- Statement (location: (source ID: 38, lines: 96..97, bytes: 4418..4467), hits: 8) -> "shares = balanceAfterSupply - balanceBeforeSupply"
- Line (location: (source ID: 38, lines: 98..99, bytes: 4478..4515), hits: 8) -> "emit Deposited(token, amount, shares)"
- Statement (location: (source ID: 38, lines: 98..99, bytes: 4478..4515), hits: 8) -> "emit Deposited(token, amount, shares)"
- Line (location: (source ID: 38, lines: 100..101, bytes: 4526..4539), hits: 8) -> "return shares"
- Statement (location: (source ID: 38, lines: 100..101, bytes: 4526..4539), hits: 8) -> "return shares"
- Line (location: (source ID: 38, lines: 110..157, bytes: 4851..7023), hits: 5) -> "function withdraw(address token,...);\n\n return amount;\n }"
- Function "withdraw" (location: (source ID: 38, lines: 110..157, bytes: 4851..7023), hits: 5) -> "function withdraw(address token,...);\n\n return amount;\n }"
- Line (location: (source ID: 38, lines: 112..113, bytes: 4992..5028), hits: 5) -> "address pool = _getAavePoolAddress()"
- Statement (location: (source ID: 38, lines: 112..113, bytes: 4992..5028), hits: 5) -> "address pool = _getAavePoolAddress()"
- Statement (location: (source ID: 38, lines: 112..113, bytes: 5007..5028), hits: 5) -> "_getAavePoolAddress()"
- Line (location: (source ID: 38, lines: 116..117, bytes: 5183..5253), hits: 5) -> "uint256 liquidityIndex = IPool(p...etReserveNormalizedIncome(token)"
- Statement (location: (source ID: 38, lines: 116..117, bytes: 5183..5253), hits: 5) -> "uint256 liquidityIndex = IPool(p...etReserveNormalizedIncome(token)"
- Statement (location: (source ID: 38, lines: 116..117, bytes: 5208..5253), hits: 5) -> "IPool(pool).getReserveNormalizedIncome(token)"
- Line (location: (source ID: 38, lines: 117..118, bytes: 5263..5331), hits: 5) -> "uint256 underlyingAmount = WadRa...h.rayMul(shares, liquidityIndex)"
- Statement (location: (source ID: 38, lines: 117..118, bytes: 5263..5331), hits: 5) -> "uint256 underlyingAmount = WadRa...h.rayMul(shares, liquidityIndex)"
- Statement (location: (source ID: 38, lines: 117..118, bytes: 5290..5331), hits: 5) -> "WadRayMath.rayMul(shares, liquidityIndex)"
- Line (location: (source ID: 38, lines: 120..121, bytes: 5420..5492), hits: 5) -> "uint256 balanceBeforeWithdrawal ...(token).balanceOf(address(this))"
- Statement (location: (source ID: 38, lines: 120..121, bytes: 5420..5492), hits: 5) -> "uint256 balanceBeforeWithdrawal ...(token).balanceOf(address(this))"
- Statement (location: (source ID: 38, lines: 120..121, bytes: 5454..5492), hits: 5) -> "IERC20(token).balanceOf(address(this))"
- Line (location: (source ID: 38, lines: 124..125, bytes: 5666..5686), hits: 5) -> "underlyingAmount > 0"
- Statement (location: (source ID: 38, lines: 124..125, bytes: 5666..5686), hits: 5) -> "underlyingAmount > 0"
- Statement (location: (source ID: 38, lines: 124..125, bytes: 5688..5709), hits: 5) -> "underlyingAmount -= 1"
- Branch (branch: 1, path: 0) (location: (source ID: 38, lines: 124..125, bytes: 5688..5709), hits: 5) -> "underlyingAmount -= 1"
- Line (location: (source ID: 38, lines: 131..132, bytes: 5975..6061), hits: 5) -> "uint256 actualWithdrawn = IPool(...underlyingAmount, address(this))"
- Statement (location: (source ID: 38, lines: 131..132, bytes: 5975..6061), hits: 5) -> "uint256 actualWithdrawn = IPool(...underlyingAmount, address(this))"
- Statement (location: (source ID: 38, lines: 131..132, bytes: 6001..6061), hits: 5) -> "IPool(pool).withdraw(token, underlyingAmount, address(this))"
- Line (location: (source ID: 38, lines: 140..141, bytes: 6422..6493), hits: 5) -> "uint256 balanceAfterWithdrawal =...(token).balanceOf(address(this))"
- Statement (location: (source ID: 38, lines: 140..141, bytes: 6422..6493), hits: 5) -> "uint256 balanceAfterWithdrawal =...(token).balanceOf(address(this))"
- Statement (location: (source ID: 38, lines: 140..141, bytes: 6455..6493), hits: 5) -> "IERC20(token).balanceOf(address(this))"
- Line (location: (source ID: 38, lines: 143..144, bytes: 6579..6636), hits: 5) -> "amount = balanceAfterWithdrawal - balanceBeforeWithdrawal"
- Statement (location: (source ID: 38, lines: 143..144, bytes: 6579..6636), hits: 5) -> "amount = balanceAfterWithdrawal - balanceBeforeWithdrawal"
- Line (location: (source ID: 38, lines: 145..146, bytes: 6651..6676), hits: 5) -> "amount != actualWithdrawn"
- Statement (location: (source ID: 38, lines: 145..146, bytes: 6651..6676), hits: 5) -> "amount != actualWithdrawn"
- Branch (branch: 2, path: 0) (location: (source ID: 38, lines: 145..148, bytes: 6678..6750), hits: 0) -> "{\n revert AaveV3Adapt...rrectWithdrawAmount();\n }"
- Line (location: (source ID: 38, lines: 146..147, bytes: 6692..6739), hits: 0) -> "revert AaveV3Adapter__IncorrectWithdrawAmount()"
- Statement (location: (source ID: 38, lines: 146..147, bytes: 6692..6739), hits: 0) -> "revert AaveV3Adapter__IncorrectWithdrawAmount()"
- Line (location: (source ID: 38, lines: 148..149, bytes: 6763..6774), hits: 5) -> "amount == 0"
- Statement (location: (source ID: 38, lines: 148..149, bytes: 6763..6774), hits: 5) -> "amount == 0"
- Statement (location: (source ID: 38, lines: 148..149, bytes: 6776..6817), hits: 0) -> "revert AaveV3Adapter__NothingToWithdraw()"
- Branch (branch: 3, path: 0) (location: (source ID: 38, lines: 148..149, bytes: 6776..6817), hits: 0) -> "revert AaveV3Adapter__NothingToWithdraw()"
- Line (location: (source ID: 38, lines: 151..152, bytes: 6898..6944), hits: 5) -> "IERC20(token).safeTransfer(msg.sender, amount)"
- Statement (location: (source ID: 38, lines: 151..152, bytes: 6898..6944), hits: 5) -> "IERC20(token).safeTransfer(msg.sender, amount)"
- Line (location: (source ID: 38, lines: 153..154, bytes: 6955..6992), hits: 5) -> "emit Withdrawn(token, shares, amount)"
- Statement (location: (source ID: 38, lines: 153..154, bytes: 6955..6992), hits: 5) -> "emit Withdrawn(token, shares, amount)"
- Line (location: (source ID: 38, lines: 155..156, bytes: 7003..7016), hits: 5) -> "return amount"
- Statement (location: (source ID: 38, lines: 155..156, bytes: 7003..7016), hits: 5) -> "return amount"
- Line (location: (source ID: 38, lines: 158..167, bytes: 7029..7434), hits: 2) -> "function getShareValue(address t...es.rayMul(liquidityIndex);\n }"
- Function "getShareValue" (location: (source ID: 38, lines: 158..167, bytes: 7029..7434), hits: 2) -> "function getShareValue(address t...es.rayMul(liquidityIndex);\n }"
- Line (location: (source ID: 38, lines: 161..162, bytes: 7263..7299), hits: 2) -> "address pool = _getAavePoolAddress()"
- Statement (location: (source ID: 38, lines: 161..162, bytes: 7263..7299), hits: 2) -> "address pool = _getAavePoolAddress()"
- Statement (location: (source ID: 38, lines: 161..162, bytes: 7278..7299), hits: 2) -> "_getAavePoolAddress()"
- Line (location: (source ID: 38, lines: 163..164, bytes: 7310..7380), hits: 2) -> "uint256 liquidityIndex = IPool(p...etReserveNormalizedIncome(token)"
- Statement (location: (source ID: 38, lines: 163..164, bytes: 7310..7380), hits: 2) -> "uint256 liquidityIndex = IPool(p...etReserveNormalizedIncome(token)"
- Statement (location: (source ID: 38, lines: 163..164, bytes: 7335..7380), hits: 2) -> "IPool(pool).getReserveNormalizedIncome(token)"
- Line (location: (source ID: 38, lines: 165..166, bytes: 7391..7427), hits: 2) -> "return shares.rayMul(liquidityIndex)"
- Statement (location: (source ID: 38, lines: 165..166, bytes: 7391..7427), hits: 2) -> "return shares.rayMul(liquidityIndex)"
- Statement (location: (source ID: 38, lines: 165..166, bytes: 7398..7427), hits: 2) -> "shares.rayMul(liquidityIndex)"
- Line (location: (source ID: 38, lines: 179..188, bytes: 7915..8288), hits: 8) -> "function _getATokenAddress(addre...reserveData.aTokenAddress;\n }"
- Function "_getATokenAddress" (location: (source ID: 38, lines: 179..188, bytes: 7915..8288), hits: 8) -> "function _getATokenAddress(addre...reserveData.aTokenAddress;\n }"
- Line (location: (source ID: 38, lines: 180..181, bytes: 8006..8042), hits: 8) -> "address pool = _getAavePoolAddress()"
- Statement (location: (source ID: 38, lines: 180..181, bytes: 8006..8042), hits: 8) -> "address pool = _getAavePoolAddress()"
- Statement (location: (source ID: 38, lines: 180..181, bytes: 8021..8042), hits: 8) -> "_getAavePoolAddress()"
- Line (location: (source ID: 38, lines: 183..184, bytes: 8122..8198), hits: 8) -> "DataTypes.ReserveData memory res...Pool(pool).getReserveData(token)"
- Statement (location: (source ID: 38, lines: 183..184, bytes: 8122..8198), hits: 8) -> "DataTypes.ReserveData memory res...Pool(pool).getReserveData(token)"
- Statement (location: (source ID: 38, lines: 183..184, bytes: 8165..8198), hits: 8) -> "IPool(pool).getReserveData(token)"
- Line (location: (source ID: 38, lines: 186..187, bytes: 8247..8281), hits: 8) -> "aToken = reserveData.aTokenAddress"
- Statement (location: (source ID: 38, lines: 186..187, bytes: 8247..8281), hits: 8) -> "aToken = reserveData.aTokenAddress"
- Line (location: (source ID: 38, lines: 191..194, bytes: 8390..8527), hits: 23) -> "function _getAavePoolAddress() i...dressesProvider.getPool();\n }"
- Function "_getAavePoolAddress" (location: (source ID: 38, lines: 191..194, bytes: 8390..8527), hits: 23) -> "function _getAavePoolAddress() i...dressesProvider.getPool();\n }"
- Line (location: (source ID: 38, lines: 192..193, bytes: 8472..8520), hits: 23) -> "aavePool = i_aavePoolAddressesProvider.getPool()"
- Statement (location: (source ID: 38, lines: 192..193, bytes: 8472..8520), hits: 23) -> "aavePool = i_aavePoolAddressesProvider.getPool()"
- Line (location: (source ID: 38, lines: 199..203, bytes: 8789..8981), hits: 0) -> "function getBalance(address toke....balanceOf(address(this));\n }"
- Function "getBalance" (location: (source ID: 38, lines: 199..203, bytes: 8789..8981), hits: 0) -> "function getBalance(address toke....balanceOf(address(this));\n }"
- Line (location: (source ID: 38, lines: 200..201, bytes: 8874..8915), hits: 0) -> "address aToken = _getATokenAddress(token)"
- Statement (location: (source ID: 38, lines: 200..201, bytes: 8874..8915), hits: 0) -> "address aToken = _getATokenAddress(token)"
- Statement (location: (source ID: 38, lines: 200..201, bytes: 8891..8915), hits: 0) -> "_getATokenAddress(token)"
- Line (location: (source ID: 38, lines: 201..202, bytes: 8925..8974), hits: 0) -> "balance = IERC20(aToken).balanceOf(address(this))"
- Statement (location: (source ID: 38, lines: 201..202, bytes: 8925..8974), hits: 0) -> "balance = IERC20(aToken).balanceOf(address(this))"
- Line (location: (source ID: 38, lines: 209..212, bytes: 9185..9313), hits: 0) -> "function getPoolAddressesProvide...avePoolAddressesProvider);\n }"
- Function "getPoolAddressesProvider" (location: (source ID: 38, lines: 209..212, bytes: 9185..9313), hits: 0) -> "function getPoolAddressesProvide...avePoolAddressesProvider);\n }"
- Line (location: (source ID: 38, lines: 210..211, bytes: 9263..9306), hits: 0) -> "return address(i_aavePoolAddressesProvider)"
- Statement (location: (source ID: 38, lines: 210..211, bytes: 9263..9306), hits: 0) -> "return address(i_aavePoolAddressesProvider)"
src/adapters/CompoundV3Adapter.sol:
- Line (location: (source ID: 39, lines: 47..55, bytes: 2412..2763), hits: 10) -> "constructor(\n address _co...egator = _yieldAggregator;\n }"
- Function "constructor" (location: (source ID: 39, lines: 47..55, bytes: 2412..2763), hits: 10) -> "constructor(\n address _co...egator = _yieldAggregator;\n }"
- Line (location: (source ID: 39, lines: 50..51, bytes: 2498..2518), hits: 10) -> "_comet == address(0)"
- Statement (location: (source ID: 39, lines: 50..51, bytes: 2498..2518), hits: 10) -> "_comet == address(0)"
- Statement (location: (source ID: 39, lines: 50..51, bytes: 2520..2567), hits: 0) -> "revert CompoundV3Adapter__InvalidCometAddress()"
- Branch (branch: 0, path: 0) (location: (source ID: 39, lines: 50..51, bytes: 2520..2567), hits: 0) -> "revert CompoundV3Adapter__InvalidCometAddress()"
- Line (location: (source ID: 39, lines: 52..53, bytes: 2683..2707), hits: 10) -> "i_comet = IComet(_comet)"
- Statement (location: (source ID: 39, lines: 52..53, bytes: 2683..2707), hits: 10) -> "i_comet = IComet(_comet)"
- Line (location: (source ID: 39, lines: 64..88, bytes: 3041..4009), hits: 8) -> "function deposit(address token, ...s;\n\n return shares;\n }"
- Function "deposit" (location: (source ID: 39, lines: 64..88, bytes: 3041..4009), hits: 8) -> "function deposit(address token, ...s;\n\n return shares;\n }"
- Line (location: (source ID: 39, lines: 66..67, bytes: 3205..3270), hits: 8) -> "IERC20(token).safeTransferFrom(m...g.sender, address(this), amount)"
- Statement (location: (source ID: 39, lines: 66..67, bytes: 3205..3270), hits: 8) -> "IERC20(token).safeTransferFrom(m...g.sender, address(this), amount)"
- Line (location: (source ID: 39, lines: 69..70, bytes: 3340..3402), hits: 8) -> "uint256 balanceBeforeSupply = i_comet.balanceOf(address(this))"
- Statement (location: (source ID: 39, lines: 69..70, bytes: 3340..3402), hits: 8) -> "uint256 balanceBeforeSupply = i_comet.balanceOf(address(this))"
- Statement (location: (source ID: 39, lines: 69..70, bytes: 3370..3402), hits: 8) -> "i_comet.balanceOf(address(this))"
- Line (location: (source ID: 39, lines: 72..73, bytes: 3460..3512), hits: 8) -> "IERC20(token).forceApprove(address(i_comet), amount)"
- Statement (location: (source ID: 39, lines: 72..73, bytes: 3460..3512), hits: 8) -> "IERC20(token).forceApprove(address(i_comet), amount)"
- Line (location: (source ID: 39, lines: 75..76, bytes: 3583..3612), hits: 8) -> "i_comet.supply(token, amount)"
- Statement (location: (source ID: 39, lines: 75..76, bytes: 3583..3612), hits: 8) -> "i_comet.supply(token, amount)"
- Line (location: (source ID: 39, lines: 78..79, bytes: 3688..3749), hits: 8) -> "uint256 balanceAfterSupply = i_comet.balanceOf(address(this))"
- Statement (location: (source ID: 39, lines: 78..79, bytes: 3688..3749), hits: 8) -> "uint256 balanceAfterSupply = i_comet.balanceOf(address(this))"
- Statement (location: (source ID: 39, lines: 78..79, bytes: 3717..3749), hits: 8) -> "i_comet.balanceOf(address(this))"
- Line (location: (source ID: 39, lines: 81..82, bytes: 3804..3853), hits: 8) -> "shares = balanceAfterSupply - balanceBeforeSupply"
- Statement (location: (source ID: 39, lines: 81..82, bytes: 3804..3853), hits: 8) -> "shares = balanceAfterSupply - balanceBeforeSupply"
- Line (location: (source ID: 39, lines: 84..85, bytes: 3955..3978), hits: 8) -> "s_totalShares += shares"
- Statement (location: (source ID: 39, lines: 84..85, bytes: 3955..3978), hits: 8) -> "s_totalShares += shares"
- Line (location: (source ID: 39, lines: 86..87, bytes: 3989..4002), hits: 8) -> "return shares"
- Statement (location: (source ID: 39, lines: 86..87, bytes: 3989..4002), hits: 8) -> "return shares"
- Line (location: (source ID: 39, lines: 90..108, bytes: 4091..4953), hits: 5) -> "function withdraw(address token,...t);\n return amount;\n }"
- Function "withdraw" (location: (source ID: 39, lines: 90..108, bytes: 4091..4953), hits: 5) -> "function withdraw(address token,...t);\n return amount;\n }"
- Line (location: (source ID: 39, lines: 92..93, bytes: 4249..4309), hits: 5) -> "uint256 totalCometBalance = i_comet.balanceOf(address(this))"
- Statement (location: (source ID: 39, lines: 92..93, bytes: 4249..4309), hits: 5) -> "uint256 totalCometBalance = i_comet.balanceOf(address(this))"
- Statement (location: (source ID: 39, lines: 92..93, bytes: 4277..4309), hits: 5) -> "i_comet.balanceOf(address(this))"
- Line (location: (source ID: 39, lines: 93..94, bytes: 4319..4392), hits: 5) -> "uint256 proportionalAmount = (sh...talCometBalance) / s_totalShares"
- Statement (location: (source ID: 39, lines: 93..94, bytes: 4319..4392), hits: 5) -> "uint256 proportionalAmount = (sh...talCometBalance) / s_totalShares"
- Statement (location: (source ID: 39, lines: 93..94, bytes: 4348..4392), hits: 5) -> "(shares * totalCometBalance) / s_totalShares"
- Line (location: (source ID: 39, lines: 96..97, bytes: 4485..4557), hits: 5) -> "uint256 balanceBeforeWithdrawal ...(token).balanceOf(address(this))"
- Statement (location: (source ID: 39, lines: 96..97, bytes: 4485..4557), hits: 5) -> "uint256 balanceBeforeWithdrawal ...(token).balanceOf(address(this))"
- Statement (location: (source ID: 39, lines: 96..97, bytes: 4519..4557), hits: 5) -> "IERC20(token).balanceOf(address(this))"
- Line (location: (source ID: 39, lines: 98..99, bytes: 4568..4611), hits: 5) -> "i_comet.withdraw(token, proportionalAmount)"
- Statement (location: (source ID: 39, lines: 98..99, bytes: 4568..4611), hits: 5) -> "i_comet.withdraw(token, proportionalAmount)"
- Line (location: (source ID: 39, lines: 100..101, bytes: 4661..4732), hits: 5) -> "uint256 balanceAfterWithdrawal =...(token).balanceOf(address(this))"
- Statement (location: (source ID: 39, lines: 100..101, bytes: 4661..4732), hits: 5) -> "uint256 balanceAfterWithdrawal =...(token).balanceOf(address(this))"
- Statement (location: (source ID: 39, lines: 100..101, bytes: 4694..4732), hits: 5) -> "IERC20(token).balanceOf(address(this))"
- Line (location: (source ID: 39, lines: 101..102, bytes: 4742..4799), hits: 5) -> "amount = balanceAfterWithdrawal - balanceBeforeWithdrawal"
- Statement (location: (source ID: 39, lines: 101..102, bytes: 4742..4799), hits: 5) -> "amount = balanceAfterWithdrawal - balanceBeforeWithdrawal"
- Line (location: (source ID: 39, lines: 103..104, bytes: 4810..4833), hits: 5) -> "s_totalShares -= shares"
- Statement (location: (source ID: 39, lines: 103..104, bytes: 4810..4833), hits: 5) -> "s_totalShares -= shares"
- Line (location: (source ID: 39, lines: 105..106, bytes: 4877..4923), hits: 5) -> "IERC20(token).safeTransfer(msg.sender, amount)"
- Statement (location: (source ID: 39, lines: 105..106, bytes: 4877..4923), hits: 5) -> "IERC20(token).safeTransfer(msg.sender, amount)"
- Line (location: (source ID: 39, lines: 106..107, bytes: 4933..4946), hits: 5) -> "return amount"
- Statement (location: (source ID: 39, lines: 106..107, bytes: 4933..4946), hits: 5) -> "return amount"
- Line (location: (source ID: 39, lines: 109..124, bytes: 4959..5359), hits: 4) -> "function getShareValue(\n ...tBalance) / s_totalShares;\n }"
- Function "getShareValue" (location: (source ID: 39, lines: 109..124, bytes: 4959..5359), hits: 4) -> "function getShareValue(\n ...tBalance) / s_totalShares;\n }"
- Line (location: (source ID: 39, lines: 117..118, bytes: 5108..5126), hits: 4) -> "s_totalShares == 0"
- Statement (location: (source ID: 39, lines: 117..118, bytes: 5108..5126), hits: 4) -> "s_totalShares == 0"
- Statement (location: (source ID: 39, lines: 117..118, bytes: 5128..5136), hits: 0) -> "return 0"
- Branch (branch: 1, path: 0) (location: (source ID: 39, lines: 117..118, bytes: 5128..5136), hits: 0) -> "return 0"
- Line (location: (source ID: 39, lines: 119..120, bytes: 5147..5207), hits: 4) -> "uint256 totalCometBalance = i_comet.balanceOf(address(this))"
- Statement (location: (source ID: 39, lines: 119..120, bytes: 5147..5207), hits: 4) -> "uint256 totalCometBalance = i_comet.balanceOf(address(this))"
- Statement (location: (source ID: 39, lines: 119..120, bytes: 5175..5207), hits: 4) -> "i_comet.balanceOf(address(this))"
- Line (location: (source ID: 39, lines: 122..123, bytes: 5301..5352), hits: 4) -> "return (shares * totalCometBalance) / s_totalShares"
- Statement (location: (source ID: 39, lines: 122..123, bytes: 5301..5352), hits: 4) -> "return (shares * totalCometBalance) / s_totalShares"
- Statement (location: (source ID: 39, lines: 122..123, bytes: 5308..5352), hits: 4) -> "(shares * totalCometBalance) / s_totalShares"
- Line (location: (source ID: 39, lines: 126..129, bytes: 5433..5543), hits: 0) -> "function getBalance() external v....balanceOf(address(this));\n }"
- Function "getBalance" (location: (source ID: 39, lines: 126..129, bytes: 5433..5543), hits: 0) -> "function getBalance() external v....balanceOf(address(this));\n }"
- Line (location: (source ID: 39, lines: 127..128, bytes: 5497..5536), hits: 0) -> "return i_comet.balanceOf(address(this))"
- Statement (location: (source ID: 39, lines: 127..128, bytes: 5497..5536), hits: 0) -> "return i_comet.balanceOf(address(this))"
- Statement (location: (source ID: 39, lines: 127..128, bytes: 5504..5536), hits: 0) -> "i_comet.balanceOf(address(this))"
- Line (location: (source ID: 39, lines: 130..133, bytes: 5639..5738), hits: 0) -> "function getCometAddress() exter... return address(i_comet);\n }"
- Function "getCometAddress" (location: (source ID: 39, lines: 130..133, bytes: 5639..5738), hits: 0) -> "function getCometAddress() exter... return address(i_comet);\n }"
- Line (location: (source ID: 39, lines: 131..132, bytes: 5708..5731), hits: 0) -> "return address(i_comet)"
- Statement (location: (source ID: 39, lines: 131..132, bytes: 5708..5731), hits: 0) -> "return address(i_comet)"
test/utils/SelfDestruct.sol:
- Line (location: (source ID: 47, lines: 11..14, bytes: 242..304), hits: 2) -> "receive() external payable {\n emit ETHReceived();\n }"
- Function "receive" (location: (source ID: 47, lines: 11..14, bytes: 242..304), hits: 2) -> "receive() external payable {\n emit ETHReceived();\n }"
- Line (location: (source ID: 47, lines: 12..13, bytes: 279..297), hits: 2) -> "emit ETHReceived()"
- Statement (location: (source ID: 47, lines: 12..13, bytes: 279..297), hits: 2) -> "emit ETHReceived()"
- Line (location: (source ID: 47, lines: 15..18, bytes: 310..471), hits: 2) -> "function destroy(address payable...ent, deletes this contract\n }"
- Function "destroy" (location: (source ID: 47, lines: 15..18, bytes: 310..471), hits: 2) -> "function destroy(address payable...ent, deletes this contract\n }"
- Line (location: (source ID: 47, lines: 16..17, bytes: 383..406), hits: 2) -> "selfdestruct(recipient)"
- Statement (location: (source ID: 47, lines: 16..17, bytes: 383..406), hits: 2) -> "selfdestruct(recipient)"
Anchors for Contract "CompoundV3Adapter" (solc 0.8.26, source ID 39):
- creation IC 5 -> Item 282: Line (location: (source ID: 39, lines: 47..55, bytes: 2412..2763), hits: 10)
- creation IC 5 -> Item 283: Function "constructor" (location: (source ID: 39, lines: 47..55, bytes: 2412..2763), hits: 10)
- creation IC 50 -> Item 284: Line (location: (source ID: 39, lines: 50..51, bytes: 2498..2518), hits: 10)
- creation IC 50 -> Item 285: Statement (location: (source ID: 39, lines: 50..51, bytes: 2498..2518), hits: 10)
- creation IC 101 -> Item 286: Statement (location: (source ID: 39, lines: 50..51, bytes: 2520..2567), hits: 0)
- creation IC 101 -> Item 287: Branch (branch: 0, path: 0) (location: (source ID: 39, lines: 50..51, bytes: 2520..2567), hits: 0)
- creation IC 151 -> Item 288: Line (location: (source ID: 39, lines: 52..53, bytes: 2683..2707), hits: 10)
- creation IC 151 -> Item 289: Statement (location: (source ID: 39, lines: 52..53, bytes: 2683..2707), hits: 10)
- runtime IC 119 -> Item 290: Line (location: (source ID: 39, lines: 64..88, bytes: 3041..4009), hits: 8)
- runtime IC 119 -> Item 291: Function "deposit" (location: (source ID: 39, lines: 64..88, bytes: 3041..4009), hits: 8)
- runtime IC 453 -> Item 292: Line (location: (source ID: 39, lines: 66..67, bytes: 3205..3270), hits: 8)
- runtime IC 453 -> Item 293: Statement (location: (source ID: 39, lines: 66..67, bytes: 3205..3270), hits: 8)
- runtime IC 498 -> Item 294: Line (location: (source ID: 39, lines: 69..70, bytes: 3340..3402), hits: 8)
- runtime IC 498 -> Item 295: Statement (location: (source ID: 39, lines: 69..70, bytes: 3340..3402), hits: 8)
- runtime IC 499 -> Item 296: Statement (location: (source ID: 39, lines: 69..70, bytes: 3370..3402), hits: 8)
- runtime IC 653 -> Item 297: Line (location: (source ID: 39, lines: 72..73, bytes: 3460..3512), hits: 8)
- runtime IC 653 -> Item 298: Statement (location: (source ID: 39, lines: 72..73, bytes: 3460..3512), hits: 8)
- runtime IC 728 -> Item 299: Line (location: (source ID: 39, lines: 75..76, bytes: 3583..3612), hits: 8)
- runtime IC 728 -> Item 300: Statement (location: (source ID: 39, lines: 75..76, bytes: 3583..3612), hits: 8)
- runtime IC 864 -> Item 301: Line (location: (source ID: 39, lines: 78..79, bytes: 3688..3749), hits: 8)
- runtime IC 864 -> Item 302: Statement (location: (source ID: 39, lines: 78..79, bytes: 3688..3749), hits: 8)
- runtime IC 865 -> Item 303: Statement (location: (source ID: 39, lines: 78..79, bytes: 3717..3749), hits: 8)
- runtime IC 1019 -> Item 304: Line (location: (source ID: 39, lines: 81..82, bytes: 3804..3853), hits: 8)
- runtime IC 1019 -> Item 305: Statement (location: (source ID: 39, lines: 81..82, bytes: 3804..3853), hits: 8)
- runtime IC 1033 -> Item 306: Line (location: (source ID: 39, lines: 84..85, bytes: 3955..3978), hits: 8)
- runtime IC 1033 -> Item 307: Statement (location: (source ID: 39, lines: 84..85, bytes: 3955..3978), hits: 8)
- runtime IC 1056 -> Item 308: Line (location: (source ID: 39, lines: 86..87, bytes: 3989..4002), hits: 8)
- runtime IC 1056 -> Item 309: Statement (location: (source ID: 39, lines: 86..87, bytes: 3989..4002), hits: 8)
- runtime IC 245 -> Item 310: Line (location: (source ID: 39, lines: 90..108, bytes: 4091..4953), hits: 5)
- runtime IC 245 -> Item 311: Function "withdraw" (location: (source ID: 39, lines: 90..108, bytes: 4091..4953), hits: 5)
- runtime IC 1310 -> Item 312: Line (location: (source ID: 39, lines: 92..93, bytes: 4249..4309), hits: 5)
- runtime IC 1310 -> Item 313: Statement (location: (source ID: 39, lines: 92..93, bytes: 4249..4309), hits: 5)
- runtime IC 1311 -> Item 314: Statement (location: (source ID: 39, lines: 92..93, bytes: 4277..4309), hits: 5)
- runtime IC 1465 -> Item 315: Line (location: (source ID: 39, lines: 93..94, bytes: 4319..4392), hits: 5)
- runtime IC 1465 -> Item 316: Statement (location: (source ID: 39, lines: 93..94, bytes: 4319..4392), hits: 5)
- runtime IC 1466 -> Item 317: Statement (location: (source ID: 39, lines: 93..94, bytes: 4348..4392), hits: 5)
- runtime IC 1492 -> Item 318: Line (location: (source ID: 39, lines: 96..97, bytes: 4485..4557), hits: 5)
- runtime IC 1492 -> Item 319: Statement (location: (source ID: 39, lines: 96..97, bytes: 4485..4557), hits: 5)
- runtime IC 1493 -> Item 320: Statement (location: (source ID: 39, lines: 96..97, bytes: 4519..4557), hits: 5)
- runtime IC 1615 -> Item 321: Line (location: (source ID: 39, lines: 98..99, bytes: 4568..4611), hits: 5)
- runtime IC 1615 -> Item 322: Statement (location: (source ID: 39, lines: 98..99, bytes: 4568..4611), hits: 5)
- runtime IC 1751 -> Item 323: Line (location: (source ID: 39, lines: 100..101, bytes: 4661..4732), hits: 5)
- runtime IC 1751 -> Item 324: Statement (location: (source ID: 39, lines: 100..101, bytes: 4661..4732), hits: 5)
- runtime IC 1752 -> Item 325: Statement (location: (source ID: 39, lines: 100..101, bytes: 4694..4732), hits: 5)
- runtime IC 1874 -> Item 326: Line (location: (source ID: 39, lines: 101..102, bytes: 4742..4799), hits: 5)
- runtime IC 1874 -> Item 327: Statement (location: (source ID: 39, lines: 101..102, bytes: 4742..4799), hits: 5)
- runtime IC 1888 -> Item 328: Line (location: (source ID: 39, lines: 103..104, bytes: 4810..4833), hits: 5)
- runtime IC 1888 -> Item 329: Statement (location: (source ID: 39, lines: 103..104, bytes: 4810..4833), hits: 5)
- runtime IC 1911 -> Item 330: Line (location: (source ID: 39, lines: 105..106, bytes: 4877..4923), hits: 5)
- runtime IC 1911 -> Item 331: Statement (location: (source ID: 39, lines: 105..106, bytes: 4877..4923), hits: 5)
- runtime IC 1954 -> Item 332: Line (location: (source ID: 39, lines: 106..107, bytes: 4933..4946), hits: 5)
- runtime IC 1954 -> Item 333: Statement (location: (source ID: 39, lines: 106..107, bytes: 4933..4946), hits: 5)
- runtime IC 197 -> Item 334: Line (location: (source ID: 39, lines: 109..124, bytes: 4959..5359), hits: 4)
- runtime IC 197 -> Item 335: Function "getShareValue" (location: (source ID: 39, lines: 109..124, bytes: 4959..5359), hits: 4)
- runtime IC 1104 -> Item 336: Line (location: (source ID: 39, lines: 117..118, bytes: 5108..5126), hits: 4)
- runtime IC 1104 -> Item 337: Statement (location: (source ID: 39, lines: 117..118, bytes: 5108..5126), hits: 4)
- runtime IC 1112 -> Item 338: Statement (location: (source ID: 39, lines: 117..118, bytes: 5128..5136), hits: 0)
- runtime IC 1112 -> Item 339: Branch (branch: 1, path: 0) (location: (source ID: 39, lines: 117..118, bytes: 5128..5136), hits: 0)
- runtime IC 1120 -> Item 340: Line (location: (source ID: 39, lines: 119..120, bytes: 5147..5207), hits: 4)
- runtime IC 1120 -> Item 341: Statement (location: (source ID: 39, lines: 119..120, bytes: 5147..5207), hits: 4)
- runtime IC 1121 -> Item 342: Statement (location: (source ID: 39, lines: 119..120, bytes: 5175..5207), hits: 4)
- runtime IC 1275 -> Item 343: Line (location: (source ID: 39, lines: 122..123, bytes: 5301..5352), hits: 4)
- runtime IC 1275 -> Item 344: Statement (location: (source ID: 39, lines: 122..123, bytes: 5301..5352), hits: 4)
- runtime IC 1275 -> Item 345: Statement (location: (source ID: 39, lines: 122..123, bytes: 5308..5352), hits: 4)
- runtime IC 89 -> Item 346: Line (location: (source ID: 39, lines: 126..129, bytes: 5433..5543), hits: 0)
- runtime IC 89 -> Item 347: Function "getBalance" (location: (source ID: 39, lines: 126..129, bytes: 5433..5543), hits: 0)
- runtime IC 295 -> Item 348: Line (location: (source ID: 39, lines: 127..128, bytes: 5497..5536), hits: 0)
- runtime IC 295 -> Item 349: Statement (location: (source ID: 39, lines: 127..128, bytes: 5497..5536), hits: 0)
- runtime IC 295 -> Item 350: Statement (location: (source ID: 39, lines: 127..128, bytes: 5504..5536), hits: 0)
- runtime IC 167 -> Item 351: Line (location: (source ID: 39, lines: 130..133, bytes: 5639..5738), hits: 0)
- runtime IC 167 -> Item 352: Function "getCometAddress" (location: (source ID: 39, lines: 130..133, bytes: 5639..5738), hits: 0)
- runtime IC 1065 -> Item 353: Line (location: (source ID: 39, lines: 131..132, bytes: 5708..5731), hits: 0)
- runtime IC 1065 -> Item 354: Statement (location: (source ID: 39, lines: 131..132, bytes: 5708..5731), hits: 0)
Anchors for Contract "SelfDestruct" (solc 0.8.26, source ID 47):
- runtime IC 71 -> Item 355: Line (location: (source ID: 47, lines: 11..14, bytes: 242..304), hits: 2)
- runtime IC 71 -> Item 356: Function "receive" (location: (source ID: 47, lines: 11..14, bytes: 242..304), hits: 2)
- runtime IC 71 -> Item 357: Line (location: (source ID: 47, lines: 12..13, bytes: 279..297), hits: 2)
- runtime IC 71 -> Item 358: Statement (location: (source ID: 47, lines: 12..13, bytes: 279..297), hits: 2)
- runtime IC 120 -> Item 359: Line (location: (source ID: 47, lines: 15..18, bytes: 310..471), hits: 2)
- runtime IC 120 -> Item 360: Function "destroy" (location: (source ID: 47, lines: 15..18, bytes: 310..471), hits: 2)
- runtime IC 273 -> Item 361: Line (location: (source ID: 47, lines: 16..17, bytes: 383..406), hits: 2)
- runtime IC 273 -> Item 362: Statement (location: (source ID: 47, lines: 16..17, bytes: 383..406), hits: 2)
Anchors for Contract "AaveV3Adapter" (solc 0.8.26, source ID 38):
- creation IC 5 -> Item 171: Line (location: (source ID: 38, lines: 52..58, bytes: 2470..2771), hits: 8)
- creation IC 5 -> Item 172: Function "constructor" (location: (source ID: 38, lines: 52..58, bytes: 2470..2771), hits: 8)
- creation IC 50 -> Item 173: Line (location: (source ID: 38, lines: 55..56, bytes: 2576..2616), hits: 8)
- creation IC 50 -> Item 174: Statement (location: (source ID: 38, lines: 55..56, bytes: 2576..2616), hits: 8)
- creation IC 101 -> Item 175: Statement (location: (source ID: 38, lines: 55..56, bytes: 2618..2674), hits: 0)
- creation IC 101 -> Item 176: Branch (branch: 0, path: 0) (location: (source ID: 38, lines: 55..56, bytes: 2618..2674), hits: 0)
- creation IC 151 -> Item 177: Line (location: (source ID: 38, lines: 56..57, bytes: 2684..2764), hits: 8)
- creation IC 151 -> Item 178: Statement (location: (source ID: 38, lines: 56..57, bytes: 2684..2764), hits: 8)
- runtime IC 89 -> Item 179: Line (location: (source ID: 38, lines: 73..102, bytes: 3387..4546), hits: 8)
- runtime IC 89 -> Item 180: Function "deposit" (location: (source ID: 38, lines: 73..102, bytes: 3387..4546), hits: 8)
- runtime IC 313 -> Item 181: Line (location: (source ID: 38, lines: 75..76, bytes: 3546..3582), hits: 8)
- runtime IC 313 -> Item 182: Statement (location: (source ID: 38, lines: 75..76, bytes: 3546..3582), hits: 8)
- runtime IC 314 -> Item 183: Statement (location: (source ID: 38, lines: 75..76, bytes: 3561..3582), hits: 8)
- runtime IC 324 -> Item 184: Line (location: (source ID: 38, lines: 78..79, bytes: 3653..3694), hits: 8)
- runtime IC 324 -> Item 185: Statement (location: (source ID: 38, lines: 78..79, bytes: 3653..3694), hits: 8)
- runtime IC 325 -> Item 186: Statement (location: (source ID: 38, lines: 78..79, bytes: 3670..3694), hits: 8)
- runtime IC 336 -> Item 187: Line (location: (source ID: 38, lines: 81..82, bytes: 3786..3851), hits: 8)
- runtime IC 336 -> Item 188: Statement (location: (source ID: 38, lines: 81..82, bytes: 3786..3851), hits: 8)
- runtime IC 381 -> Item 189: Line (location: (source ID: 38, lines: 84..85, bytes: 3916..3992), hits: 8)
- runtime IC 381 -> Item 190: Statement (location: (source ID: 38, lines: 84..85, bytes: 3916..3992), hits: 8)
- runtime IC 382 -> Item 191: Statement (location: (source ID: 38, lines: 84..85, bytes: 3946..3992), hits: 8)
- runtime IC 504 -> Item 192: Line (location: (source ID: 38, lines: 87..88, bytes: 4055..4095), hits: 8)
- runtime IC 504 -> Item 193: Statement (location: (source ID: 38, lines: 87..88, bytes: 4055..4095), hits: 8)
- runtime IC 547 -> Item 194: Line (location: (source ID: 38, lines: 90..91, bytes: 4155..4206), hits: 8)
- runtime IC 547 -> Item 195: Statement (location: (source ID: 38, lines: 90..91, bytes: 4155..4206), hits: 8)
- runtime IC 655 -> Item 196: Line (location: (source ID: 38, lines: 93..94, bytes: 4270..4345), hits: 8)
- runtime IC 655 -> Item 197: Statement (location: (source ID: 38, lines: 93..94, bytes: 4270..4345), hits: 8)
- runtime IC 656 -> Item 198: Statement (location: (source ID: 38, lines: 93..94, bytes: 4299..4345), hits: 8)
- runtime IC 778 -> Item 199: Line (location: (source ID: 38, lines: 96..97, bytes: 4418..4467), hits: 8)
- runtime IC 778 -> Item 200: Statement (location: (source ID: 38, lines: 96..97, bytes: 4418..4467), hits: 8)
- runtime IC 792 -> Item 201: Line (location: (source ID: 38, lines: 98..99, bytes: 4478..4515), hits: 8)
- runtime IC 792 -> Item 202: Statement (location: (source ID: 38, lines: 98..99, bytes: 4478..4515), hits: 8)
- runtime IC 872 -> Item 203: Line (location: (source ID: 38, lines: 100..101, bytes: 4526..4539), hits: 8)
- runtime IC 872 -> Item 204: Statement (location: (source ID: 38, lines: 100..101, bytes: 4526..4539), hits: 8)
- runtime IC 215 -> Item 205: Line (location: (source ID: 38, lines: 110..157, bytes: 4851..7023), hits: 5)
- runtime IC 215 -> Item 206: Function "withdraw" (location: (source ID: 38, lines: 110..157, bytes: 4851..7023), hits: 5)
- runtime IC 1086 -> Item 207: Line (location: (source ID: 38, lines: 112..113, bytes: 4992..5028), hits: 5)
- runtime IC 1086 -> Item 208: Statement (location: (source ID: 38, lines: 112..113, bytes: 4992..5028), hits: 5)
- runtime IC 1087 -> Item 209: Statement (location: (source ID: 38, lines: 112..113, bytes: 5007..5028), hits: 5)
- runtime IC 1097 -> Item 210: Line (location: (source ID: 38, lines: 116..117, bytes: 5183..5253), hits: 5)
- runtime IC 1097 -> Item 211: Statement (location: (source ID: 38, lines: 116..117, bytes: 5183..5253), hits: 5)
- runtime IC 1098 -> Item 212: Statement (location: (source ID: 38, lines: 116..117, bytes: 5208..5253), hits: 5)
- runtime IC 1220 -> Item 213: Line (location: (source ID: 38, lines: 117..118, bytes: 5263..5331), hits: 5)
- runtime IC 1220 -> Item 214: Statement (location: (source ID: 38, lines: 117..118, bytes: 5263..5331), hits: 5)
- runtime IC 1221 -> Item 215: Statement (location: (source ID: 38, lines: 117..118, bytes: 5290..5331), hits: 5)
- runtime IC 1233 -> Item 216: Line (location: (source ID: 38, lines: 120..121, bytes: 5420..5492), hits: 5)
- runtime IC 1233 -> Item 217: Statement (location: (source ID: 38, lines: 120..121, bytes: 5420..5492), hits: 5)
- runtime IC 1234 -> Item 218: Statement (location: (source ID: 38, lines: 120..121, bytes: 5454..5492), hits: 5)
- runtime IC 1356 -> Item 219: Line (location: (source ID: 38, lines: 124..125, bytes: 5666..5686), hits: 5)
- runtime IC 1356 -> Item 220: Statement (location: (source ID: 38, lines: 124..125, bytes: 5666..5686), hits: 5)
- runtime IC 1364 -> Item 221: Statement (location: (source ID: 38, lines: 124..125, bytes: 5688..5709), hits: 5)
- runtime IC 1364 -> Item 222: Branch (branch: 1, path: 0) (location: (source ID: 38, lines: 124..125, bytes: 5688..5709), hits: 5)
- runtime IC 1380 -> Item 223: Line (location: (source ID: 38, lines: 131..132, bytes: 5975..6061), hits: 5)
- runtime IC 1380 -> Item 224: Statement (location: (source ID: 38, lines: 131..132, bytes: 5975..6061), hits: 5)
- runtime IC 1381 -> Item 225: Statement (location: (source ID: 38, lines: 131..132, bytes: 6001..6061), hits: 5)
- runtime IC 1508 -> Item 226: Line (location: (source ID: 38, lines: 140..141, bytes: 6422..6493), hits: 5)
- runtime IC 1508 -> Item 227: Statement (location: (source ID: 38, lines: 140..141, bytes: 6422..6493), hits: 5)
- runtime IC 1509 -> Item 228: Statement (location: (source ID: 38, lines: 140..141, bytes: 6455..6493), hits: 5)
- runtime IC 1631 -> Item 229: Line (location: (source ID: 38, lines: 143..144, bytes: 6579..6636), hits: 5)
- runtime IC 1631 -> Item 230: Statement (location: (source ID: 38, lines: 143..144, bytes: 6579..6636), hits: 5)
- runtime IC 1645 -> Item 231: Line (location: (source ID: 38, lines: 145..146, bytes: 6651..6676), hits: 5)
- runtime IC 1645 -> Item 232: Statement (location: (source ID: 38, lines: 145..146, bytes: 6651..6676), hits: 5)
- runtime IC 1652 -> Item 233: Branch (branch: 2, path: 0) (location: (source ID: 38, lines: 145..148, bytes: 6678..6750), hits: 0)
- runtime IC 1652 -> Item 234: Line (location: (source ID: 38, lines: 146..147, bytes: 6692..6739), hits: 0)
- runtime IC 1652 -> Item 235: Statement (location: (source ID: 38, lines: 146..147, bytes: 6692..6739), hits: 0)
- runtime IC 1702 -> Item 236: Line (location: (source ID: 38, lines: 148..149, bytes: 6763..6774), hits: 5)
- runtime IC 1702 -> Item 237: Statement (location: (source ID: 38, lines: 148..149, bytes: 6763..6774), hits: 5)
- runtime IC 1709 -> Item 238: Statement (location: (source ID: 38, lines: 148..149, bytes: 6776..6817), hits: 0)
- runtime IC 1709 -> Item 239: Branch (branch: 3, path: 0) (location: (source ID: 38, lines: 148..149, bytes: 6776..6817), hits: 0)
- runtime IC 1759 -> Item 240: Line (location: (source ID: 38, lines: 151..152, bytes: 6898..6944), hits: 5)
- runtime IC 1759 -> Item 241: Statement (location: (source ID: 38, lines: 151..152, bytes: 6898..6944), hits: 5)
- runtime IC 1802 -> Item 242: Line (location: (source ID: 38, lines: 153..154, bytes: 6955..6992), hits: 5)
- runtime IC 1802 -> Item 243: Statement (location: (source ID: 38, lines: 153..154, bytes: 6955..6992), hits: 5)
- runtime IC 1882 -> Item 244: Line (location: (source ID: 38, lines: 155..156, bytes: 7003..7016), hits: 5)
- runtime IC 1882 -> Item 245: Statement (location: (source ID: 38, lines: 155..156, bytes: 7003..7016), hits: 5)
- runtime IC 137 -> Item 246: Line (location: (source ID: 38, lines: 158..167, bytes: 7029..7434), hits: 2)
- runtime IC 137 -> Item 247: Function "getShareValue" (location: (source ID: 38, lines: 158..167, bytes: 7029..7434), hits: 2)
- runtime IC 883 -> Item 248: Line (location: (source ID: 38, lines: 161..162, bytes: 7263..7299), hits: 2)
- runtime IC 883 -> Item 249: Statement (location: (source ID: 38, lines: 161..162, bytes: 7263..7299), hits: 2)
- runtime IC 884 -> Item 250: Statement (location: (source ID: 38, lines: 161..162, bytes: 7278..7299), hits: 2)
- runtime IC 894 -> Item 251: Line (location: (source ID: 38, lines: 163..164, bytes: 7310..7380), hits: 2)
- runtime IC 894 -> Item 252: Statement (location: (source ID: 38, lines: 163..164, bytes: 7310..7380), hits: 2)
- runtime IC 895 -> Item 253: Statement (location: (source ID: 38, lines: 163..164, bytes: 7335..7380), hits: 2)
- runtime IC 1017 -> Item 254: Line (location: (source ID: 38, lines: 165..166, bytes: 7391..7427), hits: 2)
- runtime IC 1017 -> Item 255: Statement (location: (source ID: 38, lines: 165..166, bytes: 7391..7427), hits: 2)
- runtime IC 1017 -> Item 256: Statement (location: (source ID: 38, lines: 165..166, bytes: 7398..7427), hits: 2)
- runtime IC 2181 -> Item 257: Line (location: (source ID: 38, lines: 179..188, bytes: 7915..8288), hits: 8)
- runtime IC 2181 -> Item 258: Function "_getATokenAddress" (location: (source ID: 38, lines: 179..188, bytes: 7915..8288), hits: 8)
- runtime IC 2183 -> Item 259: Line (location: (source ID: 38, lines: 180..181, bytes: 8006..8042), hits: 8)
- runtime IC 2183 -> Item 260: Statement (location: (source ID: 38, lines: 180..181, bytes: 8006..8042), hits: 8)
- runtime IC 2184 -> Item 261: Statement (location: (source ID: 38, lines: 180..181, bytes: 8021..8042), hits: 8)
- runtime IC 2194 -> Item 262: Line (location: (source ID: 38, lines: 183..184, bytes: 8122..8198), hits: 8)
- runtime IC 2194 -> Item 263: Statement (location: (source ID: 38, lines: 183..184, bytes: 8122..8198), hits: 8)
- runtime IC 2195 -> Item 264: Statement (location: (source ID: 38, lines: 183..184, bytes: 8165..8198), hits: 8)
- runtime IC 2318 -> Item 265: Line (location: (source ID: 38, lines: 186..187, bytes: 8247..8281), hits: 8)
- runtime IC 2318 -> Item 266: Statement (location: (source ID: 38, lines: 186..187, bytes: 8247..8281), hits: 8)
- runtime IC 2034 -> Item 267: Line (location: (source ID: 38, lines: 191..194, bytes: 8390..8527), hits: 23)
- runtime IC 2034 -> Item 268: Function "_getAavePoolAddress" (location: (source ID: 38, lines: 191..194, bytes: 8390..8527), hits: 23)
- runtime IC 2036 -> Item 269: Line (location: (source ID: 38, lines: 192..193, bytes: 8472..8520), hits: 23)
- runtime IC 2036 -> Item 270: Statement (location: (source ID: 38, lines: 192..193, bytes: 8472..8520), hits: 23)
- runtime IC 263 -> Item 271: Line (location: (source ID: 38, lines: 199..203, bytes: 8789..8981), hits: 0)
- runtime IC 263 -> Item 272: Function "getBalance" (location: (source ID: 38, lines: 199..203, bytes: 8789..8981), hits: 0)
- runtime IC 1895 -> Item 273: Line (location: (source ID: 38, lines: 200..201, bytes: 8874..8915), hits: 0)
- runtime IC 1895 -> Item 274: Statement (location: (source ID: 38, lines: 200..201, bytes: 8874..8915), hits: 0)
- runtime IC 1896 -> Item 275: Statement (location: (source ID: 38, lines: 200..201, bytes: 8891..8915), hits: 0)
- runtime IC 1907 -> Item 276: Line (location: (source ID: 38, lines: 201..202, bytes: 8925..8974), hits: 0)
- runtime IC 1907 -> Item 277: Statement (location: (source ID: 38, lines: 201..202, bytes: 8925..8974), hits: 0)
- runtime IC 185 -> Item 278: Line (location: (source ID: 38, lines: 209..212, bytes: 9185..9313), hits: 0)
- runtime IC 185 -> Item 279: Function "getPoolAddressesProvider" (location: (source ID: 38, lines: 209..212, bytes: 9185..9313), hits: 0)
- runtime IC 1047 -> Item 280: Line (location: (source ID: 38, lines: 210..211, bytes: 9263..9306), hits: 0)
- runtime IC 1047 -> Item 281: Statement (location: (source ID: 38, lines: 210..211, bytes: 9263..9306), hits: 0)
Anchors for Contract "YieldAggregator" (solc 0.8.26, source ID 37):
- runtime IC 824 -> Item 0: Line (location: (source ID: 37, lines: 131..135, bytes: 6067..6188), hits: 21)
- runtime IC 824 -> Item 1: Function "validAmount" (location: (source ID: 37, lines: 131..135, bytes: 6067..6188), hits: 21)
- runtime IC 824 -> Item 2: Line (location: (source ID: 37, lines: 132..133, bytes: 6118..6129), hits: 21)
- runtime IC 824 -> Item 3: Statement (location: (source ID: 37, lines: 132..133, bytes: 6118..6129), hits: 21)
- runtime IC 831 -> Item 4: Statement (location: (source ID: 37, lines: 132..133, bytes: 6131..6170), hits: 1)
- runtime IC 831 -> Item 5: Branch (branch: 0, path: 0) (location: (source ID: 37, lines: 132..133, bytes: 6131..6170), hits: 1)
- runtime IC 3480 -> Item 6: Line (location: (source ID: 37, lines: 136..140, bytes: 6194..6352), hits: 20)
- runtime IC 3480 -> Item 7: Function "noneZeroAddress" (location: (source ID: 37, lines: 136..140, bytes: 6194..6352), hits: 20)
- runtime IC 3480 -> Item 8: Line (location: (source ID: 37, lines: 137..138, bytes: 6257..6285), hits: 20)
- runtime IC 3480 -> Item 9: Statement (location: (source ID: 37, lines: 137..138, bytes: 6257..6285), hits: 20)
- runtime IC 3531 -> Item 10: Statement (location: (source ID: 37, lines: 137..138, bytes: 6287..6334), hits: 1)
- runtime IC 3531 -> Item 11: Branch (branch: 1, path: 0) (location: (source ID: 37, lines: 137..138, bytes: 6287..6334), hits: 1)
- runtime IC 882 -> Item 12: Line (location: (source ID: 37, lines: 141..145, bytes: 6358..6484), hits: 20)
- runtime IC 882 -> Item 13: Function "validToken" (location: (source ID: 37, lines: 141..145, bytes: 6358..6484), hits: 20)
- runtime IC 882 -> Item 14: Line (location: (source ID: 37, lines: 142..143, bytes: 6407..6426), hits: 20)
- runtime IC 882 -> Item 15: Statement (location: (source ID: 37, lines: 142..143, bytes: 6407..6426), hits: 20)
- runtime IC 933 -> Item 16: Statement (location: (source ID: 37, lines: 142..143, bytes: 6428..6466), hits: 1)
- runtime IC 933 -> Item 17: Branch (branch: 2, path: 0) (location: (source ID: 37, lines: 142..143, bytes: 6428..6466), hits: 1)
- runtime IC 176 -> Item 18: Line (location: (source ID: 37, lines: 166..169, bytes: 7353..7445), hits: 1)
- runtime IC 176 -> Item 19: Function "receive" (location: (source ID: 37, lines: 166..169, bytes: 7353..7445), hits: 1)
- runtime IC 176 -> Item 20: Line (location: (source ID: 37, lines: 167..168, bytes: 7390..7438), hits: 1)
- runtime IC 176 -> Item 21: Statement (location: (source ID: 37, lines: 167..168, bytes: 7390..7438), hits: 1)
- runtime IC 569 -> Item 22: Line (location: (source ID: 37, lines: 179..182, bytes: 7988..8118), hits: 3)
- runtime IC 569 -> Item 23: Function "withdrawETH" (location: (source ID: 37, lines: 179..182, bytes: 7988..8118), hits: 3)
- runtime IC 2820 -> Item 24: Line (location: (source ID: 37, lines: 180..181, bytes: 8087..8111), hits: 2)
- runtime IC 2820 -> Item 25: Statement (location: (source ID: 37, lines: 180..181, bytes: 8087..8111), hits: 2)
- runtime IC 733 -> Item 26: Line (location: (source ID: 37, lines: 187..195, bytes: 8159..8389), hits: 20)
- runtime IC 733 -> Item 27: Function "addAdapter" (location: (source ID: 37, lines: 187..195, bytes: 8159..8389), hits: 20)
- runtime IC 3589 -> Item 28: Line (location: (source ID: 37, lines: 193..194, bytes: 8341..8382), hits: 18)
- runtime IC 3589 -> Item 29: Statement (location: (source ID: 37, lines: 193..194, bytes: 8341..8382), hits: 18)
- runtime IC 409 -> Item 30: Line (location: (source ID: 37, lines: 200..203, bytes: 8598..8702), hits: 11)
- runtime IC 409 -> Item 31: Function "withdraw" (location: (source ID: 37, lines: 200..203, bytes: 8598..8702), hits: 11)
- runtime IC 2178 -> Item 32: Line (location: (source ID: 37, lines: 201..202, bytes: 8671..8695), hits: 11)
- runtime IC 2178 -> Item 33: Statement (location: (source ID: 37, lines: 201..202, bytes: 8671..8695), hits: 11)
- runtime IC 229 -> Item 34: Line (location: (source ID: 37, lines: 204..213, bytes: 8708..8998), hits: 21)
- runtime IC 229 -> Item 35: Function "invest" (location: (source ID: 37, lines: 204..213, bytes: 8708..8998), hits: 21)
- runtime IC 983 -> Item 36: Line (location: (source ID: 37, lines: 211..212, bytes: 8934..8991), hits: 19)
- runtime IC 983 -> Item 37: Statement (location: (source ID: 37, lines: 211..212, bytes: 8934..8991), hits: 19)
- runtime IC 6490 -> Item 38: Line (location: (source ID: 37, lines: 223..239, bytes: 9543..9986), hits: 2)
- runtime IC 6490 -> Item 39: Function "_withdrawETH" (location: (source ID: 37, lines: 223..239, bytes: 9543..9986), hits: 2)
- runtime IC 6491 -> Item 40: Line (location: (source ID: 37, lines: 225..226, bytes: 9642..9672), hits: 2)
- runtime IC 6491 -> Item 41: Statement (location: (source ID: 37, lines: 225..226, bytes: 9642..9672), hits: 2)
- runtime IC 6499 -> Item 42: Branch (branch: 3, path: 0) (location: (source ID: 37, lines: 225..228, bytes: 9674..9747), hits: 1)
- runtime IC 6499 -> Item 43: Line (location: (source ID: 37, lines: 226..227, bytes: 9688..9736), hits: 1)
- runtime IC 6499 -> Item 44: Statement (location: (source ID: 37, lines: 226..227, bytes: 9688..9736), hits: 1)
- runtime IC 6549 -> Item 45: Line (location: (source ID: 37, lines: 232..233, bytes: 9801..9845), hits: 1)
- runtime IC 6549 -> Item 46: Statement (location: (source ID: 37, lines: 232..233, bytes: 9801..9845), hits: 1)
- runtime IC 6550 -> Item 47: Statement (location: (source ID: 37, lines: 232..233, bytes: 9819..9845), hits: 1)
- runtime IC 6653 -> Item 48: Line (location: (source ID: 37, lines: 233..234, bytes: 9859..9867), hits: 1)
- runtime IC 6653 -> Item 49: Statement (location: (source ID: 37, lines: 233..234, bytes: 9859..9867), hits: 1)
- runtime IC 6658 -> Item 50: Branch (branch: 4, path: 0) (location: (source ID: 37, lines: 233..236, bytes: 9869..9939), hits: 0)
- runtime IC 6658 -> Item 51: Line (location: (source ID: 37, lines: 234..235, bytes: 9883..9928), hits: 0)
- runtime IC 6658 -> Item 52: Statement (location: (source ID: 37, lines: 234..235, bytes: 9883..9928), hits: 0)
- runtime IC 6708 -> Item 53: Line (location: (source ID: 37, lines: 237..238, bytes: 9949..9979), hits: 1)
- runtime IC 6708 -> Item 54: Statement (location: (source ID: 37, lines: 237..238, bytes: 9949..9979), hits: 1)
- runtime IC 6975 -> Item 55: Line (location: (source ID: 37, lines: 245..250, bytes: 10228..10434), hits: 18)
- runtime IC 6975 -> Item 56: Function "_addAdapter" (location: (source ID: 37, lines: 245..250, bytes: 10228..10434), hits: 18)
- runtime IC 6976 -> Item 57: Line (location: (source ID: 37, lines: 246..247, bytes: 10320..10369), hits: 18)
- runtime IC 6976 -> Item 58: Statement (location: (source ID: 37, lines: 246..247, bytes: 10320..10369), hits: 18)
- runtime IC 7068 -> Item 59: Line (location: (source ID: 37, lines: 248..249, bytes: 10380..10427), hits: 18)
- runtime IC 7068 -> Item 60: Statement (location: (source ID: 37, lines: 248..249, bytes: 10380..10427), hits: 18)
- runtime IC 5018 -> Item 61: Line (location: (source ID: 37, lines: 271..306, bytes: 11638..14150), hits: 11)
- runtime IC 5018 -> Item 62: Function "_withdraw" (location: (source ID: 37, lines: 271..306, bytes: 11638..14150), hits: 11)
- runtime IC 5019 -> Item 63: Line (location: (source ID: 37, lines: 274..275, bytes: 11908..11984), hits: 11)
- runtime IC 5019 -> Item 64: Statement (location: (source ID: 37, lines: 274..275, bytes: 11908..11984), hits: 11)
- runtime IC 5083 -> Item 65: Line (location: (source ID: 37, lines: 276..277, bytes: 12106..12153), hits: 11)
- runtime IC 5083 -> Item 66: Statement (location: (source ID: 37, lines: 276..277, bytes: 12106..12153), hits: 11)
- runtime IC 5094 -> Item 67: Branch (branch: 5, path: 0) (location: (source ID: 37, lines: 276..279, bytes: 12155..12222), hits: 1)
- runtime IC 5094 -> Item 68: Line (location: (source ID: 37, lines: 277..278, bytes: 12169..12211), hits: 1)
- runtime IC 5094 -> Item 69: Statement (location: (source ID: 37, lines: 277..278, bytes: 12169..12211), hits: 1)
- runtime IC 5144 -> Item 70: Line (location: (source ID: 37, lines: 281..282, bytes: 12312..12381), hits: 10)
- runtime IC 5144 -> Item 71: Statement (location: (source ID: 37, lines: 281..282, bytes: 12312..12381), hits: 10)
- runtime IC 5483 -> Item 72: Line (location: (source ID: 37, lines: 283..284, bytes: 12750..12809), hits: 10)
- runtime IC 5483 -> Item 73: Statement (location: (source ID: 37, lines: 283..284, bytes: 12750..12809), hits: 10)
- runtime IC 5551 -> Item 74: Line (location: (source ID: 37, lines: 285..286, bytes: 13073..13094), hits: 10)
- runtime IC 5551 -> Item 75: Statement (location: (source ID: 37, lines: 285..286, bytes: 13073..13094), hits: 10)
- runtime IC 5602 -> Item 76: Branch (branch: 6, path: 0) (location: (source ID: 37, lines: 285..288, bytes: 13096..13167), hits: 0)
- runtime IC 5602 -> Item 77: Line (location: (source ID: 37, lines: 286..287, bytes: 13110..13156), hits: 0)
- runtime IC 5602 -> Item 78: Statement (location: (source ID: 37, lines: 286..287, bytes: 13110..13156), hits: 0)
- runtime IC 5652 -> Item 79: Line (location: (source ID: 37, lines: 293..294, bytes: 13388..13488), hits: 10)
- runtime IC 5652 -> Item 80: Statement (location: (source ID: 37, lines: 293..294, bytes: 13388..13488), hits: 10)
- runtime IC 5936 -> Item 81: Line (location: (source ID: 37, lines: 294..295, bytes: 13498..13527), hits: 10)
- runtime IC 5936 -> Item 82: Statement (location: (source ID: 37, lines: 294..295, bytes: 13498..13527), hits: 10)
- runtime IC 6075 -> Item 83: Line (location: (source ID: 37, lines: 298..299, bytes: 13627..13727), hits: 10)
- runtime IC 6075 -> Item 84: Statement (location: (source ID: 37, lines: 298..299, bytes: 13627..13727), hits: 10)
- runtime IC 6076 -> Item 85: Statement (location: (source ID: 37, lines: 298..299, bytes: 13653..13727), hits: 10)
- runtime IC 6209 -> Item 86: Line (location: (source ID: 37, lines: 301..302, bytes: 13980..14044), hits: 10)
- runtime IC 6209 -> Item 87: Statement (location: (source ID: 37, lines: 301..302, bytes: 13980..14044), hits: 10)
- runtime IC 6256 -> Item 88: Line (location: (source ID: 37, lines: 304..305, bytes: 14076..14143), hits: 10)
- runtime IC 6256 -> Item 89: Statement (location: (source ID: 37, lines: 304..305, bytes: 14076..14143), hits: 10)
- runtime IC 3811 -> Item 90: Line (location: (source ID: 37, lines: 314..375, bytes: 14574..17671), hits: 19)
- runtime IC 3811 -> Item 91: Function "_invest" (location: (source ID: 37, lines: 314..375, bytes: 14574..17671), hits: 19)
- runtime IC 3814 -> Item 92: Line (location: (source ID: 37, lines: 320..321, bytes: 14819..14854), hits: 19)
- runtime IC 3814 -> Item 93: Statement (location: (source ID: 37, lines: 320..321, bytes: 14819..14854), hits: 19)
- runtime IC 3813 -> Item 94: Statement (location: (source ID: 37, lines: 320..321, bytes: 14819..14863), hits: 19)
- runtime IC 3940 -> Item 95: Branch (branch: 7, path: 0) (location: (source ID: 37, lines: 320..323, bytes: 14865..14935), hits: 2)
- runtime IC 3940 -> Item 96: Line (location: (source ID: 37, lines: 321..322, bytes: 14879..14924), hits: 2)
- runtime IC 3940 -> Item 97: Statement (location: (source ID: 37, lines: 321..322, bytes: 14879..14924), hits: 2)
- runtime IC 3990 -> Item 98: Line (location: (source ID: 37, lines: 325..326, bytes: 14990..15038), hits: 17)
- runtime IC 3990 -> Item 99: Statement (location: (source ID: 37, lines: 325..326, bytes: 14990..15038), hits: 17)
- runtime IC 3994 -> Item 100: Line (location: (source ID: 37, lines: 326..327, bytes: 15052..15088), hits: 17)
- runtime IC 3994 -> Item 101: Statement (location: (source ID: 37, lines: 326..327, bytes: 15052..15088), hits: 17)
- runtime IC 4002 -> Item 102: Branch (branch: 8, path: 0) (location: (source ID: 37, lines: 326..329, bytes: 15090..15161), hits: 1)
- runtime IC 4002 -> Item 103: Line (location: (source ID: 37, lines: 327..328, bytes: 15104..15150), hits: 1)
- runtime IC 4002 -> Item 104: Statement (location: (source ID: 37, lines: 327..328, bytes: 15104..15150), hits: 1)
- runtime IC 4052 -> Item 105: Line (location: (source ID: 37, lines: 331..332, bytes: 15243..15295), hits: 16)
- runtime IC 4052 -> Item 106: Statement (location: (source ID: 37, lines: 331..332, bytes: 15243..15295), hits: 16)
- runtime IC 4117 -> Item 107: Line (location: (source ID: 37, lines: 333..334, bytes: 15559..15580), hits: 16)
- runtime IC 4117 -> Item 108: Statement (location: (source ID: 37, lines: 333..334, bytes: 15559..15580), hits: 16)
- runtime IC 4168 -> Item 109: Branch (branch: 9, path: 0) (location: (source ID: 37, lines: 333..336, bytes: 15582..15653), hits: 0)
- runtime IC 4168 -> Item 110: Line (location: (source ID: 37, lines: 334..335, bytes: 15596..15642), hits: 0)
- runtime IC 4168 -> Item 111: Statement (location: (source ID: 37, lines: 334..335, bytes: 15596..15642), hits: 0)
- runtime IC 4218 -> Item 112: Line (location: (source ID: 37, lines: 339..340, bytes: 15753..15818), hits: 16)
- runtime IC 4218 -> Item 113: Statement (location: (source ID: 37, lines: 339..340, bytes: 15753..15818), hits: 16)
- runtime IC 4263 -> Item 114: Line (location: (source ID: 37, lines: 341..342, bytes: 16014..16057), hits: 16)
- runtime IC 4263 -> Item 115: Statement (location: (source ID: 37, lines: 341..342, bytes: 16014..16057), hits: 16)
- runtime IC 4306 -> Item 116: Line (location: (source ID: 37, lines: 343..344, bytes: 16221..16286), hits: 16)
- runtime IC 4306 -> Item 117: Statement (location: (source ID: 37, lines: 343..344, bytes: 16221..16286), hits: 16)
- runtime IC 4307 -> Item 118: Statement (location: (source ID: 37, lines: 343..344, bytes: 16238..16286), hits: 16)
- runtime IC 4432 -> Item 119: Line (location: (source ID: 37, lines: 345..346, bytes: 16363..16388), hits: 16)
- runtime IC 4432 -> Item 120: Statement (location: (source ID: 37, lines: 345..346, bytes: 16363..16388), hits: 16)
- runtime IC 4433 -> Item 121: Line (location: (source ID: 37, lines: 347..348, bytes: 16440..16463), hits: 16)
- runtime IC 4433 -> Item 122: Statement (location: (source ID: 37, lines: 347..348, bytes: 16440..16463), hits: 16)
- runtime IC 4440 -> Item 123: Branch (branch: 10, path: 0) (location: (source ID: 37, lines: 347..350, bytes: 16465..16537), hits: 0)
- runtime IC 4440 -> Item 124: Line (location: (source ID: 37, lines: 348..349, bytes: 16479..16526), hits: 0)
- runtime IC 4440 -> Item 125: Statement (location: (source ID: 37, lines: 348..349, bytes: 16479..16526), hits: 0)
- runtime IC 4490 -> Item 126: Line (location: (source ID: 37, lines: 358..359, bytes: 17036..17086), hits: 16)
- runtime IC 4490 -> Item 127: Statement (location: (source ID: 37, lines: 358..359, bytes: 17036..17086), hits: 16)
- runtime IC 4557 -> Item 128: Line (location: (source ID: 37, lines: 360..371, bytes: 17097..17553), hits: 16)
- runtime IC 4557 -> Item 129: Statement (location: (source ID: 37, lines: 360..371, bytes: 17097..17553), hits: 16)
- runtime IC 4895 -> Item 130: Line (location: (source ID: 37, lines: 373..374, bytes: 17594..17664), hits: 16)
- runtime IC 4895 -> Item 131: Statement (location: (source ID: 37, lines: 373..374, bytes: 17594..17664), hits: 16)
- runtime IC 349 -> Item 132: Line (location: (source ID: 37, lines: 387..400, bytes: 18223..19000), hits: 6)
- runtime IC 349 -> Item 133: Function "getPositionValue" (location: (source ID: 37, lines: 387..400, bytes: 18223..19000), hits: 6)
- runtime IC 1461 -> Item 134: Line (location: (source ID: 37, lines: 388..389, bytes: 18336..18403), hits: 6)
- runtime IC 1461 -> Item 135: Statement (location: (source ID: 37, lines: 388..389, bytes: 18336..18403), hits: 6)
- runtime IC 1860 -> Item 136: Line (location: (source ID: 37, lines: 390..391, bytes: 18414..18473), hits: 6)
- runtime IC 1860 -> Item 137: Statement (location: (source ID: 37, lines: 390..391, bytes: 18414..18473), hits: 6)
- runtime IC 1928 -> Item 138: Line (location: (source ID: 37, lines: 393..394, bytes: 18738..18759), hits: 6)
- runtime IC 1928 -> Item 139: Statement (location: (source ID: 37, lines: 393..394, bytes: 18738..18759), hits: 6)
- runtime IC 1979 -> Item 140: Branch (branch: 11, path: 0) (location: (source ID: 37, lines: 393..396, bytes: 18761..18832), hits: 0)
- runtime IC 1979 -> Item 141: Line (location: (source ID: 37, lines: 394..395, bytes: 18775..18821), hits: 0)
- runtime IC 1979 -> Item 142: Statement (location: (source ID: 37, lines: 394..395, bytes: 18775..18821), hits: 0)
- runtime IC 2029 -> Item 143: Line (location: (source ID: 37, lines: 398..399, bytes: 18899..18993), hits: 6)
- runtime IC 2029 -> Item 144: Statement (location: (source ID: 37, lines: 398..399, bytes: 18899..18993), hits: 6)
- runtime IC 609 -> Item 145: Line (location: (source ID: 37, lines: 407..414, bytes: 19218..19632), hits: 3)
- runtime IC 609 -> Item 146: Function "getYieldEarned" (location: (source ID: 37, lines: 407..414, bytes: 19218..19632), hits: 3)
- runtime IC 2843 -> Item 147: Line (location: (source ID: 37, lines: 408..409, bytes: 19328..19395), hits: 3)
- runtime IC 2843 -> Item 148: Statement (location: (source ID: 37, lines: 408..409, bytes: 19328..19395), hits: 3)
- runtime IC 3242 -> Item 149: Line (location: (source ID: 37, lines: 409..410, bytes: 19405..19470), hits: 3)
- runtime IC 3242 -> Item 150: Statement (location: (source ID: 37, lines: 409..410, bytes: 19405..19470), hits: 3)
- runtime IC 3243 -> Item 151: Statement (location: (source ID: 37, lines: 409..410, bytes: 19428..19470), hits: 3)
- runtime IC 3368 -> Item 152: Line (location: (source ID: 37, lines: 412..413, bytes: 19526..19625), hits: 3)
- runtime IC 3368 -> Item 153: Statement (location: (source ID: 37, lines: 412..413, bytes: 19526..19625), hits: 3)
- runtime IC 289 -> Item 154: Line (location: (source ID: 37, lines: 420..423, bytes: 19908..20039), hits: 1)
- runtime IC 289 -> Item 155: Function "getUserPositions" (location: (source ID: 37, lines: 420..423, bytes: 19908..20039), hits: 1)
- runtime IC 1015 -> Item 156: Line (location: (source ID: 37, lines: 421..422, bytes: 20004..20032), hits: 1)
- runtime IC 1015 -> Item 157: Statement (location: (source ID: 37, lines: 421..422, bytes: 20004..20032), hits: 1)
- runtime IC 449 -> Item 158: Line (location: (source ID: 37, lines: 428..431, bytes: 20273..20401), hits: 7)
- runtime IC 449 -> Item 159: Function "getUserPositionCount" (location: (source ID: 37, lines: 428..431, bytes: 20273..20401), hits: 7)
- runtime IC 2199 -> Item 160: Line (location: (source ID: 37, lines: 429..430, bytes: 20359..20394), hits: 7)
- runtime IC 2199 -> Item 161: Statement (location: (source ID: 37, lines: 429..430, bytes: 20359..20394), hits: 7)
- runtime IC 509 -> Item 162: Line (location: (source ID: 37, lines: 439..445, bytes: 20764..21040), hits: 3)
- runtime IC 509 -> Item 163: Function "getUserPositionByIndex" (location: (source ID: 37, lines: 439..445, bytes: 20764..21040), hits: 3)
- runtime IC 2279 -> Item 164: Line (location: (source ID: 37, lines: 440..441, bytes: 20883..20920), hits: 3)
- runtime IC 2279 -> Item 165: Statement (location: (source ID: 37, lines: 440..441, bytes: 20883..20920), hits: 3)
- runtime IC 2350 -> Item 166: Branch (branch: 12, path: 0) (location: (source ID: 37, lines: 440..443, bytes: 20922..20989), hits: 2)
- runtime IC 2350 -> Item 167: Line (location: (source ID: 37, lines: 441..442, bytes: 20936..20978), hits: 2)
- runtime IC 2350 -> Item 168: Statement (location: (source ID: 37, lines: 441..442, bytes: 20936..20978), hits: 2)
- runtime IC 2400 -> Item 169: Line (location: (source ID: 37, lines: 443..444, bytes: 20998..21033), hits: 1)
- runtime IC 2400 -> Item 170: Statement (location: (source ID: 37, lines: 443..444, bytes: 20998..21033), hits: 1)