Skip to content

Commit

Permalink
Merge branch 'release/1.3.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
Zikriya committed Apr 19, 2024
2 parents f3aa827 + 71643eb commit 54a3a8f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -609,10 +609,11 @@ export const getSnapShotBySnapShotUserVolumeAndReward = async (
([address, balance]) => {
totalVolume = totalVolume + Number(balance);
let refactoredAddress = address.toLowerCase();
let refactoredBalance = Number(balance);
if (totalUserVolume[refactoredAddress]) {
totalUserVolume[refactoredAddress] = totalUserVolume[refactoredAddress].plus(balance);
totalUserVolume[refactoredAddress] = totalUserVolume[refactoredAddress]+(refactoredBalance);
} else {
totalUserVolume[refactoredAddress] = balance;
totalUserVolume[refactoredAddress] = refactoredBalance;
}
}
);
Expand All @@ -621,10 +622,11 @@ export const getSnapShotBySnapShotUserVolumeAndReward = async (
([address, balance]) => {
totalVolume = totalVolume + Number(balance);
let refactoredAddress = address.toLowerCase();
let refactoredBalance = Number(balance);
if (totalUserVolume[refactoredAddress]) {
totalUserVolume[refactoredAddress] = totalUserVolume[refactoredAddress].plus(balance);
totalUserVolume[refactoredAddress] = totalUserVolume[refactoredAddress]+(refactoredBalance);
} else {
totalUserVolume[refactoredAddress] = balance;
totalUserVolume[refactoredAddress] = refactoredBalance;
}
}
);
Expand Down

0 comments on commit 54a3a8f

Please sign in to comment.