Loops House




CapRail
Guardrailed Auto-DCA on Celo via selector-locked Altana session keys.

Agents Open for Business
Links
Team
1 member- AROwner
Ar1Ma
Overview
-
What I Built CapRail is a non-custodial Guardrailed Auto-DCA (Native USDC -> CELO) execution rail on Celo Mainnet (Chain ID 42220). It separates human owner control (web Control Plane + bounded USDC approval) from autonomous agent execution (agent-agnostic
dca:tickCLI +SKILL.md), combining deterministic market gates (24h TWAP spike filter and pool price-impact ceiling) with selector-locked Altana EIP-7702 Session Keys. -
Who It Is For Built for on-chain treasuries, DAOs, individual users, and autonomous AI agents (such as Hermes) that need recurring USDC -> CELO accumulation without exposing master private keys or blindly buying into thin-liquidity spikes.
-
How It Works & Security Guardrails Instead of unrestricted bot keys, CapRail delegates bounded execution to an Altana Non-Custodial Agent Wallet using scoped on-chain EIP-7702 Session Keys (
@altananetwork/sdk) layered beneath deterministic pre-flight validation (zod):
- Contract + Selector Lock: On-chain session permissions allow Uniswap V3
SwapRouter02(0x5615CDAb10dc425a742d643d949a7F474C01abc4) with raw selector0x04e45aaf(exactInputSingle) ONLY.USDC.approve(0x095ea7b3),sweepToken, andmulticallare blocked from session keys, while boundedUSDCallowance (dailyCap * days) is provisioned once by the owner. - Daily Spend Cap & 1-Tx Revoke: Enforces a
$4.00/daydefault USDC spend limit (configurable up to$10/day) on-chain alongside session expiry and instant 1-tx emergency revocation (revokeSession). - Deterministic Market & Slippage Gates: Evaluates live Uniswap V3
USDC/CELO(0.01%) pool state before every tick, deferring upside spikes above+50 bpsvs. 24h TWAP (pool.observe([86400, 0])), blocking orders exceeding5 bpspre-flight pool impact or a+15%weekly ceiling, enforcing a25 bpson-chainamountOutMinimumquote floor, and logging every tick withblockNumber+sqrtPriceX96tologs/decisions.jsonl. - Native Identity, Attribution & SDK DX Feedback: Registered on Celo Mainnet ERC-8004 Identity Registry (
0x8004A169FB4a3325136EB29fA0ceB6D2e539a432, Agent ID#10109), appends ERC-8021 builder attribution (celo_0518175d3efe) via@celo/attribution-tagsto every live transaction, and contributed actionable@altananetwork/sdk@1.1.0EIP-7702 re-provisioning (Invalid auth item nonce) & Celo MainnetfeeTokenfeedback to the Altana builders channel.
- Live Links & Celo Mainnet Proof
- Live App: https://caprail.vercel.app
- Judge & Proof Console (All On-Chain Receipts): https://caprail.vercel.app/#verify
- GitHub Repository: https://github.com/takaolovely/caprail
- ERC-8004 Agent Identity: Agent ID #10109 (
0x8004A169FB4a3325136EB29fA0ceB6D2e539a432) - Primary Agent Wallet (Celo Mainnet):
0x3631D44543384253C099f2A09c0d0bE109Eb7944 - Repeat-Use Live Auto-DCA Swaps (3 Settled Mainnet Ticks across Blocks
#83540877–#83716253): - Named External User Proof (
@MFauzulAzim—0xfb69ABfADd1A6f1929e988f41D2AAb0d09c48e63):