Skip to content

Allowlist Loyalty & Volatility Dynamic Fee Hook on Base#1405

Open
emailrajat wants to merge 1 commit into
Uniswap:mainfrom
emailrajat:allowlist-loyalty-volatility-hook-base
Open

Allowlist Loyalty & Volatility Dynamic Fee Hook on Base#1405
emailrajat wants to merge 1 commit into
Uniswap:mainfrom
emailrajat:allowlist-loyalty-volatility-hook-base

Conversation

@emailrajat

Copy link
Copy Markdown

Summary

Adds the Loyalty & Volatility Dynamic Fee Hook to the hooks address allowlist on Base so the routing API can route swaps through pools using this hook.

What the hook does

  • Dynamic fee that scales with realized market volatility.
  • Loyalty discount for traders holding a configured ERC-20/ERC-721 loyalty asset.
  • 0.01% developer fee taken from swap output in afterSwap (reported via afterSwapReturnDelta so PoolManager accounting stays balanced).

Permissions

beforeInitialize, afterInitialize, beforeSwap, afterSwap, afterSwapReturnDelta.

Changes

  • lib/util/hooksAddressesAllowlist.ts: declare LOYALTY_VOLATILITY_DYNAMIC_FEE_HOOK_ON_BASE and add it to HOOKS_ADDRESSES_ALLOWLIST[ChainId.BASE].

Notes

Hook is deployed and verified on Base with a live pool. Happy to provide additional details, an audit, or pool/liquidity references as needed for review.

Made with Cursor

Add 0xAA226363fb5B8718D125357DDC6539A82489E0c4 (Base) to the hooks
address allowlist so the routing API can route swaps through it.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant