Skip to content

Commit

Permalink
fix curveData
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdeep7Singh committed Aug 16, 2023
1 parent 5402727 commit d7f2a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/curveData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export async function updateCurveData(ctx: BatchContext<Store, unknown>, header:
const inactiveIssuance = await getTotalInactiveIssuanceStorageData(ctx, header)
const activeIssuance = totalIssuance - inactiveIssuance;
approvalPercent = Number(tally.ayes) / Number((tally.ayes + tally.nays)) * 100
supportPercent = Number(tally.ayes) / Number(activeIssuance) * 100
supportPercent = Number(tally.support) / Number(activeIssuance) * 100
}

await ctx.store.insert(
Expand Down

0 comments on commit d7f2a41

Please sign in to comment.