Skip to content

Commit

Permalink
eliminate bonus tiers (#2502)
Browse files Browse the repository at this point in the history
  • Loading branch information
buck54321 committed Sep 7, 2023
1 parent fe7c3eb commit 0e733c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/auth/auth.go
Expand Up @@ -894,14 +894,14 @@ func (auth *AuthManager) UserScore(user account.AccountID) (score int32) {

// tier computes a user's tier from their conduct score and bond tier.
func (auth *AuthManager) tier(bondTier int64, score int32, legacyFeePaid bool) int64 {
tierAdj := int64(score) / int64(auth.banScore)
if tierAdj < 0 && bondTier == 0 {
tierAdj = 0 // no bonus tiers unless bonded
var penalties int64
if score > 0 {
penalties = int64(score) / int64(auth.banScore)
}
if legacyFeePaid {
bondTier++
}
return bondTier - tierAdj
return bondTier - penalties
}

// computeUserTier computes the user's tier given the provided score weighed
Expand Down

0 comments on commit 0e733c7

Please sign in to comment.