diff --git a/src/compute.ts b/src/compute.ts index 2d46524..b0e851e 100644 --- a/src/compute.ts +++ b/src/compute.ts @@ -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();