The DEX where rug pulls are blocked on-chain. Sell limits + LP vesting enforced at the protocol level. Built on Uniswap V4 Hooks · Base Sepolia live.
4 Followers
We built a V4 Hook that makes rug pulls structurally unprofitable. When an issuer creates a pool, the Hook automatically locks their LP with linear vesting (7d lockup + 83d vesting). They can't pull liquidity early. 1% of each buy swap builds an insurance pool. If a rug pull is detected, issuer LP is seized and distributed to holders as compensation. Any ERC-20 can be listed. No KYC, no template restrictions. Protection is enforced at the protocol level — works through any frontend or aggregator. 7 contracts, 329+ tests, 16 E2E scenarios passing. Live on Base Sepolia. bastionswap.xyz
BastionSwap — escrow-native DEX built as a Uniswap V4 Hook How it works at the Hook level: beforeAddLiquidity: Registers issuer, enforces min 1 ETH initial liquidity, validates base token whitelist (ETH/WETH/USDC). All issuer LP additions are tracked under escrow. beforeRemoveLiquidity: Issuer LP removal is restricted by lock-up + linear vesting. General LPs pass through freely — no restrictions. beforeSwap/afterSwap: Snapshots issuer balance before swap, compares after. Detects dumps routed through any router or aggregator. Collects 1% insurance fee on buy swaps. On trigger: EscrowVault calls forceRemoveIssuerLP() → seized tokens + ETH are sent to InsurancePool → holders claim proportional compensation via Merkle proof. Key design choice: escrow doesn't custody assets. It only controls LP removal permissions. The Hook enforces everything at the PoolManager level — protection works regardless of which frontend or aggregator routes the swap. Live on Base Sepolia testnet: bastionswap.xyz
Building BastionSwap — an escrow-native DEX on Base using Uniswap V4 Hooks. If an issuer creates a pool, their LP is automatically locked with vesting. If they rug, LP is seized and holders get compensated from insurance pool. Live on testnet: bastionswap.xyz