extension icon indicating copy to clipboard operation
extension copied to clipboard

added balance data to buy assets in swap view

Open dills122 opened this issue 2 years ago • 10 comments

Description:

Swap view only showed the balance of the token you were swapping from, not for the one you were swapping to.

Fix

Added balance for token being swapped to, if the user has any of that token currently.

Demo

https://user-images.githubusercontent.com/15662762/202069032-dee37c6e-75bb-4bf8-82b9-0c60229abadc.mov

Related to: https://github.com/tallycash/extension/issues/974

Latest build: extension-builds-2628 (as of Tue, 29 Nov 2022 19:19:01 GMT).

dills122 avatar Nov 16 '22 02:11 dills122

Ooh, I like this — @VladUXUI what do you think, is there risk of confusion here?

mhluongo avatar Nov 16 '22 19:11 mhluongo

Thanks @dills122! This looks good and I don't think there will be any confusion here. The pattern for the swap "from" is kept, so users will know already that the small amount is current balance

VladUXUI avatar Nov 17 '22 06:11 VladUXUI

@dills122 i see you've been picking up a few UI things(super excited about that!) Some of these tickets are quite old and some might even be outdated (we need to groom our backlog)

But for the time being, if you first want to ask if "this ticket is still something we want to pick up?" i'll gladly answer as soon as possible. This is to avoid you doing anything that we might have reconsidered or had another fix for.

Totally up to you

VladUXUI avatar Nov 17 '22 06:11 VladUXUI

Also i'm assuming the exchange rate in the video is because of local build right? $6 to $101 is not bad 😅

VladUXUI avatar Nov 17 '22 06:11 VladUXUI

Or... is swap amount = balance after swap? (so current balance + this swap?) If that is the case, that would indeed be confusing

VladUXUI avatar Nov 17 '22 06:11 VladUXUI

@dills122 i see you've been picking up a few UI things(super excited about that!) Some of these tickets are quite old and some might even be outdated (we need to groom our backlog)

But for the time being, if you first want to ask if "this ticket is still something we want to pick up?" i'll gladly answer as soon as possible. This is to avoid you doing anything that we might have reconsidered or had another fix for.

Totally up to you

Hey @VladUXUI that sounds good to me.

dills122 avatar Nov 18 '22 19:11 dills122

Also i'm assuming the exchange rate in the video is because of local build right? $6 to $101 is not bad 😅

@VladUXUI Yeah I think the crazy numbers are just from some of the testnet coins. I did a quick check using LINK on test net and it looks like the values are the same with & without this fix.

Without these changes:

tally-ui-974-before

With these changes:

tally-ui-974-after

dills122 avatar Nov 18 '22 19:11 dills122

Hey @dills122 - wondering if this PR is good to be taken out of Draft and ready for code review?

0xDaedalus avatar Nov 29 '22 19:11 0xDaedalus

Hey @dills122 - wondering if this PR is good to be taken out of Draft and ready for code review?

Hey @0xDaedalus, yep this should be ready for a look. Slipped my mind with the holiday last week.

dills122 avatar Nov 29 '22 19:11 dills122

@dills122 We've made some changes to the Swap Page, could you please update this branch? Thank you 🙏

hyphenized avatar Jan 06 '23 04:01 hyphenized

Closing due to inactivity

jagodarybacka avatar Jan 18 '23 16:01 jagodarybacka