Approvals
msg.sender
should approve collateral tokens to the pool to be created, by pre-generating the pool address.msg.sender
: verified users onlymsg.value
: Only if collateralToken
is address(0) (Ether) should be == _collateralAmount
_collateralRatio
[collateralRatioLimit.min, collateralRatioLimit.max]
_borrowRate
[borrowRateLimit.min, borrowRateLimit.max]
_noOfRepaymentIntervals
[noOfRepaymentIntervalsLimit.min, noOfRepaymentIntervalsLimit.max]
_repaymentInterval
[repaymentIntervalLimit.min, repaymentIntervalLimit.max]
_poolSize
: loan amount requested_borrowRate
: Interest rate per annum for borrowing. The interest rate fraction should be multiplied by 10**30
. e.g. interest rate of 10% should be converted to 10**29
_borrowToken
: Borrow Asset requested. If Ether, address(0) to be used_collateralToken
: Asset posted as collateral for the loan. If Ether, address(0) to be used_collateralRatio
: Limit on the ratio of collateral to the debt (principal + interest), which if falls below a threshold, results in liquidation (Refer to Broken link). The _collateralRatio should be multiplied by 10**30
_repaymentInterval
: Interval in seconds after which 1 instalment of interest repayment for loan should be repaid_noOfRepaymentIntervals
: Number of instalments in which interest of loan will be repaid_poolSavingsStrategy
: Whitelisted strategy in which the collateral tokens should be invested in Savings Account_collateralAmount
: Amount of asset to be deposited as collateral for the loan_transferFromSavingsAccount
: Flag to determine if collateral will be added from the Savings Account or directly transferred from the borrower's wallet_salt
: random and unique initial seed used in pre-generation of the pool address_verifier
: Verifier that the borrower chooses to represent their identity for this pool. A modifer (onlyBorrower()
) is passed this parameter to check whether they've actually been verified by _verifier
or not_lenderVerifier
: Verifier that lenders that wish to participate in the pool need to be verified by