Skip to content

Commit

Permalink
Merge pull request #11261 from sc0Vu/patch-liquid-11107
Browse files Browse the repository at this point in the history
liquid: add deposit/withdraw flag in currencies #11107
  • Loading branch information
kroitor committed Jan 13, 2022
2 parents 5697ef2 + 570e3bb commit 4648a5d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/liquid.js
Expand Up @@ -257,14 +257,18 @@ module.exports = class liquid extends Exchange {
const id = this.safeString (currency, 'currency');
const code = this.safeCurrencyCode (id);
const name = this.safeString (currency, 'name');
const active = currency['depositable'] && currency['withdrawable'];
const depositable = this.safeValue (currency, 'depositable');
const withdrawable = this.safeValue (currency, 'withdrawable');
const active = depositable && withdrawable;
const amountPrecision = this.safeInteger (currency, 'assets_precision');
result[code] = {
'id': id,
'code': code,
'info': currency,
'name': name,
'active': active,
'deposit': depositable,
'withdraw': withdrawable,
'fee': this.safeNumber (currency, 'withdrawal_fee'),
'precision': amountPrecision,
'limits': {
Expand Down

0 comments on commit 4648a5d

Please sign in to comment.