# Deploying a Secured Line of Credit

{% hint style="info" %}
Much of what follows is pre-configured and/or automated for users of the App.
{% endhint %}

A Borrower and a first Lender agree on some fundamental aspects:

<details>

<summary>Deployment parameters of the Secured Line of Credit</summary>

* The deadline for repayment of the Line
* The minimum collateral ratio&#x20;
* the revenue split (%) &#x20;
* the borrower address&#x20;

</details>

<details>

<summary>Revenue-Based Lending</summary>

During Line deployment, a Spigot can be attached to a Borrower Revenue Contract, i.e. a smart contract owned and operated by the Borrower which will be used to secure the overall Line and automatically repay Credit Lines .&#x20;

The single Spigot deployed can attach to multiple Borrower Revenue Contracts.&#x20;

The Borrower and the first Lender must agree:

* The address of the Borrower **Revenue Contract**
* The initial **default split** of **Revenue Tokens** between the Borrower and Lenders (i.e. of the tokens from the Revenue Contract)
* The **trading router** which, if needed, will convert the Borrower’s Revenue Tokens into the Credit Tokens actually borrowed and later repay *(Credit Coop has already arranged this but the parties must agree anyway)*
* The **whitelisted functions** that the Borrower is allowed to perform on the Revenue Contracts whilst the Spigot is attached so that the Borrower operate as usual
* The **contract address of the Spigot** [**Operator**](/about-our-products/the-spigot/spigot-roles/operator.md), an address through which the Borrower can still conduct business as usual on the Revenue Contract within the constraints of the whitelisted functions. This is also the address through which the Borrower receives all remaining Revenue Tokens not escrowed in the Spigot for the benefit of Lenders.

</details>

<details>

<summary>Asset Collateral</summary>

If Asset Collateral is to be posted, the Borrower and the Lender must agree:

* The collateral token(s), which must be whitelisted by the Servicer&#x20;
* The minimum collateral ratio to be maintained, if any.

</details>


---

# Agent Instructions: 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:

```
GET https://docs.creditcoop.xyz/about-our-products/secured-line-of-credit/secured-line-of-credit/creating-a-secured-line-of-credit.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
