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

# Detailed explanations

Trove structure, liquidation, redemption, leverage, and pool mechanics

## Borrowing and debt settlement

| Topic                                                                                                    | What it explains                                                                                            |
| -------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| [Trove concepts](https://docs.hann.finance/mechanics/deep-dives/trove-concepts.md)                       | Individual positions, collateral branches, and NFT ownership.                                               |
| [Collateral ratios and liquidation prices](https://docs.hann.finance/mechanics/deep-dives/cdp-safety.md) | How collateral prices, debt, interest, and repayment change a position's collateral ratio.                  |
| [Liquidations and Earn](https://docs.hann.finance/mechanics/deep-dives/liquidations-and-earn.md)         | How liquidated debt is settled and how Stability Pool deposits and collateral gains change.                 |
| [Redemptions](https://docs.hann.finance/mechanics/deep-dives/redemptions.md)                             | How USDHN is exchanged for collateral and how that exchange changes a borrower's debt and collateral ratio. |

## Exposure, liquidity, and vault shares

| Topic                                                                                                      | What it explains                                                                                           |
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| [Loops and leverage](https://docs.hann.finance/mechanics/deep-dives/looping-and-leverage.md)               | How repeated borrowing and collateral purchases increase exposure, debt, and sensitivity to price changes. |
| [StableSwap](https://docs.hann.finance/mechanics/deep-dives/stableswap.md)                                 | Pool pricing, slippage, `minOut`, deadlines, and liquidity-provider holdings.                              |
| [Yield-bearing stablecoin shares](https://docs.hann.finance/mechanics/deep-dives/yield-bearing-stables.md) | Share conversion rates, withdrawal limits, cooldowns, and the use of vault shares as collateral.           |

For the transaction steps, use [borrowing and liquidation](https://docs.hann.finance/protocol/borrowing-and-liquidation.md), [USDHN and Earn](https://docs.hann.finance/protocol/usdhn-and-earn.md), or [StableSwap DEX](https://docs.hann.finance/protocol/stableswap-dex.md). Definitions and ratios are in the [glossary](https://docs.hann.finance/overview/glossary.md).


---

# 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.hann.finance/mechanics/deep-dives.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.
