@ledgerhq/coin-canton
Version:
10 lines • 574 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseAPIValue = void 0;
const currencies_1 = require("@ledgerhq/coin-module-framework/currencies");
const currencies_2 = require("@ledgerhq/ledger-wallet-framework/currencies");
// NOTE: replace ripple by your currency id, it should be found in
// @domain/entity-currency-crypto
const parseAPIValue = (value) => (0, currencies_1.parseCurrencyUnit)((0, currencies_2.getCryptoCurrencyById)("ripple").units[0], value);
exports.parseAPIValue = parseAPIValue;
//# sourceMappingURL=common.js.map