Skip to content

Commit

Permalink
Remove redundant constraint from Cardano.Wallet.quitStakePool.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed Nov 24, 2021
1 parent 6567e65 commit 4a59d53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/core/src/Cardano/Wallet.hs
Expand Up @@ -2468,9 +2468,8 @@ joinStakePool ctx currentEpoch knownPools pid poolStatus wid =

-- | Helper function to factor necessary logic for quitting a stake pool.
quitStakePool
:: forall ctx s k n.
:: forall ctx s k.
( HasDBLayer IO s k ctx
, s ~ SeqState n k
)
=> ctx
-> WalletId
Expand Down
4 changes: 2 additions & 2 deletions lib/core/src/Cardano/Wallet/Api/Server.hs
Expand Up @@ -1662,7 +1662,7 @@ selectCoinsForQuit
-> Handler (Api.ApiCoinSelection n)
selectCoinsForQuit ctx (ApiT wid) = do
withWorkerCtx ctx wid liftE liftE $ \wrk -> do
action <- liftHandler $ W.quitStakePool @_ @s @k @n wrk wid
action <- liftHandler $ W.quitStakePool @_ @s @k wrk wid

let txCtx = defaultTransactionCtx
{ txDelegationAction = Just action
Expand Down Expand Up @@ -2409,7 +2409,7 @@ quitStakePool ctx (ApiT wid) body = do

(sel, tx, txMeta, txTime) <- withWorkerCtx ctx wid liftE liftE $ \wrk -> do
action <- liftHandler
$ W.quitStakePool @_ @s @k @n wrk wid
$ W.quitStakePool @_ @s @k wrk wid

(wdrl, mkRwdAcct) <- mkRewardAccountBuilder @_ @s @_ @n ctx wid Nothing
ttl <- liftIO $ W.getTxExpiry ti Nothing
Expand Down

0 comments on commit 4a59d53

Please sign in to comment.