twofold×2Docs
Documentation How dual accrual works

How dual accrual works

In a normal AMM, liquidity sits in the pool around the clock and earns only when a trade crosses it. DualPool moves the idle time somewhere productive.

LP capital rests in an allowlisted ERC-4626 vault, earning lending yield block by block. When a swap arrives, the hook withdraws just-in-time concentrated liquidity from the vault, fills the trade, captures the swap fee, and returns the capital to the vault. All of that happens inside the one swap transaction. The capital never sleeps outside the vault.

You make one deposit and never move it between the two modes. The hook decides when the capital works and when it rests, and the swap pays for the trip.

This is one section of the Twofold documentation. Read all of it.