Andthen

Bridge to Arc and then instantly do anything: pay, hold, lend, leverage or LP.

Andthen

Created At

ETHGlobal Mumbai

Project Description

Nobody bridges for fun. You always bridge because you want to do something after: pay someone, get paid, put money in a pool, lend it. Every bridge stops at "funds arrived" and leaves the rest to you. andthen is one sentence: "Move 10 USDC from Base to Arc, and then pay alex.eth 9 EURC." Every part is a dropdown. You pick the amount, the source chain and what you want to do and our contracts finish the job for you. What can come after "and then":

  1. pay an exact amount in USDC or EURC (we swap through the Uniswap v4 USDC/EURC pool on Arc)
  2. convert into EURC or cirBTC
  3. add liquidity to the v4 pool, with the position minted to you
  4. deposit into a Morpho USDC vault, or loop cirBTC The main use case is pay links. A merchant asks for 25 EURC on Arc and gets a link. The payer pays from another chain, the merchant gets exactly 25 EURC tagged with the invoice id, and a receipt goes back over CCIP to unlock the invoice on the source chain. Anything left after fees goes back to the payer, and if the action fails everything is refunded. Everything is on testnet and works end to end: a payment sent from Sepolia settled on Arc in 92 seconds.

How it's Made

CCTP v2 carries both the money and the instruction. The router on Base or Ethereum Sepolia optionally swaps into USDC through Uniswap v4, then burns USDC over CCTP fast transfer with the whole intent packed into the hook data. Once Circle attests, our relayer (or the user’s wallet, if none is running) calls receiveFunds on Arc, and AndThenSettlement mints the USDC and runs the action in that same tx: pay an exact amount in USDC or EURC, swap everything into EURC, LP into the v4 USDC/EURC pool, or deposit into Morpho. It checks the CCTP sender is our router, so only intents our router built can run. Leftovers go back to the payer, and a failed action is refunded.

We first had CCIP carry the intent next to the CCTP transfer, and it worked (92 secs end to end from Sepolia), but waiting on two messages slowed the UX. So now CCIP only does what CCTP can’t: it carries the receipt back from Arc so InvoiceBook marks the pay link paid on Base, paid for from the order’s leftover USDC. CCIP fees on Arc can’t be paid with the USDC ERC20, only native value, and native USDC there has 18 decimals.

USDC from chains without a CCIP lane to Arc (Arbitrum, Optimism, Avalanche, Unichain and more) and non-USDC assets (EURC, WETH, cirBTC) go through Circle Bridge Kit, and the “and then” runs from the user’s wallet on Arc. Arc’s Memo contract rejects contract callers, so the settlement contract emits its own Settled event with the invoice id.

Arc Studio audited the contracts (3 high, 6 medium, 6 low; every high and medium fixed with a regression test). Contracts are Foundry, 34 tests against a real v4 PoolManager. Frontend is Next.js + wagmi + viem, with live numbers from Circle App Kit and Uniswap v4’s Quoter and StateView.

background image mobile

Join the mailing list

Get the latest news and updates

Andthen | ETHGlobal