@helium/currency
Version:
Utilities for handling different currency types on the Helium blockchain
9 lines • 754 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OraclePriceRequiredError = exports.UnsupportedTickerError = exports.UnsupportedCurrencyConversionError = exports.MixedCurrencyTypeError = void 0;
exports.MixedCurrencyTypeError = new Error('Arguments provided to arithmetic functions must be of the same currency type.');
exports.UnsupportedCurrencyConversionError = new Error('This currency does not support this type of conversion');
const UnsupportedTickerError = (ticker) => new Error(`Ticker ${ticker} is not supported`);
exports.UnsupportedTickerError = UnsupportedTickerError;
exports.OraclePriceRequiredError = new Error('This conversion requires an oracle price to compute.');
//# sourceMappingURL=Errors.js.map