@melonproject/token-math
Version:
A small helper library to do precision safe calculations
9 lines (8 loc) • 443 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const isQuantity_1 = __importDefault(require("../quantity/isQuantity"));
const isPrice = (input) => input.base && input.quote && isQuantity_1.default(input.base) && isQuantity_1.default(input.quote);
exports.default = isPrice;