Skip to content

Commit

Permalink
Merge pull request #11276 from sc0Vu/patch-probit-11107
Browse files Browse the repository at this point in the history
probit: add deposit/withdraw flag in currencies #11107
  • Loading branch information
kroitor committed Jan 15, 2022
2 parents 5f9aa38 + c2a9241 commit 1052910
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions js/probit.js
Expand Up @@ -336,7 +336,9 @@ module.exports = class probit extends Exchange {
const precision = this.safeInteger (platform, 'precision');
const depositSuspended = this.safeValue (platform, 'deposit_suspended');
const withdrawalSuspended = this.safeValue (platform, 'withdrawal_suspended');
const active = !(depositSuspended && withdrawalSuspended);
const deposit = !depositSuspended;
const withdraw = !withdrawalSuspended;
const active = deposit && withdraw;
const withdrawalFees = this.safeValue (platform, 'withdrawal_fee', {});
const fees = [];
// sometimes the withdrawal fee is an empty object
Expand All @@ -358,12 +360,14 @@ module.exports = class probit extends Exchange {
'info': currency,
'name': name,
'active': active,
'deposit': deposit,
'withdraw': withdraw,
'fee': fee,
'precision': precision,
'limits': {
'amount': {
'min': Math.pow (10, -precision),
'max': Math.pow (10, precision),
'min': undefined,
'max': undefined,
},
'deposit': {
'min': this.safeNumber (platform, 'min_deposit_amount'),
Expand Down

0 comments on commit 1052910

Please sign in to comment.