Skip to content

Commit

Permalink
🐛 fix top_weighted allocation strategy: use higher max
Browse files Browse the repository at this point in the history
  • Loading branch information
stepandel committed Sep 26, 2024
1 parent 06f77c4 commit 051b6b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/api/common/ballots/ballotDistributionStrategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async function applyDistributionStrategyForAddress({
0
);

const max = 9.375;
const max = 12.5;
const min = 0.125;
const totalFunding = 100;

Expand Down Expand Up @@ -87,7 +87,7 @@ async function applyDistributionStrategyForAddress({

if (strategy === DistributionStrategy.TOP_WEIGHTED) {
const y = topWeighted({
max: 6.25, // TODO: adjust this number
max,
total: totalFunding,
n,
});
Expand Down Expand Up @@ -207,7 +207,7 @@ function topWeighted({

// recursively find c that results in max allocation < top
function findC({
c = 0.9,
c = 3,
max,
total,
n,
Expand Down

0 comments on commit 051b6b1

Please sign in to comment.