Browse Source

flashMint finished

Aleksander Kryukov 3 years ago
parent
commit
a0b58c3071
1 changed files with 3 additions and 4 deletions
  1. 3 4
      certora/specs/ERC20FlashMint.spec

+ 3 - 4
certora/specs/ERC20FlashMint.spec

@@ -1,9 +1,8 @@
 import "erc20.spec"
 
 methods {
-    onFlashLoan(address, address, uint256, uint256, bytes) => HAVOC_ALL
-
-    _burn(address account, uint256 amount) returns(bool) => specBurn(account, amount);
+    maxFlashLoan(address) returns(uint256) envfree
+    _burn(address account, uint256 amount) returns(bool) => specBurn(account, amount)
 }
 
 ghost mapping(address => uint256) trackedBurnAmount;
@@ -26,4 +25,4 @@ rule letsWatchItBurns(env e){
     uint256 burned = trackedBurnAmount[receiver];
 
     assert to_mathint(amount + feeBefore) == burned, "cheater";
-}
+}