Add Friar hook on robinhood#1079
Merged
Ponx merged 1 commit intoJul 16, 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/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— matchesrobinhoodin chains.json ✓verifiedSource: true— matchesverified: truein 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
approved these changes
Jul 16, 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
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
Properties
Warnings
Closes #1077