BTB Finance for agents

Protocols / Dexs

up.

Native ve(3,3) exchange on Robinhood Chain (chainId 4663): Velodrome-v2-style stable/volatile v2 pools plus Slipstream (Uniswap-v3-style, tickSpacing-keyed) concentrated-liquidity pools, with UP emissions, veUP locks and weekly gauge voting. Agents can quote and swap through the v2 Router or the v3 SwapRouter/QuoterV2, add/remove v2 liquidity, open and manage v3 position NFTs, lock UP into veUP and vote.

On-chainEVM10 contractsWebsite · Docs

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

Risks an agent should know

What an agent can do

quote a v3 swapPrice a swap through a concentrated-liquidity pool.
eth_call QuoterV2.quoteExactInputSingle((tokenIn, tokenOut, amountIn, tickSpacing, 0)). Find which tickSpacing has a pool with CLFactory.getPool(tokenA, tokenB, tickSpacing) for each value in CLFactory.tickSpacings().
swap (v3)Swap through a CL pool.
approve tokenIn to SwapRouter 0xC062b870E813fcA720f1e002c234369Ab3aB9415, then SwapRouter.exactInputSingle((tokenIn, tokenOut, tickSpacing, recipient, deadline, amountIn, amountOutMinimum, 0)). Set amountOutMinimum from the quote minus slippage; Robinhood Chain pools can be thin.
swap (v2)Swap through stable/volatile v2 pools.
Router.getAmountsOut(amountIn, [(from, to, stable, 0xFA5429AEBa338BEa2BFcc1b9a889862Ee395bc28)]) to quote, approve tokenIn to Router 0xf5198743240fAC98db71868F34c70139b1eb0474, then Router.swapExactTokensForTokens(amountIn, amountOutMin, routes, to, deadline).
add v2 liquidityProvide liquidity to a v2 pool.
Router.quoteAddLiquidity(...) to size, approve both tokens to the Router, then Router.addLiquidity(tokenA, tokenB, stable, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline). Optionally stake the LP token in Voter.gauges(pool) via gauge.deposit(amount) to earn UP instead of fees.
open a v3 positionProvide concentrated liquidity.
approve token0 and token1 to NonfungiblePositionManager 0x07F44c47743A2f36414A82b9F558ECFCf0EEdCEf, then mint((token0, token1, tickSpacing, tickLower, tickUpper, amount0Desired, amount1Desired, amount0Min, amount1Min, recipient, deadline, 0)). To farm UP: NonfungiblePositionManager.approve(gauge, tokenId) then gauge.deposit(tokenId) where gauge = Voter.gauges(pool); claim with gauge.getReward(tokenId), exit with gauge.withdraw(tokenId).
remove a v3 positionWithdraw liquidity and fees.
If staked, gauge.withdraw(tokenId) first. Then NonfungiblePositionManager.multicall([decreaseLiquidity((tokenId, liquidity, amount0Min, amount1Min, deadline)), collect((tokenId, recipient, 2^128-1, 2^128-1))]).
lock and voteLock UP for veUP and direct emissions.
approve UP to VotingEscrow 0x5d321dE36F0bf98D92b291280514F3878582B7B6, createLock(amount, duration<=126144000), then Voter.vote(tokenId, pools[], weights[]) once per epoch; after the epoch flips claim with Voter.claimFees / claimBribes.

Contracts

robinhood · chain id 4663

ContractAddressKey functionsTry
v3 SwapRouter (Slipstream)
router
0xC062b870E813fcA720f1e002c234369Ab3aB9415
source
writeexactInputSingle((address,address,int24,address,uint256,uint256,uint256,uint160))
writeexactInput((bytes,address,uint256,uint256,uint256))
writeexactOutputSingle((address,address,int24,address,uint256,uint256,uint256,uint160))
writeexactOutput((bytes,address,uint256,uint256,uint256))
writemulticall(bytes[])
writeunwrapWETH9(uint256,address)
writerefundETH()
readfactory()
Full ABI
v3 QuoterV2 (Slipstream)
other
0x03983AB2C057a2eac211ff01738a1e49ff325B49
source
readquoteExactInputSingle((address,address,uint256,int24,uint160))
readquoteExactInput(bytes,uint256)
readquoteExactOutputSingle((address,address,uint256,int24,uint160))
readquoteExactOutput(bytes,uint256)
Full ABI
v3 NonfungiblePositionManager (Slipstream)
other
0x07F44c47743A2f36414A82b9F558ECFCf0EEdCEf
source
writemint((address,address,int24,int24,int24,uint256,uint256,uint256,uint256,address,uint256,uint160))
writeincreaseLiquidity((uint256,uint256,uint256,uint256,uint256,uint256))
writedecreaseLiquidity((uint256,uint128,uint256,uint256,uint256))
writecollect((uint256,address,uint128,uint128))
writeburn(uint256)
readpositions(uint256)
readbalanceOf(address)
readtokenOfOwnerByIndex(address,uint256)
+2 more via get_protocol
Full ABI
v3 CLFactory (Slipstream)
factory
0x1ac9dB4a2608ba45D6127B1737949b51Bb54B7F3
source
readgetPool(address,address,int24)
readtickSpacings()
readtickSpacingToFee(int24)
readgetSwapFee(address)
readgetUnstakedFee(address)
readallPoolsLength()
readisPool(address)
writecreatePool(address,address,int24,uint160)
Full ABI
v2 Router
router
0xf5198743240fAC98db71868F34c70139b1eb0474
source
readgetAmountsOut(uint256,(address,address,bool,address)[])
writeswapExactTokensForTokens(uint256,uint256,(address,address,bool,address)[],address,uint256)
writeswapExactETHForTokens(uint256,(address,address,bool,address)[],address,uint256)
writeswapExactTokensForETH(uint256,uint256,(address,address,bool,address)[],address,uint256)
writeswapExactTokensForTokensSupportingFeeOnTransferTokens(uint256,uint256,(address,address,bool,address)[],address,uint256)
readquoteAddLiquidity(address,address,bool,address,uint256,uint256)
writeaddLiquidity(address,address,bool,uint256,uint256,uint256,uint256,address,uint256)
writeaddLiquidityETH(address,bool,uint256,uint256,uint256,address,uint256)
+4 more via get_protocol
Full ABI
v2 PoolFactory
factory
0xFA5429AEBa338BEa2BFcc1b9a889862Ee395bc28
source
readgetPool(address,address,bool)
readgetFee(address,bool)
readallPoolsLength()
readallPools(uint256)
readisPool(address)
Full ABI
UP token
token
0x57C0E45cB534413D1C20A4240955d6bB250BB4F1
source
readbalanceOf(address)
writeapprove(address,uint256)
writetransfer(address,uint256)
readtotalSupply()
Full ABI
VotingEscrow (veUP)
governance
0x5d321dE36F0bf98D92b291280514F3878582B7B6
source
writecreateLock(uint256,uint256)
writecreateLockFor(uint256,uint256,address)
writeincreaseAmount(uint256,uint256)
writeincreaseUnlockTime(uint256,uint256)
writewithdraw(uint256)
writemerge(uint256,uint256)
writelockPermanent(uint256)
writeunlockPermanent(uint256)
+3 more via get_protocol
Full ABI
Voter
governance
0x7F749fDD351C1Ceed82d76d7699CB631Eb8332a7
source
writevote(uint256,address[],uint256[])
writereset(uint256)
writepoke(uint256)
writeclaimBribes(address[],address[][],uint256)
writeclaimFees(address[],address[][],uint256)
writeclaimRewards(address[])
readgauges(address)
readisAlive(address)
+4 more via get_protocol
Full ABI
Minter
other
0x912EC7A90e8C9829eE0e0f6a4Db5270776Fc3Da5
source
writeupdatePeriod()
readactivePeriod()
readweekly()
readepochCount()
Full ABI

Notes

Addresses come from the 'Contract addresses' table on https://up33.xyz/docs/security, which the site generates from its own deployment configuration (the page is client-rendered; the same config is in the site's JS bundle). All 10 were confirmed on-chain on Robinhood Chain (4663): code present, SwapRouter/PositionManager/Quoter.factory() = CLFactory, Router.defaultFactory() = PoolFactory, VotingEscrow.token() = UP, Voter.ve() = VotingEscrow, UP.minter() = Minter; every listed function selector exists in the deployed bytecode. None use an EIP-1967 proxy. WETH on Robinhood Chain (listed by UP as canonical wrapped ETH) is 0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73. Left out: RewardsDistributor, compounder vault, emission deposit router, lockers, governance and airdrop contracts - they appear in the site's app config but not in the docs' canonical table, so they are not listed here. Individual gauges and reward contracts are per-pool: read them from Voter.gauges(pool), gaugeToFees(gauge), gaugeToBribe(gauge). Subgraphs (Goldsky) are used by the app but not documented as a public API, so none are listed.

Sources

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