> For the complete documentation index, see [llms.txt](https://pnd-docs.defigeek.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pnd-docs.defigeek.xyz/punodwo-dokyumento/english/user-guide/how-to-deposit-repay-base-assets.md).

# How to Deposit/Repay Base Assets

After connecting your wallet, deposits/repayments become possible when you own base assets.

Click on the base asset row on the pool detail page.

<figure><img src="https://3990862584-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKP6SsdesCFe6jfgBhMAY%2Fuploads%2FBrUKZuqrXFMdIqPWDuGz%2Fimage.png?alt=media&#x26;token=391a8f3e-9d12-4377-8aeb-d121ee659aaf" alt=""><figcaption></figcaption></figure>

Click on the "Deposit (or Repay)" tab in the popup screen.

<figure><img src="https://3990862584-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKP6SsdesCFe6jfgBhMAY%2Fuploads%2FXXDcuAIiQx5LK4hgrWb6%2F%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202024-10-13%2021.51.30.png?alt=media&#x26;token=12de4887-abeb-4929-8bd3-5b123ebaa272" alt=""><figcaption></figcaption></figure>

Enter the amount of tokens you want to deposit or repay in the input field.

If you want to repay in full, press the "Repay All" button on the right.

If you want to deposit all base assets you have, press the "MAX" button on the right.

For deposits, after checking the deposit APR, press the "Submit" button.

<figure><img src="https://1161552213-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPtkVNvvczWZyl2mxbxP%2Fuploads%2Fgh51FKVevCJK25N0kAUW%2FGroup%2048.png?alt=media&amp;token=51a28276-cc2a-40e0-a11e-66efe8f9f807" alt=""><figcaption></figcaption></figure>

Please enter the number of tokens to allow the contract to operate in the input field (for MetaMask, the custom spending cap in the image below).

After entering, press the "Next" button.

<figure><img src="https://1161552213-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPtkVNvvczWZyl2mxbxP%2Fuploads%2Feg8nIDvDP35dm3jrabpJ%2FGroup%2049.png?alt=media&amp;token=0146a6d0-f331-4ec0-a02c-65e8a8141407" alt=""><figcaption></figcaption></figure>

On the next screen, check the estimated fee (gas fee) and press the "Approve" button at an appropriate time.

Please note that fees must be paid in ETH.

<figure><img src="https://1161552213-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPtkVNvvczWZyl2mxbxP%2Fuploads%2F3Fx4DAopNPzvwPjEW2my%2FGroup%2050.png?alt=media&amp;token=9fd9af68-27a0-4f22-9f35-b21151b22ef5" alt=""><figcaption></figcaption></figure>

After waiting a while for the request to complete, the following screen will be displayed.

This is the screen to actually withdraw/repay the tokens you just approved.

Check the estimated fee (gas fee) and press the "Confirm" button at an appropriate time.

Paying higher fees allows faster execution.

Adjust the fee if necessary.

ETH is also required here as a fee.

<figure><img src="https://1161552213-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPtkVNvvczWZyl2mxbxP%2Fuploads%2F0zvD7q7qeGnpsXk49nJV%2FGroup%2051.png?alt=media&amp;token=f8119afe-a7ee-4e9c-9919-6298173e6201" alt=""><figcaption></figcaption></figure>

If the correct values are displayed in the designated location on the pool detail page, the base asset deposit/repayment is complete! 🎉

<figure><img src="https://3990862584-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKP6SsdesCFe6jfgBhMAY%2Fuploads%2FR57lJaDaZViSKNALvTzS%2FGroup%2033b.png?alt=media&#x26;token=8b573aac-c7b6-4875-b6f1-693ac6a65773" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://pnd-docs.defigeek.xyz/punodwo-dokyumento/english/user-guide/how-to-deposit-repay-base-assets.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
