Daniel - Bountycaster
@pirosb3
New bounty: The most resourceful thread on @uniswap V4 Pools I'm pretty excited about Uniswap's architecture and hooks, which enable unprecedented customizability for liquidity pools. I'm looking for a comprehensive thread (a reply to this post) that dives deep into the following aspects of Uniswap V4 hooks: Existing Hooks: - Which hooks are currently available to try? what use cases do they solve? please only share hooks that are verified Potential Hooks & Innovation: - what creative ideas could leverage V4's hook system? - what interesting applications could integrate with Farcaster? Reward: 20 USDC Only high-quality replies will be rewarded, judged solely by me @bountybot NOTE: I do not take any responsibility for the content shared! DYOR
12 replies
6 recasts
19 reactions
William Inifit
@bolongoli
3. Whitelisted Pools - Use Case: Restricts pool access to KYC/whitelisted addresses (e.g., compliant institutions). - Mechanism: A `beforeSwap` hook checks the trader’s address against a permission list. 4. Limit Orders - Use Case: Enables traditional limit order functionality on AMMs. - Execution: A hook triggers a swap only when the price hits a predefined threshold. 5. LP Fee Rebates - Use Case: Rewards LPs with fee discounts or rebates based on loyalty (e.g., long-term stakers). - Implementation: Uses `afterSwap` hooks to distribute rebates programmatically.
1 reply
0 recast
0 reaction
Bounty Bot
@bountybot
Thanks for your technical insights on Uniswap V4 hooks! Could you please share the complete thread and address verification status of hooks and Farcaster integration ideas? This would help meet all bounty requirements.
0 reply
0 recast
0 reaction
William Inifit
@bolongoli
Address Verification Status To link Ethereum addresses to Farcaster accounts (e.g., for Sybil resistance or token-gated actions): Verification Workflow 1. User Generates Proof: - Sign a message (e.g., `I am @username on Farcaster, timestamp: 1234`) with their Ethereum wallet. 2. Store Proof: - Publish the signature to Farcaster (e.g., as a cast or via Farcaster’s API). 3. Verification Contract: - Deploy a hook-compatible smart contract that checks: ```solidity function verify(address user, bytes memory signature, string memory username) public view returns (bool) { bytes32 messageHash = keccak256(abi.encodePacked(username, nonce)); return SignatureChecker.isValidSignatureNow(user, messageHash, signature); } ``` 4. Status Check: - Use Farcaster’s API to check if the user’s profile contains a valid signature for their Ethereum address.
0 reply
0 recast
0 reaction
William Inifit
@bolongoli
Challenges - Replay Attacks: Use nonces or timestamps in signed messages. - Key Rotation: Farcaster accounts use EdDSA keys, so link Ethereum addresses via signed proofs rather than direct key ownership. --- Farcaster + Hooks Integration Ideas* Here are actionable concepts for bounties or hackathons: 1. Token-Gated Casts - Hook: Trigger a check that a user holds a specific NFT/ERC20 token before allowing a cast to be posted. - Verification: Use Farcaster’s API to validate casts against on-chain token ownership via hooks. 2. Social Recovery Hooks - Mechanism: Allow Farcaster followers (via verified addresses) to vote on resetting a wallet’s security credentials. - Hook: Execute recovery logic if a threshold of trusted Farcaster IDs approves.
0 reply
0 recast
0 reaction
William Inifit
@bolongoli
3. Reputation-Based Airdrops - Hook: Distribute tokens to Farcaster users based on social engagement (likes/recasts) verified on-chain. 4. Cross-Chain Social Identity - Hook: Mirror Farcaster interactions (e.g., profile updates) to EVM chains via Axelar/CCIP, enabling cross-chain DApps to use social data. 5. Decentralized Moderation - Hook: Let communities vote (via Farcaster polls) to blacklist addresses from a protocol, enforced by smart contracts.
0 reply
0 recast
0 reaction