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