# Line of Credit tutorial

To create a TrueFi Line of Credit, follow the process below:

1. **Go to** [**https://app.truefi.io/vault/aloc/create**](https://app.truefi.io/vault/aloc/create)
2. **Connect your wallet.**
   * ***For demo vaults, make sure you are connected to Optimism Sepolia network.***
   * ***If deploying on mainnet,** make sure your connected address has been allowlisted by* [*TrueFi governance*](https://www.tally.xyz/gov/truefi/proposals)*. Only allowlisted addresses are able to deploy a Line of Credit. Deployment transaction by non-allowlisted addresses will fail.*&#x20;
3. **Configure Line of Credit.** See below for descriptions of each parameter:<br>

   * *Deployment Network:* choose between deployment on Ethereum, Arbitrum, or Optimism
   * *Underlying Asset:* select ERC-20 borrow/lend asset
   * *Deposit Controller:* n/a[^1]
   * *Lender Restrictions:* borrower sets KYC/KYB policy to one of following
     * `All lenders allowed`
     * `TrustLabs-managed KYC whitelist`: delegate KYC onboarding to [Archblock](https://www.archblock.com/)/TrustLabs)
     * `Custom whitelist`: borrower manages own whitelist
   * *Withdraw Controller:* for Line of Credit, select `Default`
   * *Transfer Restrictions:* borrower sets policy for whether lenders can transfer LP token
     * `All transfers allowed`
     * `No transfers allowed`

   <figure><img src="/files/qaU5KvhHPSm7gFS1u7C4" alt=""><figcaption></figcaption></figure>
4. **Configure interest rate curve**\
   Borrower defines parameters of interest rate curve w/ up to two kinks.

   <figure><img src="/files/2NTy7d2zavScmh9vTYAQ" alt=""><figcaption></figcaption></figure>
5. **Provide token name, token symbol, and borrower description.**\
   The token name and symbol will show onchain and on Etherscan pages, etc.\
   The description will show in the TrueFi app front end only.<br>

   <figure><img src="/files/ctFwZHPXeDE5Cm5UyU58" alt=""><figcaption></figcaption></figure>
6. **Deploy Line of Credit.**\
   Review and verify all configuration details. Once confirmed, click "Continue" to create onchain transaction and sign in wallet.<br>

   <figure><img src="/files/qYPWAO7l2cmg0AqRTosH" alt=""><figcaption></figcaption></figure>

[^1]: Custom strategies can be created if borrower wishes to impose min. or max. deposit size on each lender


---

# 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.brila.finance/brila-protocol/automated-lines-of-credit/line-of-credit-tutorial.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.
