# Pool

| Function                           | Description                                                                                                                                                                      |
| ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| DebtOf                             | Returns an account's outstanding position in USD by querying the latest prices from oracles.                                                                                     |
| DebtPositionOf                     | Provides information about an account's outstanding position, including its health, total collateral, total amount outstanding, max amount of issuable debt, and available debt. |
| DepositOf                          | Retrieves an account's total collateral deposited in USD and the max value that can be used to issue synthetic tokens.                                                           |
| QuoteLiquidateIn/QuoteLiquidateOut | Helps determine the required amounts for liquidation, including repayable debt, seized collateral, and fees.                                                                     |
| QuoteSwapIn/QuoteSwapOut           | Calculates the required input and output amounts for token swaps, taking into account fees.                                                                                      |
| Leverage                           | Enables users to loop their yield position by depositing collateral, minting synthetic tokens, and using those tokens to purchase more collateral.                               |
| Liquidate                          | Facilitates the liquidation of unhealthy positions, burning synthetic tokens to unlock collateral and provide incentives for liquidators.                                        |
| Swap                               | Enables users to swap synthetic tokens.                                                                                                                                          |


---

# 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.metronome.io/contract-overview/pool.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.
