core icon indicating copy to clipboard operation
core copied to clipboard

Improve `TokenBalancesController` with new polling patterns and optimizations

Open bergeron opened this issue 4 months ago • 0 comments

  • Make TokenBalancesController extend StaticIntervalPollingController
  • Update the state to be per chain id and per account
  • Make it use AssetsContractController:getBalancesInSingleCall to more efficiently get balances in 1 RPC call if the chain supports it
  • If the chain does not have our multicall contract, fetch balances in parallel

bergeron avatar Oct 04 '24 01:10 bergeron