Skip to content

Commit

Permalink
Merge pull request ccxt#8745 from ndubel/patch-19
Browse files Browse the repository at this point in the history
gateio safeInteger
  • Loading branch information
kroitor authored Mar 29, 2021
2 parents c9b621c + 8bfc560 commit 05dfc1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/gateio.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ module.exports = class gateio extends Exchange {
const currency = coin[id];
const code = this.safeCurrencyCode (id);
const delisted = this.safeValue (currency, 'delisted', 0);
const withdrawDisabled = this.safeValue (currency, 'withdraw_disabled', 0);
const depositDisabled = this.safeValue (currency, 'deposit_disabled', 0);
const tradeDisabled = this.safeValue (currency, 'trade_disabled', 0);
const withdrawDisabled = this.safeInteger2 (currency, 'withdraw_disabled', 0);
const depositDisabled = this.safeInteger2 (currency, 'deposit_disabled', 0);
const tradeDisabled = this.safeInteger2 (currency, 'trade_disabled', 0);
const listed = (delisted === 0);
const withdrawEnabled = (withdrawDisabled === 0);
const depositEnabled = (depositDisabled === 0);
Expand Down Expand Up @@ -324,7 +324,7 @@ module.exports = class gateio extends Exchange {
'price': priceLimits,
'cost': costLimits,
};
const disabled = this.safeValue (details, 'trade_disabled');
const disabled = this.safeInteger (details, 'trade_disabled');
const active = !disabled;
const uppercaseId = id.toUpperCase ();
const fee = this.safeFloat (details, 'fee');
Expand Down

0 comments on commit 05dfc1b

Please sign in to comment.