Skip to content
sekulerPublic

About

Circle Wallet + Gateway + CCTP V2 on Arc

Topics

Resources

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

710 Commits

Folders and files

Repository files navigation

FlowFi

FlowFi on Arc: bridge, swap, earn

Your dollars on Arc, all in one flow. Live on Arc Mainnet: native USDC, EURC and cirBTC bridging with Circle's Bridge Kit, USDC from Sui over CCTP V2, one balance for USDC, EURC and cirBTC with Circle Gateway, best-price swaps, and Earn & Borrow on Morpho and Aave.

App: flowfi.finance · Technical walkthrough: youtu.be/ECRQsVKIiNM · Demo: youtu.be/Icu8qTiYMqw · Contracts: all addresses · Repo: github.com/sekuler/flowfi

FlowFi is a certified member of the Circle Alliance Program.

Circle Bridge Kit Native USDC, EURC and cirBTC to Arc. With Circle's Forwarding Service, Circle completes the mint on Arc, so no Arc gas is needed
USDC from Sui Native USDC from Sui to Arc over CCTP V2: burned on Sui, minted on Arc with Circle's attestation
Circle Gateway One balance for USDC, EURC and cirBTC across Arc, Base, Ethereum, Arbitrum, Avalanche and World Chain, sendable to any of them (and to Solana) in seconds. Built on Circle's Unified Balance Kit
Circle Wallet Email sign-in, no seed phrase. Circle Developer-Controlled Wallets with the same address on Arc, Base, Ethereum and Arbitrum
Swap Best price across KyberSwap, De¹ and LI.FI, with the output checked onchain before you sign
Earn & Borrow Curated Morpho vaults and the Aave V4 USDC market, compared side by side; borrow USDC or EURC against cirBTC on Morpho, or USDC against EURC on Aave V4
Send & batch payments Send any token on Arc, or pay up to 200 addresses in one transaction

CI

Mainnet runs on established infrastructure. Every mainnet user flow (bridge, swap, Gateway, Earn & Borrow) runs on Circle, Morpho, Aave, KyberSwap, De¹ and LI.FI contracts that were already live. Batch payments go through FlowFiMultiSend, FlowFi's own contract, which has no owner, charges no fee and holds no funds. Users sign every browser-wallet step in their own wallet; FlowFi never holds their funds. See SECURITY.md for the trust model.


Live on Arc Mainnet

Feature What it does
Home Net worth in dollars, the assets held (USDC, EURC, USYC, cirBTC), quick actions for Add funds / Send / Swap / Bridge, an "Ask your wallet" Copilot (read-only), and recent activity in plain language
Send Send any token on Arc to another address, signed by the user's own wallet
Batch payment Send USDC, EURC or cirBTC to up to 200 addresses in one transaction through FlowFiMultiSend. The call is simulated before the wallet opens
Bridge: Native USDC Circle Bridge Kit (CCTP V2) with Circle's Forwarding Service, from 18 source chains. The user signs only on the source chain; Circle mints native USDC on Arc, so no Arc gas is needed. A transfer interrupted after the burn resumes without burning twice (MessageTransmitterV2.usedNonces is checked before any manual mint)
Bridge: EURC & cirBTC Circle Bridge Kit: native burn-and-mint, no wrapped tokens. EURC from Ethereum, Base and Avalanche; cirBTC from Ethereum
Bridge: USDC from Sui Native USDC from Sui to Arc over CCTP V2: deposit_for_burn on Sui, receiveMessage on Arc with Circle's attestation
Bridge: Any token Any asset onto or off Arc through LI.FI, with route comparison. Supports EVM wallets plus Solana and Bitcoin wallets (Backpack, Phantom, Xverse)
Swap Best price on Arc: quotes from KyberSwap, De¹ and LI.FI are compared and the best output is picked, checked onchain before signing. "Any token" mode opens full LI.FI routing
Earn USDC: Morpho vaults (Bitwise Premium RWA, Galaxy, Keyrock Prime) and the Aave V4 USDC market. EURC: Morpho vaults (Steakhouse Prime, Gauntlet EURC Prime). Live APY, deposits and withdrawable amount, compared side by side
Borrow Borrow USDC or EURC against cirBTC on Morpho Blue markets on Arc. Markets liquidate at 86% LTV; FlowFi caps new borrows and collateral withdrawals at 70% and shows live LTV, liquidation price and borrow rate. Every call is simulated before the wallet opens. USDC can also be borrowed against EURC on the Aave V4 Forex market, with a live health factor
Gateway One balance for USDC, EURC and cirBTC. Deposit on Arc, Base, Ethereum, Arbitrum, Avalanche or World Chain, then Send or Withdraw to any of them (or to Solana) in seconds with Circle's Forwarding Service, so no gas is needed on the destination. Browser wallets use Circle's Unified Balance Kit; the Circle Wallet deposits on Arc and signs Gateway burn intents server-side, limited to Gateway transfers only
Circle Wallet Email sign-in with a one-time code, no seed phrase. Same address on Arc, Base, Ethereum and Arbitrum. Add funds from a browser wallet and withdraw to your own wallet at any time. Actions run through a strict allowlist, with a per-account holding cap
Dashboard Net worth, live balances, portfolio split, activity mix and recent activity, read from the chain and Arc's Etherscan-run explorer (arc.etherscan.io)
History Every transaction and token transfer on the address, including ones made in other apps, with amounts, status and explorer links
AI Copilot (Mainnet) Answers questions about balances and activity and points to the right page; it never signs or executes anything itself on mainnet

The net-worth chart and 7-day change are drawn from daily snapshots saved in the user's own browser (not on a FlowFi server); until enough days have been recorded they say "Not enough history" instead of showing a made-up curve. USD values for EURC, USYC, and cirBTC use live prices; if a price can't be fetched, that token is left out of the dollar total rather than guessed.

Circle integration in the code

Circle product Where
Packages package.json: @circle-fin/adapter-viem-v2, @circle-fin/bridge-kit, @circle-fin/developer-controlled-wallets, @circle-fin/unified-balance-kit
Wallet adapter for the kits src/kitAdapter.ts
Bridge Kit + Forwarding Service (USDC) src/components/NativeCctpBridge.tsx
Bridge Kit (EURC, cirBTC) src/components/NativeEurcBridge.tsx
Unified Balance Kit (Gateway) src/components/GatewayMainnet.tsx
CCTP V2 (Sui → Arc) src/components/SuiCctpBridge.tsx
Developer-Controlled Wallets api/circle-wallet-mainnet.js, src/components/CircleWalletMainnet.tsx

Mainnet contracts FlowFi reads or calls

Contract Address
FlowFiMultiSend (FlowFi's own; no owner, no fee, holds no funds; source in contracts/mainnet/) 0xE1aec7Af5dA3b981a8e627FFaDC9b980C499b761
USDC (ERC-20 interface, 6 decimals) 0x3600000000000000000000000000000000000000
EURC (Circle-official) 0xbEf5f6d51CB62b58e6A8f77868681825C6fe21c1
USYC 0x8a5D989Bbb96929F689B0200f435f53dA42bF490
cirBTC (Circle-official, 8 decimals) 0x171A4217b86A807A64eB94757Db6849fb4bDbAA0
CCTP V2 TokenMessengerV2 (Circle-official) 0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d
CCTP V2 MessageTransmitterV2 (Circle-official) 0x81D40F21F12A8F0E3252Bccb954D722d4c464B64
CCTP for non-USDC CrossChainTokenService (Circle-official) 0x431871229103b780868f8C6BB820cd16ECf942BC
Gateway Wallet (Circle-official) 0x77777777Dcc4d5A8B6E418Fd04D8997ef11000eE
Gateway Minter (Circle-official) 0x2222222d7164433c4C09B0b0D809a9b52C04C205
Morpho Blue 0x34CD04070dD72b14E241112F6d83812Df5Af7fCD
Morpho market cirBTC / USDC (LLTV 86%) 0xc2db905f174e5defcce01d321b09f15f78856a36a21b90cc7e1abbc29225815d
Morpho market cirBTC / EURC (LLTV 86%) 0x6ea1ea96a1cc671615f3a3bdf51481c5b79e362a8b634396e680d1070137daf4
Galaxy USDC vault 0x8E357432CC12ff425c36432F312968aEb16112AF
Keyrock Prime USDC vault 0x5bEfAb92a5A3D60F578Cb51EEb4e4FD50a1e3123
Bitwise Premium RWA USDC vault 0x7610094B846657dCF166D59e42973db52c7015F9
Steakhouse Prime EURC vault 0xbeef00be37BdE921BAE06fad223125BAB16c41D1
Gauntlet EURC Prime vault 0x05863F54B05e96092069eF30c9Ca6060336e50B9
Aave V4 Main Spoke (USDC market) 0xB843bdC3a87A05E77E07Df9FE48928b3A34b134d
Aave V4 Forex Spoke (EURC collateral, USDC loan) 0x4164EBCAF74670aa74C8D4F59de6157c0780F1bB
Aave V4 Core Hub 0x17288dfc86205301064577b98B02b81017e6F79C

Morpho market parameters were verified onchain (idToMarketParams) and each vault's underlying asset is checked at runtime (asset()) before a deposit.


Verified receipts: real transaction hashes

Every claim above is checkable onchain.

Videos

Mainnet: Native USDC bridge via Circle CCTP V2 (Base → Arc), 1 USDC, 21 Sep 2026

Step Tx hash
Source burn (Base) 0x4432dba5df285033b804b26baa583d6bee874ceca209e73b700b8fe53d96a70a
Destination mint (Arc) 0xf5cf3b1847b5dc8899ae6855a48ff86dfd1031c09343e4d91cee5614e4bef449

Standard transfer (Circle destination domain 26).


Why Arc?

FlowFi is designed around stablecoins, not speculation.

CCTP and Circle's wallets work on other EVM chains too. What's Arc-specific is what happens after funds arrive: USDC is Arc's native gas asset, so cross-chain USDC is immediately usable the moment it lands. Users never need ETH or any other gas token; the USDC they hold is both the money they use and the network fee. That removes the biggest first-step barrier for people new to crypto.

FlowFi is built around that arrival point: bridging, swaps, Gateway and Earn & Borrow all settle through the same native-USDC rail, and the Morpho and Aave markets FlowFi uses live on Arc itself.

Arc also runs on Malachite, a consensus engine built for sub-second deterministic finality: once a transaction confirms, it's final.


Architecture

┌──────────────────────────────────────────────────┐
│                     Frontend                      │
│             React + TypeScript + viem             │
└───────────────┬──────────────────────┬────────────┘
                │                      │
      ┌─────────▼─────────┐  ┌─────────▼──────────┐
      │  Browser Wallet    │  │   Circle Wallet     │
      │  (EIP-6963, WC)    │  │ email OTP, Vercel   │
      │  user signs        │  │ API + allowlist     │
      └─────────┬─────────┘  └─────────┬──────────┘
                └──────────┬───────────┘
   ┌───────────────────────▼────────────────────────┐
   │ Circle Bridge Kit + Forwarding · CCTP V2 (Sui) · │
   │ Circle Gateway / Unified Balance Kit ·          │
   │ Morpho · Aave V4 · KyberSwap · De¹ · LI.FI      │  ← third-party, already live
   └───────────────────────┬────────────────────────┘
                   ┌───────▼────────┐
                   │   Arc Mainnet   │
                   └────────────────┘

Screenshots

Landing
Connect a wallet, sign in with email, or explore
Landing
Home
Net worth, assets, Copilot, recent activity
Home
Bridge
Native USDC, EURC & cirBTC via Circle Bridge Kit, USDC from Sui, any token via LI.FI
Bridge
Swap
Best price across KyberSwap, De¹ and LI.FI
Swap
Earn & Borrow
Morpho vaults and Aave V4, borrow against cirBTC
Earn & Borrow
Circle Wallet
Email sign-in, balances on four chains, add funds / withdraw
Circle Wallet
Gateway
One balance for USDC, EURC and cirBTC across six chains
Gateway
Dashboard
Net worth, portfolio split, activity mix
Dashboard
History
Every transaction with status and explorer links
History

Data sources

FlowFi's market analysis never uses AI-generated numbers. Every figure comes from a real source:

Data Source Notes
Price, market cap, volume, supply CoinGecko Free tier
RSI, EMA, MACD, support/resistance Computed server-side Standard formulas, real historical OHLCV, not AI-generated
Mainnet net-worth prices (EUR/USD via EURC, USYC, BTC via cirBTC) CoinGecko A token with no live price is left out of the dollar total, not guessed
Earn APY Morpho and Aave V4 APIs Variable, set by each protocol
Token unlock/vesting schedules Live data from the DropsTab API, with a manually curated fallback list cross-checked against DeFiLlama and official project docs DropsTab is checked first

If a data point isn't available from a real source, FlowFi says so rather than guessing.


Tech stack

  • Frontend: React, TypeScript, Vite
  • Chain interaction: viem
  • Wallets: EIP-6963 (MetaMask, Rabby, etc.), WalletConnect for mobile browsers, Solana and Bitcoin wallets for cross-chain bridging, and Circle Developer-Controlled Wallets with email sign-in
  • Circle: Bridge Kit, Unified Balance Kit, CCTP V2 (incl. Sui), Forwarding Service, Gateway, Developer-Controlled Wallets, viem adapter
  • Swap & bridge routing: KyberSwap, De¹, LI.FI
  • Earn & Borrow: Morpho Blue markets, Morpho vaults (ERC-4626) and Aave V4, called directly with viem
  • AI: Claude (Anthropic), for plain-language answers and market analysis summaries (never for computing the underlying numbers)
  • RPC: Alchemy for Arc Mainnet, with Arc's public RPC as fallback
  • Hosting: Vercel

Running locally

git clone https://github.com/sekuler/flowfi.git
cd flowfi
npm install

cp .env.example .env
# then fill in:
# ANTHROPIC_API_KEY=       (server-side only — no VITE_ prefix, or it gets bundled into client-side JS)
# CIRCLE_LIVE_API_KEY=     (Circle Wallet, server-side only)
# CIRCLE_LIVE_ENTITY_SECRET=
# CIRCLE_LIVE_AUTH_SECRET= (signs the Circle Wallet session cookie)
# RESEND_API_KEY=          (sends the email sign-in codes)
# RESEND_FROM_EMAIL=       (sender address for those emails)
# LIFI_API_KEY=            (server-side only — api/lifi-proxy.js adds it to every LI.FI request from Bridge and Swap)
# ETHERSCAN_API_KEY=       (server-side only — powers Home/Dashboard/History activity and token-transfer reads via arc.etherscan.io)
# ALCHEMY_API_KEY=         (optional — main RPC for Arc Mainnet; without it calls go to Arc's public RPC)
# ARC_MAINNET_RPC_URL=     (optional — falls back to Arc's own public mainnet RPC)
# DROPSTAB_API_KEY=        (optional — live token unlock data; falls back to the manual list without it)
# UPSTASH_REDIS_REST_URL=  (required for Circle Wallet sign-in and for rate limiting on every backend
# UPSTASH_REDIS_REST_TOKEN= endpoint; in production /api/claude, /api/rpc-proxy and /api/upload-image refuse to run without it)

npm run dev

Mainnet features work locally against real Arc Mainnet the moment a browser wallet is connected, same as production.


Roadmap

  • Circle Bridge Kit + Forwarding Service for USDC, EURC and cirBTC; USDC from Sui over CCTP V2
  • Circle Gateway for USDC, EURC and cirBTC across six chains, with browser wallets and Circle Wallet
  • Circle Wallet with email sign-in on mainnet
  • Best-price swaps and Earn & Borrow on Morpho and Aave V4
  • Send and batch payments on Arc
  • Bridge Kit support in Circle Wallet: bridge USDC, EURC and cirBTC from Base, Ethereum and Arbitrum to Arc
  • Arc Earn support in Circle Wallet: deposit USDC and EURC into Morpho and Aave vaults, gas paid in USDC
  • Card purchase of USDC in Circle Wallet, delivered straight to Arc
  • Android app with Circle Wallet email sign-in, Gateway, bridging and Earn

Testnet contracts

FlowFi started on Arc Testnet with its own contracts (Token Launch, Liquidity Pools, Swap). The app now runs on Arc Mainnet; those contracts remain deployed and verified on Arcscan Testnet, and every onlyOwner one is owned by a 2-of-3 Safe multisig. Addresses are in ADDRESSES.md, source and notes in contracts/README.md.

They come with a Foundry test suite, and CI (.github/workflows/ci.yml) runs it with a frontend type-check, lint and build on every push and pull request to main.

curl -L https://foundry.paradigm.xyz | bash
foundryup
forge install foundry-rs/forge-std --no-git --no-commit
forge test -vv

The contracts have been through a manual security review; design trade-offs from that review are documented in SECURITY.md.


Legal

  • TERMS.md: what you're agreeing to by using FlowFi
  • PRIVACY.md: what data is collected, by whom, and why
  • RISK.md: mainnet-specific risks (wrong network, third-party routing, no undo)
  • SECURITY.md: the security review and mainnet trust model

These are also linked from the app itself (sidebar footer).


Disclaimer

Arc Mainnet features move real USDC and other assets. Browser-wallet flows are signed by the user's own wallet, at the user's own discretion. The mainnet Circle Wallet is a Circle Developer-Controlled Wallet: FlowFi's backend signs on the user's behalf only for an allowlisted set of actions, holdings are capped, and withdrawals to the user's own wallet are always available. Earn & Borrow use third-party Morpho and Aave markets; rates are variable and borrowing carries liquidation risk. See TERMS.md, PRIVACY.md, and RISK.md for the full terms.

About

Circle Wallet + Gateway + CCTP V2 on Arc

Topics

Resources

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages