# Getting Loan Information

### Check the loan offers

1. Go to the market that you are interested in
2. Evaluate the market rules which are laid out in the top right corner
3. Check if there are active loan requests available in the Loan Requests Tab
4. Look for any documentation available for the loan
5. Analyze the loan terms & decide if you want to lend

{% embed url="<https://www.loom.com/share/4a9b994ccd1f4647887654e323e2a79b>" %}

Lenders can get more information on a borrower loan request through additional functionality on the Teller V2 protocol contracts.

### Get additional loan documents

To view the supporting documents submitted as part of a borrower's loan request, lenders can call the `getMetadataURI` function for a specific `bidId`, which returns a URI that links to all the information the borrower has provided.

```solidity
/**
 * @notice Gets the metadataURI for a bidId.
 * @param _bidId The id of the bid to return the metadataURI for
 * @return metadataURI_ The metadataURI for the bid, as a string.
 */
function getMetadataURI(uint256 _bidId)
```

### Check a loans status

If a lender wants to inquire a given loan's status, the `isPaymentLate` method returns a boolean indicating if a loan is behind on payments or not.

```solidity
/**
 * @notice Checks to see if a borrower is delinquent.
 * @param _bidId The id of the loan bid to check for.
 */
function isPaymentLate(uint256 _bidId)
```

Similarly, lenders can check the last time a borrower has made a payment through the `lastRepaidTimestamp`, and if the loan is defaulted through the `isLoanDefauted` method.

```solidity
/**
 * @notice Returns the last repaid timestamp for a loan.
 * @param _bidId The id of the loan bid to get the timestamp for.
 */
function lastRepaidTimestamp(uint256 _bidId)
```

```solidity
/**
 * @notice Checks to see if a borrower is delinquent.
 * @param _bidId The id of the loan bid to check for.
 */
function isLoanDefaulted(uint256 _bidId)
```

### Liquidate a defaulted loan

If a borrower has defaulted on a loan, lenders can liquidate the loan by simply calling the `liquidateLoanFull` function, which then terminates the loan according to the respective market rules.

```solidity
/**
 * @notice Function for users to liquidate a defaulted loan.
 * @param _bidId The id of the loan to make the payment towards.
 */
function liquidateLoanFull(uint256 _bidId)
```
