Skip to content
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

VAL-102 Return additional pool statistics to help with yield calculations #125

Merged
merged 7 commits into from
Dec 2, 2022
Merged

Conversation

ams9198
Copy link
Contributor

@ams9198 ams9198 commented Dec 2, 2022

No description provided.

} else if (loanState == ILoanLifeCycleState.Active) {
_activeLoans.add(msg.sender);
} else if (loanState == ILoanLifeCycleState.Defaulted) {
Copy link
Contributor Author

@ams9198 ams9198 Dec 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved these accounting updates on a default to the more explicit onLoanDefaulted method that I added, which I like more. That way this method is only responsible for adding and removing loans to _activeLoans, which is nice.

@ams9198 ams9198 merged commit 93ce540 into circlefin:master Dec 2, 2022
@ams9198 ams9198 deleted the VAL-102 branch December 2, 2022 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants