core
core copied to clipboard
Improve `TokenBalancesController` with new polling patterns and optimizations
- Make
TokenBalancesController
extendStaticIntervalPollingController
- 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