Skip to content

Commit

Permalink
Remove redundant parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
lehins committed Aug 22, 2023
1 parent 2958b71 commit 38a312a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ newEpochTransition = do
-- the number of stake credentials by 8*k (8, rather than 10, to be sure we finish a bit early)
k <- liftSTS $ asks securityParameter -- Maximum number of blocks we are allowed to roll back
let stakeSize = VMap.size (es2 ^. epochStateStakeDistrL)
let pulseSize = max 1 (ceiling (((fromIntegral stakeSize) :: Ratio Word64) / (8 * ((fromIntegral k) :: Ratio Word64))))
let pulseSize = max 1 (ceiling ((fromIntegral stakeSize :: Ratio Word64) / (8 * (fromIntegral k :: Ratio Word64))))
let es3 = es2 & epochStateDRepDistrL .~ freshDRepPulser pulseSize es2 -- Install a new (as yet unpulsed) DRepDistr pulser
let adaPots = totalAdaPotsES es2
tellEvent $ TotalAdaPotsEvent adaPots
Expand Down

0 comments on commit 38a312a

Please sign in to comment.