🚀 Objective:


🧠 What is DeFi?

DeFi (Decentralized Finance) refers to the financial services built on top of blockchain technology, eliminating intermediaries like banks and centralized exchanges. These services are often open-source and run on smart contracts deployed on Ethereum or other blockchains.

🔑 Core DeFi Protocols:

  1. ERC-20 Tokens: The standard for fungible tokens that can represent assets like stablecoins, utility tokens, or governance tokens.
  2. Staking: A process where users lock up tokens to support network operations (e.g., proof-of-stake) or participate in liquidity pools.
  3. Yield Farming: A way to earn rewards (usually in the form of additional tokens) by providing liquidity to a decentralized exchange (DEX) or lending protocol.
  4. Liquidity Pools: A collection of assets in a smart contract used to facilitate decentralized trading, lending, and borrowing.

📘 ERC-20 Token Standard

The ERC-20 standard defines a common set of rules for fungible tokens, ensuring that tokens can be traded, transferred, and interacted with across different platforms and DApps.

🔑 ERC-20 Core Functions:

  1. totalSupply(): Returns the total supply of the token.
  2. balanceOf(address account): Returns the balance of tokens held by a given address.
  3. transfer(address recipient, uint256 amount): Allows users to transfer tokens to another address.