-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(RewardStreamerMP): keep track of
maxMP
instead of
`potentialMP` This commit changes the mechanics to ensure there are no more MP generated that what's allowed as per max limiting. Previously we've kept track of `potentialMP` which would decrease as more MP are generated. This made verifying certain rules on certora hard and/or impossible. So we decided to track `maxMP` instead, which only decreases when users unstake. This commit also introduces a rule that ensures any accounts MP never exceed their max mp. Closes #44
- Loading branch information
Showing
5 changed files
with
177 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,30 @@ | ||
IntegrationTest:testStake() (gas: 1378213) | ||
IntegrationTest:testStake() (gas: 1375519) | ||
RewardsStreamerTest:testStake() (gas: 869874) | ||
StakeTest:test_StakeMultipleAccounts() (gas: 438756) | ||
StakeTest:test_StakeMultipleAccountsAndRewards() (gas: 586002) | ||
StakeTest:test_StakeMultipleAccountsWithMinLockUp() (gas: 449214) | ||
StakeTest:test_StakeMultipleAccountsWithRandomLockUp() (gas: 470881) | ||
StakeTest:test_StakeOneAccount() (gas: 267795) | ||
StakeTest:test_StakeOneAccountAndRewards() (gas: 415039) | ||
StakeTest:test_StakeOneAccountWithMaxLockUp() (gas: 284120) | ||
StakeTest:test_StakeOneAccountWithMinLockUp() (gas: 284152) | ||
StakeTest:test_StakeOneAccountWithRandomLockUp() (gas: 284196) | ||
UnstakeTest:test_StakeMultipleAccounts() (gas: 438778) | ||
UnstakeTest:test_StakeMultipleAccountsAndRewards() (gas: 586002) | ||
UnstakeTest:test_StakeMultipleAccountsWithMinLockUp() (gas: 449214) | ||
UnstakeTest:test_StakeMultipleAccountsWithRandomLockUp() (gas: 470903) | ||
UnstakeTest:test_StakeOneAccount() (gas: 267795) | ||
UnstakeTest:test_StakeOneAccountAndRewards() (gas: 415061) | ||
UnstakeTest:test_StakeOneAccountWithMaxLockUp() (gas: 284120) | ||
UnstakeTest:test_StakeOneAccountWithMinLockUp() (gas: 284152) | ||
UnstakeTest:test_StakeOneAccountWithRandomLockUp() (gas: 284196) | ||
UnstakeTest:test_UnstakeMultipleAccounts() (gas: 616327) | ||
UnstakeTest:test_UnstakeMultipleAccountsAndRewards() (gas: 937593) | ||
UnstakeTest:test_UnstakeOneAccount() (gas: 446306) | ||
UnstakeTest:test_UnstakeOneAccountAndRewards() (gas: 557157) | ||
StakeTest:test_StakeMultipleAccounts() (gas: 438800) | ||
StakeTest:test_StakeMultipleAccountsAndRewards() (gas: 586066) | ||
StakeTest:test_StakeMultipleAccountsMPIncreasesMaxMPDoesNotChange() (gas: 743392) | ||
StakeTest:test_StakeMultipleAccountsWithMinLockUp() (gas: 449118) | ||
StakeTest:test_StakeMultipleAccountsWithRandomLockUp() (gas: 470666) | ||
StakeTest:test_StakeOneAccount() (gas: 267816) | ||
StakeTest:test_StakeOneAccountAndRewards() (gas: 415124) | ||
StakeTest:test_StakeOneAccountMPIncreasesMaxMPDoesNotChange() (gas: 472829) | ||
StakeTest:test_StakeOneAccountReachingMPLimit() (gas: 468437) | ||
StakeTest:test_StakeOneAccountWithMaxLockUp() (gas: 284045) | ||
StakeTest:test_StakeOneAccountWithMinLockUp() (gas: 284055) | ||
StakeTest:test_StakeOneAccountWithRandomLockUp() (gas: 284099) | ||
UnstakeTest:test_StakeMultipleAccounts() (gas: 438822) | ||
UnstakeTest:test_StakeMultipleAccountsAndRewards() (gas: 586066) | ||
UnstakeTest:test_StakeMultipleAccountsMPIncreasesMaxMPDoesNotChange() (gas: 743414) | ||
UnstakeTest:test_StakeMultipleAccountsWithMinLockUp() (gas: 449118) | ||
UnstakeTest:test_StakeMultipleAccountsWithRandomLockUp() (gas: 470688) | ||
UnstakeTest:test_StakeOneAccount() (gas: 267816) | ||
UnstakeTest:test_StakeOneAccountAndRewards() (gas: 415080) | ||
UnstakeTest:test_StakeOneAccountMPIncreasesMaxMPDoesNotChange() (gas: 472851) | ||
UnstakeTest:test_StakeOneAccountReachingMPLimit() (gas: 468459) | ||
UnstakeTest:test_StakeOneAccountWithMaxLockUp() (gas: 284068) | ||
UnstakeTest:test_StakeOneAccountWithMinLockUp() (gas: 284055) | ||
UnstakeTest:test_StakeOneAccountWithRandomLockUp() (gas: 284144) | ||
UnstakeTest:test_UnstakeMultipleAccounts() (gas: 616415) | ||
UnstakeTest:test_UnstakeMultipleAccountsAndRewards() (gas: 937787) | ||
UnstakeTest:test_UnstakeOneAccount() (gas: 446390) | ||
UnstakeTest:test_UnstakeOneAccountAndRewards() (gas: 557241) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.