Skip to content

Commit

Permalink
livecoin: handle tag in fetchDepositAddress ccxt#1348
Browse files Browse the repository at this point in the history
  • Loading branch information
kornrunner committed Jan 18, 2018
1 parent a1576a8 commit 5539924
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/livecoin.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,16 @@ module.exports = class livecoin extends Exchange {
};
let response = await this.privateGetPaymentGetAddress (this.extend (request, params));
let address = this.safeString (response, 'wallet');
let tag = undefined;
if (address.indexOf (':') >= 0) {
let parts = address.split (':');
address = parts[0];
tag = parts[2];
}
return {
'currency': currency,
'address': address,
'tag': tag,
'status': 'ok',
'info': response,
};
Expand Down

0 comments on commit 5539924

Please sign in to comment.