UNPKG

@graphteon/juricode

Version:

We are forging the future with lines of digital steel

21 lines 604 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.amountIsValid = void 0; const MINIMUM_AMOUNT = 10; const MAXIMUM_AMOUNT = 25000; const amountIsValid = (amount) => { const value = parseInt(amount, 10); if (Number.isNaN(value)) return false; if (value < 0) return false; if (value < MINIMUM_AMOUNT) return false; if (value > MAXIMUM_AMOUNT) return false; if (value !== parseFloat(amount)) return false; return true; }; exports.amountIsValid = amountIsValid; //# sourceMappingURL=amount-is-valid.js.map