-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify Pay semantics #6
Comments
It seems there are several issues relating to
In general, some of these points that are interleaved. In particular, if |
One of Phil's suggestion was to simplify
Pay
semantics by removingtimeout
and continuation from it.We can do this by
Eval
input and tracking evaluated payments in contract's state.So, for example, if we have a contract:
We could instead have this:
we could allow any party to do an
Eval
input transaction to execute payment and save it in state to allow claiming payed money at any point later in time.One of the issues is was to do in this case:
There are insufficient funds in Alice's account, and the question is how to handle it.
One way is to split available amount between receivers proportional to payed amount.
Say, Bob gets 16, Charlie gets 32, and left 2 go into contract deposit.
The text was updated successfully, but these errors were encountered: