Function pallet_loans::pallet::dispatchables::write_off
source · pub fn write_off<T: Config>(pool_id: T::PoolId, loan_id: T::LoanId)
Expand description
Writes off an overdue loan.
This action will write off based on the configured write off policy. The write off action will only take effect if it writes down more (percentage or penalty) than the current write off status of the loan. This action will never writes up. i.e:
- Write off by admin with percentage 0.5 and penalty 0.2
- Time passes and the policy can be applied.
- Write of with a policy that says: percentage 0.3, penaly 0.4
- The loan is written off with the maximum between the policy and the current rule: percentage 0.5, penalty 0.4
No special permisions are required to this call. 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::write_off
.