Skip to content

Commit 8ec8354

Browse files
Handle weight 0 rewards mult calc
1 parent d2313bb commit 8ec8354

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/distributor/src/distributorv2.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,8 @@ export class DistributorV2Worker {
401401
if (!multiplierInfo) continue
402402

403403
// Apply multiplier logic
404+
// Skip verifications with 0 weight
405+
if (weight === 0) continue
404406
if (weight === 1) {
405407
if (multiplierInfo.value === undefined) {
406408
multiplierInfo.value = multiplierInfo.min

0 commit comments

Comments
 (0)