DeFi

Contents

Overview

Lending protocols

DEX trading

AMM (swap according to a formula) DEXes

Serum (full order book)

  • Serum whitepaper
  • A technical introduction to the Serum DEX
    • describes the orderbook interactions and data structures, as well as how they're implemented. Note the section on the request queue is outdated
  • Serum core
    • a next-gen orderbook that decouples the matching engine from SPL tokens. Also known as the agnostic orderbook (AOB)
    • DEX v4 is a new version of Serum DEX that builds on top of the AOB

Derivatives

Stablecoins

Bridges

Oracles

Indexing

  • Intro to The Graph
    • The Graph is a decentralized protocol for indexing and querying blockchain data
      • It's like a search engine framework, and each 'subgraph' is a domain-specific search engine implementation
    • GraphQL API
      • tutorial on how to query a subgraph using GraphQL

Insurance

Governance wars and DeFi

  • CRV/CVX part 1 (June 2021)
    • describing the innovation of Convex (CVX) as a method for controlling valuable CRV governance votes, as well as the more general question of protocol design with respect to 'meta-protocols' like CVX
  • CRV/CVX part 2 (Sep 2021)
    • an in-depth look at the CRV governance war which TokenBrice correctly predicted in part 1
  • Mochi scam and the Curve Wars (Nov 2021)

Tools

High-level TVL/usage stats

Portfolio

Use these to track your (or anyone else's) balances/activity across various DeFi protocols.

Yield Farming Analytics

Smart Contract Security

  • apesafe.io - contract comparison
  • app.unrekt.net - allowance checker
  • RugDoc - AMM emergency withdrawal tool, honeypot checker, LP breaker, etc
  • defiyield.info - tools for reviewing where you approved ERC20 tokens, timelocks, etc

Airdrops

Fun

  • fees.wtf - check how much you have spent on ETH fees
  • il.wtf - check your cumulative IL