Command Palette

Search for a command to run...

Loyalty Lock Hook

04.2026 – 11 april 2026

Smart ContractsUniswap V4 Hook DevelopmentSolidityFoundryEthereum
Built Loyalty Lock — a Uniswap v4 Hook that rewards long-term LPs and discourages mercenary liquidity. - Applies a time-decaying exit fee (3% → 0% over 30 days) when liquidity is withdrawn. - Exit fees are automatically redistributed to LPs who remain in the pool. - No token custody — fees are donated directly through Uniswap v4 hook accounting. - Includes weighted deposit-time tracking, linear fee decay, and a sole-LP fee waiver. - Deployed and verified on Ethereum Sepolia with full on-chain lifecycle testing. Result: LPs who exit early subsidize loyal liquidity providers, improving liquidity stickiness and reducing incentive farming churn.

What I learned

Uniswap v4 hook accounting (fee donation without token custody), time-decaying exit-fee curves, weighted deposit-time tracking, linear fee decay, sole-LP fee waiver edge cases.