Skip to content

Add FloorPad Floor Hook hook on base#654

Merged
marktoda merged 1 commit into
mainfrom
hooks/base/0x70e163cf92b4565a0eeba7d12d2cfcebd51c40cc
Jun 11, 2026
Merged

Add FloorPad Floor Hook hook on base#654
marktoda merged 1 commit into
mainfrom
hooks/base/0x70e163cf92b4565a0eeba7d12d2cfcebd51c40cc

Conversation

@hooklist-generator

Copy link
Copy Markdown

Summary

Singleton Uniswap v4 hook serving all FloorPad memecoins (per-pool state keyed by poolId). On each buy, diverts a dynamic cut of the WETH input into a per-pool vault and fees to protocol/creator; on each sell, skims a fee from the WETH output. The vault backs a WETH-per-token redemption floor that ratchets up only on buys; holders can burn coins to redeem at the floor at any time.

Flags

Flag Value
beforeInitialize false
afterInitialize false
beforeAddLiquidity false
afterAddLiquidity false
beforeRemoveLiquidity false
afterRemoveLiquidity false
beforeSwap true
afterSwap true
beforeDonate false
afterDonate false
beforeSwapReturnsDelta true
afterSwapReturnsDelta true
afterAddLiquidityReturnsDelta false
afterRemoveLiquidityReturnsDelta false

Properties

Property Value
dynamicFee false
upgradeable false
requiresCustomSwapData false
vanillaSwap false
swapAccess none

Warnings

  • Submitter-proposed description rejected: contains "Source verified on BaseScan" — a meta-provenance claim not derivable from the Solidity logic. Using AI-generated description.

Closes #653

@vercel

vercel Bot commented Jun 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hooklist Ready Ready Preview, Comment Jun 11, 2026 8:14pm

Request Review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: hooks/base/0x70e163cf92b4565a0eeba7d12d2cfcebd51c40cc.json

Address Flags

Address suffix 0x40cc = 0100 0000 1100 1100 binary.

Bit Flag Address bit JSON
13 beforeInitialize 0 false ✓
12 afterInitialize 0 false ✓
11 beforeAddLiquidity 0 false ✓
10 afterAddLiquidity 0 false ✓
9 beforeRemoveLiquidity 0 false ✓
8 afterRemoveLiquidity 0 false ✓
7 beforeSwap 1 true ✓
6 afterSwap 1 true ✓
5 beforeDonate 0 false ✓
4 afterDonate 0 false ✓
3 beforeSwapReturnsDelta 1 true ✓
2 afterSwapReturnsDelta 1 true ✓
1 afterAddLiquidityReturnsDelta 0 false ✓
0 afterRemoveLiquidityReturnsDelta 0 false ✓

All 14 flags match. Confirmed by getHookPermissions() in source.

Properties

  • dynamicFee: false ✓ — No lpFeeOverride and no updateDynamicLPFee() call anywhere. The "dynamic cut" is an internal vault accounting mechanism, not an LP fee override.
  • upgradeable: false ✓ — No proxy pattern, no delegatecall, no mutable implementation storage, no SELFDESTRUCT.
  • requiresCustomSwapData: false ✓ — The bytes calldata hookData parameter is unnamed and unused in both beforeSwap and afterSwap. Swaps work without custom data.
  • vanillaSwap: false ✓ — Both beforeSwapReturnsDelta and afterSwapReturnsDelta are true; the hook actively diverts WETH from the swap flow on buys and sells.
  • swapAccess: "none" ✓ — beforeSwap only reverts if the pool isn't registered (launchTime == 0); there is no caller allowlist, time gate, or governance flag controlling who can swap.

Metadata

  • chainId: 8453 ✓ — Matches chains.json entry for "base".
  • verifiedSource: true ✓ — Confirmed by source_meta.json ("verified": true).
  • name: "FloorPad Floor Hook" ✓ — Contract is named FloorHook; the NatSpec body explicitly references "FloorPad coins" throughout (@title FloorHook — SINGLETON … serving ALL FloorPad coins). Project-qualified label is substantiated.
  • description ✓ — Accurately describes the singleton architecture (per-pool state via mapping(bytes32 poolId => PoolState)), buy-side dynamic cut into vault, sell-side fee skim via afterSwapReturnsDelta, buy-only floor ratchet, and redeem() function. No audit claims, safety guarantees, or marketing language.

@marktoda marktoda left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bot review verified. FloorPad Floor Hook (FloorHook singleton) on base (0x70e1...40cc). Bitmask 0x00cc → beforeSwap, afterSwap, beforeSwapReturnsDelta, afterSwapReturnsDelta. Description length 383/500 prechecked. LGTM.

@marktoda marktoda merged commit 4b4ad9f into main Jun 11, 2026
7 checks passed
@marktoda marktoda deleted the hooks/base/0x70e163cf92b4565a0eeba7d12d2cfcebd51c40cc branch June 11, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hook: FloorPad Floor Hook (Base)

1 participant