@rabbitio/ui-kit 1.0.0-beta.17 → 1.0.0-beta.18
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 +57 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +16 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.module.js +57 -34
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +57 -34
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/swaps-lib/services/publicSwapService.js +19 -6
package/dist/index.modern.js
CHANGED
|
@@ -3251,12 +3251,25 @@ class PublicSwapService {
|
|
|
3251
3251
|
Logger.logError(e, "PublicSwapService.initialize");
|
|
3252
3252
|
}
|
|
3253
3253
|
}
|
|
3254
|
-
async
|
|
3254
|
+
async getDepositCurrenciesListForPublicSwap() {
|
|
3255
|
+
try {
|
|
3256
|
+
return await this._getCurrenciesListForPublicSwap(false);
|
|
3257
|
+
} catch (e) {
|
|
3258
|
+
improveAndRethrow(e, "getDepositCurrenciesListForPublicSwap");
|
|
3259
|
+
}
|
|
3260
|
+
}
|
|
3261
|
+
async getWithdrawCurrenciesListForPublicSwap() {
|
|
3262
|
+
try {
|
|
3263
|
+
return await this._getCurrenciesListForPublicSwap(true);
|
|
3264
|
+
} catch (e) {
|
|
3265
|
+
improveAndRethrow(e, "getWithdrawCurrenciesListForPublicSwap");
|
|
3266
|
+
}
|
|
3267
|
+
}
|
|
3268
|
+
async _getCurrenciesListForPublicSwap(withdraw = false) {
|
|
3255
3269
|
const loggerSource = "getCurrenciesListForPublicSwap";
|
|
3256
3270
|
try {
|
|
3257
3271
|
var _result$coins;
|
|
3258
|
-
|
|
3259
|
-
const result = currencyThatShouldNotBeFirst ? await this._swapProvider.getWithdrawalCurrencies(currencyThatShouldNotBeFirst) : await this._swapProvider.getDepositCurrencies();
|
|
3272
|
+
const result = withdraw ? await this._swapProvider.getWithdrawalCurrencies() : await this._swapProvider.getDepositCurrencies();
|
|
3260
3273
|
if (result.reason === SwapProvider.COMMON_ERRORS.REQUESTS_LIMIT_EXCEEDED) {
|
|
3261
3274
|
SwapUtils.safeHandleRequestsLimitExceeding();
|
|
3262
3275
|
return {
|