Skip to content

Commit

Permalink
fix: fix patch
Browse files Browse the repository at this point in the history
  • Loading branch information
salimtb committed Apr 26, 2024
1 parent 0c1792c commit 0e141e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1503,7 +1503,7 @@ index 323286a4ba2c54e2dac0f1a7da08335b2ae77322..f7023e11b5f6e86555a6945044134ed9
-//# sourceMappingURL=codefi-v2.d.ts.map
\ No newline at end of file
diff --git a/dist/token-prices-service/codefi-v2.js b/dist/token-prices-service/codefi-v2.js
index 4203923f591c318041027904e5130972580f6f73..3285af35a252a573a57366d274f5e4a77c03e83b 100644
index 4203923f591c318041027904e5130972580f6f73..c7603691607f4894ce6bfec7080ca353bee47b39 100644
--- a/dist/token-prices-service/codefi-v2.js
+++ b/dist/token-prices-service/codefi-v2.js
@@ -1,27 +1,54 @@
Expand Down Expand Up @@ -1581,7 +1581,7 @@ index 4203923f591c318041027904e5130972580f6f73..3285af35a252a573a57366d274f5e4a7
const controller_utils_1 = require("@metamask/controller-utils");
const utils_1 = require("@metamask/utils");
const cockatiel_1 = require("cockatiel");
@@ -30,325 +57,367 @@ const cockatiel_1 = require("cockatiel");
@@ -30,325 +57,361 @@ const cockatiel_1 = require("cockatiel");
* the `/spot-prices` endpoint, in lowercase form.
*/
exports.SUPPORTED_CURRENCIES = [
Expand Down Expand Up @@ -2195,12 +2195,6 @@ index 4203923f591c318041027904e5130972580f6f73..3285af35a252a573a57366d274f5e4a7
+ ?.pricePercentChange1d;
+ const priceChange1d =
+ pricesByCurrencyByTokenAddress[lowercasedTokenAddress]?.priceChange1d;
+ if (!price) {
+ // console error instead of throwing to not interrupt the fetching of other tokens in case just one fails
+ console.error(
+ `Could not find price for "${tokenAddress}" in "${currency}"`
+ );
+ }
+ const tokenPrice = {
+ tokenAddress,
+ value: price,
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4184,7 +4184,7 @@ __metadata:

"@metamask/assets-controllers@patch:@metamask/assets-controllers@patch%3A@metamask/assets-controllers@patch%253A@metamask/assets-controllers@patch%25253A@metamask/assets-controllers@npm%2525253A26.0.0%252523~/.yarn/patches/@metamask-assets-controllers-npm-26.0.0-17c0e9432c.patch%25253A%25253Aversion=26.0.0&hash=cf1d54%2523~/.yarn/patches/@metamask-assets-controllers-patch-0f46262fea.patch%253A%253Aversion=26.0.0&hash=5c145e%23~/.yarn/patches/@metamask-assets-controllers-patch-7616cc1669.patch%3A%3Aversion=26.0.0&hash=fd4d03#~/.yarn/patches/@metamask-assets-controllers-patch-55c0923b82.patch":
version: 26.0.0
resolution: "@metamask/assets-controllers@patch:@metamask/assets-controllers@patch%3A@metamask/assets-controllers@patch%253A@metamask/assets-controllers@patch%25253A@metamask/assets-controllers@npm%2525253A26.0.0%252523~/.yarn/patches/@metamask-assets-controllers-npm-26.0.0-17c0e9432c.patch%25253A%25253Aversion=26.0.0&hash=cf1d54%2523~/.yarn/patches/@metamask-assets-controllers-patch-0f46262fea.patch%253A%253Aversion=26.0.0&hash=5c145e%23~/.yarn/patches/@metamask-assets-controllers-patch-7616cc1669.patch%3A%3Aversion=26.0.0&hash=fd4d03#~/.yarn/patches/@metamask-assets-controllers-patch-55c0923b82.patch::version=26.0.0&hash=57158a"
resolution: "@metamask/assets-controllers@patch:@metamask/assets-controllers@patch%3A@metamask/assets-controllers@patch%253A@metamask/assets-controllers@patch%25253A@metamask/assets-controllers@npm%2525253A26.0.0%252523~/.yarn/patches/@metamask-assets-controllers-npm-26.0.0-17c0e9432c.patch%25253A%25253Aversion=26.0.0&hash=cf1d54%2523~/.yarn/patches/@metamask-assets-controllers-patch-0f46262fea.patch%253A%253Aversion=26.0.0&hash=5c145e%23~/.yarn/patches/@metamask-assets-controllers-patch-7616cc1669.patch%3A%3Aversion=26.0.0&hash=fd4d03#~/.yarn/patches/@metamask-assets-controllers-patch-55c0923b82.patch::version=26.0.0&hash=1f22f9"
dependencies:
"@ethereumjs/util": "npm:^8.1.0"
"@ethersproject/address": "npm:^5.7.0"
Expand Down Expand Up @@ -4220,7 +4220,7 @@ __metadata:
"@metamask/keyring-controller": ^13.0.0
"@metamask/network-controller": ^17.2.0
"@metamask/preferences-controller": ^8.0.0
checksum: ff6ba80d451ee883cf0940ec7cefe76624eaeb348b6245818c609ff8914fa72740e37d47ccd3cdff10a69d68b63c2c07e2d5bd1cf05cdc2a0ea297a5f5acb11e
checksum: 5e7d5dbc38b00efd5e18fb56f593b62476357f8f411f21f753523310b9b114739d01000b4ad83cb70f038d6f477b6a071b47ca69445b7100d1d3caa04e52bcdc
languageName: node
linkType: hard

Expand Down

0 comments on commit 0e141e0

Please sign in to comment.