Skip to content

Commit

Permalink
remove redundant clause in safeTrade
Browse files Browse the repository at this point in the history
  • Loading branch information
frosty00 committed Dec 28, 2022
1 parent e233c46 commit fe47fa9
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions js/base/Exchange.js
Expand Up @@ -1326,20 +1326,6 @@ module.exports = class Exchange {
const parseFees = this.safeValue (trade, 'fees') === undefined;
const shouldParseFees = parseFee || parseFees;
const fees = [];
if (shouldParseFees) {
const tradeFees = this.safeValue (trade, 'fees');
if (tradeFees !== undefined) {
for (let j = 0; j < tradeFees.length; j++) {
const tradeFee = tradeFees[j];
fees.push (this.extend ({}, tradeFee));
}
} else {
const tradeFee = this.safeValue (trade, 'fee');
if (tradeFee !== undefined) {
fees.push (this.extend ({}, tradeFee));
}
}
}
const fee = this.safeValue (trade, 'fee');
if (shouldParseFees) {
const reducedFees = this.reduceFees ? this.reduceFeesByCurrency (fees) : fees;
Expand Down

0 comments on commit fe47fa9

Please sign in to comment.