Skip to content

Commit f5e3468

Browse files
committed
fix: leave vp_value computation only to async script
1 parent 433aa17 commit f5e3468

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/scores.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import log from './helpers/log';
44
import db from './helpers/mysql';
55
import { getDecryptionKey } from './helpers/shutter';
66
import { hasStrategyOverride, sha256 } from './helpers/utils';
7-
import { getVoteValue } from './helpers/votesVpValue';
87

98
const scoreAPIUrl = process.env.SCORE_API_URL || 'https://score.snapshot.org';
109
const FINALIZE_SCORE_SECONDS_DELAY = 60;
@@ -166,7 +165,6 @@ export async function updateProposalAndVotes(proposalId: string, force = false)
166165
votes = votes.map((vote: any) => {
167166
vote.scores = proposal.strategies.map((strategy, i) => scores[i][vote.voter] || 0);
168167
vote.balance = vote.scores.reduce((a, b: any) => a + b, 0);
169-
vote.vp_value = getVoteValue(proposal, vote);
170168
return vote;
171169
});
172170
}

0 commit comments

Comments
 (0)