Skip to content
Permalink
Browse files
cobinhood fetchDepositAddress added missing tag fix #3835
  • Loading branch information
kroitor committed Sep 12, 2018
1 parent 5a26a4e commit a2326d358b21b2b5b6097cef1859286edaf8dfe5
Showing with 12 additions and 0 deletions.
  1. +12 −0 js/cobinhood.js
@@ -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,
};
}

0 comments on commit a2326d3

Please sign in to comment.