@melonproject/token-math
Version:
A small helper library to do precision safe calculations
10 lines (9 loc) • 455 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const jsbi_1 = __importDefault(require("jsbi"));
const toBI_1 = __importDefault(require("./toBI"));
const greaterThan = (a, b) => jsbi_1.default.greaterThan(toBI_1.default(a).value, toBI_1.default(b).value);
exports.default = greaterThan;