@ledgerhq/cryptoassets
Advanced tools
Comparing version 5.47.1 to 5.47.2
@@ -149,2 +149,3 @@ import { getCryptoCurrencyById, findCryptoCurrencyByTicker } from "./currencies"; | ||
function convertERC20([parentCurrencyId, token, ticker, magnitude, name, ledgerSignature, contractAddress, disableCountervalue, delisted, countervalueTicker, compoundFor]) { | ||
const parentCurrency = getCryptoCurrencyById(parentCurrencyId); | ||
return { | ||
@@ -155,3 +156,3 @@ type: "TokenCurrency", | ||
contractAddress, | ||
parentCurrency: getCryptoCurrencyById(parentCurrencyId), | ||
parentCurrency, | ||
tokenType: "erc20", | ||
@@ -161,4 +162,3 @@ name, | ||
delisted, | ||
disableCountervalue: !!disableCountervalue || !!findCryptoCurrencyByTicker(ticker), | ||
// if it collides, disable | ||
disableCountervalue: !!parentCurrency.isTestnetFor || !!disableCountervalue, | ||
countervalueTicker, | ||
@@ -165,0 +165,0 @@ compoundFor: compoundFor ? parentCurrencyId + "/erc20/" + compoundFor : undefined, |
@@ -184,2 +184,3 @@ "use strict"; | ||
function convertERC20([parentCurrencyId, token, ticker, magnitude, name, ledgerSignature, contractAddress, disableCountervalue, delisted, countervalueTicker, compoundFor]) { | ||
const parentCurrency = (0, _currencies.getCryptoCurrencyById)(parentCurrencyId); | ||
return { | ||
@@ -190,3 +191,3 @@ type: "TokenCurrency", | ||
contractAddress, | ||
parentCurrency: (0, _currencies.getCryptoCurrencyById)(parentCurrencyId), | ||
parentCurrency, | ||
tokenType: "erc20", | ||
@@ -196,4 +197,3 @@ name, | ||
delisted, | ||
disableCountervalue: !!disableCountervalue || !!(0, _currencies.findCryptoCurrencyByTicker)(ticker), | ||
// if it collides, disable | ||
disableCountervalue: !!parentCurrency.isTestnetFor || !!disableCountervalue, | ||
countervalueTicker, | ||
@@ -200,0 +200,0 @@ compoundFor: compoundFor ? parentCurrencyId + "/erc20/" + compoundFor : undefined, |
{ | ||
"name": "@ledgerhq/cryptoassets", | ||
"version": "5.47.1", | ||
"version": "5.47.2", | ||
"description": "Ledger crypto-assets list", | ||
@@ -35,3 +35,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "75cc275aa8cd43be99dc5b900cc3ed50217f2a98" | ||
"gitHead": "dec36c24f86953d3bf94ce2c29a194b591ec98e1" | ||
} |
@@ -167,2 +167,3 @@ // @flow | ||
]): TokenCurrency { | ||
const parentCurrency = getCryptoCurrencyById(parentCurrencyId); | ||
return { | ||
@@ -173,3 +174,3 @@ type: "TokenCurrency", | ||
contractAddress, | ||
parentCurrency: getCryptoCurrencyById(parentCurrencyId), | ||
parentCurrency, | ||
tokenType: "erc20", | ||
@@ -179,4 +180,3 @@ name, | ||
delisted, | ||
disableCountervalue: | ||
!!disableCountervalue || !!findCryptoCurrencyByTicker(ticker), // if it collides, disable | ||
disableCountervalue: !!parentCurrency.isTestnetFor || !!disableCountervalue, | ||
countervalueTicker, | ||
@@ -183,0 +183,0 @@ compoundFor: compoundFor |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2594205