-
-
Notifications
You must be signed in to change notification settings - Fork 277
[assets-controllers] Fetch token rates in batches to avoid hitting limits #3573
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingteam-wallet-frameworkDeprecated: Please use `team-core-platform` instead.Deprecated: Please use `team-core-platform` instead.
Description
We currently fetch the token rates for all tokens (for a given network) in a single call. However, the CoinGecko API we're currently using supports a maximum of 10 token addresses in a single request. Beyond that, it throws an error. The price API that we're considering migrating to has a similar limit of 15 addresses.
We should update the TokenRatesController to batch requests by a configurable amount (10 for now) to avoid hitting this error.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingteam-wallet-frameworkDeprecated: Please use `team-core-platform` instead.Deprecated: Please use `team-core-platform` instead.