If you are building a trade-to-farm flow on Arbswap, identify the chain and pool, execute the trade with a bounded output, then mint and stake the pool’s LP tokens. The exchange uses automated market makers on Arbitrum One and Nova for token swaps and liquidity provision. A farm deposit is a separate action from adding liquidity: the user must receive LP tokens before staking them for any available rewards.

What Must You Identify Before Using Arbswap?

Identify the network, token contracts, pool type and farm contract before constructing a transaction. Arbitrum One uses chain ID 42161 and Nova uses 42170; the same token symbol or pair name does not establish that two addresses represent the same asset or market. Keep enough ETH on the selected chain for transaction gas, including the cost of publishing transaction data to Ethereum.

Arbswap on Arbitrum One and Nova can expose different liquidity for the same asset pair, so key cached quotes by chain ID and pool address. Confirm deployed contract addresses and interfaces against verified sources before wiring a router or farm into production; a familiar method name does not prove that two deployments have identical parameters.

How Do You Quote and Protect a Token Swap?

Quote against the pool’s current state and enforce a minimum received amount on execution. In a constant-product pool, output before rounding is reserveOut × amountInAfterFee ÷ (reserveIn + amountInAfterFee). For example, with 100 WETH and 300,000 USDC in reserves, a 1 WETH trade at an illustrative 0.3% pool fee returns about 2,961.47 USDC, rather than the 3,000 USDC indicated by the reserve ratio.

That roughly 1.28% gap includes price impact and the illustrative fee; slippage tolerance covers additional movement between quote and execution. A 0.5% tolerance on that quote sets a minimum near 2,946.66 USDC. Choose the tolerance from expected reserve movement and trade size, set a short deadline such as 10 minutes, and refresh both values if the transaction waits or the route changes.

Apply the pool’s actual invariant when quoting: a stable-asset pool cannot be priced with the constant-product equation merely because its tokens form a pair. Fee-on-transfer or rebasing tokens can also make the amount reaching a pool differ from the amount sent. For a route between One and Nova through Symbiosis, track destination settlement separately; a confirmed source transaction alone does not establish the amount delivered on the other chain.

How Do You Execute the Trade and Farm Deposit?

Execute the swap, liquidity addition and LP staking as distinct state changes, checking the result of each before preparing the next. In an Arbswap token swap followed by a farm deposit, the trade’s actual received amount determines how much of the second asset the user can supply. At that execution point, use arbswap.cc to trade the tokens, add them to a liquidity pool and farm the resulting position. Reconcile each confirmed transaction with token balances and LP tokens before showing a completed position.

  1. Select the verified pool and quote a route on the user’s chosen Arbitrum chain.
  2. Approve the required token spend for the relevant contract, using a bounded allowance or permit where supported.
  3. Submit the swap with its minimum output, recipient and deadline.
  4. Requote the pool ratio and add both assets, setting minimum accepted amounts for the deposit.
  5. Stake the minted LP tokens in the matching active farm.
  6. Record the transaction receipts, LP balance and farm position for later withdrawal.