processRequest()
method that processes the loan request, or the request for accrued interest, to ensure it is in line with current protocol settings and response variability. _getConsensus()
method that checks if all the node values are within the tolerance set on the platform in order to retrieve the average of those values and set them on-chain.Loan Terms
function(
TellerCommon.LoanRequest calldata request,
TellerCommon.LoanResponse[] calldata responses,
)
TellerCommon.LoanRequest
is a request struct/object that is sent to the Teller Nodes and subsequently on-chain, with all the required entries such as:borrower
address payable
recipient
address
consensusAddress
address
requestNonce
uint256
amount
uint256
duration
uint256
requestTime
uint256
TellerCommon.LoanResponse[]
is an array of signed response structs/objects that are returned from registered Teller nodes. These signed response structs/objects need to be passed on-chain in order to register the loan terms on-chain.signer
address
consensusAddress
address
responseTime
uint256
interestRate
uint256
collateralRatio
uint256
maxLoanAmount
uint256
signature
Signature