Equibit / wallet-ui

0 stars 1 forks source link

Order status becomes incorrect if buyer claims in wrong order #1154

Open Eternali opened 6 years ago

Eternali commented 6 years ago

Process:

  1. User 1 creates a buy/sell order
  2. User 2 makes two partial offers that add up to fill the order
  3. User 1 accepts both offers, one after the other
  4. User 2 collects both payments in the opposite order that User 1 accepted them in.
  5. User 1 collects any of the 2 offers

Now the order magically moves to ARCHIVED page where User 1 can collect the other offer. In some cases both User 1 and User 2 need to logout and log back in before they can make any orders/offers or claim any payments because an 'Auth token invalid' error is displayed.

Related to this issue is the problem that the status of an order remains OPEN even if enough offers have been accepted to fill the order. Only once at least one offer has been collected by the buyer will the order's status move to TRADING or TRADING-AVAILABLE.