We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b17f0c commit e6054a8Copy full SHA for e6054a8
app/grants/models/subscription.py
@@ -238,8 +238,10 @@ def match_amount(self):
238
y_lower = clr_prediction_curve[4]
239
y_upper = clr_prediction_curve[5]
240
241
- # use lerp to discover the predicted match_amount
242
- return y_lower + (((y_upper - y_lower) * (float(amount) - x_lower)) / (x_upper - x_lower))
+ # use lerp to discover the predicted match_amount
+ predicted_clr = y_lower + (((y_upper - y_lower) * (float(amount) - x_lower)) / (x_upper - x_lower))
243
+
244
+ return predicted_clr
245
246
@property
247
def match_amount_token(self):
0 commit comments