# 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="https://1577631410-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MOBxBNTVTribg0rlJSW%2Fuploads%2FhF0Ucs75GcyP83UgJUrp%2Fimage.png?alt=media&#x26;token=e3819cfc-9f5d-4de1-abd8-6dba1e525ecd" alt=""><figcaption></figcaption></figure>
4. **Configure interest rate curve**\
   Borrower defines parameters of interest rate curve w/ up to two kinks.

   <figure><img src="https://1577631410-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MOBxBNTVTribg0rlJSW%2Fuploads%2FRXfDinSiusouyVuHrC7M%2Fimage.png?alt=media&#x26;token=6b746924-7db3-4308-a649-10461a6a9e31" 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="https://1577631410-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MOBxBNTVTribg0rlJSW%2Fuploads%2F9K8WBHuxbiFKstSrX1ij%2Fimage.png?alt=media&#x26;token=3b37570b-affe-403c-8511-56b96e344218" 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="https://1577631410-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MOBxBNTVTribg0rlJSW%2Fuploads%2F6DbYOCY48h0oHXDLsUvm%2Fimage.png?alt=media&#x26;token=c97c8620-eff2-4126-ac24-0d2f946d1027" alt=""><figcaption></figcaption></figure>

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