Skip to content

Add Friar hook on robinhood#1079

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

Add Friar hook on robinhood#1079
Ponx merged 1 commit into
mainfrom
hooks/robinhood/0xfeda24f0d3805170e7566ce617cfba01ce05d080

Conversation

@hooklist-generator

Copy link
Copy Markdown
Contributor

Summary

A dynamic LP fee hook that tracks per-pool swap volatility using a volatility accumulator with configurable filter and decay periods. On each swap, the accumulator updates based on tick movement and computes a fee that surges with volatility and decays afterward, hard-capped at a maximum, returned as a beforeSwap LP fee override with zero delta.

Flags

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

Properties

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

Warnings

  • Submitter did not provide a name. Using AI-derived "Friar".
  • Submitter-proposed description rejected: contains an external URL and deployment-specific parameter claims (base fee at tickSpacing 100) not verifiable from the source code. Using AI-generated description.

Closes #1077

@vercel

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

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

Address Flags

The address ends in 0xd080. Masking to 14 bits: 0xd080 & 0x3FFF = 0x1080 = 0001 0000 1000 0000.

  • Bit 12 → afterInitialize: true
  • Bit 7 → beforeSwap: true
  • All other bits = 0 ✓

Flags in the hook file match the address bitmask exactly.

Source Code Verification

Contract name Friar confirmed. getHookPermissions() declares afterInitialize: true and beforeSwap: true only — consistent with the address and hook file.

Properties

Property Claimed Verified
dynamicFee true beforeSwap returns fee | LPFeeLibrary.OVERRIDE_FEE_FLAG; afterInitialize enforces isDynamicFee()
upgradeable false ✓ All config params are immutable; no proxy, no delegatecall, no admin functions
requiresCustomSwapData false beforeSwap accepts but never reads bytes calldata hookData
vanillaSwap false ✓ Correct — dynamicFee is true, so must be false
swapAccess "none" beforeSwap has only onlyPoolManager (pool manager authentication), no swap-caller access control

Metadata

  • name: "Friar" — matches contract name and NatSpec @title Friar
  • chainId: 4663 — matches robinhood in chains.json ✓
  • verifiedSource: true — matches verified: true in source_meta.json ✓
  • description — accurately describes the volatility accumulator mechanism (filter/decay windows, tick-based accumulator, fee override). No marketing or audit language ✓

All fields are correct.

@Ponx
Ponx merged commit 8ad2e1f 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: Friar Dynamic Fee Hook (standard)

1 participant