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 83d37dc commit adbf103
Show file tree
Hide file tree
Showing 7 changed files with 495 additions and 25 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
2 changes: 1 addition & 1 deletion packages/assets-controllers/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ export {
formatIconUrlWithProxy,
getFormattedIpfsUrl,
} from './assetsUtil';
export { codefiTokenPricesServiceV2 } from './token-prices-service';
export { CodefiTokenPricesServiceV2 } from './token-prices-service';
Loading

0 comments on commit adbf103

Please sign in to comment.