Skip to content

Commit

Permalink
Update eras/shelley/impl/src/Cardano/Ledger/Shelley/PoolRank.hs
Browse files Browse the repository at this point in the history
Co-authored-by: Alexey Kuleshevich <alexey.kuleshevich@iohk.io>
  • Loading branch information
Soupstraw and lehins authored Jan 27, 2025
1 parent 2c8ac9f commit 1b6acdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eras/shelley/impl/src/Cardano/Ledger/Shelley/PoolRank.hs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ nonMyopicStake ::
Set (KeyHash 'StakePool) ->
StakeShare
nonMyopicStake pp (StakeShare s) (StakeShare sigma) (StakeShare t) kh topPools =
let z0 = 1 %. toIntegerNonZero ((pp ^. ppNOptL) `nonZeroOr` knownNonZeroBounded @1)
let z0 = 1 %. (toInteger (pp ^. ppNOptL) `nonZeroOr` knownNonZeroBounded @1)
in if kh `Set.member` topPools
then StakeShare (max (sigma + t) z0)
else StakeShare (s + t)
Expand Down

0 comments on commit 1b6acdf

Please sign in to comment.