osmosis-frontend icon indicating copy to clipboard operation
osmosis-frontend copied to clipboard

Deposit function on Assets page includes vested tokens

Open JeremyParish69 opened this issue 3 years ago • 2 comments

Problem

The Deposit link on the Assets page includes vested tokens, making IBC transactions fail. It can be difficult for users to troubleshoot since even Keplr extension shows vested tokens as 'Available' and Mintscan will first show the total balance. Only once you manually subtract the vested balance (or look at 'Available' on Mintscan) can you determine what the real available balance is.

I noticed this today with LUM where many users' tokens are vested from the Airdrop.

Solution

Make it easy on users by having the Deposit function subtract vested tokens so transfers user don't get confused and IBC txs stop failing.

JeremyParish69 avatar Jan 03 '22 23:01 JeremyParish69

There's not a easy way to calculate the amount of loose vs vested tokens with the current bank/balances query. Feel like there could be a separate query (potentially from the Cosmos SDK itself) to get a summarized balance of vested/non-liquid tokens.

cc @ValarDragon

dogemos avatar Apr 04 '22 18:04 dogemos

Should be on the hub right now, using GetSpendableCoins query

ValarDragon avatar May 03 '22 16:05 ValarDragon

Haven't heard of issue being a problem to users

jonator avatar Sep 23 '22 19:09 jonator