Skip to content

Commit f6eef5a

Browse files
committed
fix: ensure we're not capping when no grant_clr_percentage_cap is set
1 parent 413440a commit f6eef5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/grants/clr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def calculate_clr(curr_agg, trust_dict, pair_totals, v_threshold, total_pot, gra
247247
tot = float(tot.real)
248248

249249
# ensure CLR match for a grant in CLR round does not exceed 2.5 of the total pot
250-
if grant_clr_percentage_cap and tot > match_cap_per_grant:
250+
if grant_clr_percentage_cap != 100 and tot > match_cap_per_grant:
251251
tot = match_cap_per_grant
252252

253253
bigtot += tot

0 commit comments

Comments
 (0)