This commit is contained in:
Seungheon Oh 2022-04-25 11:17:15 -04:00
parent e08f294adc
commit 3ec470a9ed
2 changed files with 4 additions and 5 deletions

View file

@ -13,14 +13,13 @@ module Agora.Effect.TreasuryWithdrawal (
treasuryWithdrawalValidator,
) where
import Control.Applicative (Const)
import GHC.Generics qualified as GHC
import Generics.SOP (Generic, I (I))
import Control.Applicative (Const)
import Agora.Effect (makeEffect)
import Agora.Utils (findTxOutByTxOutRef, paddValue, passert)
import Plutarch (popaque)
import Plutarch.Internal (punsafeCoerce)
import Plutarch.Api.V1 (
PCredential (..),
PTuple,
@ -28,15 +27,16 @@ import Plutarch.Api.V1 (
PValue,
ptuple,
)
import Plutarch.Internal (punsafeCoerce)
import Plutarch.DataRepr (
DerivePConstantViaData (..),
PDataFields,
PIsDataReprInstances (..),
)
import Plutarch.TryFrom ( PTryFrom(..) )
import Plutarch.Lift (PUnsafeLiftDecl (..))
import Plutarch.Monadic qualified as P
import Plutarch.TryFrom (PTryFrom (..))
import Plutus.V1.Ledger.Credential (Credential)
import Plutus.V1.Ledger.Value (CurrencySymbol, Value)
import PlutusTx qualified
@ -80,7 +80,6 @@ instance PTryFrom PData PTreasuryWithdrawalDatum where
-- this will need to not use punsafeCoerce...
cont (punsafeCoerce opq, ())
{- | Withdraws given list of values to specific target addresses.
It can be evoked by burning GAT. The transaction should have correct
outputs to the users and any left overs should be paid back to the treasury.