UNPKG

chaingate

Version:

A complete TypeScript library for connecting to and making transactions on different blockchains

12 lines 425 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toSatoshi = toSatoshi; exports.toBase = toBase; const NumberLike_1 = require("../../../../InternalUtils/NumberLike"); function toSatoshi(amount) { return (0, NumberLike_1.toDecimal)(amount).mul(1_0000_0000); } function toBase(amount) { return (0, NumberLike_1.toDecimal)(amount).div(1_0000_0000); } //# sourceMappingURL=utils.js.map