Skip to content

Commit

Permalink
update fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorSlimm committed Jan 14, 2022
1 parent 41c2d8d commit 32479ad
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions js/idex.js
Expand Up @@ -1321,11 +1321,9 @@ module.exports = class idex extends Exchange {
const hasSecret = (this.secret !== undefined);
const hasWalletAddress = (this.walletAddress !== undefined);
const hasPrivateKey = (this.privateKey !== undefined);
if (hasApiKey && hasSecret && hasWalletAddress && hasPrivateKey) {
return 0.5;
} else {
return 1;
}
const defaultCost = this.safeValue (config, 'cost', 1);
const authenticated = hasApiKey && hasSecret && hasWalletAddress && hasPrivateKey;
return authenticated ? (defaultCost / 2) : defaultCost;
}

sign (path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
Expand Down

0 comments on commit 32479ad

Please sign in to comment.