@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.
@@ -3251,12 +3251,25 @@ class PublicSwapService {
3251
3251
  Logger.logError(e, "PublicSwapService.initialize");
3252
3252
  }
3253
3253
  }
3254
- async getCurrenciesListForPublicSwap(currencyThatShouldNotBeFirst = null) {
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
- // TODO: [dev] this is temporary hack, change it to use dedicated lists inside UI and also here
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 {