Closed steffenkrogmann closed 2 years ago
We have the breakdown of the transacted cash/USD within the transaction object.
On the smart contract side what can happen is basically send all the money back to the client if it's a withdrawal transaction. Send all the USD cash to the agent if it's a deposit.
This should only be done if the transaction has not been confirmed by any of the two. Once it`s confirmed by any of the two we have a game theory problem. We do not know who is telling the truth to cancel. This brings us to the questions.
Let#s say an agent accepts a request, money is sent to escrow.
If something breaks, or the user never confirms, how and when do we send the money back?