Skip to content

Commit

Permalink
fix: new curves for size
Browse files Browse the repository at this point in the history
  • Loading branch information
Albermonte committed Nov 19, 2024
1 parent 0d0807d commit 5ba8842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nimiq-validators-trustscore/src/score.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ScoreParams, ScoreValues } from './types'

export function getDominance({ threshold = 0.25, steepness = 4, dominanceRatio }: ScoreParams['dominance']) {
export function getDominance({ threshold = 0.15, steepness = 7.5, dominanceRatio }: ScoreParams['dominance']) {
if (!threshold || !steepness || !dominanceRatio)
throw new Error('Balance, threshold, steepness, or total balance is not set')
if (dominanceRatio < 0 || dominanceRatio > 1)
Expand Down

0 comments on commit 5ba8842

Please sign in to comment.