> For the complete documentation index, see [llms.txt](https://docs.brila.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.brila.finance/brila-protocol/automated-lines-of-credit/line-of-credit-tutorial.md).

# Line of Credit tutorial

To create a 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 DAO* [*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.*
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/FGKRu9AOZcpERUxm1p1R" 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/ob8EdQaiHLOsNxW0ahht" 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 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
