@lifi/widget
Version:
LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.
13 lines • 394 B
JavaScript
export const currencyExtendedFormatter = (lng, options) => {
const formatter = new Intl.NumberFormat(lng, {
...options,
style: 'currency',
});
return (value) => {
if (value > 0 && value < 0.01) {
return `<${formatter.format(0.01)}`;
}
return formatter.format(value);
};
};
//# sourceMappingURL=currencyExtendedFormatter.js.map