Skip to content

Commit

Permalink
fix: totalDelegates was considering delegates with voting power
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaituVR committed Sep 14, 2024
1 parent b1eed96 commit b8e4d86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export async function compute(governances: string[]) {
if (!governanceEntity) governanceEntity = new Governance(governance);

governanceEntity.currentDelegates = sortedDelegates.length;
governanceEntity.totalDelegates = sortedDelegates.length;
governanceEntity.totalDelegates = delegates.length;
governanceEntity.delegatedVotesRaw = totalVotes.toString();
governanceEntity.delegatedVotes = formatUnits(totalVotes, DECIMALS);
await governanceEntity.save();
Expand Down

0 comments on commit b8e4d86

Please sign in to comment.