DeFi Lab is my research workbench for understanding how financial primitives get rebuilt on-chain.

The traditional finance notes are still here, but they are no longer the point of the room. The useful question is more concrete: how do programmable markets discover prices, rates, risk, and execution costs when the infrastructure itself can encode policy?

That question cuts across AMMs, Uniswap v4 hooks, stablecoin settlement, risk premiums, yield curves, liquidity design, and protocol incentives. It is where a finance curriculum becomes useful for builders: not as certification material, but as a language for designing markets that can survive contact with real users.

Core Thesis

DeFi does not remove financial structure. It exposes it.

Every protocol decision carries an embedded view about price discovery, liquidity, time value, and risk allocation. A swap fee is a market design choice. A lending rate is a risk model. A stablecoin execution fee is a cost policy. A hook is not just extension code; it can turn accounting, treasury policy, and product guarantees into protocol behavior.

This lab connects traditional finance concepts to those protocol design questions:

  • Price discovery: what mechanisms let markets agree on rates, volatility, probabilities, and token values?
  • Rates and premiums: what is the base price of time, and what extra risk is an APY actually paying for?
  • Hooks and execution policy: how can programmable AMMs turn volatile infrastructure costs into predictable user-facing terms?
  • Market structure: how do liquidity, settlement, incentives, and risk controls shape what can be built on-chain?

Price Discovery

Start with On-Chain Price Discovery, a project path through identity-based lending, Uniswap v4 interest-rate extraction, and Polymarket-style option thinking.

The common thread is that DeFi builders often need prices for things TradFi already has institutions for: credit, time, volatility, probability, and liquidity. On-chain, those prices have to emerge from markets, oracles, hooks, and incentives.

Rates And Risk Premiums

Read Risk-Free Rates And Equity Risk Premiums for the core valuation discipline: separate the base rate from the risks bundled into a yield.

Then use Building Interest Rate Markets in DeFi as the longer research thread on benchmark rates, yield curves, and peer-to-peer financial contracts.

Hooks And Execution Policy

USDC Fixed-Fee Hook is the clearest practical case study in the lab: a Uniswap v4 hook that turns volatile ETH gas into a predictable USDC execution fee.

The point is not “free gas.” The point is a more useful primitive: fixed-fee execution, per-user credit accounting, and stablecoin-denominated cost certainty for products that execute many swaps.

Market Structure Foundations

The curriculum notes are most useful when read as protocol design references:

Builder Reading Paths

If You Are Building AMMs Or Hooks

If You Are Studying On-Chain Rates

If You Are Evaluating Protocol Or Token Risk

Reference Map

Use the traditional finance material as a compact map when a protocol question needs a formal vocabulary:

What This Lab Is For

DeFi Lab is for turning finance concepts into builder questions:

  • What price is the market discovering?
  • What risk is the yield compensating?
  • What policy is the protocol encoding?
  • What cost is the user being asked to absorb?
  • What liquidity does the mechanism need before the theory matters?

The answer is rarely one model. It is usually a stack: market design, smart contracts, incentives, accounting, and a clear view of who holds the risk when the system is stressed.

14 items under this folder.