BTB Finance for agents

Protocols / Dexs

HyperSwap

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.

On-chainEVM12 contractsWebsite · Docs

get_protocol({ "protocol": "hyperswap" })

Risks an agent should know

What an agent can do

quote (V2)Expected output of a V2 swap
eth_call V2Router.getAmountsOut(amountIn, [tokenIn, ..., tokenOut]); last element is the output.
quote (V3)Expected output of a V3 swap
eth_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 pool
ERC-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 pool
approve(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 LP
approve both tokens to V2Router, addLiquidity(...) or addLiquidityETH(...); to exit approve the pair LP token to V2Router and removeLiquidity(...).
add / remove liquidity (V3)Concentrated liquidity position
approve 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 token
approve tokenA to Zap; Zap.provideLiquidityV2((tokenA, tokenB, amountA, slippageBps)) or provideLiquidityV3((tokenA, tokenB, amountA, fee, slippageBps)) (V3 = full range).

Contracts

hyperevm · chain id 999

ContractAddressKey functionsTry
HyperSwap V2 Router
router
0xb4a9C4e6Ea8E2191d2FA5B380452a634Fb21240A
source
readgetAmountsOut(uint256,address[])
writeswapExactTokensForTokensSupportingFeeOnTransferTokens(uint256,uint256,address[],address,address,uint256)
writeswapExactETHForTokensSupportingFeeOnTransferTokens(uint256,address[],address,address,uint256)
writeswapExactTokensForETHSupportingFeeOnTransferTokens(uint256,uint256,address[],address,address,uint256)
writeaddLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256)
writeaddLiquidityETH(address,uint256,uint256,uint256,address,uint256)
writeremoveLiquidity(address,address,uint256,uint256,uint256,address,uint256)
writeremoveLiquidityETH(address,uint256,uint256,uint256,address,uint256)
+4 more via get_protocol
Full ABI
HyperSwap V2 Factory
factory
0x724412C00059bf7d6ee7d4a1d0D5cd4de3ea1C48
source
readgetPair(address,address)
readallPairsLength()
readallPairs(uint256)
writecreatePair(address,address)
readfeeInfo()
readINIT_CODE_PAIR_HASH()
Full ABI
HyperSwap V3 Factory
factory
0xB1c0fa0B789320044A6F623cFe5eBda9562602E3
source
readgetPool(address,address,uint24)
readfeeAmountTickSpacing(uint24)
writecreatePool(address,address,uint24)
Full ABI
HyperSwap SwapRouter02 (V3 + V2)
router
0x6D99e7f6747AF2cDbB5164b6DD50e40D4fDe1e77
source
writeexactInputSingle((address,address,uint24,address,uint256,uint256,uint160))
writeexactInput((bytes,address,uint256,uint256))
writeexactOutputSingle((address,address,uint24,address,uint256,uint256,uint160))
writeexactOutput((bytes,address,uint256,uint256))
writeswapExactTokensForTokens(uint256,uint256,address[],address)
writemulticall(uint256,bytes[])
writeunwrapWETH9(uint256,address)
writerefundETH()
+2 more via get_protocol
Full ABI
HyperSwap QuoterV2
other
0x03A918028f22D9E1473B7959C927AD7425A45C7C
source
readquoteExactInputSingle((address,address,uint256,uint24,uint160))
readquoteExactInput(bytes,uint256)
readquoteExactOutputSingle((address,address,uint256,uint24,uint160))
readquoteExactOutput(bytes,uint256)
Full ABI
HyperSwap NonfungiblePositionManager (V3)
other
0x6eDA206207c09e5428F281761DdC0D300851fBC8
source
writemint((address,address,uint24,int24,int24,uint256,uint256,uint256,uint256,address,uint256))
writeincreaseLiquidity((uint256,uint256,uint256,uint256,uint256,uint256))
writedecreaseLiquidity((uint256,uint128,uint256,uint256,uint256))
writecollect((uint256,address,uint128,uint128))
readpositions(uint256)
writeburn(uint256)
writecreateAndInitializePoolIfNecessary(address,address,uint24,uint160)
writemulticall(bytes[])
+2 more via get_protocol
Full ABI
HyperSwap Single Asset Zap
other
0x093dE46C90bEA4A730b1914748cC43d909b53661
source
writeprovideLiquidityV2((address,address,uint256,uint256))
writeprovideLiquidityV3((address,address,uint256,uint24,uint256))
Full ABI
HyperSwap Universal Router
router
0xefAbEB7A19bB848b359e5dd5a63b1a634AAfD229
source
writeexecute(bytes,bytes[],uint256)
writeexecute(bytes,bytes[])
Full ABI
Permit2
other
0x000000000022D473030F116dDEE9F6B43aC78BA3
source
writeapprove(address,address,uint160,uint48)
readallowance(address,address,address)
Full ABI
WHYPE (wrapped HYPE)
token
0x5555555555555555555555555555555555555555
source
writedeposit()
writewithdraw(uint256)
writeapprove(address,uint256)
readbalanceOf(address)
Full ABI
SWAP token
token
0x03832767BDf9A8EF007449942125Ad605aCfADb8
source
readbalanceOf(address)
writeapprove(address,uint256)
writetransfer(address,uint256)
Full ABI
xSWAP (escrowed SWAP)
token
0xF535D7406BaF7322171142BB165643821cAb01Fe
source
readbalanceOf(address)
Full ABI

APIs

HyperSwap V3 subgraph
auth: none
https://api.subgraph.ormilabs.com/api/public/33c67399-d625-4929-b239-5709cd66e422/subgraphs/hyperswap-v3/v0.1.2/gn
GraphQL: V3 pools, ticks, positions, swaps, TVL/volume history.
HyperSwap V2 subgraph
auth: none
https://api.subgraph.ormilabs.com/api/public/33c67399-d625-4929-b239-5709cd66e422/subgraphs/hyperswap-v2/v1.0.0/gn
GraphQL: V2 pairs, reserves, swaps and liquidity events.

Notes

All addresses come from the HyperSwap docs Contracts pages (docs.hyperswap.exchange/docs/amm/contracts/hyper-evm/*) and were confirmed as deployed contracts on HyperEVM (chainId 999) with eth_getCode; function selectors were checked against bytecode and against the official ABIs in github.com/HyperSwapX/abis. Also listed in the docs but omitted here: SwapRouter01 0x4E2960a8cd19B467b82d26D83fAcb0fAE26b094D (legacy router whose exactInputSingle has a deadline field), QuoterV1, Mixed Route QuoterV1, TickLens, V3 Migrator, Position Modifier (edit CL position), Multicall contracts, Launcher, HyperCore precompile, LMBooster Staking and the Burn & Delegate Fees vault (DelegatedPositionVault 0x744C89B7b7F8Cb1E955B1Dcd842A5378d75c96Dc). HyperSwap X (gasless intent swaps), limit orders and DCA (OpenOcean) are app features with no public documented API; the docs say API access is granted on request via Discord. The testnet deployment (chainId 998) has different addresses. Init code hashes: V2 0xc83d9df19c8c8a0a1229bd3122cbb86fd8ff56f79cc6781c15999d39425466e9, V3 0xe3572921be1688dba92df30c6781b8770499ff274d20ae9b325f4242634774fb. DefiLlama lists the chain as "Hyperliquid L1"; the contracts are on HyperEVM.

Sources

Researched 2026-11-24. Addresses are copied from the official sources above; check them before moving large amounts.