Arc DEX with auto-rebalancing USDC baskets, SIPs & Chainlink CRE risk guards. Built in Arc Studio.
Arcline is a spot exchange on Arc, built end to end in Arc Studio, for risk-managed portfolio investing that settles in USDC.
Most people don't want to trade every day. They want a target mix (say 40% BTC, 30% gold, 30% EURC), want it kept in balance, and want to add money every month. On today's DEXs, they still have to do that by hand. Arcline makes it a smart contract. What you can do:
Arcline was built end-to-end in Arc Studio. Arc Studio was our main workspace: we drove it turn by turn (contracts → frontend → CRE receiver → exchange UI → prices/charts → agent rebalancing service), and the prompts for every turn are committed in studio/ .
Contracts (Solidity, Arc Testnet, chain 5042002): AssetRegistry stores prices and risk levels and rejects stale data. BucketFactory deploys one BucketAccount per user bucket, which holds the target mix, enforces the guardrails and runs SIPs. Two venues sit behind a common interface: UniswapV4Venue and a mirror venue for oracle-priced test assets.
Uniswap v4: UniswapV4Venue talks to IPoolManager directly, with no periphery router: swap() → unlock() → unlockCallback() → poolManager.swap(), with BalanceDelta checks, sync/settle, and minOut enforced. Quotes come from IV4Quoter, and the pool mid price comes from StateView.getSlot0. One catch: the Quoter reverts under staticcall, so the frontend quotes through simulateContract. We wrote up our developer feedback in FEEDBACK.md.
Frontend: Vite + React + wagmi with EIP-6963 wallet discovery. It has candlestick charts (from GeckoTerminal where pools exist, otherwise built from on-chain PriceUpdated events), a drift meter, and an accessible, validated colour system. It's hosted as a static build behind Caddy on AWS, with a same-origin proxy for market data.
Testing: ops/e2e.cjs runs the whole flow live on Arc Testnet: price refresh → buy/sell on Uniswap v4 and the mirror venue → bucket create → deposit → rebalance (checking the cooldown and drift gates, and that sells come before buys) → SIP configure, not-due gate, cancel.

