From 0e733c7fbccf5b737a9b8ca78a5c0ce683ad7a19 Mon Sep 17 00:00:00 2001 From: buck54321 Date: Thu, 7 Sep 2023 09:50:01 -0700 Subject: [PATCH] eliminate bonus tiers (#2502) --- server/auth/auth.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/auth/auth.go b/server/auth/auth.go index 7dede4336f..4d85af17bc 100644 --- a/server/auth/auth.go +++ b/server/auth/auth.go @@ -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