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