Skip to content

Commit

Permalink
Merge pull request #11202 from sc0Vu/patch-bw-11107
Browse files Browse the repository at this point in the history
bw: add deposit/withdraw flag in currencies #11107
  • Loading branch information
kroitor committed Jan 14, 2022
2 parents d559e97 + 6c51469 commit d1e2624
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/bw.js
Expand Up @@ -285,13 +285,19 @@ module.exports = class bw extends Exchange {
const id = this.safeString (currency, 'currencyId');
const code = this.safeCurrencyCode (this.safeStringUpper (currency, 'name'));
const state = this.safeInteger (currency, 'state');
const rechargeFlag = this.safeInteger (currency, 'rechargeFlag');
const drawFlag = this.safeInteger (currency, 'drawFlag');
const deposit = rechargeFlag === 1;
const withdraw = drawFlag === 1;
const active = state === 1;
result[code] = {
'id': id,
'code': code,
'info': currency,
'name': code,
'active': active,
'deposit': deposit,
'withdraw': withdraw,
'fee': this.safeNumber (currency, 'drawFee'),
'precision': undefined,
'limits': {
Expand Down

0 comments on commit d1e2624

Please sign in to comment.