Skip to content

Latest commit

 

History

History
837 lines (712 loc) · 59 KB

File metadata and controls

837 lines (712 loc) · 59 KB

Master Smart Contracts

The best smart contracts resources in one place.

This repo is meant to be a single README you can live in while you:

  • Read real production contracts
  • Jump into docs / audits / talks for each protocol
  • Discover libraries, security guides, and learning material

PRs are very welcome – add anything you’ve personally found useful.


Recommended learning paths


Battle‑tested protocol contracts

Protocol Type Repository Documentation The Bytecode Episode
Aave Lending https://github.com/aave/protocol-v2 Docs N/A
Ajna Lending https://github.com/ajna-finance/ajna-core Docs N/A
Art Gobblers NFT https://github.com/artgobblers/art-gobblers Docs N/A
Balancer V2 DEX https://github.com/balancer/balancer-v2-monorepo Docs N/A
Balancer V3 DEX https://github.com/balancer/balancer-v3-monorepo Docs N/A
Compound Lending https://github.com/compound-finance/compound-protocol Docs N/A
Conditional Tokens Token https://github.com/gnosis/conditional-tokens-contracts Docs N/A
Curve DEX https://github.com/curvefi/curve-contract Docs N/A
EigenLayer Restaking https://github.com/Layr-Labs/eigenlayer-contracts Docs N/A
MakerDAO Stablecoin https://github.com/makerdao/dss Docs N/A
Maple Lending https://github.com/maple-labs/maple-core-v2 Docs Youtube
Merit Escrow https://github.com/Merit-Systems/contracts Docs Youtube
Sablier V2 Streaming https://github.com/sablier-labs/v2-core Docs Youtube
Seaport NFT Marketplace https://github.com/ProjectOpenSea/seaport Docs Youtube
🐍 snekmate Library https://github.com/pcaversaccio/snekmate Docs N/A
Solady Library https://github.com/Vectorized/solady Docs N/A
Solmate Library https://github.com/transmissions11/solmate Docs N/A
Synthetix Derivatives https://github.com/Synthetixio/synthetix Docs N/A
Uniswap V2 DEX https://github.com/Uniswap/uniswap-v2-core Docs N/A
Uniswap V3 DEX https://github.com/Uniswap/v3-core Docs N/A
Uniswap V4 DEX https://github.com/Uniswap/v4-core Docs N/A
Yearn V3 Yield Farming https://github.com/yearn/yearn-vaults-v3 Docs N/A
Morpho Blue Lending https://github.com/morpho-org/morpho-blue Docs N/A
Lido Liquid Staking https://github.com/lidofinance/lido-dao Docs N/A
Rocket Pool Liquid Staking https://github.com/rocket-pool/rocketpool Docs N/A
Pendle V2 Yield Trading https://github.com/pendle-finance/pendle-core-v2-public Docs N/A
GMX Perps / DEX https://github.com/gmx-io/gmx-contracts Docs N/A
Lyra Options AMM https://github.com/lyra-finance/lyra-protocol Docs N/A
Notional Fixed-Rate Lending https://github.com/notional-finance/contracts-v2 Docs N/A
Gearbox Leveraged DeFi https://github.com/Gearbox-protocol/core-v2 Docs N/A
Frax Stablecoin / LSD https://github.com/FraxFinance/frax-solidity Docs N/A

Learn smart contracts (code, courses, and books)


Fresh DeFi research, newsletters & channels


Security & auditing resources


Deep dives by theme


Zero Knowledge (ZK) resources


Standards, libraries & tooling


Additional resources


Blockchain development resources

How to use this repo

  • Browsing: scroll through the protocol table, pick a protocol, and deep‑dive into its repo + docs.
  • Learning: pair a learning resource with a protocol implementation (e.g. read lending docs + Aave code).
  • Security practice: pick a vuln from SWC, find it in real audits, then look at the actual protocol code.
  • Building: use the tooling section to set up your dev environment, then reference design patterns and libraries.

If you have a favorite link, thread, paper, or repo – add it here.


Contributing

  • Open a PR: add a row, setion, or resource you’ve actually used and recommend.
  • Keep it high signal: no SEO spam, no random Medium posts.
  • Format: keep tables and headings consistent with the current style.

License

do whatever you want ser – but stars and PRs are appreciated :)