> For the complete documentation index, see [llms.txt](https://docs.creek.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.creek.finance/beta-the-gold-rush/guide/how-to-repay-your-debt.md).

# How To Repay Your Debt

### Step 1: **Access Repay Function**

Go to [borrow page,](https://beta.creek.finance/borrow) click the repay buttom to repay your Debt.

<figure><img src="https://2610373334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRbg69gAKJERCD6Rn7EKa%2Fuploads%2FSc6D8090OLNHxbdlD5jk%2Fimage.png?alt=media&amp;token=8e0d7702-0bb0-4dd9-b073-3129454c5316" alt=""><figcaption></figcaption></figure>

### Step 2: **Enter the Amount to Repay**

Enter the amount you’d like to repay, or select **“Max”** to automatically fill in the total amount of tokens available in your wallet for repayment.

<figure><img src="https://2610373334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRbg69gAKJERCD6Rn7EKa%2Fuploads%2FTMDKwoEMQ1ZTw9wSPFiy%2Fimage.png?alt=media&amp;token=3c17c7b8-614f-4470-b321-c6235c0e3d47" alt=""><figcaption></figcaption></figure>

### Step 3: **Approve in Wallet**

You need to confirm transaction in wallet by clicking on Approve button.

<figure><img src="https://2610373334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRbg69gAKJERCD6Rn7EKa%2Fuploads%2Fu9j14k1fVWkVGaYEjxH8%2Fimage.png?alt=media&amp;token=8ba4e4f2-8cd0-428d-84cf-78fd656c936b" alt=""><figcaption></figcaption></figure>

### Step 4: Success

You have now successfully repay GUSD with Creek finance!

<figure><img src="https://2610373334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRbg69gAKJERCD6Rn7EKa%2Fuploads%2FoZirOJVevMQFX5jOUcpl%2Fimage.png?alt=media&amp;token=6b6e65a6-9ba6-430e-8e58-2c67fcd93a23" 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://docs.creek.finance/beta-the-gold-rush/guide/how-to-repay-your-debt.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.
