# Repay

**Repaying Tokens**\
Repaying tokens on the Nebula Protocol is vital for managing your borrow position and accessing your locked collateral. By settling your debt, you reduce liquidation risk and can withdraw your collateral.

**Step 1 - Select Token to Repay**\
Click the three dots next to your position in the “Portfolio” tab to select the token to repay, such as $NIBI. You can also adjust your borrow position or view market information here.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfzr4IAQsflvFNp7BErCn8rYbxpDID0c6x_csgTaSb-OB9hFLqVEkDvQbNyR-DWN8sM_HGfnL3_xjKKH9nB6IcF_UDmPu95Gaz-ZXMIo8rzFW9lAC9zKeGD5dHa7tyYq-0meDzcLQ?key=Opb-BONxPHbfS_7Th3BpOqCr" alt=""><figcaption></figcaption></figure>

## Step 2 - Initiate Repay

Ensure the slide bar is on the top of the displayed window is toggled on Repay Asset, then select or type in the total repay amount, and click the Repay Asset button.

<br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfYdRrOcG1-IdDhz4nCoikRyRzMkAL2-3VVSEWt6khD9x2oyQL-xmce8pEDjLT6K8sr94p0EuUxp1G7XfLONw9DY7_CPt9bnaX2cm0ajL_lX_R811oFVQklWH9PEOa-3hkl6COuYA?key=Opb-BONxPHbfS_7Th3BpOqCr" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://nebula-18.gitbook.io/nebula/nebula-testnet/testing-nebula-protocol/repay.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
