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

Loans: cashflows simple version #1867

Merged
merged 38 commits into from
Jun 7, 2024
Merged

Conversation

lemunozm
Copy link
Contributor

@lemunozm lemunozm commented Jun 7, 2024

Description

A simplified version of #1797 when only one payment at maturity is expected. No monthly cashflows

@lemunozm lemunozm added P7-asap Issue should be addressed in the next days. I8-enhancement An additional feature. D5-breaks-api Pull request changes public api. Document changes publicly. labels Jun 7, 2024
@lemunozm lemunozm self-assigned this Jun 7, 2024
@lemunozm lemunozm mentioned this pull request Jun 7, 2024
9 tasks
mustermeiszer
mustermeiszer previously approved these changes Jun 7, 2024
@@ -364,6 +384,8 @@ impl<T: Config> ActiveLoan<T> {
}
}

self.repayments_on_schedule_until = T::Time::now();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mustermeiszer @hieronx should I add this line into the repay() method as well?

Copy link
Collaborator

Choose a reason for hiding this comment

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

It is atm not having any effect, right? Then I would do so.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link

codecov bot commented Jun 7, 2024

Codecov Report

Attention: Patch coverage is 65.09434% with 37 lines in your changes missing coverage. Please review.

Project coverage is 46.67%. Comparing base (3769a0b) to head (06dec9d).

Files Patch % Lines
pallets/loans/src/types/cashflow.rs 70.83% 14 Missing ⚠️
pallets/loans/src/entities/loans.rs 72.41% 8 Missing ⚠️
pallets/loans/src/lib.rs 0.00% 7 Missing ⚠️
runtime/altair/src/lib.rs 0.00% 2 Missing ⚠️
runtime/centrifuge/src/lib.rs 0.00% 2 Missing ⚠️
runtime/development/src/lib.rs 0.00% 2 Missing ⚠️
pallets/loans/src/benchmarking.rs 0.00% 1 Missing ⚠️
pallets/loans/src/entities/pricing/external.rs 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1867      +/-   ##
==========================================
+ Coverage   46.64%   46.67%   +0.02%     
==========================================
  Files         167      169       +2     
  Lines       13145    13203      +58     
==========================================
+ Hits         6132     6162      +30     
- Misses       7013     7041      +28     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lemunozm lemunozm merged commit 2b4f94f into main Jun 7, 2024
12 checks passed
@wischli
Copy link
Contributor

wischli commented Jun 7, 2024

Could you add a very short description of the breaking API change to the PR description please @lemunozm? Will use this for the release.

@lemunozm
Copy link
Contributor Author

lemunozm commented Jun 7, 2024

Sorry! it was in the old closed PR:

breaks-api tag due:

  • Loans API to V3 (not exactly breaking)
  • InterestPayments::None renamed to InterestPayments::OnceByMaturity

@wischli wischli deleted the loans/cashflows-simple-version branch June 7, 2024 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
D5-breaks-api Pull request changes public api. Document changes publicly. I8-enhancement An additional feature. P7-asap Issue should be addressed in the next days.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants