@trilo/hippopotamus
Version:
Make requests to the Trilo ecosystem
15 lines (14 loc) • 362 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkAmount = void 0;
exports.checkAmount = function (amount) {
if (typeof amount === "undefined") {
throw "Missing amount error";
}
try {
// amount = String(amount)
amount = parseFloat(amount);
}
catch (e) { }
return amount;
};