DeFi & Staking

Learn how decentralized finance(DeFi) works from liquidity pools and AMMs to staking, yield farming, and restaking protocols.

Lending and Borrowing (Aave, Compound)

Lending & Borrowing in DeFi (Aave, Compound) How supply/borrow markets work, APYs, collateral, liquidations, and the risks to understand before you click “deposit”. TL;DR: You supply assets to earn variable APY and receive receipt tokens (aTokens on Aave, cTokens on Compound). You can borrow against posted collateral within limits. If your health factor drops (price […]

Lending and Borrowing (Aave, Compound) Read More »

Auditing and Testing (Foundry/Hardhat, fuzzing, static analysis)

Auditing & Testing: From Unit Tests to Fuzzing & Invariants Ship with confidence: rigorous tests, automated checks, and structured reviews before mainnet. TL;DR: Use Foundry or Hardhat for unit/integration tests, add fuzzing/invariant tests, run static analysis (Slither), measure coverage, and follow an audit checklist with clear threat models. In this lesson Tooling Stack Foundry Example

Auditing and Testing (Foundry/Hardhat, fuzzing, static analysis) Read More »

Staking & Restaking: Risks and Rewards

Staking & Restaking: Risks and Rewards Intermediate DeFi • ~11 min read • Updated: 08/08/2025 TL;DR: In Proof-of-Stake (PoS), validators lock capital to secure the network and earn rewards. You can participate directly (solo), delegate to professionals, or use liquid staking to get a tradable receipt (an LST). Know the tradeoffs: slashing (penalties for misbehavior),

Staking & Restaking: Risks and Rewards Read More »