Skip to content

Optimize webui for a great number of tokens #9

@kelsos

Description

@kelsos

Currently the webui is not build to handle a great number of tokens.

The first time the user opens the webui for each token 4 requests to web3 take place (decimals/name/symbol/balance).

Then as long as the user is in page the mechanism keeps polling for tokens every 5 seconds. The polling mechanisms also includes a call to web3 for each token to check for balance.

Possible steps to resolve this

  • Update to web3.js 1.0.0 as we talked with @andrevmatos
  • Find if it is possible to batch all these calls to web3 and instead of doing x (number of tokens) http requests use a single one for all the information.
  • Find an alternative approach to update balances, instead of checking every 5 seconds

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions