Closed boolafish closed 5 years ago
1) A funding tx that consumes the previous tx output and create DEX specific output 2) A funding tx that only contains message which indicates which tx output the user is willing to provide the fund 3) Pure funding message without any tx. Operator has special mechanism that handles the message.
This approach defines a new tx for funding. The funding tx would take a normal transaction UTXO as input and create a DEX specific tx output.
This approach defines a new tx for funding. The funding tx would contains only message that indicate which UTXO the trader is willing to provide as trade fund.
the funding message tx can be with a bond. If user decides to transfer away the funding UTXO, the bond would become the compensation for exchange.
Similar with previous one, just without any tx on plasma chain.
Upon operator receive the message, it flag the UTXO and block any tx that uses the UTXO. If user tries to IFE, operator might need to join the challenge game. (ah....this means our challenge game for normal tx need to take DEX design into consideration :( )
As in MVP requirement, it does not ask for the feature of minimizing info leakage. Thus, choose 1/ for now for the simpleness.
documented it here: https://hackmd.io/ox5XLjdPRK6N3Mp9T9eUZw?both#Funding
Description
As a exchange, I want a way to accept users fund, so that I can check whether the trader has enough fund for his/her order.
As a trader, I should be able to place a firm order ‘immediately’ if I can demonstrate that I have sufficient funds to place an order, So that I can have good experience using the exchange.
As a trader, I want the funding to be promised that exchange can only use my fund in my order, and not being able to steal it, So that I can have feel safe to keep my fund on exchange.
sub story of #53
Note
The essence of this requirement is that: (a) the network should support funds transfer to an exchange actor without the exchange being obligated to do anything with those funds, except to return them to the user at some point if they are not spent, (b) the exchange must support the ability to decouple funds transfer from actual order entry and track the funding requirements to ensure the user has sufficient funds available to participate at the desired level.
from F1 of requirement doc.
Successful Criteria