Skip to content

Commit

Permalink
expose pool recovery stats
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowbean committed Jul 20, 2023
1 parent b41badd commit 9763a1d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 0 additions & 7 deletions src/Cashflow.hs
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,6 @@ tsDefaultBal (MortgageFlow2 _ _ _ _ _ _ x _ _ _) = x
tsDefaultBal (MortgageFlow3 _ _ _ _ _ _ _ _ x _ _ _) = x
tsDefaultBal (LoanFlow _ _ _ _ _ x _ _ _) = x

mflowDefault :: TsRow -> Balance
mflowDefault (MortgageFlow _ _ _ _ _ x _ _ _ _) = x
mflowDefault (MortgageFlow2 _ _ _ _ _ _ x _ _ _) = x
mflowDefault (MortgageFlow3 _ _ _ _ _ _ _ _ x _ _ _) = x
mflowDefault (LoanFlow _ _ _ _ _ x _ _ _) = x
mflowDefault _ = error "not supported"

tsSetDate :: TsRow -> Date -> TsRow
tsSetDate (CashFlow _ a) x = CashFlow x a
tsSetDate (BondFlow _ a b c) x = BondFlow x a b c
Expand Down
1 change: 1 addition & 0 deletions src/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ data DealStats = CurrentBondBalance
| CurrentPoolBegBalance
| CurrentPoolDefaultedBalance
| CumulativePoolDefaultedBalance
| CumulativePoolRecoveriesBalance
| CumulativePoolDefaultedRate
| OriginalBondBalance
| OriginalPoolBalance
Expand Down

0 comments on commit 9763a1d

Please sign in to comment.