Skip to content

Commit

Permalink
remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowbean committed Dec 24, 2023
1 parent 0f8f136 commit 689d7bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Deal/DealAction.hs
Original file line number Diff line number Diff line change
Expand Up @@ -468,12 +468,12 @@ performActionWrap d
(assetBought,poolAfterBought) = buyRevolvingPool d purchaseRatios assetForSale -- `debug` ("purchase ratio"++ show purchaseRatios)
newAccMap = Map.adjust (A.draw purchaseAmt d PurchaseAsset) accName accsMap

(CashFlowFrame newBoughtTxn) = fst $ projAssetUnionList [updateOriginDate2 d ast | ast <- assetBought ] d perfAssumps mRates `debug` ("Asset bought"++ show [updateOriginDate2 d ast | ast <- assetBought ])
(CashFlowFrame newBoughtTxn) = fst $ projAssetUnionList [updateOriginDate2 d ast | ast <- assetBought ] d perfAssumps mRates -- `debug` ("Asset bought"++ show [updateOriginDate2 d ast | ast <- assetBought ])
-- newPcf = CF.CashFlowFrame $ CF.combineTss [] (tr:trs) newBoughtTxn -- `debug` ("reolvoing first txn\n"++ show (head newBoughtTxn))
newPcf = let
pIdToChange = fromMaybe PoolConsol pId
in
Map.adjust (\(CF.CashFlowFrame trs) -> CF.CashFlowFrame (CF.combineTss [] trs newBoughtTxn)) pIdToChange pFlowMap `debug` ("date"++show d ++">>Asset bought txn"++ show newBoughtTxn)
Map.adjust (\(CF.CashFlowFrame trs) -> CF.CashFlowFrame (CF.combineTss [] trs newBoughtTxn)) pIdToChange pFlowMap -- `debug` ("date"++show d ++">>Asset bought txn"++ show newBoughtTxn)
newRc = rc {runPoolFlow = newPcf
,revolvingAssump = Just (poolAfterBought, perfAssumps)}

Expand Down

0 comments on commit 689d7bf

Please sign in to comment.