> For the complete documentation index, see [llms.txt](https://lenx.gitbook.io/lenx/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lenx.gitbook.io/lenx/lenx-lend-v1/lending.md).

# Lending

**Lenders** are awarded an equivalent number of Asset Shares (lTokens) based on the prevailing Share Price when they invest Asset Tokens into a Pair.

Lenders have the flexibility to swap their lTokens for the original Asset Tokens according to the current market rate. The value of lToken Share Price escalates as interest accumulates.

The accumulation of interest is the sole factor that can alter the Share Price. Given that the accumulation of interest is inherently positive, the quantity of Asset Tokens redeemable per lToken will never diminish.

**Lending Scenario**

Consider Alice, who contributed 100 xBTC tokens for lending, receiving 100 lxBTC at an initial Share Price of 1.00. Following her deposit, the pair generated 10 xBTC in interest, resulting in a total of 110 xBTC (100 initial xBTC + 10 xBTC in interest). The current lxBTC Share Price thus adjusts to 1.10 (calculated as 110 xBTC divided by 100 lxBTC).

**Asset Vault Account Overview**

* **Total Amount:** 110
* **Shares:** 100
* **Alice's lToken Balance:** 100
* **Bob's lToken Balance:** 0

Should Bob later contribute 100 xBTC for lending, the total pool amount would increase by his contribution. With the Share Price at 1.10, Bob is allocated 90.91 (100 / 1.10) lTokens for his deposit, altering the Asset Vault Account as follows:

**Asset Vault Account Revised**

* **Total Amount:** 210
* **Shares:** 190.91
* **Alice's lToken Balance:** 100
* **Bob's lToken Balance:** 90.91

With the further accrual of 20 xBTC in interest, the Asset Vault Account updates to:

**Asset Vault Account Further Updated**

* **Total Amount:** 230
* **Shares:** 190.91

This adjustment elevates the Share Price to 1.2048 (230 xBTC divided by 190.91 lxBTC), enabling Bob to redeem his 90.91 lxBTC for 109.52 xBTC, while Alice can exchange her 100 lTokens for 120.48 xBTC.

As interest continues to be generated over time, both Alice and Bob have the opportunity to redeem their lTokens for a progressively larger amount of the underlying asset.


---

# 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://lenx.gitbook.io/lenx/lenx-lend-v1/lending.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.
