From 28b6d21a2e5bbcd1077000d7156abd8c2153b083 Mon Sep 17 00:00:00 2001 From: Aleksandr Kuperman Date: Tue, 7 May 2024 10:22:05 +0100 Subject: [PATCH] test: adding multi-weights test --- test/VoteWeighting.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/VoteWeighting.js b/test/VoteWeighting.js index 112a94b..cd748d2 100644 --- a/test/VoteWeighting.js +++ b/test/VoteWeighting.js @@ -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);