StablePair Hook Flaws Could Wipe Out Uniswap LP Returns
Uniswap's StablePair hook has been scrutinized for its potential flaws in calculating fees and inventory management. According to Altcoin Buzz, three hidden issues could impact liquidity provider (LP) returns.
The first problem lies in the fixed reference price used by StablePair, which does not automatically adjust when a stablecoin weakens. This means that if one stablecoin starts trading below its pegged value, the hook will still classify trades against the old reference rate, potentially leaving LPs exposed to losses.
The second issue relates to the fee design of StablePair, which charges fees based on the distance between the Automated Market Maker (AMM) price and the edge of its band. However, when a trader sells a weakening stablecoin for a stronger one, they receive zero LP fee, which does not offset their added exposure.
The third problem is related to block caching, which can lead to stale-price risk. If the live price crosses the fixed reference during a block, later trades may be classified in the wrong direction, potentially resulting in losses for LPs.