BTB
/

HyperSwap

Dexswebsite
The first native AMM DEX on HyperEVM (chainId 999): Uniswap-V2-style constant-product pools (Camelot-style router with a referrer argument) and Uniswap-V3-style concentrated liquidity. An agent can quote and swap (V2 Router, SwapRouter02, QuoterV2), add/remove V2 liquidity, manage V3 position NFTs, and zap single-asset liquidity.

What you can do

quote (V2)Expected output of a V2 swapeth_call V2Router.getAmountsOut(amountIn, [tokenIn, ..., tokenOut]); last element is the output.
quote (V3)Expected output of a V3 swapeth_call QuoterV2.quoteExactInputSingle((tokenIn, tokenOut, amountIn, fee, 0)); try fee tiers 100/500/3000/10000 (check V3Factory.getPool != 0).
swap (V2)Swap through a V2 poolERC-20 approve(V2Router, amountIn); V2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn, amountOutMin, path, to, 0x0000000000000000000000000000000000000000, deadline). For native HYPE use the ...ETH... variants with WHYPE at the path end/start.
swap (V3)Swap through a V3 poolapprove(SwapRouter02, amountIn); SwapRouter02.multicall(deadline, [exactInputSingle((tokenIn, tokenOut, fee, recipient, amountIn, amountOutMinimum, 0))]). To receive native HYPE set recipient = router and append unwrapWETH9(amountOutMinimum, user).
add / remove liquidity (V2)Classic LPapprove both tokens to V2Router, addLiquidity(...) or addLiquidityETH(...); to exit approve the pair LP token to V2Router and removeLiquidity(...).
add / remove liquidity (V3)Concentrated liquidity positionapprove tokens to NonfungiblePositionManager; mint((token0, token1, fee, tickLower, tickUpper, a0, a1, a0Min, a1Min, recipient, deadline)). Exit: multicall([decreaseLiquidity((tokenId, liquidity, min0, min1, deadline)), collect((tokenId, recipient, 2^128-1, 2^128-1))]).
single-asset zapLP with one tokenapprove tokenA to Zap; Zap.provideLiquidityV2((tokenA, tokenB, amountA, slippageBps)) or provideLiquidityV3((tokenA, tokenB, amountA, fee, slippageBps)) (V3 = full range).
The V2 router is NOT the stock Uniswap V2 router: only the ...SupportingFeeOnTransferTokens swap functions exist and they take an extra referrer address; there is no getAmountsIn or exact-output V2 swap. Calls built for Uniswap V2 router ABIs will revert.
V2 pairs use per-token fee fields (token0FeePercent/token1FeePercent; read 300 = 0.3% on WHYPE/SWAP on 2026-11-25, Camelot-style denominator 100000) that the factory owner can configure; fees can differ by pair.
SwapRouter02 exactInput/exactOutput structs have no deadline; always wrap them in multicall(deadline, ...) and set amountOutMinimum, or the swap can be sandwiched.
QuoterV2 functions are not view: call them only via eth_call, never as a transaction.

Contracts

Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).
HyperSwap V2 Routerrouter on hyperevm0xb4a9C4e6Ea8E2191d2FA5B380452a634Fb21240A
read getAmountsOut(uint256,address[])
Quote a V2 swap: amounts out along path for an exact amountIn (base units). Returns uint256[] with one entry per path element; last = expected output before slippage.
write swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256,uint256,address[],address,address,uint256)
Swap exact ERC-20 for ERC-20. Args: amountIn, amountOutMin, path, to, referrer (zero address if none), deadline (unix seconds). Approve the router for amountIn first. No return value: read the balance change. This router has NO plain swapExactTokensForTokens / swapTokensForExactTokens / getAmountsIn (Camelot-style router with a referrer argument).
write swapExactETHForTokensSupportingFeeOnTransferTokens(uint256,address[],address,address,uint256)
Swap exact native HYPE (msg.value) for tokens. Args: amountOutMin, path (must start with WETH() = WHYPE), to, referrer, deadline.
write swapExactTokensForETHSupportingFeeOnTransferTokens(uint256,uint256,address[],address,address,uint256)
Swap exact tokens for native HYPE. Args: amountIn, amountOutMin, path (must end with WHYPE), to, referrer, deadline.
write addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256)
Add liquidity to a token/token V2 pair (creates the pair if missing). Args: tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline. Returns (amountA, amountB, liquidity LP minted). Approve both tokens first.
write addLiquidityETH(address,uint256,uint256,uint256,address,uint256)
Add liquidity to a token/HYPE pair; send HYPE as msg.value. Args: token, amountTokenDesired, amountTokenMin, amountETHMin, to, deadline. Returns (amountToken, amountETH, liquidity).
write removeLiquidity(address,address,uint256,uint256,uint256,address,uint256)
Burn LP tokens for both tokens. Args: tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline. Approve the pair (LP token) to the router first. Returns (amountA, amountB).
write removeLiquidityETH(address,uint256,uint256,uint256,address,uint256)
Burn LP of a token/WHYPE pair and receive token + native HYPE. Args: token, liquidity, amountTokenMin, amountETHMin, to, deadline.
write removeLiquidityWithPermit(address,address,uint256,uint256,uint256,address,uint256,bool,uint8,bytes32,bytes32)
removeLiquidity using an EIP-2612 permit signature on the LP token instead of a separate approve. Extra args: approveMax, v, r, s.
read getPair(address,address)
V2 pair address for two tokens (zero address if none).
read quote(uint256,uint256,uint256)
Pure helper: amountB = amountA * reserveB / reserveA (no fee). Use for proportional liquidity amounts, not swap quotes.
read WETH()
Wrapped native token used by the router (WHYPE 0x5555555555555555555555555555555555555555).
HyperSwap V2 Factoryfactory on hyperevm0x724412C00059bf7d6ee7d4a1d0D5cd4de3ea1C48
read getPair(address,address)
Pair (LP token) address for a token pair; zero address if none.
read allPairsLength()
Number of V2 pairs.
read allPairs(uint256)
Pair address by index.
write createPair(address,address)
Deploy a new V2 pair (permissionless). Returns the pair address.
read feeInfo()
Returns (ownerFeeShare, feeTo): protocol share of swap fees and its recipient.
read INIT_CODE_PAIR_HASH()
Pair init code hash (docs: 0xc83d9df19c8c8a0a1229bd3122cbb86fd8ff56f79cc6781c15999d39425466e9) for computing pair addresses offline.
HyperSwap V3 Factoryfactory on hyperevm0xB1c0fa0B789320044A6F623cFe5eBda9562602E3
read getPool(address,address,uint24)
V3 pool for (tokenA, tokenB, fee). Fee in hundredths of a bip; enabled tiers on-chain: 100 (0.01%, tick spacing 1), 500 (0.05%, 10), 3000 (0.3%, 60), 10000 (1%, 200). Zero address if none.
read feeAmountTickSpacing(uint24)
Tick spacing for a fee tier; 0 means the tier is not enabled.
write createPool(address,address,uint24)
Deploy a new V3 pool for an enabled fee tier (must then be initialized with a price, e.g. via the position manager).
HyperSwap SwapRouter02 (V3 + V2)router on hyperevm0x6D99e7f6747AF2cDbB5164b6DD50e40D4fDe1e77
write exactInputSingle((address,address,uint24,address,uint256,uint256,uint160))
Swap an exact amount through one V3 pool. Params tuple: (tokenIn, tokenOut, fee, recipient, amountIn, amountOutMinimum, sqrtPriceLimitX96=0). No deadline inside the struct: wrap in multicall(uint256 deadline, bytes[]) to enforce one. Returns amountOut. Approve tokenIn to this router; for native HYPE in, send msg.value with tokenIn = WHYPE.
write exactInput((bytes,address,uint256,uint256))
Multi-hop V3 exact-input swap. Params: (path = abi.encodePacked(token0, fee, token1, fee, token2...), recipient, amountIn, amountOutMinimum). Returns amountOut.
write exactOutputSingle((address,address,uint24,address,uint256,uint256,uint160))
Swap for an exact output through one V3 pool. Params: (tokenIn, tokenOut, fee, recipient, amountOut, amountInMaximum, sqrtPriceLimitX96). Returns amountIn. Call refundETH in the same multicall if paying with HYPE.
write exactOutput((bytes,address,uint256,uint256))
Multi-hop exact-output swap; path is encoded in REVERSE (tokenOut first). Params: (path, recipient, amountOut, amountInMaximum).
write swapExactTokensForTokens(uint256,uint256,address[],address)
V2-pool swap through this router (uses the V2 factory). Args: amountIn, amountOutMin, path, to. Returns amountOut.
write multicall(uint256,bytes[])
Batch several router calls with a deadline (unix seconds); reverts if expired. Typical: [exactInputSingle(recipient=router), unwrapWETH9(min, user)] to receive native HYPE.
write unwrapWETH9(uint256,address)
Unwrap the router's WHYPE balance and send native HYPE to recipient (use inside multicall after a swap with recipient = router address).
write refundETH()
Return leftover native HYPE held by the router to msg.sender (after exact-output swaps paid in HYPE).
write sweepToken(address,uint256,address)
Send the router's balance of a token to recipient (min amount check).
read referralFee()
Referral fee parameter of this router (read 1000 on 2026-11-25; units not documented).
HyperSwap QuoterV2other on hyperevm0x03A918028f22D9E1473B7959C927AD7425A45C7C
read quoteExactInputSingle((address,address,uint256,uint24,uint160))
Quote a single-pool V3 swap. Params: (tokenIn, tokenOut, amountIn, fee, sqrtPriceLimitX96=0). Returns (amountOut, sqrtPriceX96After, initializedTicksCrossed, gasEstimate). Not a view function: call with eth_call only.
read quoteExactInput(bytes,uint256)
Quote a multi-hop V3 exact-input swap. Args: packed path, amountIn. Returns (amountOut, sqrtPriceX96AfterList, initializedTicksCrossedList, gasEstimate). eth_call only.
read quoteExactOutputSingle((address,address,uint256,uint24,uint160))
Quote input needed for an exact output. Params: (tokenIn, tokenOut, amountOut, fee, sqrtPriceLimitX96). Returns (amountIn, ...). eth_call only.
read quoteExactOutput(bytes,uint256)
Multi-hop exact-output quote (path reversed). eth_call only.
HyperSwap NonfungiblePositionManager (V3)other on hyperevm0x6eDA206207c09e5428F281761DdC0D300851fBC8
write mint((address,address,uint24,int24,int24,uint256,uint256,uint256,uint256,address,uint256))
Open a V3 position NFT. Params: (token0, token1, fee, tickLower, tickUpper, amount0Desired, amount1Desired, amount0Min, amount1Min, recipient, deadline). token0 < token1 by address; ticks multiples of tick spacing. Approve both tokens first. Returns (tokenId, liquidity, amount0, amount1).
write increaseLiquidity((uint256,uint256,uint256,uint256,uint256,uint256))
Add to a position. Params: (tokenId, amount0Desired, amount1Desired, amount0Min, amount1Min, deadline). Returns (liquidity, amount0, amount1).
write decreaseLiquidity((uint256,uint128,uint256,uint256,uint256))
Remove liquidity. Params: (tokenId, liquidity, amount0Min, amount1Min, deadline). Tokens become owed; call collect to receive them.
write collect((uint256,address,uint128,uint128))
Withdraw owed tokens and fees. Params: (tokenId, recipient, amount0Max, amount1Max); use 2^128-1 for all. Returns (amount0, amount1).
read positions(uint256)
Position data: nonce, operator, token0, token1, fee, tickLower, tickUpper, liquidity, feeGrowthInside0/1LastX128, tokensOwed0, tokensOwed1.
write burn(uint256)
Burn an empty position NFT (zero liquidity, nothing owed).
write createAndInitializePoolIfNecessary(address,address,uint24,uint160)
Create and initialize a pool at sqrtPriceX96 if it does not exist. Returns pool address.
write multicall(bytes[])
Batch calls, e.g. decreaseLiquidity + collect, or mint + refundETH.
read balanceOf(address)
Number of position NFTs owned.
read tokenOfOwnerByIndex(address,uint256)
Enumerate an owner's position tokenIds.
HyperSwap Single Asset Zapother on hyperevm0x093dE46C90bEA4A730b1914748cC43d909b53661
write provideLiquidityV2((address,address,uint256,uint256))
Add V2 liquidity with one token. Params: (tokenA = token you provide, tokenB, amountA, slippage in bps, 100 = 1%). The contract swaps part of tokenA and adds liquidity. Returns (liquidity, amount0Used, amount1Used). Approve tokenA to the zap first. Pool must exist with enough liquidity.
write provideLiquidityV3((address,address,uint256,uint24,uint256))
Add FULL-RANGE V3 liquidity with one token. Params: (tokenA, tokenB, amountA, fee tier, slippage bps). Returns (tokenId, liquidity, amount0Used, amount1Used).
HyperSwap Universal Routerrouter on hyperevm0xefAbEB7A19bB848b359e5dd5a63b1a634AAfD229
write execute(bytes,bytes[],uint256)
Run encoded commands (V2/V3 swaps, wrap/unwrap, Permit2 transfers) with a deadline. Inputs follow Uniswap UniversalRouter command encoding; tokens are pulled via Permit2. Prefer SwapRouter02 for simple swaps.
write execute(bytes,bytes[])
Same as above without a deadline (not recommended).
Permit2other on hyperevm0x000000000022D473030F116dDEE9F6B43aC78BA3
write approve(address,address,uint160,uint48)
Allow a spender (e.g. the Universal Router) to pull token via Permit2: (token, spender, amount, expiration). Requires an ERC-20 approve of the token to Permit2 first.
read allowance(address,address,address)
(amount, expiration, nonce) for (owner, token, spender).
WHYPE (wrapped HYPE)token on hyperevm0x5555555555555555555555555555555555555555
write deposit()
Wrap native HYPE (msg.value) into WHYPE 1:1.
write withdraw(uint256)
Unwrap WHYPE to native HYPE.
write approve(address,uint256)
Approve a router or position manager.
read balanceOf(address)
WHYPE balance (18 decimals).
SWAP tokentoken on hyperevm0x03832767BDf9A8EF007449942125Ad605aCfADb8
read balanceOf(address)
SWAP balance.
write approve(address,uint256)
Approve a spender.
write transfer(address,uint256)
Transfer SWAP.
xSWAP (escrowed SWAP)token on hyperevm0xF535D7406BaF7322171142BB165643821cAb01Fe
read balanceOf(address)
xSWAP balance. xSWAP is the liquidity-mining reward token; converting to SWAP vests over a user-chosen period (6 months full; early exit within 15 days at 50% penalty per docs). Use the app for conversion.