V4 hook / beforeSwap + afterSwap

The $Q pool digs its own water.

A normal AMM prices swaps and stops there. Quench lets qualifying $Q buys fill a pool-local drought index; threshold crossings briefly reveal reserve-backed water.

Mechanic in one line

Local $Q buy pressure opens finite Water Canister inventory; $Q buys during that window receive expiring canister claims.

Sells do not earn canisters. Sheds can cool or close windows. No buy tax. No sell tax. No variable fee lever.

Instrument table

78%

Drought index

Built from qualifying $Q buys in the hooked pool.

beforeSwap

Verify route

The hook accepts only the Quench pool and throttles repeated same-address swaps during the first launch blocks.

afterSwap

Open or write

Buys advance the drought bar, threshold crossings open inventory, and qualified buys receive a claim record with an expiry block.

01 — Drought builds

Qualifying buys add their $Q amount to the local drought index.

02 — Reservoir opens

Crossing threshold releases a finite canister inventory for a short block window.

03 — Canister found

A $Q buy during the window receives a numbered receipt against the sealed reserve.

04 — Desert cools

Sells can cool the index or close the open reservoir without changing swap fees.

Why it is different

The hook does not watch a second pool, run a lottery, route tax, or auction access. It turns the $Q pool’s own drought bar into an expiring inventory gate.