The MOI Agent worker runs an event-driven execution loop that continuously monitors onchain states without consuming unnecessary RPC bandwidth.
- 1
State Polling & Invariant Check
The agent queries Celo RPC via multicall to fetch current token balances. It validates that the mandate has not been paused by an emergency stop.
- 2
Drift & Opportunity Detection
The agent compares the live asset distribution against the mandate target. If drift exceeds 5% and the local asset exceeds the minimum reserve, a rebalancing intent is formed.
- 3
RFQ Request & Quote Retrieval
The agent contacts the Textile FX v2 liquidity network for an institutional firm quote with guaranteed rate and zero price impact.
- 4
Policy Evaluation & Signing Gate
The quote is handed to the deterministic policy engine. If all 18 rules pass, the restricted signer generates the transaction payload.
- 5
Broadcast, Settlement & Ingestion
The transaction is submitted with the ERC-8021 attribution tag, confirmed in a Celo block, verified onchain, and journaled into the double-entry ledger.