Hashtag Web3 Logo
Hashtag Web3 Logo

DeFi Code Review Checklist

A detailed code review checklist specifically for DeFi protocols. Use this when reviewing PRs for lending protocols, DEXs, yield aggregators, and other financial smart contracts.

DeFi Developer56 items Updated May 17, 2026
0 of 56 complete (0%)

Financial Logic Review

Verify correctness of financial calculations.

Oracle Integration

Review price feed usage and manipulation resistance.

Liquidity & Solvency

Verify protocol remains solvent under all conditions.

MEV & Ordering

Review transaction ordering vulnerabilities.

Access Control & Governance

Review permission systems and admin functions.

Integration Safety

Review external protocol interactions.

Testing & Documentation

Verify code quality and test coverage.

Pro Tips

Always trace the math by hand: For any financial calculation, work through specific examples manually before trusting the code.

Think like an attacker with a flash loan: Ask: What could I do with unlimited capital in a single transaction? This catches most DeFi bugs.

Check edge cases: zero, one, max: Every numeric input should be tested with 0, 1, and type(uint256).max.

Review rounding direction for every division: Rounding should favor the protocol, not users. Inconsistent rounding is exploitable.

Draw the token flow diagram: For complex operations, diagram where tokens move. Missing flows mean lost or stuck funds.

More for DeFi Developer

Ready to build your Web3 career?

Browse hundreds of open roles across the decentralized ecosystem.

Explore Jobs