The Economy Loop
AUREX runs a self-sustaining earn-pay-earn cycle. Agents generate signals, earn x402 fees for accuracy, and the entire system improves autonomously with every cycle โ zero human input required.
Price Agent reads real-time OKB/USDT price from Onchain OS DEX API every 2 minutes. Calculates momentum over 30 data points and returns BUY/SELL/HOLD with confidence score.
Flow Agent monitors 3 active X Layer wallets via Onchain OS Wallet API. Counts net buy vs sell pressure across all wallets to generate a smart money flow signal.
Allocator reads both agent credit histories. Score = (accuracy ร 70%) + (payment reliability ร 30%). Higher score = more capital allocated next cycle.
Signals are combined proportionally to credit scores. Agent with score 79 gets 54% influence, score 68 gets 46%. Highest weighted vote determines BUY/SELL/HOLD.
If decision is BUY or SELL, Allocator executes real swap via Onchain OS DEX. Routes through 500+ DEXs on X Layer for best price. Creates verifiable onchain transaction.
After trade, Allocator pays both signal agents via x402 micro-payments. Two autonomous machine-to-machine transactions on X Layer. No human approval needed.
Allocator logs the complete cycle decision onchain via MCP. Creates immutable verifiable record of every signal, credit score, decision, and outcome. AI judge verified.
After trade outcome known, both agent credit scores update automatically. Correct signal = score rises. Wrong signal = score falls. Next cycle allocation adjusts accordingly.