How Does SwapX Work?

DEX|Risk B|7 mechanisms|6 interactions

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

Novel

Dynamic 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

Algebra CLMM concentrated liquidityJIT liquidity attacksHigh

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.

ICHI auto-rebalancingExploited price rangesHigh

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.

Dynamic feesArtificial volatility manipulationMedium

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.

veSWPX emission votingSelf-interested vote allocationMedium

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.

Bribes marketUnsustainable liquidity costsMedium

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

  1. 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
  2. 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
  3. 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

Moderate

Trigger: 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. 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. 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. 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. 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

Mechanism Novelty3/15
Interaction Severity6/20
Oracle Surface0/10
Documentation Gaps3/10
Track Record4/15
Scale Exposure0/10
Regulatory Risk1/10
Vitality Risk8/10
B

Overall: B (25/100)

Lower score = safer

More on SwapX

Related DEX Explainers