Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

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/sky-ecosystem/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/evm-monorepo 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-v3 Docs N/A
Uniswap V2 DEX https://github.com/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/core 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/derivexyz/v1-core 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
Spark Lending https://github.com/sparkdotfi/sparklend-deployments Docs N/A
dYdX V4 Perps https://github.com/dydxprotocol/v4-chain Docs N/A
1inch DEX Aggregator https://github.com/1inch/limit-order-protocol Docs N/A
Blur NFT Marketplace https://github.com/blur-io/exchange Docs N/A
Cowswap DEX Aggregator https://github.com/cowprotocol/contracts Docs N/A
Angle Stablecoin https://github.com/AngleProtocol/angle-core Docs N/A
Prisma Liquid Restaking https://github.com/prisma-fi/prisma-contracts Docs N/A
Reserve Stablecoin / RWA https://github.com/reserve-protocol/protocol Docs N/A
Hyperliquid Perps https://github.com/hyperliquid-dex/contracts Docs N/A
LooksRare NFT Marketplace https://github.com/LooksRare/contracts-libs Docs N/A
Aave V4 Lending https://github.com/aave/aave-v4 Docs N/A
Panoptic Options (Uniswap) https://github.com/panoptic-labs/panoptic-v2-core Docs N/A
Venus Lending https://github.com/VenusProtocol/venus-protocol 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, solve Ethernaut and Damn Vulnerable DeFi, then look at real 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 :)

About

The best smart contracts resources in one place.

Resources

Contributing

Security policy

Stars

180 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors