mirror of https://github.com/logos-co/staking.git
chore(StakeManager.spec): fix spec to don't load totalMP greater than current sumOfMultipliers
This commit is contained in:
parent
41b43621f7
commit
fefc4dc4f0
|
@ -60,6 +60,10 @@ hook Sstore accounts[KEY address addr].totalMP uint256 newValue (uint256 oldValu
|
||||||
sumOfMultipliers = sumOfMultipliers - oldValue + newValue;
|
sumOfMultipliers = sumOfMultipliers - oldValue + newValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hook Sload uint256 newValue accounts[KEY address addr].totalMP {
|
||||||
|
require sumOfBalances >= to_mathint(newValue);
|
||||||
|
}
|
||||||
|
|
||||||
invariant sumOfBalancesIsTotalSupplyBalance()
|
invariant sumOfBalancesIsTotalSupplyBalance()
|
||||||
sumOfBalances == to_mathint(totalSupplyBalance())
|
sumOfBalances == to_mathint(totalSupplyBalance())
|
||||||
filtered {
|
filtered {
|
||||||
|
|
Loading…
Reference in New Issue