Skip to content

Commit

Permalink
test: adding multi-weights test
Browse files Browse the repository at this point in the history
  • Loading branch information
kupermind committed May 7, 2024
1 parent 826d6a4 commit 28b6d21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/VoteWeighting.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 +524,9 @@ describe("Voting Escrow OLAS", function () {
vw.voteForNomineeWeightsBatch(nominees, chainIds, weights)
).to.be.revertedWithCustomError(vw, "Overflow");

// The first weight must be no bigger than the first one used before
// The first weight must be no bigger than the first one used before, so no more than 2000
// The second weight must be no bigger than the addition of a difference between first weights:
// 2000 - 1000 = 1000, so the maximum second weight might be 7000 + 1000 = 8000
// 2000 - 1000 = 1000, so the maximum second weight must be 7000 + 1000 = 8000, or below
weights = [1000, 8000, 1000];
await vw.voteForNomineeWeightsBatch(nominees, chainIds, weights);

Expand Down

0 comments on commit 28b6d21

Please sign in to comment.