Skip to content

Conversation

@thedocboom
Copy link

@thedocboom thedocboom commented Oct 31, 2025

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.

  • Base Fee: 10% when market is calm - capped. Can be reduced lower only, depending on market conditions.
  • Spike Triggers: Large sells (2-50 ETH) trigger fee spikes up to 90%

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

  • Tier 0: ≥2 ETH → 12.5% fee, 1hr decay
  • Tier 1: ≥5 ETH → 15% fee, 4hr decay
  • Tier 2: ≥10 ETH → 20% fee, 5hr decay
  • Tier 3: ≥15 ETH → 25% fee, 6hr decay
  • Tier 4: ≥20 ETH → 40% fee, 7hr decay
  • Tier 5: ≥25 ETH → 50% fee, 8hr decay
  • Tier 6: ≥30 ETH → 60% fee, 9hr decay
  • Tier 7: ≥35 ETH → 70% fee, 10hr decay
  • Tier 8: ≥40 ETH → 80% fee, 11hr decay
  • Tier 9: ≥50 ETH → 90% fee, 12hr decay

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

@thedocboom
Copy link
Author

Hey guys we would appreciate it if you can look at this urgently.

The success of our project depends on this.

Our community is waiting.

Please deal with it ASAP.

All hook addresses must be lowercase as per code requirements in hooksAddressesAllowlist.ts
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