Function pallet_loans::pallet::dispatchables::borrow
source · pub fn borrow<T: Config>(
pool_id: T::PoolId,
loan_id: T::LoanId,
amount: PrincipalInput<T>
)
Expand description
Transfers borrow amount to the borrower.
The origin must be the borrower of the loan.
The borrow action should fulfill the borrow restrictions configured
at types::LoanRestrictions
. The amount
will be transferred
from pool reserve to borrower. 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::borrow
.