ContingentClaims.Lifecycle.Lifecycle¶
Functions¶
- lifecycle
: (Ord t, Eq a, CanAbort m) => (o -> t -> m Decimal) -> C t a o -> t -> t -> m (Result t a o)
Collect claims falling due into a list, and return the tree with those nodes pruned.
m
will typically beUpdate
. It is parametrised so it can be run in aScript
. The first argument is used to lookup the value of anyObservables
. Returns the pruned tree + pending settlements up to the provided market time.