UNPKG

@signumjs/util

Version:

Useful utilities and tools for building Signum Network applications

8 lines 385 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.convertAssetPriceToPlanck = convertAssetPriceToPlanck; const amount_1 = require("./amount"); function convertAssetPriceToPlanck(assetPrice, decimals) { return amount_1.Amount.fromSigna(assetPrice).multiply(10 ** (decimals - 8)).getPlanck(); } //# sourceMappingURL=convertAssetPriceToPlanck.js.map