Skip to content

Commit

Permalink
Retry failed token price updates
Browse files Browse the repository at this point in the history
The `token-prices-service` will now retry token price updates if they
fail. The retry strategy is designed to let the API recover if it is
experiencing high traffic volumes.

The service now requires state in order to hold onto the retry policy.
It has been converted to a class for that reason. This required no
changes to the abstract price service type or to the
`TokenRatesController`.

Closes #2084
  • Loading branch information
Gudahtt committed Dec 13, 2023
1 parent aea9bac commit b88b8bd
Show file tree
Hide file tree
Showing 5 changed files with 493 additions and 23 deletions.
1 change: 1 addition & 0 deletions packages/assets-controllers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"@metamask/utils": "^8.2.0",
"@types/uuid": "^8.3.0",
"async-mutex": "^0.2.6",
"cockatiel": "3.1.1",
"ethereumjs-util": "^7.0.10",
"lodash": "^4.17.21",
"multiformats": "^9.5.2",
Expand Down
Loading

0 comments on commit b88b8bd

Please sign in to comment.