> ## Documentation Index
> Fetch the complete documentation index at: https://defibyexample.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Lending Tutorial

> Step-by-step guide to DeFi lending and borrowing

Now that you understand how lending and borrowing work, your next step is to try it out.

This article will walk you through lending and borrowing on Scallop: a popular lending protocol on the Sui blockchain. The process is similar across major lending protocols, regardless of the blockchain you’re using.

## Lending Tutorial

<Steps>
  <Step title="Visit the Lending Protocol" icon="globe">
    Visit the website of the lending protocol you want to lend to or borrow from. You can easily choose by comparing the APR across lending protocols.

    Scallop is live at [Scallop.io](http://Scallop.io). Visit the app and connect your wallet to get started.

    <img src="https://mintcdn.com/defibyexample/NcjnqO9tPlgDyYkr/images/Lending_Borrowing_Tutorial/Screenshot_2025-07-14_at_13.59.04.png?fit=max&auto=format&n=NcjnqO9tPlgDyYkr&q=85&s=cd95e2baa8a8cd2d763b667494d7455a" alt="Screenshot 2025-07-14 at 13.59.04.png" width="4112" height="1906" data-path="images/Lending_Borrowing_Tutorial/Screenshot_2025-07-14_at_13.59.04.png" />
  </Step>

  <Step title="Connect Your Wallet" icon="wallet">
    Click on the "Connect Wallet" button in the top right corner of the page. Select your wallet provider and follow the prompts to connect.

    <img src="https://mintcdn.com/defibyexample/NcjnqO9tPlgDyYkr/images/Lending_Borrowing_Tutorial/Screenshot_2025-07-14_at_13.59.48.png?fit=max&auto=format&n=NcjnqO9tPlgDyYkr&q=85&s=d09d64bbe5fce5d7eb9073c9c5958863" alt="Screenshot 2025-07-14 at 13.59.48.png" width="4112" height="2010" data-path="images/Lending_Borrowing_Tutorial/Screenshot_2025-07-14_at_13.59.48.png" />
  </Step>

  <Step title="Switch to Lending" icon="arrow-right">
    Navigate to the "Lend" tab to view available assets for lending. You'll see a list of supported tokens and their current APY rates.

    <img src="https://mintcdn.com/defibyexample/NcjnqO9tPlgDyYkr/images/Lending_Borrowing_Tutorial/Screenshot_2025-07-14_at_14.12.51.png?fit=max&auto=format&n=NcjnqO9tPlgDyYkr&q=85&s=98e69d77d98aeea4d28871196a87472e" alt="Screenshot 2025-07-14 at 14.12.51.png" width="4112" height="2096" data-path="images/Lending_Borrowing_Tutorial/Screenshot_2025-07-14_at_14.12.51.png" />
  </Step>

  <Step title="Supply your Assets" icon="coins">
    Select the asset you wish to lend, enter the amount, and confirm the transaction in your wallet.

    Once approved, your assets will start earning interest immediately.

    <img src="https://mintcdn.com/defibyexample/NcjnqO9tPlgDyYkr/images/Lending_Borrowing_Tutorial/Screenshot_2025-07-14_at_14.42.36.png?fit=max&auto=format&n=NcjnqO9tPlgDyYkr&q=85&s=f54660f8d47b35741dbab6af6ac2c65c" alt="Screenshot 2025-07-14 at 14.42.36.png" width="4112" height="2096" data-path="images/Lending_Borrowing_Tutorial/Screenshot_2025-07-14_at_14.42.36.png" />
  </Step>
</Steps>

## Borrowing Tutorial

To borrow assets, you'll first need to supply collateral to secure your loan.

<Steps>
  <Step title="Toggle Borrowing" icon="toggle-right">
    Switch to the "Borrow" tab to see available assets for borrowing and their respective interest rates.

    <img src="https://mintcdn.com/defibyexample/NcjnqO9tPlgDyYkr/images/Lending_Borrowing_Tutorial/Screenshot_2025-07-14_at_14.48.28.png?fit=max&auto=format&n=NcjnqO9tPlgDyYkr&q=85&s=8f410cb63bbdf6559b731939e0356b4b" alt="Screenshot 2025-07-14 at 14.48.28.png" width="4112" height="2096" data-path="images/Lending_Borrowing_Tutorial/Screenshot_2025-07-14_at_14.48.28.png" />
  </Step>

  <Step title="Supply Collateral" icon="shield">
    Before borrowing, you must provide collateral. Select an asset to use as collateral and deposit it into the protocol.

    <img src="https://mintcdn.com/defibyexample/NcjnqO9tPlgDyYkr/images/Lending_Borrowing_Tutorial/Screenshot_2025-07-14_at_14.47.41.png?fit=max&auto=format&n=NcjnqO9tPlgDyYkr&q=85&s=2320c9006c527f72fd277c6302f738b7" alt="Screenshot 2025-07-14 at 14.47.41.png" width="4112" height="2096" data-path="images/Lending_Borrowing_Tutorial/Screenshot_2025-07-14_at_14.47.41.png" />
  </Step>

  <Step title="Borrow the Asset" icon="dollar-sign">
    After supplying collateral, you can borrow other assets. The amount you can borrow depends on the value of your collateral and the protocol's loan-to-value ratio.

    Select the asset you want to borrow, enter the amount (staying within your borrowing limit), and confirm the transaction in your wallet.

    <img src="https://mintcdn.com/defibyexample/NcjnqO9tPlgDyYkr/images/Lending_Borrowing_Tutorial/Screenshot_2025-07-14_at_14.59.45.png?fit=max&auto=format&n=NcjnqO9tPlgDyYkr&q=85&s=a4e6dfb683ba8cb5b9f06df57ab4ecbd" alt="Screenshot 2025-07-14 at 14.59.45.png" width="4112" height="2096" data-path="images/Lending_Borrowing_Tutorial/Screenshot_2025-07-14_at_14.59.45.png" />
  </Step>

  <Step title="Repay your Loans" icon="credit-card">
    To avoid liquidation, monitor your health factor and repay your loans on time. Toggle "Repay", select the borrowed asset, enter the amount you wish to repay, and confirm the transaction.

    Simply select the specific asset you borrowed and repay the loan.

    <img src="https://mintcdn.com/defibyexample/NcjnqO9tPlgDyYkr/images/Lending_Borrowing_Tutorial/Screenshot_2025-07-14_at_15.26.12.png?fit=max&auto=format&n=NcjnqO9tPlgDyYkr&q=85&s=c542daf7bb1d27a84b05efd49e7d3a2f" alt="Screenshot 2025-07-14 at 15.26.12.png" width="4112" height="2096" data-path="images/Lending_Borrowing_Tutorial/Screenshot_2025-07-14_at_15.26.12.png" />
  </Step>

  <Step title="View your Lending & Borrowing Status" icon="chart-bar">
    You can view your lending and borrowing status and overview from the top section on Scallop. You'll get a complete overview of how you're fairing.

    <img src="https://mintcdn.com/defibyexample/NcjnqO9tPlgDyYkr/images/Lending_Borrowing_Tutorial/Screenshot_2025-07-14_at_15.26.32.png?fit=max&auto=format&n=NcjnqO9tPlgDyYkr&q=85&s=3d60b28422fdeea13a81952386b220b4" alt="Screenshot 2025-07-14 at 15.26.32.png" width="4112" height="2096" data-path="images/Lending_Borrowing_Tutorial/Screenshot_2025-07-14_at_15.26.32.png" />
  </Step>
</Steps>

Now that you can lend and borrow, it’s time for you to start learning about strategies like looping.
