Polkadex-Substrate / Polkadex-Open-Beta

12 stars 3 forks source link

orderbook is rendered broken if there are orphan limit orders #483

Open zeshanjum opened 1 year ago

zeshanjum commented 1 year ago

By raising this issue, I agree to the terms and conditions presented by Polkadex here:Terms and Conditions

Description this issue is in reference to issue # 479. let say if you have limit order from trading account, and that account get deleted from blockchain, those limit order are still their in orderbook locked. now if you want to clear those limit orders (i.e buy or sell when those limit order are in away), the order will not go through, since the trading account associated with those limit order got deleted, (Main account not found). and hence orderbook is not tradable. it will throw a raw error msg. "Order failed: {"errorMessage":"{\"code\":-32000,\"message\":\"Error in receiving oneshot channel: MainAccountNotFound\"}","errorType":"Lambda:Handled"}"

onchainaddress:{esrFTmBAFR1vzbTtqoCbj453geXZAnMLRKRrHorLmxVpsc8UR}

zeshanjum commented 1 year ago

i have a limit sell order at 1.71, almost ~35 pdex from a trading account whih got deleted from blockchain i am unable to buy it from another account.

jaymansfield commented 1 year ago

414