We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10bcd8d commit 4f64fc3Copy full SHA for 4f64fc3
core/credit/src/credit_facility/interest_outstanding.rs
@@ -77,10 +77,11 @@ pub(super) fn project<'a>(
77
let mut overdue = UsdCents::ZERO;
78
let mut defaulted = UsdCents::ZERO;
79
for accrual in accruals {
80
- if let Some(interest_overdue_duration) = terms.interest_overdue_duration
81
- && interest_overdue_duration.is_past_end_date(accrual.accrued_at)
82
- {
83
- defaulted += accrual.remaining;
+ if let Some(interest_overdue_duration) = terms.interest_overdue_duration {
+ if interest_overdue_duration.is_past_end_date(accrual.accrued_at) {
+ defaulted += accrual.remaining;
+ continue;
84
+ }
85
} else if terms
86
.interest_due_duration
87
.is_past_end_date(accrual.accrued_at)
0 commit comments