Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
lemunozm committed Jun 6, 2024
1 parent d37a4e4 commit 70ea49c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pallets/loans/src/types/cashflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ impl RepaymentSchedule {
interest_rate: &InterestRate<Rate>,
) -> Result<Vec<CashflowPayment<Balance>>, DispatchError>
where
Balance: FixedPointOperand + EnsureAdd + EnsureSub + std::fmt::Debug,
Balance: FixedPointOperand + EnsureAdd + EnsureSub,
Rate: FixedPointNumber,
{
let Some(maturity) = self.maturity.date() else {
Expand Down Expand Up @@ -203,7 +203,7 @@ impl RepaymentSchedule {
until: Seconds,
) -> Result<Balance, DispatchError>
where
Balance: FixedPointOperand + EnsureAdd + EnsureSub + std::fmt::Debug,
Balance: FixedPointOperand + EnsureAdd + EnsureSub,
Rate: FixedPointNumber,
{
let cashflow = self.generate_cashflows(origination_date, principal, interest_rate)?;
Expand Down

0 comments on commit 70ea49c

Please sign in to comment.