Add FloorPad Floor Hook hook on base#654
Merged
marktoda merged 1 commit intoJun 11, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
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
lpFeeOverrideand noupdateDynamicLPFee()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, noSELFDESTRUCT. - requiresCustomSwapData: false ✓ — The
bytes calldatahookData parameter is unnamed and unused in bothbeforeSwapandafterSwap. Swaps work without custom data. - vanillaSwap: false ✓ — Both
beforeSwapReturnsDeltaandafterSwapReturnsDeltaare true; the hook actively diverts WETH from the swap flow on buys and sells. - swapAccess: "none" ✓ —
beforeSwaponly 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.jsonentry 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 viaafterSwapReturnsDelta, buy-only floor ratchet, andredeem()function. No audit claims, safety guarantees, or marketing language.
marktoda
approved these changes
Jun 11, 2026
marktoda
left a comment
Contributor
There was a problem hiding this comment.
Bot review verified. FloorPad Floor Hook (FloorHook singleton) on base (0x70e1...40cc). Bitmask 0x00cc → beforeSwap, afterSwap, beforeSwapReturnsDelta, afterSwapReturnsDelta. Description length 383/500 prechecked. LGTM.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Properties
Warnings
Closes #653