> 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/developer-material/v1-developer-material.md).

# V1 Developer Material

- [Architecture (v1)](https://docs.creditcoop.xyz/developer-material/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/developer-material/v1-developer-material/functions-and-methods.md): Core functions and methods of the Credit Coop smart contracts
- [LineOfCredit.sol](https://docs.creditcoop.xyz/developer-material/v1-developer-material/functions-and-methods/lineofcredit.sol.md): Core functions and methods of LineOfCredit.sol
- [Oracle.sol](https://docs.creditcoop.xyz/developer-material/v1-developer-material/functions-and-methods/oracle.sol.md)
- [Spigot.sol](https://docs.creditcoop.xyz/developer-material/v1-developer-material/functions-and-methods/spigot.sol.md): Core functions and methods of Spigot.sol
- [SpigotedLine.sol](https://docs.creditcoop.xyz/developer-material/v1-developer-material/functions-and-methods/spigotedline.sol.md): Core functions and methods of SpigotedLine.sol
- [Escrow.sol](https://docs.creditcoop.xyz/developer-material/v1-developer-material/functions-and-methods/escrow.sol.md): Core functions and methods of Escrow.sol
- [EscrowedLine.sol](https://docs.creditcoop.xyz/developer-material/v1-developer-material/functions-and-methods/escrowedline.sol.md)
- [SecuredLine.sol](https://docs.creditcoop.xyz/developer-material/v1-developer-material/functions-and-methods/securedline.sol.md): Core functions and methods of SecuredLine.sol
- [LineFactory.sol](https://docs.creditcoop.xyz/developer-material/v1-developer-material/functions-and-methods/linefactory.sol.md): Core functions and methods of LineFactory.sol
- [Libraries](https://docs.creditcoop.xyz/developer-material/v1-developer-material/functions-and-methods/libraries.md)
- [InterestRateCredit.sol](https://docs.creditcoop.xyz/developer-material/v1-developer-material/functions-and-methods/interestratecredit.sol.md)
- [Accrued Interest Calculation](https://docs.creditcoop.xyz/developer-material/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/developer-material/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/developer-material/v1-developer-material/functions-and-methods/glossary.md)
- [Repaying Debt - Function View](https://docs.creditcoop.xyz/developer-material/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/developer-material/v1-developer-material/valuation-oracle.md)
- [Arbiter Role (v1)](https://docs.creditcoop.xyz/developer-material/v1-developer-material/arbiter.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/developer-material/v1-developer-material/arbiter/liquidate-and-declareinsolvent.md)
- [Spigot related functions](https://docs.creditcoop.xyz/developer-material/v1-developer-material/arbiter/spigot-related-functions.md): The Arbiter role has privileged access rights to the following functions
- [enableCollateral()](https://docs.creditcoop.xyz/developer-material/v1-developer-material/arbiter/enablecollateral.md)
- [Edge Cases and Risk Situations](https://docs.creditcoop.xyz/developer-material/v1-developer-material/edge-cases-and-risk-situations.md)
- [Security Audits](https://docs.creditcoop.xyz/developer-material/v1-developer-material/security-audits.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 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/developer-material/v1-developer-material.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.
