# Credit Coop

## Credit Coop

- [Welcome](https://docs.creditcoop.xyz/start-here/readme.md): Onchain credit infrastructure for the payments economy.
- [What is Credit Coop?](https://docs.creditcoop.xyz/start-here/what-is-credit-coop.md): Credit Coop is onchain credit infrastructure that lets payment companies borrow against their settlement flows — and lets capital providers fund those loans through Lending Vaults.
- [How It Works](https://docs.creditcoop.xyz/start-here/how-it-works.md): The full lifecycle of a dollar through Credit Coop — from depositor to vault to credit line to borrower, and back again through the Spigot.
- [Who It's For](https://docs.creditcoop.xyz/start-here/who-its-for.md): Find your track — borrower, depositor, developer, or institution.
- [Secured Line of Credit](https://docs.creditcoop.xyz/core-concepts/secured-line-of-credit.md): A revolving credit facility secured by onchain cash flows and/or asset collateral.
- [Line of Credit Features](https://docs.creditcoop.xyz/core-concepts/secured-line-of-credit/secured-line-of-credit.md)
- [Cash Flow Financing](https://docs.creditcoop.xyz/core-concepts/secured-line-of-credit/secured-line-of-credit/revenue-based-financing.md): Using a Borrower cash flow streams to repay and secure Credit Lines.
- [Deploying a Secured Line of Credit](https://docs.creditcoop.xyz/core-concepts/secured-line-of-credit/secured-line-of-credit/creating-a-secured-line-of-credit.md)
- [Core Lending Functionality](https://docs.creditcoop.xyz/core-concepts/secured-line-of-credit/secured-line-of-credit/core-lending-operations.md): Drawdowns, extending further credit and repayments
- [Credit Position Tokens](https://docs.creditcoop.xyz/core-concepts/secured-line-of-credit/secured-line-of-credit/credit-position-tokens.md)
- [Collateral Operations](https://docs.creditcoop.xyz/core-concepts/secured-line-of-credit/secured-line-of-credit/escrowed-token-collateral-operations.md): Features for managing asset collateral that the parties may agree is also required to secure a line
- [Revenue-Based Lending Operations](https://docs.creditcoop.xyz/core-concepts/secured-line-of-credit/secured-line-of-credit/revenue-based-lending-operations.md)
- [Credit Events](https://docs.creditcoop.xyz/core-concepts/secured-line-of-credit/secured-line-of-credit/loan-impairment-and-lender-recourse.md): Borrower default and what a Lender can do about it
- [Roles & Permissions](https://docs.creditcoop.xyz/core-concepts/secured-line-of-credit/secured-line-of-credit/roles-and-permissions.md)
- [The Spigot](https://docs.creditcoop.xyz/core-concepts/the-spigot.md): A groundbreaking innovation for the onchain financial ecosystem.
- [Key features of the Spigot](https://docs.creditcoop.xyz/core-concepts/the-spigot/key-features-of-the-spigot.md): A Spigot's purpose is to provide Trustless Recourse for Secured Agreements
- [Spigot Roles](https://docs.creditcoop.xyz/core-concepts/the-spigot/spigot-roles.md)
- [Vaults](https://docs.creditcoop.xyz/core-concepts/vaults.md): Pooled, non-custodial lending vaults built on ERC-4626 and ERC-7540.
- [Depositing & Redeeming](https://docs.creditcoop.xyz/core-concepts/vaults/depositing-and-redeeming.md)
- [Credit Strategy & the Curator](https://docs.creditcoop.xyz/core-concepts/vaults/credit-strategy.md)
- [Liquid Strategy](https://docs.creditcoop.xyz/core-concepts/vaults/liquid-strategy.md)
- [Vault Fees](https://docs.creditcoop.xyz/core-concepts/vaults/vault-fees.md)
- [Vault Roles & Safeguards](https://docs.creditcoop.xyz/core-concepts/vaults/vault-roles-and-safeguards.md)
- [Smart Escrow & Liquidity-as-a-Service](https://docs.creditcoop.xyz/core-concepts/smart-escrow-and-laas.md)
- [User Documentation (v2)](https://docs.creditcoop.xyz/user-documentation/v2.md)
- [Participants & Roles](https://docs.creditcoop.xyz/user-documentation/v2/participants-and-roles.md)
- [Fees](https://docs.creditcoop.xyz/user-documentation/v2/fees.md)
- [Vaults](https://docs.creditcoop.xyz/user-documentation/v2/vaults.md)
- [Servicer & Liquidation](https://docs.creditcoop.xyz/user-documentation/v2/servicer-and-liquidation.md)
- [Glossary](https://docs.creditcoop.xyz/user-documentation/v2/glossary.md)
- [User Documentation (v1)](https://docs.creditcoop.xyz/user-documentation/v1.md)
- [Introduction](https://docs.creditcoop.xyz/developers/introduction.md)
- [Protocol Architecture (v2)](https://docs.creditcoop.xyz/developers/architecture-v2.md)
- [Deployed Contracts](https://docs.creditcoop.xyz/developers/deployed-contracts.md)
- [V1 Developer Material (Archived)](https://docs.creditcoop.xyz/developers/v1-developer-material.md)
- [Architecture (v1)](https://docs.creditcoop.xyz/developers/v1-developer-material/architecture.md): Shows the main smart contracts that enable Secured Lines of Credit, their major functions and the interactions between the contracts.
- [Functions and Methods](https://docs.creditcoop.xyz/developers/v1-developer-material/functions-and-methods.md): Core functions and methods of the Credit Coop smart contracts
- [LineOfCredit.sol](https://docs.creditcoop.xyz/developers/v1-developer-material/functions-and-methods/lineofcredit.sol.md): Core functions and methods of LineOfCredit.sol
- [Oracle.sol](https://docs.creditcoop.xyz/developers/v1-developer-material/functions-and-methods/oracle.sol.md)
- [Spigot.sol](https://docs.creditcoop.xyz/developers/v1-developer-material/functions-and-methods/spigot.sol.md): Core functions and methods of Spigot.sol
- [SpigotedLine.sol](https://docs.creditcoop.xyz/developers/v1-developer-material/functions-and-methods/spigotedline.sol.md): Core functions and methods of SpigotedLine.sol
- [Escrow.sol](https://docs.creditcoop.xyz/developers/v1-developer-material/functions-and-methods/escrow.sol.md): Core functions and methods of Escrow.sol
- [EscrowedLine.sol](https://docs.creditcoop.xyz/developers/v1-developer-material/functions-and-methods/escrowedline.sol.md)
- [SecuredLine.sol](https://docs.creditcoop.xyz/developers/v1-developer-material/functions-and-methods/securedline.sol.md): Core functions and methods of SecuredLine.sol
- [LineFactory.sol](https://docs.creditcoop.xyz/developers/v1-developer-material/functions-and-methods/linefactory.sol.md): Core functions and methods of LineFactory.sol
- [Libraries](https://docs.creditcoop.xyz/developers/v1-developer-material/functions-and-methods/libraries.md)
- [InterestRateCredit.sol](https://docs.creditcoop.xyz/developers/v1-developer-material/functions-and-methods/interestratecredit.sol.md)
- [Accrued Interest Calculation](https://docs.creditcoop.xyz/developers/v1-developer-material/functions-and-methods/interestratecredit.sol/accrued-interest-calculation.md): Describes how accrued interest is calculated and where and when this happens
- ['Interest Accrued' contract flow](https://docs.creditcoop.xyz/developers/v1-developer-material/functions-and-methods/interestratecredit.sol/interest-accrued-contract-flow.md): Overviews the contract workflow for how and when InterestAccrued is updated
- [Advanced Jargon](https://docs.creditcoop.xyz/developers/v1-developer-material/functions-and-methods/glossary.md)
- [Repaying Debt - Function View](https://docs.creditcoop.xyz/developers/v1-developer-material/repaying-debt.md): Illustrates the full scope of options for paying down debt on an active Line of Credit.
- [Valuation Oracle](https://docs.creditcoop.xyz/developers/v1-developer-material/valuation-oracle.md)
- [Arbiter Role (v1)](https://docs.creditcoop.xyz/developers/v1-developer-material/arbiter-role-v1.md): In v1 the Servicer acts through the blockchain address of the Arbiter role, an address used in the protocol for some critical system features.
- [liquidate() and declareInsolvent()](https://docs.creditcoop.xyz/developers/v1-developer-material/arbiter-role-v1/liquidate-and-declareinsolvent.md)
- [Spigot related functions](https://docs.creditcoop.xyz/developers/v1-developer-material/arbiter-role-v1/spigot-related-functions.md): The Arbiter role has privileged access rights to the following functions
- [enableCollateral()](https://docs.creditcoop.xyz/developers/v1-developer-material/arbiter-role-v1/enablecollateral.md)
- [Edge Cases and Risk Situations](https://docs.creditcoop.xyz/developers/v1-developer-material/edge-cases-and-risk-situations.md)
- [Security Audits](https://docs.creditcoop.xyz/developers/v1-developer-material/security-audits.md)
- [Credit Coop Platform v3 API](https://docs.creditcoop.xyz/platform-api/credit-coop-platform-v3-api.md)
- [Get in Touch](https://docs.creditcoop.xyz/about/get-in-touch.md)
- [Important Legal Notice](https://docs.creditcoop.xyz/legal/important-legal-notice.md)
- [Terms of Use](https://docs.creditcoop.xyz/legal/terms-of-use.md)
- [Privacy Policy](https://docs.creditcoop.xyz/legal/privacy-policy.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
This site has an agentic ask interface you may use to query the documentation dynamically by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.creditcoop.xyz/index.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.
