# FullyRepaid

The **FullyRepaid** phase is reached when the borrower has made all required payments. The loan is complete, and all that remains is for investors and the borrower to collect their funds.

## What Happens

* The vault transitions here **automatically** when the final payment is received
* The **Pool Manager's collateral** is released (unlocked via cross-contract call to Globals)
* The manager's **outstanding principal** is decremented in Globals
* **Investors** can continue to claim any unclaimed yield from the EMI pool
* The **Borrower** can withdraw any remaining funds from the cash pool

## What's Available

| Pool          | Who Can Access | Function                |
| ------------- | -------------- | ----------------------- |
| **EMI pool**  | Investors      | `claim_yield(investor)` |
| **Cash pool** | Borrower       | `withdraw_cash(amount)` |

## Transition

Once all funds have been distributed, the vault transitions to **Finalized** — the terminal state.

{% hint style="success" %}
A vault reaching FullyRepaid is the ideal outcome. The borrower has fulfilled their obligations, investors have earned their yield, and the manager's collateral is returned.
{% endhint %}


---

# 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://docs.trilobyte.finance/protocol-mechanics/vault-lifecycle/fully-repaid.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.
