balancednetwork/balanced-network-interface

Cross-chain loan enhancements

Closed this issue · 1 comments

  • Add list sorting to the collateral & blockchain selectors.
  • When signed in, order both lists in the collateral section from highest to lowest collateral deposited, then by highest to lowest balance available. Sort the loan blockchain selector by wallet balance.

  • Add the chain breakdown for each collateral type in the signed out & All collateral states:
    Screenshot 2024-08-19 at 1 28 49 PM

  • Update the zero balance view in the Collateral section to prompt users to add the token to their wallet:

update-0-balance-state

Add {token} to your {blockchain} wallet.


  • The above screenshot was taken in Firefox. Is there any way to fix the alignment of icons and chevrons on the Home page? Also noticed it on the Trade page, but to a lesser extent.


  • Hide the blockchain address in the borrow confirmation modal if you choose to receive bnUSD on the same chain.

  • Update the confirmation modals to use Transfer fee instead of Cross-chain fee:
    Screenshot 2024-08-19 at 4 03 05 PM

  • This applies to the whole app, but when you first visit a page, it takes a while for the fonts etc to load in. Is there anything we can do to speed this up?

  • When you choose to withdraw ICX collateral, make Keep sICX the default and change recieve to receive:
Screenshot 2024-08-22 at 5 40 45 PM

  • Update the sign in message in the Collateral section (... sign in with {chain}. -> ...sign in on {chain}.
    update-sign-in-prompt

  • Prevent the borrow fee in the modal from resetting to 0 bnUSD after you sign the transaction


  • If a transaction has to roll back, let's change the modal message from Transfer rollbacked to Transaction reverted

@parrot9design

Add the chain breakdown for each collateral type

Still waiting for the backend

This applies to the whole app, but when you first visit a page, it takes a while for the fonts etc to load in. Is there anything we can do to speed this up?

I've added a font-display: swap rule to the font face, that should specifically force loading the font as soon as the rule is read.

Usually this is handled by preloading the font, but it's kind of loosing the sense in our bundler, because the bundler hashes the asset names. Meaning the resulting font name has a gibberish in the end - font-name-D34Hhhd77.wofffor example. So we would have to import the files dynamically using javascript, then create the preloading tags using the dynamic names and then append the tags to the document. Doesn't sound like performance optimisation 😅

The css rule should help, if not and the font change issue is still annoying, I can look into the option above in more detail.

EDIT: Looks like the hashing is configurable, so I can look into it if the swap rule doesn't help.