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
Loans: add outstanding principal & interest to runtime API #1482
Conversation
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.
Why add the debt to the type itself instead of just computing it on the fly in the API? Api is still missing, right?
This is just what is happening, the type where I added interest/present_value/... is a type only used for the Runtime API, and is there where things are computed. BTW, This PR needs a refactor after a last talk with Jeroen. |
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.
LGTM!
Description
Addoutstanding_debt
loan's property to runtime APIAdd
outstanding_principal
andoutstanding_interest
to the runtime API.