mirror of
https://github.com/logos-co/staking.git
synced 2025-02-03 14:24:13 +00:00
7581c2a079
spec This is necessary because we need to run this rule on a custom config to avoid timeouts.
18 lines
600 B
Python
18 lines
600 B
Python
import "./shared.spec";
|
|
|
|
methods {
|
|
function accounts(address) external returns(address, uint256, uint256, uint256, uint256, uint256, uint256, uint256) envfree;
|
|
}
|
|
|
|
invariant MPcantBeGreaterThanMaxMP(address addr)
|
|
to_mathint(getAccountCurrentMultiplierPoints(addr)) <= (getAccountBalance(addr) * 8) + getAccountBonusMultiplierPoints(addr)
|
|
filtered {
|
|
f -> f.selector != sig:migrateFrom(address,bool,StakeManager.Account).selector
|
|
}
|
|
{ preserved {
|
|
requireInvariant InitialMPIsNeverSmallerThanBalance(addr);
|
|
requireInvariant CurrentMPIsNeverSmallerThanInitialMP(addr);
|
|
}
|
|
}
|
|
|