Skip to content

Commit

Permalink
fix: update threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
leoni-q committed Apr 23, 2024
1 parent ec5fc4d commit 5d1bae4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions epoch-verifier/src/verifications/donations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { Context, allocationsByUser, individualDonationsByProposals, rewardsByPr
import { Address, Reward } from "../data/models";
import { VerificationResult } from "../runner";

const PROPOSALS_NO = 24
const PROPOSALS_NO = 30

function getThreshold(individualAllocations: Map<Address, bigint>): bigint {
const allocationsSum = Array.from(individualAllocations.entries()).reduce((acc, [_, val]) => acc + val, BigInt(0))
return allocationsSum / (BigInt(PROPOSALS_NO) * BigInt(2))
return allocationsSum / BigInt(PROPOSALS_NO)
}

function getUserAllocationsForProjectsAboveThreshold(context: Context): Map<Address, bigint> {
Expand Down

0 comments on commit 5d1bae4

Please sign in to comment.