← all projects

FX-aware Settlement Agent

@minimaker1·added 2026-07-19
0
stars
1.2k
lines
23
files
0
forks
0
followers
languages
Python 100%

This Python agent prices the route before it pays. Given a cross-currency settlement intent, agent.py reads three Pyth price feeds on Arc testnet — EUR/USD, EURC/USD, and USDC/USD — through pyth.py, and fx_oracle.py measures how far EURC trades from its euro peg, gating every decision on the oracle's confidence and freshness. The agent then routes each payment the cheaper way, buying discounted EURC via an on-chain swap or settling direct in USDC, rather than converting at naive spot. Settlement executes through a Circle Developer-Controlled Wallet wrapper in circle_wallet.py with server-side signing and a reconciliation memo attached to each transfer, while arc_client.py provides read-only JSON-RPC access to Arc for ERC-20 and wallet state.

events
tags
circle components
team · solo

1 (Solo) — MIwha chung

on xx/cryptocutei
repo description

FX-aware stablecoin settlement agent on Arc (Circle testnet) — reads on-chain USDC/EURC basis, routes the cheaper way, settles USDC via Circle Dev-Controlled Wallets. Stablecoins Commerce Stack Challenge / Track 4.

last pushed 2026-07-23