decrypt101
SocialOpen ProjectsSupport me My Resumes
  • Preface
    • Motivation
    • Roadmap’s
  • Introduction to Blockchain
    • A Brief History
    • Growth of Blockchain
    • Structure of Blockchain
    • Types of Blockchain
    • Key Technologies of Blockchain
    • Features of Blockchain
    • How Blockchain Works ?
    • Implementation of Blockchain
    • Summary
  • Components of Blockchain Architecture
    • Distributed Ledger
    • Blocks
    • Transaction
    • Chain
    • Peer-to-Peer Network
    • Blockchain Layers
    • Off-Chain & On-Chain
    • Wallet
    • Mining
    • Tokens
    • Assets
    • State Channels
    • Sidechains
    • Oracles on Blockchain
    • Atomic Swaps
    • Decentralized Identity (DID)
    • Blockchain Data Storage
    • Interoperability
    • Data structures for Scaling Blockchain
    • Maximal Extractable Value (MEV)
  • Consensus Mechanisms
    • Proof of Work (PoW)
      • Implemation Using Rust
    • Proof of Stake (PoS)
    • Proof of Burn (PoB)
    • Proof of Capacity (PoC)
    • Proof of Activity (PoAc)
    • Proof of Weight (PoWe)
    • Proof of Luck (PoL)
    • Proof of Ownership (PoO)
    • Proof of Existence (PoE)
    • Proof of Believability (PoBe)
    • Proof of History (PoH)
    • Proof of Authority (PoA)
    • Proof of Elapsed Time (PoET)
  • Cryptographics
    • Encryption & Decryption
      • Symmetric Encryption
      • Asymmetric Encryption
      • Key Management and Exchange
      • Implementation
    • Cryptographic Hashing
      • Secure Hash Algorithms (SHA)
      • Message Digest Algorithms
      • Ethash
      • Blake2
      • SCrypt
      • RIPEMD-160
    • Digital Signature
      • Digital Signature Algorithms
      • Digital Signature in Blockchain
    • Zero-Knowledge Proofs (ZKPs)
      • Types of Zero-Knowledge Proof and Protocols
      • A Case Study of Polygon Platform
    • Multi-Party Computation (MPC)
    • Cryptanalysis
    • Practical Implementation
  • Decentralized Application (DApp)
    • Design and UX in Web3
  • Smart Contract
    • Development Tools
    • Solidity
    • Testing Smart Contract
    • Developing Smart Contract
    • Interacting & Deploying with Smart Contract
    • Verifying Smart Contracts
    • Upgrading Smart Contracts
    • Securing Smart Contract
    • Smart Contract Composability
    • Testnet and Mainnet
    • Blockchain Platform Using Smart Contract
    • Application of Smart Contract
    • Practical Implementation
  • Blockchain Platforms
    • Ethereum
      • Ethereum Virtual Machine (EVM)
      • ETHER and GAS
      • Ethereum transaction
      • Ethereum Accounts
      • Ethereum Stacking
      • Ethereum Network
      • Ethereum Scaling Solutions
      • Ethereum Use-Cases
      • Getting Started with Ethereum
      • Ethereum Ecosystem and Support
    • Solana
      • Solana Architecture
        • Solana Account Model
        • Solana Wallet
        • Transactions and Instructions
        • Solana Programs
        • Program Derived Address (PDA)
        • Cross Program Invocation (CPI)
        • Tokens on Solana
        • Clusters and Public RPC Endpoints
        • Transaction Confirmation & Expiration
        • Retrying Transactions
        • Versioned Transactions
        • Address Lookup Tables
        • State Compression
        • Actions and Blinks
      • Solana Developments
      • Solana Client
      • Advanced Solana
      • Solana Scaling and Performance Architecture
      • Solana Solutions and cases
      • Practical Implemenation
    • Binance Smart Chain (BSC)
      • Create a BEP20 Token
    • Hyperledger Fabric
    • Cosmos
    • Polkadot
    • Quorum
    • Polygon
    • Algorand
    • Corda
    • Avalanche
    • TRON
    • Summary
  • Decentralized Finance (DeFi)
    • DeFi Components
    • DeFi Protocols
    • DeFi Platforms
    • DeFi Risk Classification
      • Infrastructure-layer Attacks
      • Smart Contract Layer-attacks
      • Application Layer-attacks
      • DeFi Risks
    • DeFi and Blockchain
    • DeFi Impact
  • Decentralized Ecosystem and Digital Innovation
    • Layer 2 Scaling Fundamental
    • Tokenomics
    • Cryptocurrency
    • Quantative Trading
    • NFTs
    • GameFi
    • Metaverse
  • Blockchain as a Service (BaaS)
    • Building Fullstack Blockchain Platform
    • Decentralized Digital Identity
    • Build a Cryptocurrencies Exchange
    • Play-to-Earn Gaming
    • Solana Token Airdrop Manager
    • Smart Contract Development on Solana with Rust
    • Quantitative Trading Platform
    • Insurances protocols
    • Flash Loans
    • Asset Management
    • Tokenized Derivatives
    • Automated Market Makers (AMMs)
    • Staking
    • Lending and Borrowing Platforms
    • Yield Farming
    • Stablecoin System
    • Security Token Offerings (STOs)
    • Initial Coin Offerings (ICOs)
    • On-Chain Voting Systems
    • Decentralized Autonomous Organizations (DAOs)
    • NFT Marketplaces
    • Provenance Verification
    • Supply Chain Tracking
    • Commodities Tokenization
    • Real Estate Tokenization
    • Digital Certificates
    • KYC (Know Your Customer)
  • Blockchain Development Across Languages
    • Blockchain using Go(Golang)
    • Blockchain using Rust
    • Blockchain using Python
    • Blockchain using Cairo
  • Distributed Systems & Infrastructure Technology
    • Classification of Distributed Systems
    • Networked systems versus Distributed systems
    • Parallel systems vs Distributed systems
    • Distributed versus Decentralized systems
    • Processes of Distributed Systems
    • Architecture of Distributed systems
    • Infrastructure Technologies
  • Distributed System Patterns
    • Distributed Agreements Algorithms
      • HoneyBadgerBFT
    • Data Replications
    • Data Partition
    • Consistency
    • Distributed Time
    • Cluster Management
    • Communication between Nodes
    • Fault Tolerance and Resilience
      • How to design better fault tolerance systems
      • Resilience Patterns
    • Coordination systems
      • Clock synchronization
    • Security
      • Trust in distributed systems
      • Design of Principal Security
      • Security threats, policies, and mechanisms
      • Authentication and Authorizations
      • Cryptography
      • Monitoring in Security
  • Distributed System Design
    • Page 1
    • Distributed Shared Memory
    • Distributed Data Management
    • Distributed Knowledge Management
    • Distributed Ledger
  • FAQs
  • Support and Community
Powered by GitBook
On this page
  • Pegged Tokens
  • Liquidity Pools
  • Aggregators
  1. Decentralized Finance (DeFi)

DeFi Protocols

Decentralized Finance (DeFi) protocols are financial applications built on blockchain technology that aim to recreate and improve traditional financial systems in a decentralized manner. This section presents the mechanics behind the major DeFi categories: decentralized exchanges (DEXs) and their aggregators, lending protocols (also referred to as interest-rate protocols or protocols for loanable funds), crypto-backed stablecoins (also referred to as collateralized debt positions) with other classes of stablecoins, bridges (wrapped tokens) and liquid staking protocol (liquid staking tokens/derivatives).

Pegged Tokens

Pegged tokens are a category of cryptocurrency where the value of the token is tied to the value of another asset. This "peg" can be to a fiat currency, a commodity, or another cryptocurrency.

  • Liquid Staking Tokens: These are synthetic assets that track the value of tokens staked in Proof-of-Stake blockchains, allowing users to participate in staking benefits without locking their tokens. Key topics include:

    • Rebase Tokens: Tokens that keep a 1:1 peg to the staked tokens and inflate supply to reflect staking yield (e.g., Lido's stETH).

    • Reward-bearing Tokens: Tokens that increase in value relative to the underlying staked token to reflect staking yields.

    • Dual Token Model: Uses two tokens, one pegged 1:1 to the staked token and another reflecting staking rewards.

    • De-Peg Risk: The risk that the liquid staking token loses its peg to the value of the underlying staked asset.

  • Bridges and Wrapped Tokens: Bridges enable the transfer of tokens between different blockchains. They create wrapped tokens, pegged to the value of tokens on other blockchains. Key topics include:

    • Wrapped Tokens: Represent tokens from other blockchains (e.g., Wrapped Bitcoin on Ethereum).

    • Blockchain Interoperability: The ability to transfer assets and data between different blockchains.

    • De-Peg Risk: The risk that the wrapped token loses its peg to the original token's value.

  • Stablecoins: Tokens designed to maintain a stable value, usually pegged to a fiat currency like the US dollar. Key topics include:

    • Fiat-Backed Stablecoins: Collateralized by fiat currency held outside the blockchain.

    • Crypto-Backed Stablecoins: Collateralized by other cryptocurrencies held on the blockchain.

    • Algorithmic Stablecoins: Maintain price stability by algorithmically adjusting supply.

    • De-Peg Risk: The risk that the stablecoin loses its peg to the target fiat currency.

    • Collateralized Debt Position (CDP): Users provide crypto collateral to borrow stablecoins.

Liquidity Pools

Liquidity pools are reserves of tokens locked in a smart contract that facilitate trading, lending, and other financial operations in a decentralized manner. These pools power many DeFi protocols, particularly Decentralized Exchanges (DEXs) and Interest-Rate Protocols.

  • Interest-Rate Protocols: Facilitate the lending and borrowing of digital assets. Lenders provide capital to liquidity pools from which borrowers can access loans. Key topics include:

    • Interest Rate Models: Determine how interest rates are calculated based on factors like utilization rate (linear, non-linear, kinked rates).

    • Over-Collateralization: Borrowers need to post collateral worth more than the loan amount to mitigate default risk.

    • Liquidation Risk: Borrowers' collateral can be automatically liquidated if its value falls below a certain threshold.

    • Flash Loans: Uncollateralized loans that must be repaid within the same transaction block.

  • Decentralized Exchanges (DEXs): Allow users to swap digital assets without intermediaries, with settlement occurring on the blockchain. Key topics include:

    • Automated Market Maker (AMM): Algorithmically determine the price of tokens in liquidity pools based on supply and demand.

    • Constant Function Market Makers (CFMMs): Various mathematical formulas used by AMMs, including Constant Product Market Maker (CPMM), Constant Mean Market Maker (CMMM), Stableswap Invariant, and Cryptoswap Invariant.

    • Concentrated Liquidity: Allows liquidity providers to focus their capital within specific price ranges, increasing capital efficiency.

    • Slippage: The difference between the expected price and the actual price executed due to price fluctuations.

    • Impermanent Loss: Potential losses for liquidity providers due to changes in the relative prices of tokens in a pool.

  • Perpetuals: Derivatives contracts that allow users to speculate on the price of an asset without owning it, with no expiration date. Key topics include:

    • Virtual AMMs (vAMMs): Similar to AMMs but used for price determination and collateral liquidation in perpetual contracts.

    • Leverage: Users can amplify potential profits and losses by trading with borrowed funds.

Aggregators

Aggregators are protocols that connect to and interact with multiple other DeFi protocols, aiming to optimize certain processes. Two main types of aggregators discussed in the sources are:

  • DEX Aggregators: Collect data from multiple DEXs to offer users the best possible prices for their trades and optimize trade routing.

  • Yield Farming Aggregators: Automate the process of yield farming by strategically allocating users' capital to different DeFi protocols to maximize returns. Key topics include:

    • Yield Farming: Providing liquidity to DeFi protocols to earn fees and other rewards.

    • Simple Lending: Depositing tokens in interest-rate protocols to earn interest.

    • Leverage Borrow: Borrowing additional assets using existing deposits as collateral to amplify potential yields.

    • Liquidity Provision: Supplying tokens to liquidity pools on AMM-based DEXs to earn trading fees.

DeFi protocols are financial applications built on blockchain technology that aim to provide open and transparent financial services. Pegged Tokens, like Liquid Staking Tokens, Wrapped Tokens, and Stablecoins, derive their value from underlying assets. Liquidity Pools, such as Interest-Rate Protocols and Decentralized Exchanges, utilize capital from Liquidity Providers to facilitate borrowing, lending, and token swaps. DEX Aggregators search across multiple decentralized exchanges to find the best trade prices for users. Yield Farming Aggregators automate the process of earning rewards by allocating capital to different protocols, employing strategies like Simple Lending, Leverage Borrowing, and Liquidity Provision. These DeFi protocols, while offering innovative financial tools, also come with unique risks, including De-Peg Risk, Liquidation Risk, Impermanent Loss, and the potential for MEV Attacks.

PreviousDeFi ComponentsNextDeFi Platforms

Last updated 7 months ago