add missing invariant

This commit is contained in:
r4bbit 2024-02-21 17:46:14 +01:00
parent 9194946d1d
commit e7333a350e
No known key found for this signature in database
GPG Key ID: E95F1E9447DC91A9
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ rule maxSupplyCannotBeLowerThanMintedCount() {
rule maxSupplyNotLowerThanTotalSupply(env e, method f) { rule maxSupplyNotLowerThanTotalSupply(env e, method f) {
require maxSupply() >= totalSupply(); require maxSupply() >= totalSupply();
requireInvariant mintCountGreaterEqualTotalSupplyAndTotalSupplyEqBalances();
calldataarg args; calldataarg args;
f(e, args); // call all public/external functions of a contract f(e, args); // call all public/external functions of a contract