@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.cjs
CHANGED
|
@@ -3810,8 +3810,8 @@ var SwapUtils = /*#__PURE__*/function () {
|
|
|
3810
3810
|
var fiatRate = (_coinToCurrentFiatRat = coinToCurrentFiatRate) != null ? _coinToCurrentFiatRat : coinUsdRate == null ? void 0 : coinUsdRate.rate;
|
|
3811
3811
|
var fiatDecimals = (_fiatCurrencyDecimals = fiatCurrencyDecimals) != null ? _fiatCurrencyDecimals : FiatCurrenciesService.getCurrencyDecimalCountByCode("USD");
|
|
3812
3812
|
if (fiatRate != null) {
|
|
3813
|
-
fiatMin = bignumber_js.BigNumber(details == null ? void 0 : details.smallestMin).times(coinToCurrentFiatRate
|
|
3814
|
-
fiatMax = bignumber_js.BigNumber(details == null ? void 0 : details.greatestMax).times(coinToCurrentFiatRate
|
|
3813
|
+
fiatMin = bignumber_js.BigNumber(details == null ? void 0 : details.smallestMin).times(coinToCurrentFiatRate).toFixed(fiatDecimals);
|
|
3814
|
+
fiatMax = bignumber_js.BigNumber(details == null ? void 0 : details.greatestMax).times(coinToCurrentFiatRate).toFixed(fiatDecimals);
|
|
3815
3815
|
}
|
|
3816
3816
|
var result = {
|
|
3817
3817
|
result: true,
|