yellowbean / Hastructure

ABS/MBS cashflow engine written in Haskell, with API to Python and C/Java (on the way)
https://deal-bench.xyz
Other
16 stars 4 forks source link

Conditional Support #124

Closed yellowbean closed 10 months ago

yellowbean commented 10 months ago

The support from account or liquidity provider may come with a predicate

image

Current implementation will support with out any condition

Propose

add a Pre to make the conditional support

yellowbean commented 10 months ago

Add a Predicate to evalExtraSupport should be suffice https://github.com/yellowbean/Hastructure/blob/42741c1999ec165fc3a76a3e04bf812505a87963/src/Deal/DealAction.hs#L359

yellowbean commented 10 months ago

6fcd676