Add memestrategy-hook-eth #1249
Open
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.
MemeStrategyHook - Dynamic Fee System
Hook Address: 0x3bA779BAd405D9b68a7A7a86ff6916c806A200CC
Pool: 0x95caa20ff578db4ceec56162bedc21e31adc70ef717661e11d6d1d74e9b2f844
Core Mechanism:
The hook implements a 3-phase dynamic fee system for Uniswap V4 swaps:
Phase 1 (Launch): Fixed 50% fee on all swaps
Simple flat fee during initial trading period
Transitions to Phase 2 automatically after first strategy sale (or manually by owner)
Phase 2 (Dynamic): 10-90% variable fees with spike system - We are already here. No rollback.
Fee Spike Ranges & Conditions
Spikes are triggered only by the Strategy contract calling triggerFeeSpike(uint256 saleAmount)
Triggered when strategy executes a sell of accumulated tokens
The saleAmount parameter is the ETH value of the sale
Example 1: Strategy buys 1 ETH of meme coin > holds until 1.2 ETH value of meme coin purchased > Sells for 1.2 ETH > conducts a 1.2ETH buyback of $MEMS and No spike Trigger.
Example 2: Strategy buys 3 ETH of meme coin > holds until 5 ETH value of meme coin purchased > Sells for 5 ETH > conducts a 5ETH buyback of $MEMS with a Tier 1 spike - 15% sell Fee with a 4 hr decay.
10-Tier Spike System: Triggered by Buybacks of $MEMS
Linear Decay: Fees decay back to 10% over 1-12 hours (tier-dependent)
Asymmetric Fees: Buys pay only base + 10% of spike increase (protecting buyers)
Example: If sell fee = 90%, buy fee = ~18%
Fee Collection:
Hooks into beforeSwap (for buys: ETH→MEMS) and afterSwap (for sells: MEMS→ETH)
Takes fees directly from PoolManager using the take() function
Splits revenue: 80% to strategy (buybacks/burns), 20% to treasury
Deferred settlement pattern (accumulate during swaps, flush later)
Anti-Snipe Protection:
Blocks all swaps until tradingEnabled = true in strategy contract
Exempts strategy itself and whitelisted modules from fees
Key Feature: Creates sell pressure dampening depending on the size of buybacks and burn of $MEMS, while maintaining favourable buy conditions (low fees encourage buying during volatility). Fee's on such events decay linearly.
Third party Audit by ScaleBit: https://www.mems.wtf/meme-strategy-audit-report-2025-10-17.pdf