flashMint finished
This commit is contained in:
@ -1,9 +1,8 @@
|
|||||||
import "erc20.spec"
|
import "erc20.spec"
|
||||||
|
|
||||||
methods {
|
methods {
|
||||||
onFlashLoan(address, address, uint256, uint256, bytes) => HAVOC_ALL
|
maxFlashLoan(address) returns(uint256) envfree
|
||||||
|
_burn(address account, uint256 amount) returns(bool) => specBurn(account, amount)
|
||||||
_burn(address account, uint256 amount) returns(bool) => specBurn(account, amount);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ghost mapping(address => uint256) trackedBurnAmount;
|
ghost mapping(address => uint256) trackedBurnAmount;
|
||||||
@ -26,4 +25,4 @@ rule letsWatchItBurns(env e){
|
|||||||
uint256 burned = trackedBurnAmount[receiver];
|
uint256 burned = trackedBurnAmount[receiver];
|
||||||
|
|
||||||
assert to_mathint(amount + feeBefore) == burned, "cheater";
|
assert to_mathint(amount + feeBefore) == burned, "cheater";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user