Polkadex-Substrate / Polkadex-Open-Beta

12 stars 3 forks source link

Locked/reserved pdex but no open orders on beta #414

Open jaymansfield opened 1 year ago

jaymansfield commented 1 year ago

Locked pdex but no open orders on the beta (showing in both web app and mobile app)

trading account esmTkMQd76arMnRjWFkoEDj8pz5B4AuoTLXYDjtVixk4oNhVt funding account esnbKSRnU1WKNgJewte4asokmCWwiKBL2HeVWS3NSYEiZfoYc

image

image

onchainaddress:{esm99RRxKvainDsRR6UHRcju4vNnAw1ouZEw64Yfn12tc6HpQ}

nuel77 commented 1 year ago

is this locked amout still after trying a refresh?

jaymansfield commented 1 year ago

@nuel77 yes still locked. Can see it in both the mobile app and the web app still.

jaymansfield commented 1 year ago

image

image image

nuel77 commented 1 year ago

hmm.. we are adding a feature for users to force unlock incase these balance locks up.. do you happen to know the trades you did to create this issue. it be good if we can recreate this and do some tests.

jaymansfield commented 1 year ago

@nuel77 ive tried a bunch more scenarios to try to reproduce this and just figured it out.

It happens when you delete a trading account from the blockchain that has open orders.

Steps to reproduce the issue

  1. Created new account under new email
  2. Created 'trading account 1'
  3. Created sell pdex order using 'trading account 1'
  4. Created 'trading account 2' and set to in use
  5. Deleted 'trading account 1' from blockchain completely
  6. I'm now left with a single trading account, and locked funds i cant access since the open order disappeared after deleting 'trading account 1' and switching to 'trading account 2'

image

image

jaymansfield commented 1 year ago

it basically looks like once you delete a trading account the system does not cancel it's open orders and they become unaccessible to the user at that point