All projects
CRE Route Orchestrator: The Decentralized "Brain" for Web3 Banking
A Chainlink CRE engine that evaluates off-chain metrics to publish optimal cross-chain routes
DeFi & Tokenization Tenderly
What it is
The Problem: Cross-chain liquidity fragmentation is a major UX hurdle for mass adoption. Modern consumer products (like a Web3 Passkey Bank or auto-balancing yield protocols) require seamless, unified liquidity, but routing decisions are normally centralized, fragile, or rely on outdated manual parameters.
The Solution: The CRE Route Orchestrator acts as the decentralized "Brain" that automates cross-chain execution decisions. We deployed two interacting Chainlink CRE workflows:
- CRE Policy Intake: An on-demand HTTP workflow that allows operators (or a dashboard) to dynamically set trading parameters, activation thresholds, and allowed chains.
- CRE Evaluator: A dual-trigger workflow (scheduled via Cron and available on-demand via HTTP) that acts as the core scoring engine. It uses the HTTPClient capability and consensusMedianAggregation to securely fetch real-time off-chain data (RPC Gas Prices, Block Recency, DeFiLlama TVL). A pure functional, deterministic algorithm normalizes and ranks this mixed data into a single 0-100 Confidence Score.
Once consensus is reached, the CRE Evaluator publishes the winning chain, run ID, and score directly to a Smart Contract (RouteReceiver.sol). This enables future CCIP interactions (the "Muscle") to seamlessly execute trades or bridge liquidity using the verifiably optimal route.
How it Works
The CRE Route Orchestrator is built using TypeScript and the Chainlink CRE SDK. It features two WASM-compiled workflows:
- Policy Intake (HTTP): Allows operators to dynamically update routing rules.
- Evaluator Engine (Cron): Continuously aggregates off-chain RPC data (Gas, Block Recency, TVL) using the DON HTTPClient and consensusMedianAggregation.
The engine filters this data through a deterministic scoring matrix to rank chains. The winning route is then encoded and published on-chain to Base Sepolia via Foundry (cast/forge), with a custom Bun orchestrator and React dashboard verifying the execution loop.
Links
Created by
- Bryan A