Skip to content

Add LivoSwapHook (V2) hook on robinhood#1099

Merged
Ponx merged 1 commit into
mainfrom
hooks/robinhood/0xdb1902bc975992828616b0224d9c5ff907e9c0cc
Jul 16, 2026
Merged

Add LivoSwapHook (V2) hook on robinhood#1099
Ponx merged 1 commit into
mainfrom
hooks/robinhood/0xdb1902bc975992828616b0224d9c5ff907e9c0cc

Conversation

@hooklist-generator

Copy link
Copy Markdown
Contributor

Summary

Singleton fee hook for Livo-graduated ETH/token pools. Collects LP fees and post-graduation taxes on the ETH leg across all four swap directions, routing them to a treasury fee router and per-token receivers via ILivoToken.accrueFees(). Blocks swaps on non-graduated tokens. Fees are withheld via BeforeSwapDelta or AfterSwapDelta depending on which leg the ETH amount is known.

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 governance

Warnings

  • Submitter did not provide a description. Using AI-generated description.

Closes #1093

@vercel

vercel Bot commented Jul 16, 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 Jul 16, 2026 3:08pm

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/robinhood/0xdb1902bc975992828616b0224d9c5ff907e9c0cc.json

Address Flags

Decoded the lowest 14 bits of 0x...c0cc = 0xc0cc = 1100 0000 1100 1100:

Bit Flag Address bit JSON
7 beforeSwap 1 true
6 afterSwap 1 true
3 beforeSwapReturnsDelta 1 true
2 afterSwapReturnsDelta 1 true
all others 0 false

Matches getHookPermissions() exactly.

Source Code Verification

Contract: LivoSwapHook (NatSpec @title LivoSwapHook V2). Singleton, ownerless hook for Livo-graduated ETH/token pools.

dynamicFee: false_beforeSwap returns 0 as the uint24 fee override; no updateDynamicLPFee() call anywhere. ✓

upgradeable: falseFEE_ROUTER and TREASURY are immutable. No proxy pattern, no delegatecall, no SELFDESTRUCT. NatSpec explicitly describes it as ownerless. ✓

requiresCustomSwapData: falsehookData (bytes calldata) is never decoded in either _beforeSwap or _afterSwap. ✓

vanillaSwap: false — Both beforeSwapReturnsDelta and afterSwapReturnsDelta are true, and the hook materially withholds fees from the swap via toBeforeSwapDelta and afterSwap int128 returns. ✓

swapAccess: "governance"_beforeSwap calls ILivoToken(token).graduated() and reverts with NoSwapsBeforeGraduation() if false. This is a boolean flag set by the protocol admin via the graduation process — correctly classified as "governance". ✓

Metadata

  • verifiedSource: true — confirmed by source_meta.json ("verified": true). ✓
  • chainId: 4663 — matches chains.json for "robinhood". ✓
  • name: "LivoSwapHook (V2)" — consistent with contract name LivoSwapHook and NatSpec @title LivoSwapHook V2. No promotional, audit, or endorsement language. ✓
  • description — every claim is substantiated by the Solidity logic: singleton design, ETH-leg fee collection across all four swap directions (exact-input/output × buy/sell), fee routing via LivoLpFeeRouter.depositLpFees() and ILivoToken.accrueFees(), graduation gate (NoSwapsBeforeGraduation), and BeforeSwapDelta/AfterSwapDelta selection logic. ✓

All flags, properties, and metadata are correct.

@Ponx
Ponx merged commit 5b53ba8 into main Jul 16, 2026
7 checks passed
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: LivoSwapHook (V2) on Robinhood Chain

1 participant