You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 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 <iharvey@comcast.net>
* 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 <iharvey@comcast.net>
* 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 <iharvey@comcast.net>
Co-authored-by: Prateek Gupta <prateek105@users.noreply.github.com>
| NO_OF_ACTORS | ERC20 ERC721 | 10 | Max number of actors to interact with the pool |
60
60
| QUOTE_PRECISION | ERC20 ERC721 | 18 | Precision of token used as quote token |
@@ -77,10 +77,12 @@ Invariant test scenarios can be externally configured by customizing following e
77
77
| SKIP_TIME_TO_KICK | ERC20 ERC721 | 200 days | The time to be skipped and drive a new loan undercollateralized. Use a big value to ensure a successful kick |
78
78
| MAX_EPOCH_ADVANCE | ERC20 ERC721 | 5 | The maximum number of epochs that will be created before an unstake or claimRewards call |
79
79
| MAX_AJNA_AMOUNT | ERC20 ERC721 | 100_000_000 | The maximum amount of ajna provided to the rewards contract |
80
+
| NO_OF_POOLS | Position Rewards | 10 | Number of pools to be used in position and rewards manager invariant testing |
80
81
| FOUNDRY_INVARIANT_RUNS | ERC20 ERC721 | 10 | The number of runs for each scenario |
81
82
| FOUNDRY_INVARIANT_DEPTH | ERC20 ERC721 | 200 | The number of actions performed in each scenario |
82
-
| LOGS_VERBOSITY | ERC20 ERC721 | 0 | <p> Details to log <p> 0 = No Logs <p> 1 = pool State <p> 2 = pool State, Auctions details <p> 3 = pool State, Auctions details , Buckets details <p> 4 = pool State, Auctions details , Buckets details, Lender details <p> 5 = pool State, Auctions details , Buckets details, Lender details, Borrower details <p> Note - Log File with name `logFile.txt` will be generated in project directory|
83
-
83
+
| LOGS_VERBOSITY_POOL | ERC20 ERC721 | 0 | <p> Details to log <p> 0 = No Logs <p> 1 = pool State <p> 2 = pool State, Auctions details <p> 3 = pool State, Auctions details , Buckets details <p> 4 = pool State, Auctions details , Buckets details, Lender details <p> 5 = pool State, Auctions details , Buckets details, Lender details, Borrower details <p> Note - Log File with name `logFile.txt` will be generated in project directory|
84
+
| LOGS_VERBOSITY_POSITION | ERC20 ERC721 | 0 | <p> Details to log <p> 0 = No Logs <p> 1 = positionManager details <p> Note - Log File with name `logFile.txt` will be generated in project directory|
85
+
| LOGS_VERBOSITY_REWARDS | ERC20 ERC721 | 0 | <p> Details to log <p> 0 = No Logs <p> 1 = rewardsManager details <p> Note - Log File with name `logFile.txt` will be generated in project directory|
84
86
#### Invariant names
85
87
86
88
The `<invariant_name>` placeholder in commands below could take following values:
0 commit comments