Review Loan Requests
In order to gather information for a submitted loan that can be accepted, call the method bids(uint256) on the TellerV2 contract where the input parameter is the bid Id. This will return a 'Bid' data structure which contains the following:
/**
* @notice Details about a loan request.
* @param borrower Account address who is requesting a loan.
* @param receiver Account address who will receive the loan amount.
* @param lender Account address who accepted and funded the loan request.
* @param marketplaceId ID of the marketplace the bid was submitted to.
* @param metadataURI ID of off chain metadata to find additional information of the loan request.
* @param loanDetails Struct of the specific loan details.
* @param terms Struct of the loan request terms.
* @param state Represents the current state of the loan.
*/
struct Bid {
address borrower;
address receiver;
address lender; // if this is the LenderManager address, we use that .owner() as source of truth
uint256 marketplaceId;
bytes32 _metadataURI; // DEPRECATED
LoanDetails loanDetails;
Terms terms;
BidState state;
PaymentType paymentType;
}Last updated
