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.
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
Begin with Design Philosophy to understand isolated Positions, Just-in-Time liquidity, and flexible duration.
Continue to Orders and Matching to see how signed intent becomes an active loan.
Read Positions and Constant NFT for the borrower and supplier sides of that loan.
Use Repayment and FIFO Settlement to understand how borrower payments become supplier claims.
Read Refinance to see how new fixed terms replace an old loan without editing it in place.
Finish with Risk Parameters and Position Health and Liquidations for the protocol's safety and recovery boundaries.
Last updated

