Copy trading where your rules run first, Flash executes, and every fill is proven onchain.
Copy trading mostly works for the leader. A publisher-reported study of 100,236 copier outcomes on Binance, Bybit and MEXC found 97% of leaders in profit on their own PnL, but only 44% of them made money for the people copying them. Followers get someone else's size and a worse price, and they have no exit of their own. Sometimes they're the leader's exit liquidity.
PACT copies the plan, not the trader. A leader publishes a structured plan: entry, stop, target, order type and a time window. Each follower has a mandate: their own rules per leader. That's how much to copy, how much per day, which order types, how far from the entry they'll pay, and how they exit. Up to ten leaders.
When a plan arrives, PACT decides before asking for a price: copy, scale down, wait, decline or review, with the reasons. If it's a copy, Flash quotes the follower's exact size, the price has to agree with Chainlink, and the follower's own browser checks Flash's payload before the wallet signs. The follower gets their own Flash order: a TWAP or limit entry whose limit price is their maximum entry drift, with their own stop and target attached. PACT never holds keys or funds.
What's new:
It works with real money. On 7 Nov we copied a live ETH plan for $5 on Base:
Fills: https://basescan.org/tx/0x0d3ed912328e1379a60a8506eb6a53b24e52bb7a7d85c68878a376e05fe25474 https://basescan.org/tx/0x682b4fd438bc90dbe5b49d24bb09e565e5f7f76a28744f107e5f9a39225f3a81
Demo video: https://youtu.be/V1AYH5wm_vY
PACT is built with Next.js 16, React 19, TypeScript, Tailwind v4, wagmi and viem, with a Solidity layer using Foundry. Its architecture spans eight layers, from external integrations and evidence storage to policy, execution, wallet authority and the trading terminal.
Definitive Flash is our execution layer and source of truth. We use its REST API and WebSocket for real quotes, TWAP and limit orders, TP/SL brackets, cancellations and fill tracking. Every copy decision is priced using a real Flash quote. Followers receive independently sized orders, with maximum entry drift enforced through the order's limit price. Finalized fills drive receipts, P&L and entry-drift accounting, preventing reorgs from being double-counted.
Security is a core part of PACT. Before any wallet prompt, the browser independently decodes Flash's EIP-712 FlashOrder and Permit2 payloads and performs 33 checks covering recipients, tokens, chain, amounts, spender and deadlines. One end-to-end test inflates the order amount 20x on the server; the browser rejects it before signing. Our TypeScript policy engine handles proportional, fixed and stop-risk sizing, portfolio caps, probation, plan grades, style drift, revenge re-entry and a three-price check using Chainlink, pool data and Flash quotes, which must agree within 1%.
We integrated World ID 4 (IDKit 4.6) for proof of human. Requests are RP-signed and verified through /v4/verify. The proof's signal is bound to the leader's wallet, while the nullifier ensures one human per leader address. It also provides human approval for Autopilot limits.
For leader accountability, we inspect Base transaction receipts and ERC-20 Transfer logs against published plans and follower fills. PACT flags selling into followers (25%+ of a position during their fills) and potential front-running (30+ minutes earlier at a price at least 1% better). Every event is stored in a SHA-256 hash-chained evidence log, independently verifiable in the browser and exportable per order.
We also built an experimental Autopilot using Foundry and Solidity 0.8.28. Its session account validates Flash orders and Permit2 permits through EIP-1271 within an onchain scope covering signer, expiry, tokens, amounts and recipient. It is tested against real Permit2 on a Base fork but remains in dry-run mode, not deployed.
Some interesting engineering challenges came from real execution: bracketed limit orders require limitCrossPrice instead of limitNotionalPrice; market quotes can embed fees in execution prices, requiring custom cost accounting. We never blindly retry /order, since Flash may create or fill an order before returning an error. Instead, we snapshot and reconcile orders after failures. Our first real $5 execution exposed a fee-related price-bound mismatch, which we fixed with a regression test.
ERC-8021 attribution is attached to every order using PACT's builder code and decoded from settlement calldata on Base. Our real fills carry both Definitive's code (bc_lv99qw8t) and ours (pactfi). We also configure flashIntegratorFeeBps per copy, charging 10 bps only on proven leaders and zero during probation or after conduct flags.
PACT executes live on Base, with Arc (chain 5042) supporting the same flow up to signing.
Validation: 197 unit tests, 10 live Flash integration tests, 14 Foundry tests (including Base-fork tests against real Permit2), 3 Anvil tests, 48 follower end-to-end checks, 40 UI checks and 22 World ID staging checks. We also completed one real $5 copy on Base, executing at $2,239.56 against the leader's $2,239.12 entry (+2 bps).
Built with Claude Code as a pair programmer, with testing against real partner integrations wherever possible.

