Skip to content

Commit

Permalink
style: handle hlint suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
sourabhxyz committed Apr 22, 2024
1 parent d226175 commit 9749900
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions geniusyield-dex-api/src/GeniusYield/Api/Dex/PartialOrder.hs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ partialOrderInfoToIn
PartialOrderAction
GYTxIn 'PlutusV2
partialOrderInfoToIn a pocVersion pors oi@PartialOrderInfo {..} oa =
let SomePORef (PORef {..}) = selectPor pors pocVersion
let SomePORef PORef {..} = selectPor pors pocVersion
in GYTxIn
{ gyTxInTxOutRef = poiRef,
gyTxInWitness =
Expand Down Expand Up @@ -876,7 +876,7 @@ cancelMultiplePartialOrders pors orderRefs = do
cancelMultiplePartialOrders' pors ois

getVersionsInOrders [PartialOrderInfo] Set POCVersion
getVersionsInOrders = foldl' (\acc (PartialOrderInfo {..}) Set.insert poiVersion acc) Set.empty
getVersionsInOrders = foldl' (\acc PartialOrderInfo {..} Set.insert poiVersion acc) Set.empty

addCfgRefInputs Set POCVersion RefPocds GYTxSkeleton 'PlutusV2
addCfgRefInputs versionsSet cfgRefs =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ selectPor' PORefs {..} = case (singPOCVersion @v) of

fetchPartialOrderConfig GYDexApiQueryMonad m a POCVersion PORefs m SomeRefPocd
fetchPartialOrderConfig pocVersion pors =
let SomePORef (PORef {..}) = selectPor pors pocVersion
let SomePORef PORef {..} = selectPor pors pocVersion
in unsafeFetchPartialOrderConfig pocVersion porRefNft

-- | Unsafe as it takes NFT's asset class where this NFT might not belong to the given version.
Expand All @@ -148,7 +148,7 @@ unsafeFetchPartialOrderConfig' nftToken = do
fetchPartialOrderConfig' v m a. (GYDexApiQueryMonad m a, SingPOCVersionI v) PORefs m (RefPocd v)
fetchPartialOrderConfig' pors = do
let pocVersion = fromSingPOCVersion $ singPOCVersion @v
SomePORef (PORef {..}) = selectPor pors pocVersion
SomePORef PORef {..} = selectPor pors pocVersion
unsafeFetchPartialOrderConfig' @v porRefNft

fetchPartialOrderConfigs GYDexApiQueryMonad m a PORefs m RefPocds
Expand Down

0 comments on commit 9749900

Please sign in to comment.