Skip to content

Commit

Permalink
fix: slash fraction
Browse files Browse the repository at this point in the history
  • Loading branch information
troykessler committed Dec 16, 2024
1 parent dc36d58 commit e766ec2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x/stakers/keeper/getters_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ func (k Keeper) getSlashFraction(ctx sdk.Context, slashType types.SlashType) (sl
slashAmountRatio = k.GetVoteSlash(ctx)
case types.SLASH_TYPE_UPLOAD:
slashAmountRatio = k.GetUploadSlash(ctx)
default:
slashAmountRatio = math.LegacyZeroDec()
}
return math.LegacyZeroDec()
return
}

// SetParams sets the x/stakers module parameters.
Expand Down

0 comments on commit e766ec2

Please sign in to comment.