Add LivoSwapHook hook on ethereum#588
Merged
Ponx merged 1 commit intoMay 27, 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/ethereum/0x068241d20c59980abeaeded990d2441f05f5c0cc.json
Address Flags
Address ends in ...c0cc. Lower 14 bits: 0x00CC = 0000 0000 1100 1100.
| Bit | Flag | Address | 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 ✓ |
Confirmed by getHookPermissions() in source, which returns exactly the same set.
Properties
- dynamicFee: false ✓ —
_beforeSwapalways returns0as the fee override; noupdateDynamicLPFee()call anywhere. - upgradeable: false ✓ — No proxy pattern, delegatecall, mutable implementation storage, or SELFDESTRUCT.
- requiresCustomSwapData: false ✓ — Neither
_beforeSwapnor_afterSwapreadshookData; swaps function fully without it. - vanillaSwap: false ✓ — Both
beforeSwapReturnsDeltaandafterSwapReturnsDeltaare true; the hook takes ETH fees from swap deltas, modifying swap execution. - swapAccess: "governance" ✓ —
_beforeSwapreverts withNoSwapsBeforeGraduation()ifILivoToken(tokenAddress).graduated()returns false. This is a boolean flag (set by the launchpad graduation process) gating swap access, matching thegovernanceclassification.
Metadata
- verifiedSource: true ✓ —
source_meta.jsonconfirms"verified": true. - chainId: 1 ✓ — Matches
ethereuminchains.json. - name: "LivoSwapHook" ✓ — Matches
contractNameinsource_meta.jsonand NatSpec@title LivoSwapHookin source. - description ✓ — All claims substantiated by source: singleton architecture (NatSpec), 0.5% fee (
LP_FEE_BPS = 50), 50/50 creator/treasury split (_accruelogic), optional time-limited tax (_getTaxParamswithgraduationTimestamp + taxDurationSeconds), graduation gate (NoSwapsBeforeGraduationrevert). No marketing, audit, or endorsement language.
All checks pass.
Ponx
approved these changes
May 27, 2026
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 for tokens graduated via the Livo launchpad that collects a 0.5% LP fee (split 50/50 between creator and treasury) on all swaps, plus an optional time-limited buy/sell tax configurable per token. Swaps are blocked before token graduation.
Flags
Properties
Warnings
Closes #586