FolioHook on Robinhood Chain
Uniswap v4 Hook Contract 0x3364ff40248c88fb2eae4bc4295f8b643e2ae0cc on Robinhood Chain · Fee sharing · Verified contract
- Volume (24h)
- $0
- Value locked (TVL)
- $0.21
- All-time volume
- $170
- Pools using this hook
- 1
- Swaps (24h)
- 0 (0 traders)
- Total swaps
- 2
What it does
FolioHook charges a fixed, pre-set fee in ETH on swaps, with buy and sell rates set per pool by the factory and sent to a fee wallet, while liquidity providers are not charged by the hook.
How it works step by step
- Stores a per-pool fee configuration (recipient, buy bps, sell bps) that the factory registers once before the pool is initialized; the fee is capped at 2000 bps (20%) and can never be changed afterward.
- Restricts pool initialization on this hook to the factory and requires the pool to have been registered first.
- In beforeSwap, when ETH is the specified currency, skims a percentage of the specified amount as a fee and sends it to the pool's fee recipient via poolManager.take.
- In afterSwap, when ETH is the unspecified currency, takes the fee from the ETH leg of the swap delta and sends it to the fee recipient.
- Accumulates the total ETH fees taken per pool in the collected mapping and emits FeeTaken events.
- Swap behaviour
- Swaps where ETH (currency0) is the specified currency are charged in beforeSwap, and swaps where ETH is the unspecified currency are charged in afterSwap. Buys (ETH in, zeroForOne) use the buyBps rate and sells use sellBps, with the fee taken from the ETH amount and transferred to the fee recipient; swaps not involving the ETH leg in the relevant direction pay no hook fee.
- Liquidity behaviour
- No liquidity callbacks.
- Fee behaviour
- Each pool has a fixed buy fee and sell fee in basis points (max 2000 bps), set by the factory at registration and immutable afterward. The fee is taken in ETH (currency0) and sent directly to the pool's fee recipient rather than to LPs.
- Owner & admin controls
- No owner, no setters and no pause; only the immutable factory address can call register and open pools. Fee parameters cannot be changed after registration. No upgrade mechanism is visible.
Enabled Uniswap v4 callbacks
beforeInitialize, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta
beforeInitialize restricts pool creation to the factory and checks registration; beforeSwap takes the fee from the specified amount via return delta when ETH is the specified currency; afterSwap takes the fee from the unspecified ETH leg via return delta; beforeSwapReturnDelta and afterSwapReturnDelta enable those deltas.
Security & trust assessment
Risk level: low (verified source, high confidence).
Who controls it: The immutable factory controls which pools are registered and their fee parameters at launch; the hook has no owner key that can change them afterward, so ongoing centralization is limited.
Risk to user funds: The hook can take up to the configured buy or sell percentage of ETH from swaps and send it to the fee recipient; it does not hold user funds or block swaps, and it has no mechanism to pull funds beyond the fee.
Security findings
- [info] Hook takes fees via return deltas: beforeSwap and afterSwap return deltas let the hook take ETH from swaps and send it to the recipient, so every eligible swap pays the configured fee.
- [info] Fee recipient set per pool at launch: Each pool's recipient and rates are fixed by the factory on registration, so fee destinations cannot be redirected later by the hook itself.
- [info] Fee capped at 20%: MAX_FEE_BPS limits buyBps and sellBps to 2000, bounding how much a single swap can be charged.
- [low] Factory is a trust point: Only the factory can register fees and open pools; if the factory is compromised or misconfigured it could set a high fee for pools it creates, but within the 20% cap.
Contract details
- Verified source
- Yes (FolioHook)
- Compiler
- solc 0.8.28+commit.7893614a
- Bytecode size
- 3,837 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta
Pools using FolioHook
- ETH / LIQANTARA (0.00% fee) — 24h volume $0, TVL $0.21, 0 swaps today