Function pallet_loans::pallet::dispatchables::decrease_debt
source · pub fn decrease_debt<T: Config>(
pool_id: T::PoolId,
loan_id: T::LoanId,
amount: RepaidInput<T>
)
Expand description
Decrease debt for a loan. Similar to Pallet::repay()
but
without transferring from the pool.
The origin must be the borrower of the loan.
The decrease debt action should fulfill the repay restrictions
configured at types::LoanRestrictions
. The portfolio valuation
of the pool is updated to reflect the new present value of the loan.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::decrease_debt
.