Skip to content

Commit

Permalink
Merge pull request #32 from ferrumnet/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
zikriya authored Apr 13, 2024
2 parents 526d44a + d1947d9 commit e5a3c0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,9 @@ export const getSnapHodlConfigTradingVolumeBalance = async (
if(!minimumTradingBalance || minimumTradingBalance === 0 || balanceBN.isGreaterThanOrEqualTo(minimumTradingBalance)){
totalBalance = totalBalance.plus(balanceBN);
if (totalTradingVolume[address]) {
if(typeof totalTradingVolume[address] === "string" || totalTradingVolume[address] instanceof String){
totalTradingVolume[address] = new BigNumber(totalTradingVolume[address]);
}
totalTradingVolume[address] =
totalTradingVolume[address].plus(balanceBN);
} else {
Expand Down

0 comments on commit e5a3c0b

Please sign in to comment.