How Do Smart Contracts in Decentralized Lending Protocols Determine Interest Rates?

In decentralized lending protocols, interest rates are typically determined algorithmically based on supply and demand. A smart contract manages a pool of assets where users can lend or borrow.

The interest rate for a specific asset is a function of the utilization rate ⎊ the ratio of borrowed assets to the total assets in the pool. As more assets are borrowed, the utilization rate increases, and the smart contract automatically raises the interest rate to incentivize more lending.

Conversely, as loans are repaid, the rate decreases to encourage borrowing.

How Do Flash Loans in DeFi Work and What Are Their Primary Use Cases?
What Is the Difference between Circulating Supply and Total Supply in Crypto?
How Do Smart Contracts Enforce Margin Requirements in Decentralized Finance (DeFi) Derivatives?
What Is the Significance of the Supply/demand Balance for a Cryptocurrency’s Price?
What Is a Liquidity Pool in the Context of Decentralized Lending?
How Do Lenders Use LTV Ratios to Determine Interest Rates in Traditional and Decentralized Finance?
How Do Automated Market Makers (AMMs) Determine the Price of an Asset in a Liquidity Pool?
What Mechanisms Do Smart Contracts Use to Manage Collateral and Prevent Defaults in Lending?

Glossar