How Does SwapX Work?
A decentralized exchange on Sonic using concentrated liquidity pools and a ve(3,3) reward system where token holders vote on which pools get emissions. It holds $43M in deposits. Its C+ grade reflects the same death-spiral risk that killed every previous ve(3,3) implementation, plus MEV extraction that hurts regular liquidity providers.
TVL
$104,000
Sector
DEX
Risk Grade
B
Value Grade
C
Core Mechanisms
4.1.1
Algebra V4 CLMM: concentrated liquidity market maker with custom price ranges and active management requirements
Algebra Finance V4 provides concentrated liquidity similar to Uniswap V3 but with additional features like dynamic fees and built-in farming. LPs can concentrate liquidity within specific price ranges for higher capital efficiency, but face higher impermanent loss and MEV extraction risk.
4.1.4
ICHI Automated Liquidity Manager: vault-based system that auto-rebalances concentrated liquidity positions
ICHI vaults accept single-sided deposits and automatically manage positions within Algebra CLMM pools. Users receive vault ERC20 tokens stakeable in gauges for $SWPX emissions. Reduces LP complexity but introduces smart contract risk and potential for auto-rebalancing into exploited ranges.
5.1.2
ve(3,3) tokenomics: vote-escrowed $SWPX tokens govern weekly emission allocations with rebase rewards for active voters
Vote-escrowed $SWPX (veSWPX) holders direct weekly emissions to gauges (liquidity pools). Inspired by Solidly's (3,3) model. Emissions split: 62-92% to gauges (decreasing over time), 30% to rebase rewards for voters (increasing over time), remainder to other categories. Creates bribe markets.
7.3.2
Gauge bribes market: protocols pay veSWPX holders to direct emissions toward their pools
Third-party protocols can bribe veSWPX voters to direct emissions toward their liquidity pools. Standard Curve/Solidly-style bribe market. Creates mercenary capital dynamics where voters maximize bribe extraction rather than ecosystem health.
4.1.3
Multi-AMM support: CPMM (constant product) and CFMM (constant function) pools alongside Algebra CLMM
SwapX supports multiple AMM models beyond concentrated liquidity. Allows flexibility for different asset types (stablecoins in CFMM, volatile pairs in CLMM). Standard DEX aggregator pattern.
7.1.1
NFT position representation: liquidity positions minted as ERC-721 NFTs for concentrated liquidity pools
Algebra CLMM positions represented as NFTs (standard Uniswap V3 pattern). Enables LP position trading, lending, and composability but adds complexity for non-technical users.
6.1.1
NovelDynamic fee tiers: fee rates adjust based on market volatility via Algebra's plugin architecture
Algebra V4's dynamic fees automatically adjust based on volatility metrics, optimizing LP revenue during high volatility periods. Novel mechanism in production DEXs that could be exploited by triggering artificial volatility.
How the Pieces Interact
Sophisticated actors can monitor mempool for large pending swaps, provide just-in-time liquidity in the exact range needed to capture fees, then immediately withdraw after the swap. This extracts value from genuine LPs without taking on impermanent loss risk, creating adverse selection where sophisticated actors out-compete retail LPs.
If attackers identify a concentrated liquidity range being exploited (via JIT or sandwich attacks), ICHI's automated rebalancing may repeatedly move liquidity back into the same exploited range, amplifying losses. The automation prevents learning from exploitation patterns that manual LPs would avoid.
Attackers could intentionally create volatility (large swaps, wash trading) to trigger higher dynamic fees, then provide JIT liquidity to capture the elevated fees before reverting volatility. This exploits the fee adjustment mechanism itself as an attack vector.
Large veSWPX holders can direct emissions to pools where they're LPs, extracting value from the protocol at the expense of smaller holders. Creates plutocracy where whales use governance to subsidize their own positions via inflation.
Protocols competing for SwapX liquidity via bribes can create unsustainable arms races where bribe costs exceed the value of liquidity. Small protocols get priced out, creating centralization in which assets have deep liquidity. When bribes inevitably collapse, liquidity evaporates.
What Could Go Wrong
- Algebra V4 concentrated liquidity pools create MEV extraction opportunities (JIT liquidity, sandwich attacks) that harm retail LPs; ICHI auto-rebalancing may amplify losses by repositioning into exploited ranges
- ve(3,3) tokenomics inherited from failed Solidly model creates misaligned incentives where veSWPX holders extract value via emission manipulation and bribes rather than providing genuine liquidity
- Competition with Shadow Exchange and other Sonic DEXs creates fragile liquidity position; rapid TVL migration could trigger death spiral where low volume → low fees → LP exits → further volume loss
Concentrated Liquidity Manipulation Death Spiral
ModerateTrigger: A sophisticated attacker exploits Algebra V4's concentrated liquidity mechanism to manipulate price oracle feeds or extract value from liquidity providers, triggering a bank run on SwapX pools
- 1.Attacker identifies a low-liquidity concentrated range in a major SwapX pool and executes a sandwich attack or just-in-time (JIT) liquidity exploit to extract LP fees without taking impermanent loss risk — Legitimate LPs observe outsized losses from MEV extraction; ICHI vault auto-rebalancing exacerbates losses by repeatedly repositioning into exploited ranges
- 2.LPs withdraw from SwapX pools en masse, concentrating remaining liquidity into narrow ranges; slippage skyrockets on swaps — Sonic DeFi protocols using SwapX for swaps (lending protocols liquidating collateral, yield aggregators rebalancing) face extreme execution costs; some become insolvent due to slippage losses
- 3.$SWPX governance token crashes as future fee revenue projections collapse; veSWPX holders lose voting rewards and rebase incentives — SwapX governance becomes captured by whales or apathetic as small holders dump; protocol parameter changes (fee tiers, emission schedules) become misaligned with ecosystem health
- 4.Major protocols migrate liquidity to competing Sonic DEXs (Shadow Exchange); SwapX loses status as primary liquidity layer for Sonic — Network effects reverse as volume follows liquidity; SwapX enters death spiral with low volume → low fees → low LP returns → further liquidity exit
Risk Profile at a Glance
Overall: B (25/100)
Lower score = safer