Skip to content

Commit

Permalink
Circulation supply calculation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bobo-k2 committed Jul 9, 2024
1 parent 634b444 commit 3881d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/StatsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class StatsService implements IStatsService {
private getTotalBalanceToExclude(balances: AccountData[]): BN {
const sum = balances
.map((balance) => {
return balance.free.add(balance.miscFrozen ?? balance.frozen);
return balance.free;
})
.reduce((partialSum, b) => partialSum.add(b), new BN(0));

Expand Down

0 comments on commit 3881d78

Please sign in to comment.