Polkadex-Substrate / Polkadex-Open-Beta

12 stars 3 forks source link

OrderBook - Inconsistent balances shown #583

Closed jaymansfield closed 9 months ago

jaymansfield commented 9 months ago

I just noticed theres an issue with my DOT balance shown on the orderbook.polkadex.trade

It's different in two spots:

image

image

trading account:esmuPSguC6ikSgWCo7toNjguFRp8WNqrWqn6HwQiiT7H9H3dc funding account: esnbKSRnU1WKNgJewte4asokmCWwiKBL2HeVWS3NSYEiZfoYc

I'm not sure which should be correct. The last thing I can remember doing was cancel an open order.

onchainaddress:{esm99RRxKvainDsRR6UHRcju4vNnAw1ouZEw64Yfn12tc6HpQ}

jaymansfield commented 9 months ago

I just tried orderbook-internal.polkadex.trade and there seems to be a different issue there.

The funds tab matches the balances page: image

But I see this:

image

ap211unitech commented 9 months ago

Hey, It was an issue with calculations, your DOT balance is 0 i.e. 7.575*(10^-6). So, it's been rendering wrong in balances table and in funds tab. You can see the fixes soon on internal website. and would be reflected in main website in couple of days.

Here is the PR - https://github.com/Polkadex-Substrate/Polkadex-Orderbook-Frontend/pull/912