Skip to content

Commit

Permalink
Remove redundant constraint from Cardano.Wallet.joinStakePool.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed Nov 24, 2021
1 parent ba3effe commit 6567e65
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 @@ -2423,11 +2423,10 @@ migrationPlanToSelectionWithdrawals plan rewardWithdrawal outputAddressesToCycle
-------------------------------------------------------------------------------}

joinStakePool
:: forall ctx s k n.
:: forall ctx s k.
( HasDBLayer IO s k ctx
, HasNetworkLayer IO ctx
, HasLogger IO WalletWorkerLog ctx
, s ~ SeqState n k
)
=> ctx
-> W.EpochNo
Expand Down
4 changes: 2 additions & 2 deletions lib/core/src/Cardano/Wallet/Api/Server.hs
Expand Up @@ -1615,7 +1615,7 @@ selectCoinsForJoin ctx knownPools getPoolStatus pid wid = do

withWorkerCtx ctx wid liftE liftE $ \wrk -> do
(action, deposit) <- liftHandler
$ W.joinStakePool @_ @s @k @n wrk curEpoch pools pid poolStatus wid
$ W.joinStakePool @_ @s @k wrk curEpoch pools pid poolStatus wid

let txCtx = defaultTransactionCtx
{ txDelegationAction = Just action
Expand Down Expand Up @@ -2295,7 +2295,7 @@ joinStakePool ctx knownPools getPoolStatus apiPoolId (ApiT wid) body = do

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

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

0 comments on commit 6567e65

Please sign in to comment.