Skip to content

Commit

Permalink
chore: remove unnecessary abs operation from power diff (#2798)
Browse files Browse the repository at this point in the history
<!--
Please read and fill out this form before submitting your PR.

Please make sure you have reviewed our contributors guide before
submitting your
first PR.
-->

## Overview

<!-- 
Please provide an explanation of the PR, including the appropriate
context,
background, goal, and rationale. If there is an issue with this
information,
please provide a tl;dr and link the issue. 
-->

Closes #2800

## Checklist

<!-- 
Please complete the checklist to ensure that the PR is ready to be
reviewed.

IMPORTANT:
PRs should be left in Draft until the below checklist is completed.
-->

- [ ] New and updated code has appropriate documentation
- [ ] New and updated code has new and/or updated testing
- [ ] Required CI checks are passing
- [ ] Visual proof for any user facing features like CLI or
documentation updates
- [ ] Linked issues closed with keywords
  • Loading branch information
rach-id authored Nov 1, 2023
1 parent c34a93d commit abe06e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/blobstream/types/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (ibv InternalBridgeValidators) PowerDiff(c InternalBridgeValidators) sdk.De
decMaxUint32 := sdk.NewDec(math.MaxUint32)
q := delta.Quo(decMaxUint32)

return q.Abs()
return q
}

// TotalPower returns the total power in the bridge validator set.
Expand Down

0 comments on commit abe06e3

Please sign in to comment.