@rabbitio/ui-kit 1.0.0-beta.25 → 1.0.0-beta.26
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.modern.js
CHANGED
|
@@ -3242,8 +3242,8 @@ class SwapUtils {
|
|
|
3242
3242
|
const fiatRate = coinToCurrentFiatRate != null ? coinToCurrentFiatRate : coinUsdRate == null ? void 0 : coinUsdRate.rate;
|
|
3243
3243
|
const fiatDecimals = fiatCurrencyDecimals != null ? fiatCurrencyDecimals : FiatCurrenciesService.getCurrencyDecimalCountByCode("USD");
|
|
3244
3244
|
if (fiatRate != null) {
|
|
3245
|
-
fiatMin = BigNumber(details == null ? void 0 : details.smallestMin).times(coinToCurrentFiatRate
|
|
3246
|
-
fiatMax = BigNumber(details == null ? void 0 : details.greatestMax).times(coinToCurrentFiatRate
|
|
3245
|
+
fiatMin = BigNumber(details == null ? void 0 : details.smallestMin).times(coinToCurrentFiatRate).toFixed(fiatDecimals);
|
|
3246
|
+
fiatMax = BigNumber(details == null ? void 0 : details.greatestMax).times(coinToCurrentFiatRate).toFixed(fiatDecimals);
|
|
3247
3247
|
}
|
|
3248
3248
|
const result = {
|
|
3249
3249
|
result: true,
|