Skip to content

Commit

Permalink
cobinhood fetchDepositAddress added missing tag fix #3835
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Sep 12, 2018
1 parent 5a26a4e commit a2326d3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions js/cobinhood.js
Expand Up @@ -597,15 +597,27 @@ module.exports = class cobinhood extends Exchange {
let response = await this.privateGetWalletDepositAddresses (this.extend ({
'currency': currency['id'],
}, params));
//
// { success: true,
// result: { deposit_addresses: [ { address: "abcdefg",
// blockchain_id: "eosio",
// created_at: 1536768050235,
// currency: "EOS",
// memo: "12345678",
// type: "exchange" } ] } }
//
let addresses = this.safeValue (response['result'], 'deposit_addresses', []);
let address = undefined;
let tag = undefined;
if (addresses.length > 0) {
address = this.safeString (addresses[0], 'address');
tag = this.safeString2 (addresses[0], 'memo', 'tag');
}
this.checkAddress (address);
return {
'currency': code,
'address': address,
'tag': tag,
'info': response,
};
}
Expand Down

0 comments on commit a2326d3

Please sign in to comment.