Skip to content

hook: OnlyHooks #665

@OnlyHooks

Description

@OnlyHooks

Chain

ethereum

Hook Address

0x903633D861aB705dC6A2eF91b478B9CaB00f4044

Hook Name

OnlyHooksHook

Description

A Uniswap v4 hook that powers the OnlyHooks creator economy. On every swap in its pool (via the
afterSwap / afterSwapReturnDelta permissions) it takes a small fee on the output token and routes it transparently
on-chain: 50% to the protocol treasury and 50% to the creator(s) the trading wallet is subscribed to, as recorded in
the SubscriptionRegistry. If the wallet isn't subscribed to anyone, the full creator share goes to the treasury; if
it's subscribed to several creators, the share is split evenly among them. The trader is identified from hookData when
present, otherwise from tx.origin, and the hook never reverts on empty/invalid hookData so ordinary swaps and bots
are unaffected. The hook also custodies subscription payments (depositFor for ETH, creditToken for USDC, both via the
registry), and lets creators and the treasury withdraw their accrued balances with claim / claimTreasury. All fee
attribution is reconstructable from on-chain events.

Deployer Address

0xC8e7571512A7D765008c264E89D71151bf89cdeB

Audit URL

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions