@rabbitio/ui-kit 1.0.0-beta.26 → 1.0.0-beta.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +2 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.module.js +2 -2
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/swaps-lib/utils/swapUtils.js +2 -2
package/dist/index.module.js
CHANGED
|
@@ -3804,8 +3804,8 @@ var SwapUtils = /*#__PURE__*/function () {
|
|
|
3804
3804
|
var fiatRate = (_coinToCurrentFiatRat = coinToCurrentFiatRate) != null ? _coinToCurrentFiatRat : coinUsdRate == null ? void 0 : coinUsdRate.rate;
|
|
3805
3805
|
var fiatDecimals = (_fiatCurrencyDecimals = fiatCurrencyDecimals) != null ? _fiatCurrencyDecimals : FiatCurrenciesService.getCurrencyDecimalCountByCode("USD");
|
|
3806
3806
|
if (fiatRate != null) {
|
|
3807
|
-
fiatMin = BigNumber(details == null ? void 0 : details.smallestMin).times(
|
|
3808
|
-
fiatMax = BigNumber(details == null ? void 0 : details.greatestMax).times(
|
|
3807
|
+
fiatMin = BigNumber(details == null ? void 0 : details.smallestMin).times(fiatRate).toFixed(fiatDecimals);
|
|
3808
|
+
fiatMax = BigNumber(details == null ? void 0 : details.greatestMax).times(fiatRate).toFixed(fiatDecimals);
|
|
3809
3809
|
}
|
|
3810
3810
|
var result = {
|
|
3811
3811
|
result: true,
|