yellowbean / Hastructure

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

Expose Waterfall Actions on Trigger Effects #181

Closed yellowbean closed 2 months ago

yellowbean commented 3 months ago

This would bring more flexibility on Trigger Effects.

Once a trigger has been fired, the trigger would execute a list of waterfall actions( like a waterfall ).

Like , pay bond interest/ calc bond interest, pay principal to waterfall, sell assets , buy assets, liquidate pool cashflow etc, anything waterfall can do ,the trigger effects can do

yellowbean commented 3 months ago

This will solve the clean up question: https://github.com/yellowbean/Hastructure/issues/89

because Trigger can be test on multiple places ( end of collection, end of collection waterfall, distribution day, end of distribution day).

We can insert "clean up actions" to the trigger, then the "clean up actions" can be performed in multiple places