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

# Concepts

Constant Finance separates a loan into three distinct stages: signed intent, borrower debt, and supplier claims. Understanding that separation makes the rest of the protocol much easier to follow.

```mermaid
flowchart LR
    O[Orders<br/>signed intent] --> S[Atomic settlement]
    S --> P[Position<br/>borrower debt]
    S --> N[Constant NFTs<br/>supplier claims]
    P --> R[Repayment or refinance]
    P --> Q[Liquidation when eligible]
    R --> N
    Q --> N
```

## Before Settlement

Borrowers and suppliers describe the terms they are willing to accept through signed Orders. These Orders can be discovered and combined offchain, but they do not create debt, transfer collateral, or lock supplier assets on their own.

## At Settlement

Once compatible Orders are submitted, the Gateway checks their signatures, expiry, assets, amounts, rates, term, available capacity, collateral, and initial Position health.

Settlement is atomic. The required transfers and Position creation either complete together or do not happen at all.

## After Settlement

The new onchain objects serve different purposes:

* The **Position** holds the borrower's collateral and records the debt and risk state.
* Each **Constant NFT** represents one supplier fill and gives its current owner the right to claim settled principal and interest.
* Repayment, refinance, and liquidation update the Position and fund supplier claims without changing the terms fixed at origination.

## Reading Guide

1. Begin with [Design Philosophy](/docs/v0/concepts/design-philosophy.md) to understand isolated Positions, Just-in-Time liquidity, and flexible duration.
2. Continue to [Orders and Matching](/docs/v0/concepts/orders-and-matching.md) to see how signed intent becomes an active loan.
3. Read [Positions](/docs/v0/concepts/positions.md) and [Constant NFT](/docs/v0/concepts/constant-nft.md) for the borrower and supplier sides of that loan.
4. Use [Repayment and FIFO Settlement](/docs/v0/concepts/repayment-and-fifo-settlement.md) to understand how borrower payments become supplier claims.
5. Read [Refinance](/docs/v0/concepts/refinance.md) to see how new fixed terms replace an old loan without editing it in place.
6. Finish with [Risk Parameters and Position Health](/docs/v0/concepts/risk-parameters-and-position-health.md) and [Liquidations](/docs/v0/concepts/liquidations.md) for the protocol's safety and recovery boundaries.


---

# 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://constant-finance.gitbook.io/docs/v0/concepts.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.
