Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
ChangeGuard
trait and loans modifications #1384Loans:
ChangeGuard
trait and loans modifications #1384Changes from 18 commits
82c659c
8450a2e
dcb2871
2607c52
cb5c383
71153b6
4888e05
3cd0746
f674134
ea33169
8142091
97a5529
5f39666
844deba
893f96c
3220a53
2375754
50d0e4e
308d470
a13e41b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
This is new. It checks that the modification can be applied, at least when it is proposed. It doesn't mean later it can be applied or not, but at least it removes most of the bad usages for it, for example, trying to modify the interest rate in external pricing. If we don't check this, the change will be enqueued, and we will get the error weeks later.
This is not 100% reliable, because once the change can be applied, the loan could have been closed, or its state changed. i.e:
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.
That's a great idea! We definitely should incorporate the same in
pool-system