pub fn admin_write_off<T: Config>(
    pool_id: T::PoolId,
    loan_id: T::LoanId,
    percentage: T::Rate,
    penalty: T::Rate
)
Expand description

Writes off a loan from admin origin.

Forces a writing off of a loan if the percentage and penalty parameters respecting the policy values as the maximum. This action can write down/up the current write off status of the loan. If there is no active policy, an admin write off action can write up the write off status. But if there is a policy applied, the admin can only write up until the policy. Write down more than the policy is always allowed. 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::admin_write_off.