> For the complete documentation index, see [llms.txt](https://docs.rain.fi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rain.fi/borrow/token.md).

# Token

## **Borrowing Tokens: Step-by-Step Guide**

The **Borrow Token** feature in Rain.Fi allows users to access tokens through a straightforward and intuitive process. Below is a detailed explanation of how it works:

***

#### **1. Selecting Tokens for Collateral and Borrowing**

* When a user selects the **Token** option from the **Borrow Menu**, two sections are displayed:
  * **"You Collateralized"**: Tokens the user can provide as collateral.
  * **"You Borrow"**: Tokens the user wishes to borrow.
* The user selects one token from each section to proceed with the borrowing process.

***

#### **2. Viewing and Sorting Pools**

* After choosing the collateral and borrowing tokens, a dropdown window opens, displaying a list of available pools.
* **Default Sorting**: Pools are displayed based on predefined criteria for ease of use.
* **Filter Icon**:
  * Located on the top-right corner of the token selection screen.
  * **Multi-Select and Order**: Users can select multiple filters and arrange their order of priority. The pools will then be sorted based on the selected filters in the specified order.
  * Allows users to customize how pools are sorted, offering the following options:
    1. **Loan Amount**: Sort pools by the maximum loan amount available.
    2. **Longest Duration**: Pools with the longest loan terms appear first.
    3. **Shortest Duration**: Pools with the shortest loan terms appear first.
    4. **Interest**: Sort by the interest rate, from lowest to highest.
    5. **APR**: Sort by Annual Percentage Rate (APR).

***

#### **3. Pool Information Tooltip**

* Each pool in the list has a small **"i" icon** next to it.
* **Mouse Hover**: Hovering over this icon displays detailed information about the pool, including:
  * **Total Interest**: The amount the user will pay in interest over the loan term.
  * **Fees**: Any additional fees associated with the loan.

This streamlined process ensures users can efficiently select tokens, evaluate pools, and make informed decisions based on transparent data.

**Step 1 - Selecting Tokens for Collateral and Borrowing**

<div align="left"><figure><img src="/files/wdUQ3aOWqGhtrQmiUl3V" alt="" width="375"><figcaption></figcaption></figure></div>

**Step 2 - Viewing and Sorting Pools**

<div align="left"><figure><img src="/files/MKd2M0LOBsGCXbd4JhL1" alt="" width="375"><figcaption></figcaption></figure></div>

**Filter Pools**

<div align="left"><figure><img src="/files/O079l84FCsbBG3W9O87Y" alt="" width="375"><figcaption></figcaption></figure></div>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.rain.fi/borrow/token.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
