Commit a255759
Merge Develop into Master (#934)
* Logging for RewardsManager and PositionManager invariants (#925)
* added logging for positionManager
* added rewards and position logging
* clean up
* updated rewards mapping back to public so tests pass
* how modifier was being called in rewardsPoolHandler
* revised so logging pools is not required when logging positions
* cleanup
* readme cleanup
---------
Co-authored-by: Ian Harvey <[email protected]>
* Invariants Improvement: Add multiple pool support in position and rewards manager invariant testing (#927)
* Add multiple pools in position and rewards manager invariant testing
* Fix RW6 regression test
* Fix rewardsClaimed and updateRewardsClaimed in Rewards manager
* Fix compile error
* PR feedback
* Add configurable number of pools for position and rewards manager invariant testing
* Positions Invariants: Multiple positions, transfer positions (#926)
* added randomness
* added the ability to transfer positions
* increased chance of rewards being claimed in handlers
* cleanup
* responded to comments
---------
Co-authored-by: Ian Harvey <[email protected]>
* Fuzz test additions (#924)
* Add fuzz test for borrower borrows fuzzed amount and getting kick after some time
* Add fuzz test for take fuzzed amount of collateral from auction
* Add fuzz test for settle with fuzzed pool deposit
* Add fuzz test for add and remove collateral in ERC721Pool
* Fuzzed buckets used in borrow and kick fuzz test
* PR feedback
* Invariant Improvements: Position rewards logging for multiple pools (#931)
* Update position and rewards manager invariant logging for multiple pools
* Fix regression test to run for any token precision and Quote token limits
* PR feedback
* Invariants Improvements: Add Multiple position in single handler in Position (#928)
* Update Position invariants handler to memorialize and redeem multiple positions
* PR feedback
* Add partial random positions redeem in redeem position handler
* Add random time skips between epochs in rewards manager
* Add bucket bankruptcy scenario for rewards manager (#930)
* Add bucket bankruptcy scenario for rewards manager
* Fix evm reverts
* PR feedback
* Update prepare test methods to add position in NFT if there is no position in it
---------
Co-authored-by: Ian Harvey <[email protected]>
Co-authored-by: Prateek Gupta <[email protected]>1 parent febd576 commit a255759
File tree
57 files changed
+1969
-533
lines changed- src
- interfaces/rewards
- tests
- forge
- invariants
- ERC20Pool
- handlers
- unbounded
- ERC721Pool
- handlers
- unbounded
- PositionsAndRewards
- handlers
- unbounded
- base/handlers/unbounded
- interfaces
- regression
- ERC20Pool
- PositionAndRewards
- unit
- ERC20Pool
- ERC721Pool
- Rewards
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
57 files changed
+1969
-533
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 74 | | |
75 | | - | |
76 | | - | |
| 75 | + | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
322 | 338 | | |
323 | 339 | | |
324 | 340 | | |
| |||
340 | 356 | | |
341 | 357 | | |
342 | 358 | | |
| 359 | + | |
| 360 | + | |
343 | 361 | | |
344 | 362 | | |
345 | 363 | | |
| |||
358 | 376 | | |
359 | 377 | | |
360 | 378 | | |
361 | | - | |
| 379 | + | |
362 | 380 | | |
363 | 381 | | |
364 | 382 | | |
| |||
382 | 400 | | |
383 | 401 | | |
384 | 402 | | |
385 | | - | |
| 403 | + | |
386 | 404 | | |
387 | 405 | | |
388 | 406 | | |
| |||
397 | 415 | | |
398 | 416 | | |
399 | 417 | | |
400 | | - | |
| 418 | + | |
401 | 419 | | |
402 | 420 | | |
403 | 421 | | |
| |||
445 | 463 | | |
446 | 464 | | |
447 | 465 | | |
448 | | - | |
| 466 | + | |
449 | 467 | | |
450 | 468 | | |
451 | 469 | | |
| |||
609 | 627 | | |
610 | 628 | | |
611 | 629 | | |
| 630 | + | |
612 | 631 | | |
613 | 632 | | |
614 | 633 | | |
| |||
657 | 676 | | |
658 | 677 | | |
659 | 678 | | |
660 | | - | |
| 679 | + | |
661 | 680 | | |
662 | 681 | | |
663 | 682 | | |
| |||
686 | 705 | | |
687 | 706 | | |
688 | 707 | | |
689 | | - | |
| 708 | + | |
690 | 709 | | |
691 | 710 | | |
692 | 711 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
48 | | - | |
| 51 | + | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| |||
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | | - | |
83 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
29 | | - | |
| 27 | + | |
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
| |||
0 commit comments