make sure all stakes are burnt while destroying stakes
This commit is contained in:
parent
cbab587604
commit
3fef9d221c
1 changed files with 4 additions and 1 deletions
|
|
@ -351,9 +351,12 @@ pdestroy = phoistAcyclic $
|
|||
pguardC "Owner signs this transaction" $
|
||||
pisSignedBy # pconstant False # ctx
|
||||
|
||||
pguardC "Stake unlocked" $
|
||||
pguardC "All stakes unlocked" $
|
||||
pnot #$ pany # pstakeLocked # ctxF.stakeInputDatums
|
||||
|
||||
pguardC "All stakes burnt" $
|
||||
pnull # ctxF.stakeOutputDatums
|
||||
|
||||
pure $ pconstant ()
|
||||
|
||||
{- | Default implementation of 'Agora.Stake.DepositWithdraw'.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue