OctoFi / octofi-app-aquafarm

OctoFi - Track your DeFi portfolio, find new investment opportunities, buy and sell directly, and wrap your tentacles around a sea of gains. Hosted on Github Pages.
https://app.octo.fi
41 stars 40 forks source link

Uniswap modal with currency list loads extremely slow #161

Closed nathanjessen closed 1 year ago

nathanjessen commented 3 years ago

The modal loads over 4000 tokens and each token does a balance retrieval. This is intensive and causes the browser to freeze up.

Solution: Remove the balance calls. Replace with no balance, or map a user's token balances to the currency list instead of making a call for each and every currency. Reduce the length of the list so fewer items are rendered. This can be done with a smaller token list or having a load more button at the bottom of a sliced list.

nathanjessen commented 1 year ago

Closed due to inactivity