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 026ef36 commit b25ebceCopy full SHA for b25ebce
lib/cadet/assessments/assessments.ex
@@ -1114,7 +1114,7 @@ defmodule Cadet.Assessments do
1114
# normalized_voting_score = sum_of_scores / number_of_voters / 10 * 100
1115
defp calculate_formula_score(sum_of_scores, number_of_voters, tokens) do
1116
normalized_voting_score = sum_of_scores / number_of_voters / 10 * 100
1117
- normalized_voting_score - :math.pow(2, tokens / 50)
+ normalized_voting_score - :math.pow(2, min(1023.5, tokens / 50))
1118
end
1119
1120
@doc """
0 commit comments