createRequest()
) to store the parameters of the raise, and another function (_notifyRequest()
) to pass on the details of the loan to the LenderPool contract._request
: A struct containing all the parameters necessary to create the loan requestborrowLimit
minBorrowAmount
lend()
call that leads to the total amount meeting borrowLimit
. In the second case, the start()
function needs to be called separately after the end of the collection period for the pool to turn to ACTIVE stage._id
: identifier of the pooled credit line for which start()
is being called_to
: receiver address for the start fee_id
: identifier of the pooled credit line which is being accepted_amount
: final amount of borrowAsset
that will be available for the borrower to borrowlend()
function. This can only be done during the collection stage, and requires the lender to be verified by the lenderVerifier
chosen by the borrower._id
: identifier of the pooled credit line which is being accepted_amount
: amount that the lender wishes to lend_id
: identifier of the credit line to be cancelledrequestCancelled
function is called by cancelRequest
function to delete the startTime
variable so that lending into the pooled credit line is effectively paused. Existing lenders can then start withdrawing their deposits since the pooled credit line status is changed to CANCELLED._id
: identifier for the pooled credit line_id
: identifier of the pooled credit line_amount
: amount that the borrower wishes to borrowborrowAssetStrategy
to earn passive yield. Repayments first count towards repayment of any accrued interest. Repayments count towards repayment of the principal only once all interests are paid.borrowRate + gracePenaltyRate
._id
: identifier for the pooled credit line for which amount is being repaid_amount
: amount that the msg.sender wishes to repayPooledCreditLine.repay()
to update relevant state vars in the LenderPool contract_id
: identifier for the pooled credit line for which amount is being repaid_amount
: amount that was repaid in terms of the LP tokens of the savings strategy chosen_interestShares
: Number of shares that counted towards repaying the interestborrowAssetStrategy
) earns interestborrowAssetStrategy
earn interest continuously._id
: identifier for the pooled credit line _lender
: address of lender whose interests are being withdrawn_id
: identifier for the pooled credit line`_id`
: identifier for the pooled credit line_amount
: the amount that the borrower wants to supply into the pooled credit line_fromtSavingsAccount
: if true, funds are transferred from the msg.sender's savings account. If false, tokens are directly transferred from the user's wallet accrea_id
: identifier for the pooled credit line_amount
: amount of collateral that the msg.sender wants to withdaw_to_SavingsAccount
: if true, funds are transferred to the borrower's SavingsAccount account. If false, funds are directly transferred to the lender's wallet withdrawCollateral()
function is fairly similar to the previous one, except it transfers the entire collateral that the msg.sender can withdraw rather than a part of it._id
: identifier of the pooled ctredit line_to_SavingsAccount
: if true, funds are transferred to the borrower's SavingsAccount account. If false, funds are directly transferred to the lender's wallet _id
: identifier of the pooled credit line_withdraw
: if true, the collateral amount that can be repossessed by the msg.sender is transferred to them. If false, they can claim it separately by calling withdrawLiquidation
_id
: Pooled credit line identifier_id
: identifier of the pooled credit line