> For the complete documentation index, see [llms.txt](https://docs.fluxbot.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fluxbot.xyz/basic-tutorials/how-to-lend-and-borrow.md).

# How to Lend and Borrow

Do you want to earn yield on crypto, or perhaps you want to borrow some? FluxBot enables users to lend their assets, earning yield, or borrow assets against their deposited capital, through MarginFi.

<figure><img src="https://3344056715-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbCVS53ugYXBSvboYJSn%2Fuploads%2FCR9eRyP3OzbgNhoJXLeE%2Flends.gif?alt=media&amp;token=c5ef56ca-97c2-4949-a20f-eda938e72faa" alt=""><figcaption></figcaption></figure>

1. Go to `/menu`
2. Click *Lending*
3. Choose *Borrow/Lend*
4. Select the token to borrow/lend
5. Select the amount to borrow/lend
6. Confirm the transaction

#### Keep in mind the following factors:

**Token** - Token being borrowed.

**Price** -  Current token price in USD.

**Fee** - Maker Fee.

**Amount** - Total amount to borrow/lend

**APY** - Interest Rate.

**Weighting -** Weighting for borrowing against value

**Platform** - The platform executing the lending/borrowing
