Polkadex-Substrate / Polkadex-Open-Beta

12 stars 3 forks source link

Deposit Crypto: Available balance shown includes liquidity locked in staking #460

Open davesanna opened 1 year ago

davesanna commented 1 year ago

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

Description

When depositing PDEX from polkadot.js to the orderbook, the available amount shown refers to the total amount hold by the account (without considering the reserved one, as it should be), including the amount staked, while should only show the transferrable amount.

In the below example, in the orderbook should only be shown 1.3615 PDEX as available (or 0.3615 if the existential deposit is considered) instead of 1076.05. Fix also the rounding in the availability of the token, too many decimal are being shown to the user, rounding to the 2nd/3rd decimal should be enough in the UI.

Polkadot.js balance

Orderbook Available Balance

onchainaddress:{esr7bFqhupjASG4tXqEcLs6xDhU81jw5U8HYZ7AMYbSkw2RjS}