How Do Lending Protocols Utilize ERC-20 Standards for Collateral?

Lending protocols rely on the standardized transferFrom and approve functions of ERC-20. Users approve the lending contract to access their collateral tokens.

When a loan is issued, the contract locks the collateral. If the loan is liquidated, the contract uses transferFrom to seize and sell the collateral.

The standard ensures the protocol can interact reliably with any approved ERC-20 token.

What Is the Term for a Margin Call in a DeFi Lending Protocol?
What Is the Difference between ERC-20 and ERC-721 Token Standards?
How Do Cross-Chain Derivatives Utilize Standardized Tokens for Settlement?
What Are the Key Functions Defined in the ERC-20 Standard?
How Does ERC-1155 Improve Gas Efficiency over ERC-20 and ERC-721?
What Is the Key Advantage of a Tokenized Option Being an ERC-721 (NFT) versus an ERC-20?
What Is the Difference between Transfer and Transferfrom ?
How Does the Liquidation Mechanism Work in a DeFi Lending Protocol?

Glossar