chore(StakeManager.spec): fix spec to don't load totalMP greater than current sumOfMultipliers

This commit is contained in:
Ricardo Guilherme Schmidt 2024-10-03 00:24:12 -03:00
parent 9d7aa39d9b
commit f8d52e27e1

View File

@ -60,6 +60,10 @@ hook Sstore accounts[KEY address addr].totalMP uint256 newValue (uint256 oldValu
sumOfMultipliers = sumOfMultipliers - oldValue + newValue;
}
hook Sload uint256 newValue accounts[KEY address addr].totalMP {
require sumOfBalances >= to_mathint(newValue);
}
invariant sumOfBalancesIsTotalSupplyBalance()
sumOfBalances == to_mathint(totalSupplyBalance())
filtered {