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

# HyperLoan Repayment

Loan repayment

Borrowers can repay their borrow position at any time. Repayment includes the principal amount borrowed plus the accrued interest.

Once the borrow position is fully repaid, the collateral is unlocked and can be transferred or withdrawn by the supplier.

#### Repayments can be made fully or partially by performing the following steps:

### Step 1: Connect Wallet <a href="#step-1-connect-wallet" id="step-1-connect-wallet"></a>

To begin, press ‘Connect Wallet’ and select the Ethereum wallet provider corresponding to the wallet holding the tokens intended for repayment.

### Step 2: Select Borrowed Token to Repay <a href="#step-2-select-borrowed-token-to-repay" id="step-2-select-borrowed-token-to-repay"></a>

Once connected, navigate to the ‘Dashboard’ and locate the ‘Your Borrowings’ section. This table lists the tokens you have borrowed. Choose the token you wish to repay.

### Step 3: Approve Token Transfer (if necessary) <a href="#step-3-approve-token-transfer-if-necessary" id="step-3-approve-token-transfer-if-necessary"></a>

If repaying with a non-base token, you may need to approve the HyperLoan Pool smart contract to transfer tokens from your wallet. This approval is necessary for any repayment action that involves ERC-20 tokens. Approvals can be performed through a transaction (incurs a network fee) or a signature (does not incur a network fee).

### Step 4: Confirm Repayment Transaction <a href="#step-4-confirm-repayment-transaction" id="step-4-confirm-repayment-transaction"></a>

Enter the repayment amount and confirm the transaction in your wallet. If repaying a base asset, the repayment process involves the WrappedTokenGateway contract, which unwraps the token and repays the borrowed amount in a single transaction.

### Step 5: Monitor Collateral Health Factor <a href="#step-5-monitor-collateral-health-factor" id="step-5-monitor-collateral-health-factor"></a>

After the repayment is confirmed, your debt will decrease, and your health factor will improve. Fully repaying your borrow position will release your collateral, making it available for withdrawal or other uses. Regularly monitor your health factor and manage your borrow positions to reduce the risk of liquidation.


---

# 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://hyperloan.gitbook.io/hyperloan-docs/hyperloan-repayment.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.
