Autonomous On-Chain Benchmarking & Quant Trading Agent for the Mantle Ecosystem.
QuantEdge bridges off-chain statistical rigor with on-chain execution. It acts as a headless Rust daemon that evaluates complex DeFi trading strategies, filtering anomalies to optimize strictly for Mean Edge rather than easily manipulated raw win rates.
- Statistical Evaluator: A lightweight Rust engine ingests mock DEX strategy data and mathematically sorts them against volatility models.
- Automated TX Signing Reflex: Once the optimal strategy is identified, the agent natively hooks into local EVM CLI tools (
cast) to cryptographically sign the payload. - On-Chain Settlement: The agent autonomously pushes the state update to the
QuantEdgeVault.solsmart contract on the Mantle network, creating an immutable record of AI decision-making.
The architecture utilizes strict Role-Based Access Control (RBAC). The agentWallet variable within the smart contract is designed to be bound to Mantle's ERC-8004 agent identity standard, establishing a verifiable on-chain reputation for the bot based on historic execution accuracy.
- Agent Core: Rust
- Smart Contracts: Solidity
- EVM Toolkit: Foundry (
forge,cast) - Network: Mantle Sepolia Testnet
Ensure you have Rust and Foundry installed.
# 1. Compile the Vault
cd contracts
forge build
# 2. Run the AI Evaluator
cd ../evaluator
cargo run