> For the complete documentation index, see [llms.txt](https://docs.creditcoop.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.creditcoop.xyz/core-concepts/smart-escrow-and-laas.md).

# Smart Escrow & Liquidity-as-a-Service

Beyond the standard Borrower-operated facility, the protocol supports facilities where the **Escrow itself is the borrower of record** — enabling structured products where borrowed capital never touches an external wallet.

### Smart Escrow

A Smart Escrow is an Escrow contract that acts as the Line's borrower. The end borrower operates *through* the escrow:

* Credit Positions are proposed, refinanced, and closed by the end borrower via the escrow
* Draws land **inside the escrow** and are immediately accounted as collateral
* Repayments are made from escrowed funds; if the facility becomes LIQUIDATABLE, **anyone** can push escrowed funds to repayment — recovery does not depend on borrower cooperation

The result is a fully ring-fenced facility: borrowed funds exist only within the escrow's rule set from draw to repayment.

### LaaS Escrow (Liquidity-as-a-Service)

The LaaS Escrow extends Smart Escrow for one specific use: deploying borrowed capital into a **pre-agreed liquidity pool** (including Uniswap V3).

* The parties pre-configure the target pool and one or more **liquidity position strategies** (component tokens, amounts, and the exact provisioning calldata). Configuration can only change when there are no active positions or proposals, and every change increments the facility nonce — lenders always consent to the strategy as configured.
* The borrower (or Admin) can **draw down and create the LP position in a single transaction**, or draw and add to an existing position. A minimum-collateral-value check and the post-drawdown minimum collateral ratio are enforced on every operation.
* Liquidity can be reduced by the borrower or Servicer, and if the facility becomes LIQUIDATABLE the Servicer can unwind the entire LP position back to component tokens for repayment.

LaaS turns a Line of Credit into programmatic, credit-funded liquidity provisioning — with lender security enforced at every step by the escrow, not by covenant.


---

# 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://docs.creditcoop.xyz/core-concepts/smart-escrow-and-laas.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.
