-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simon Cockx Fix cardinality errors #3295
base: 5.x.x
Are you sure you want to change the base?
Simon Cockx Fix cardinality errors #3295
Conversation
Fix cardinality errors
✅ Deploy Preview for finos-cdm ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
…ttps://github.com/rosetta-models/common-domain-model into simon_auth0_60fea5989986c20067b1d0cb-CDM-prod-fixes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function, SecurityFinanceCashSettlementAmount does not work for repo for a couple of reasons:
The filter, tradeState -> trade -> tradeLot -> priceQuantity -> quantity, FinancialUnitEnum -> Share only works for Shares on not other units. Also, FinancialUnitEnum is optional so it may not exist.
The function suggest that the repo repurchase price is the collateral value which is also incorrect. The repurchase price is the cashleg principal + interest.
If this function is intended to only work for Security Lending then please change the function name and remove the repurchase price comments.
One other point, the condition, condition ProductIdentifiersMatch:
tradeState -> trade -> tradableProduct -> tradeLot -> priceQuantity -> observable -> productIdentifier = assetPayout -> securityInformation -> security -> productIdentifier
tradeState -> trade -> tradableProduct -> tradeLot -> priceQuantity -> observable -> productIdentifier -> identifier = assetPayout -> securityInformation -> security -> productIdentifier -> identifier
Tom, you make a couple of points here, namely that
and
These may be valid points however we believe they are beyond the scope of this particular PR which is focused on addressing a specific issue in the DSL on the evaluation of cardinality. In both this PR #3295 and the related one PR #3294, the only change in the function in question is to address this issue with the inclusion of We would like to proceed with these PRs and fix the underlying DSL issues which occur across the model, as quickly as possible. Could we propose that we:
Thanks |
08c7fff
No description provided.