Theorem failures in dispenser contract #1231
-
I'm attempting to build a simple dispenser contract for ASAs.
However, I'm getting a number of theorem failures:
Anyone able to help? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
For your first issue, you have to get the balance to be zero at the end. You have not yet made it so multiple buyers can do anything, so it is a bit misleading to try and fix this until you've completed what you hope the program will do. At the moment, you could return the unspent amounts to the seller. For the second issue, the |
Beta Was this translation helpful? Give feedback.
For your first issue, you have to get the balance to be zero at the end. You have not yet made it so multiple buyers can do anything, so it is a bit misleading to try and fix this until you've completed what you hope the program will do. At the moment, you could return the unspent amounts to the seller.
For the second issue, the
Buyer
is notassume
ing that those computations are correct. You could fix this by adding them asassume
s, but you will probably rewrite this program to use a loop (viaparallelReduce
) and then you'll probably want to have an API call (with.api_
) and then it will be more natural to usecheck