Closed hetfly closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
balanced-network-interface | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 4, 2024 7:40am |
balanced-network-stats | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 4, 2024 7:40am |
Let’s only show the chain breakdown when you’re signed in and hold an asset on more than one chain. If we show all the chains all the time, the list becomes quite tedious to scan.
When you choose an asset from the Swap field, if it's a multi-chain asset held on a single chain, can we make it default to that chain when you click it? If your balance of that asset is zero or you hold it on multiple chains, it should still use the default chain.
@parrot9design @FezBox
In the new token section under the swap panel, Fez mentioned he would like to see the total pool liquidity per token, not the actual amount of the token in the pool. This however shows double the liquidity compared to the token section on the stats page in the same table. Do we keep it like this and handle the difference with tooltip in LIQUIDITY
column header text?
@parrot9design @FezBox In the new token section under the swap panel, Fez mentioned he would like to see the total pool liquidity per token, not the actual amount of the token in the pool. This however shows double the liquidity compared to the token section on the stats page in the same table. Do we keep it like this and handle the difference with tooltip in
LIQUIDITY
column header text?
No, let’s keep the Tokens section focused on the tokens (so only show the liquidity for that specific token, like the Stats page). The Liquidity Pools section under the Supply tab already shows the pool-specific data, so it doesn’t make sense to confuse the Tokens section by displaying double the amount.
All assets
view in the dropdowns, zero-balance assets should use a – instead of a 0.Your assets
and All assets
? They don't have the same level of multi-chain complexity as the Swap tab does, so unless you have strong feelings about it, we could probably keep the list simple and just add the blockchain logo to the assets listed. If you think we should keep them, they should default to Your assets
when you have a balance available.USDT isn’t on the token list
Need to wait until USDT is included in the Balanced oracle contract to avoid unnecessary conditional logic. I'm expecting it to be done during the next vote.
we could probably keep the list simple and just add the blockchain logo to the assets listed.
Do you mean adding ICON logos to supply tab assets and currently selected From
chain logos to bridge assets?
(this would be nice for the blockchain selectors on the Home page, as well)
There is a connect prompt in the loan selector, that could be useful. And the homepage sections have the selector quite wide, so hiding the content on the right side would make it look a bit weird. I might lean towards keeping the homepage as is, but it's not a strong opinion at all.
I do think the tokens should be displayed like this, but only the key pairs. Right now, we are showing half the amount of what's in the lp As a user I would see what assets and how big their pool is not just one side of it
We already have pool-related info on the Trade page, so there’s no reason to repeat ourselves.
The only reason to include the Tokens section at all is to make it easier for people to see which assets (and how much) are available to trade – and on which chains.
The one adjustment I'd make is to list all pools in the Liquidity Pools section, not just the ones with BALN incentives.
we could probably keep the list simple and just add the blockchain logo to the assets listed.
Do you mean adding ICON logos to supply tab assets and currently selected From chain logos to bridge assets?
Yes please!
(this would be nice for the blockchain selectors on the Home page, as well)
There is a connect prompt in the loan selector, that could be useful. And the homepage sections have the selector quite wide, so hiding the content on the right side would make it look a bit weird. I might lean towards keeping the homepage as is, but it's not a strong opinion at all.
Yeah, let's leave the Home page as it is. I was wondering if we should add the Connect
prompt to the Bridge chain selector so there's a more direct option to connect from that tab, but I don't want to force people to connect a wallet just to see what their options are.
E.g. searching for a chain ("base", "havah") currently returns all supported assets and the full list of chains they're available on. If you search for a chain while in the Your assets
view, you'll see assets that don't appear to meet your search term because you hold them on another supported chain. This makes it quite difficult to filter and assess your options.
We really need to do something about the Marketcap
label, as well: while it's accurate for ICON-based tokens, it's totally off-base for cross-chain tokens (it says BTC's marketcap is $496,568 / 7.76 BTC). I'll need to sleep on it, but worst case we'll have to add a tooltip to explain the situation.
I've set the default chains according to the highest liquidity. USDC - AVAX hyTB - AVAX USDT - Arbitrum
We really need to do something about the Marketcap label
Definitely, I meant to bring that up as well.
I wouldn't probably change the MARKETCAP
header, since it's important meta, so the tooltip might be it.
can we make it so you only see relevant results (including which chains we reveal)?
The chain based search in the asset selector makes things very complex in the context of recently added tabs (which even more so are in the swap panel only). I also doubt a bit that people would use it frequently for filtering the assets. Additionally, we have the token overview below the swap panel which includes the compatible chains at a glance.
I would actually prefer to remove the chain based search from the asset selector if you're not against it @parrot9design
@hetfly would it be easier to add the ability to search by chain to the wallet dropdown? While you can filter the token section by chain, it would be nice to do the same somewhere for your wallet, as well.
This PR has been a while in the making, though, so I'm happy to add it to the list of related issues in https://github.com/balancednetwork/balanced-network-interface/issues/1403 to avoid delaying the release any further.
[x] Change Marketcap
to Market cap
and Liquidity
to Available
[x] Add a tooltip next to Market cap
:
Based on the amount of tokens that have interacted with Balanced and/or the ICON blockchain.
<br><br>
It does not reflect the total market cap for multi-chain assets.
(I'm happy to be corrected if this description is not quite accurate.)
I don't know if this needs to be addressed, but random observation: you can't disconnect an EVM wallet unless you have internet.
No assets found.
to the Your assets
view when you don't hold any supported assets, similar to the message that appears for an unsuccessful search:
This PR has been a while in the making, though, so I'm happy to add it to the list of related issues
Let's do one final round, then we can move outstanding issues there, I'd like to merge this this week.
(I'm happy to be corrected if this description is not quite accurate.)
Thanks, looks good.
I don't know if this needs to be addressed, but random observation: you can't disconnect an EVM wallet unless you have internet.
I wouldn't spend time on this.
Move the 2nd asset & blockchain selectors underneath the input fields. They look a bit strange floating above, and it makes it harder to interact with the search and toggle options.
The asset and chain dropdown is now forced to be placed underneath the selector. Handles the issue mentioned here, as well https://github.com/balancednetwork/balanced-network-interface/issues/1402 - Prevent the Swap For asset selector from repositioning itself as you type.
USDT is missing some decimal precision
This is again related to USDT missing price. Let's avoid adding temporary conditional logic and wait for the backend. Should be done shortly after the next vote.
What do you think about sorting the tokens underneath the swap panel by price change by default? Shows nicely where the action is, as opposed to displaying AVAX or ICON on the first place every time. (default sort by name or by market cap respectively)
would it be easier to add the ability to search by chain to the wallet dropdown?
That's already done
What do you think about sorting the tokens underneath the swap panel by price change by default? Shows nicely where the action is, as opposed to displaying AVAX or ICON on the first place every time. (default sort by name or by market cap respectively)
Yeah, you're right, what was I thinking? Price change would be the most useful and interesting sorting method. 👍
would it be easier to add the ability to search by chain to the wallet dropdown?
That's already done
While it does allow you to search by chain, I meant so that it only shows you results for that chain. e.g. if you hold ETH on multiple chains and search Base
, it'll show you the ETH balance on all chains instead of just Base.
The asset and chain dropdown is now forced to be placed underneath the selector.
If the second asset is bnUSD or USDC, the chain dropdown appears above the selector until you scroll down the page a bit.
If clicking between the Swap / Supply / Bridge tabs at mobile, there's a noticeable delay between tapping and the page updating. There's a slight delay in the live app, but it feels at least twice as slow now.
If clicking between the Swap / Supply / Bridge tabs at mobile, there's a noticeable delay between tapping and the page updating.
It feels fine to me, could you check again if it wasn't a local issue please?
@hetfly Looks like it’s fine within the Hana mobile app, but it’s pretty slow in Safari on both my iPhone and iPad, even after I cleared the cache & gave them a restart.
https://github.com/user-attachments/assets/17560d79-7c53-467c-90dd-40464f6502ff
@parrot9design it feels absolutely fine on my iPhone 13 on Safari, could you also check on Firefox and Chrome on your device if it's the same please?
Looks like the issue is related to Safari’s content blockers. Zero delay after turning them off for this page.
@parrot9design alright, so are you happy with merging this as is?
Yep, we can merge this PR as-is, but the slowness is substantial so let's see if there's anything we can do to address it post-launch (telling people to turn off their content blockers for the site isn’t an ideal long-term solution).
ChatGPT has some recommendations, including:
@0xmilktea please review the PR
Apologies for not flagging this sooner, but the Tokens section should include assets held in the Stability Fund (not sure if we should include hyTB, though). The USDC listing currently reports only $1 available, and USDT doesn't show up at all.
close #1371