improve readability
This commit is contained in:
parent
2c3a1c0363
commit
2b59923059
1 changed files with 6 additions and 9 deletions
|
|
@ -293,15 +293,12 @@ premoveLocks =
|
|||
createdAt
|
||||
) =
|
||||
let notInCooldown = createdAt + unlockCooldown #<= lowerBound
|
||||
in foldl1
|
||||
(#||)
|
||||
[ shouldRemoveAllLocks
|
||||
, -- Fail the transaction if a voter lock is in cooldown.∏
|
||||
passert
|
||||
"Voter lock shouldn't be in cooldown"
|
||||
notInCooldown
|
||||
(pconstant True)
|
||||
]
|
||||
in pif shouldRemoveAllLocks (pconstant True) $
|
||||
-- Fail the transaction if a voter lock is in cooldown.
|
||||
passert
|
||||
"Voter lock shouldn't be in cooldown"
|
||||
notInCooldown
|
||||
(pconstant True)
|
||||
|
||||
shouldRemoveLock =
|
||||
flip
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue