Module pallet_loans::pallet::dispatchables
source · Expand description
Functions§
- Writes off a loan from admin origin.
- Apply a proposed change identified by a change id. It will only perform the change if the requirements for it are fulfilled.
- Transfer debt from one loan to another loan, repaying from the first loan and borrowing the same amount from the second loan.
from_loan_id
is the loan used to repay.to_loan_id
is the loan used to borrow. The repaid and borrow amount must match. - Apply a proposed change identified by a change id. It will only perform the change if the requirements for it are fulfilled.
- Transfers borrow amount to the borrower.
- Closes a given loan
- Creates a new loan against the collateral provided
- Decrease debt for a loan. Similar to
Pallet::repay()
but without transferring from the pool. - Increase debt for a loan. Similar to
Pallet::borrow()
but without transferring from the pool. - Propose a change. The change is not performed until you call
Pallet::apply_loan_mutation()
. - Transfer debt from one loan to another loan, repaying from the first loan and borrowing the same amount from the second loan.
from_loan_id
is the loan used to repay.to_loan_id
is the loan used to borrow. The repaid and borrow amount must match. - Updates the write off policy with write off rules.
- Transfers amount borrowed to the pool reserve.
- Updates the porfolio valuation for the given pool
- Writes off an overdue loan.