Closed dafyddd closed 2 years ago
Yeah, I think the best way to achieve this is to have a great UX. Could also have some text about best range/price etc...
Been thinking about some improvements/features:
Is it necessary to show more than the best route by default or even at all? Matcha do this pretty well
Users should be able to enter an output amount of tokens as well as an input. Would need to implement the above to achieve this I think
Would be cool to have a chart using prices from both tokens. Any ideas where I could get prices? Coingecko has them but the timestamps are different for each asset. Might not need to be extremely accurate but good to show trending direction. Paraswap do this nicely
Prism (SOL based swap https://prism.ag/) also does it but not as nice.
Show market data of output token. We could have some basic stats/info on the output token. Matcha do this nicely
Show trending swaps/performance. Haven't seen any great examples of this but Jupiter have a page for most searched on CoinGecko (SOL eco) and trending on Solscan (whatever trending means). Prism have top/bottom performers by price change. Might be cool to have a combination of price, volume and interest/most searched
@dafyddd @mschneider @tjshipe
Right now the multiple routes is the only indication I have of how much Jupiter is helping me. If we got rid of the multiple routes, there would be even fewer visual cues that this swap is superior to just swapping on one site. So I'd say keep the multiple routes unless you can provide the visual cue of Jupiter's value-add in another way.
agreed this would be good. Are you able to do this or do you need help from @tjshipe ?
Not sure about this. How different are the timestamps from coingecko? If close enough we could just make some assumptions and bin them together or something.
This is a good idea. My only worry is we end up with too much info or it becomes cluttered. But I think you should do it any way because we do have a lot of open space.
Good idea.
And here are some small UX things I'm considering.
It's hard to make sense of this quickly if I don't have commas. should be an easy fix
It's a bit harder with decimals because there needs to be some notion of value there. We don't need 6 decimals places for USDC values but we might for BTC values because 1e-6 BTC is still 5 cents. Not sure of the solution here except to take into account the value of the coin but that may be hard without having a USD market for every coin!
"X other routes" button pops modal
I've got a branch up with the above design https://github.com/blockworks-foundation/mango-ui-v3/tree/swap-v2. If @tjshipe has time to hook the output token input up that would be helpful
CoinGecko timestamps can be off by a few minutes from what I have seen.
👍
👍
Yeah, can do this for sure
Should be able to
Can do.
There are a couple of bugs with the input (can't enter float in the input and max button gets an error on some tokens (SOL and USDC for me). Hoping @tjshipe can take a look
@saml33
That looks great 👍
Sure thing. I'll hook it up on your new branch and push it back up.
I'll see if coingecko has a different api for this.
I really like the wallet on the side. Can you make it open by default and also have a more elegant slider bar
~@saml33 the .thin-scroll
class or some variation of it might work there~ added the class for now, feel free to change
@saml33 took a look at # 2 but jupiter ag doesn't support setting the output amount
@saml33 took a look at # 2 but jupiter ag doesn't support setting the output amount
@tjshipe – Bummer. Thanks for taking a look at it
It's pretty cool that we have the ability to swap any token on the Mango UI now, but I think the page is a bit sparse and unintuitive for new users. For example, as a new user, I don't immediately know why I should use this on Mango instead of just going to Orca/Raydium/Serum. My first thought is: oh look Mango has a swap thing that's probably just a worse version of some other project that focuses on that exclusively.
@saml33 Can you work on making this a bit more intuitive to use? Maybe, some kind of info to signal that the Swap feature is strictly better than going elsewhere. If you think it's already perfect please say so!