Never forget - DeFi changed forever from a single reddit post. 🦄
I've also added an interactive mc quiz to test your knowledge!
https://t.co/ZkFyXIhyIO
Answer: Anyone can brick launch.
Root cause: Uniswap v4's PoolManager initialize function is permissionless, allowing an attacker to front-run launch() and directly initialize the pool themself. The launch call then reverts with PoolAlreadyInitialized().
Solution: check if the pool is already initialized first.
🧩 AMM puzzles #1
A Uniswap v4 token launcher that creates the pool and adds liquidity in one call.
Find the issue (if any) and answer using the poll below.
Answer revealed in 24 hours. 🫡
🧩 AMM puzzles #1
A Uniswap v4 token launcher that creates the pool and adds liquidity in one call.
Find the issue (if any) and answer using the poll below.
Answer revealed in 24 hours. 🫡
Yesterday, ~$112,200 was stolen from a CoreVault contract deployed on BNB Chain.
Root cause: Pool spot price read allowing price manipulation.
A classic attack, but worth walking through as this mistake is still made often. 1/7
Seeing the spot price being used should always raise a red flag. It can be tricky, since a contract reading the spot price doesn’t automatically mean price manipulation is possible. It’s always important to write a PoC for these issues first to confirm price manipulation can occur.
Solution: Use a TWAP or a trusted oracle like Chainlink/Pyth Network when fetching the price of an asset, including a staleness check.
@crypticdefense@Balancer Appreciate it, AMMs still have plenty of unsolved problems and researchers like you are a big reason they keep getting safer and better.