Skip to content

Commit

Permalink
aax parseDepositAddress currencyId fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor authored Oct 5, 2021
1 parent 7ea3b28 commit b97c318
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions js/aax.js
Original file line number Diff line number Diff line change
Expand Up @@ -1814,9 +1814,11 @@ module.exports = class aax extends Exchange {
//
const address = this.safeString (depositAddress, 'address');
const tag = this.safeString (depositAddress, 'tag');
const rawCurrencyId = this.safeString (depositAddress, 'currency');
const network = this.safeString (depositAddress, 'network', '');
const currencyId = rawCurrencyId.slice (network.length);
let currencyId = this.safeString (depositAddress, 'currency');
const network = this.safeString (depositAddress, 'network');
if (network !== undefined) {
currencyId = currencyId.replace (network, '');
}
const code = this.safeCurrencyCode (currencyId);
return {
'info': depositAddress,
Expand Down

0 comments on commit b97c318

Please sign in to comment.