> For the complete documentation index, see [llms.txt](https://docs.notional.finance/notional-v2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.notional.finance/notional-v2/liquidity-pools/liquidity-pool-examples/borrowing.md).

# Borrowing

This section will show an example of a a user borrowing DAI with a 50% LTV and $2000 worth of ETH as collateral. The user will borrow \~1000 DAI from three different liquidity pools.&#x20;

Each liquidity pool has a different maturity. One is a 1-year pool (fDAI maturing in one year), one is a 6-month pool (fDAI maturing in 0.5 years), and the last is a 3-month pool (fDAI maturing in 0.25 years).

Here is what the pools look like before the user borrows.

<figure><img src="/files/J5nzlgEcHupPJlrQLu9x" alt=""><figcaption></figcaption></figure>

### Before borrowing

In order to borrow, a user must [provide collateral and mint an fDAI pair](/notional-v2/fcash/using-fcash.md#fixed-rate-borrowing) (+fDAI and -fDAI). Then the borrower needs to swap +fDAI  for DAI. Here's what the borrower's portfolio looks like once they mint the fDAI pair.

<figure><img src="/files/8lUe6mUQYVDt4dKvU69X" alt=""><figcaption></figcaption></figure>

Notice that the borrower needs to mint more fDAI in order to borrow for one year then he needs to mint if he wants to borrow for six months or three months. This represents the extra interest the borrower will pay over the longer time period.

### Borrowing

Now the borrower needs to swap the +fDAI for DAI on the liquidity pool. Here are the details of the swap that the borrower will get on each liquidity pool.

<figure><img src="/files/TvMzlum0IhDyelnAZbar" alt=""><figcaption></figcaption></figure>

Note that once the borrower swaps his +fDAI for DAI, he will have a -fDAI position in his portfolio.

### After borrowing

Here is what the liquidity pools look like after the user has borrowed and swapped fDAI for DAI.

<figure><img src="/files/GuhJ2sSVLuOt6UP22SOS" alt=""><figcaption></figcaption></figure>


---

# 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.notional.finance/notional-v2/liquidity-pools/liquidity-pool-examples/borrowing.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.
