Closed michael-emmi closed 5 years ago
Seems doable for simple cases (the syntax is actually address(this).balance
instead of this(address).balance
). I will try it on a branch soon.
The tricky part comes when there is an array of receivers and you want to specify that any of their balance can be modified (probably requires quantifiers).
Another thing to consider is that the sender's balance is also going to be deduced by the gas amount after the transaction is completed. This could complicate things as we ignore gas consumption at the moment.
As discussed, we could have it with a warning that we are not considering balance modifications due to gas costs, miner rewards, etc.
Done with #70
@michael-emmi please check and close issue if OK
Works like a charm now!
It would be nice to be able to say that
balance
cannot be changed arbitrarily by the given function.