Mantle Agentic Treasury Manager (ATM) Autonomous AI-driven DeFi portfolio management on the Mantl...Mantle Agentic Treasury Manager (ATM) Autonomous AI-driven DeFi portfolio management on the Mantl...
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Mantle Agentic Treasury Manager (ATM)
Autonomous AI-driven DeFi portfolio management on the Mantle Network
Mantle ATM is a fully autonomous, on-chain AI treasury manager deployed on Mantle Sepolia. It leverages Llama 3.3 70B (via Groq and LangChain) to continuously analyze yield opportunities across the Mantle ecosystem — specifically mETH (Mantle Liquid Staking) and USDY (Ondo RWA yield) — and autonomously executes reallocation transactions on-chain to maximize yield while enforcing strict on-chain security guardrails.
The Innovation: Circular Agentic Economy
What makes Mantle ATM unique is its self-sustaining circular tokenomics loop:
The Roast Chamber: Users pay a micro-fee of 2 MNT in an on-chain transaction.
The Product: Llama 3.3 scans the user's wallet holdings and generates a brutally hilarious AI Roast (or glowing Toast) that they can immediately share on X (Twitter).
Closing the Loop: The collected MNT fees are deposited directly into the treasury gas reservoir. The autonomous AI Agent uses these funds to pay gas for its scheduled hourly rebalancing crons, ensuring the agent runs forever without needing manual developer refills.
Key Features Deployed
Mantle Ecosystem Live Ticker
A continuous, marquee-style scrolling ticker running directly beneath the navbar.
Powered by a keyless CoinGecko Live API fetch (MNT, mETH, USDY, USDC) with local cached fail-safes.
Premium Interactive Charting (Alpha Delta)
Rich technical APY charts showing projections, horizontal gridlines, extrema markers, and teal area gradient fill under the curve.
Features custom hover crosshairs and floating tooltipsdisplaying Time, APY, Volume, and Reward attribution.
Includes a DeFi metrics dashboard (TVL, Utilization, Collateral Ratio, LP Summary, and Volatility).
Dedicated Portfolio Hub (/portfolio)
An isolated sub-route providing a deep On-Chain Wallet Scanner that lists connected wallet balances (USDC, USDY, mETH, MNT) on Mantle Sepolia.
Features a Yield Allocation Optimizer advising on asset distributions.
Smart Money Whale Scanner
Tracking and interpreting major Mantle Network "whale" addresses (Treasuries, high yield stakers, arbitrage nodes) via Llama 3.3.
🔥 AI CFO Roast & Toast Chamber
Gamified Web3 on-chain utility that lets users burn 2 MNT to unlock AI roasts of their wallet assets.
Technical Stack & Architecture
Frontend: Next.js 15, React 19, TypeScript, Tailwind CSS, Framer Motion
Web3 Layer: RainbowKit, Wagmi, Viem (direct JSON-RPC node reads)
Backend API: Flask (Python 3.10) hosted on Vercel Serverless Functions
AI Brain: LangChain, Groq API, Llama 3.3 70b Model
Smart Contracts: Solidity 0.8.x, compiled and deployed via Foundry
Automation & Alerts: Vercel Cron Jobs, Discord Webhooks
Strict On-Chain Security Guardrails
The AI agent cannot move funds to arbitrary addresses. Our verified smart contracts enforce:
Token Whitelist: Only native USDC, USDY, and mETH can be reallocated.
Access Control: Only the designated AI Agent wallet can call reallocate().
Amount Cap: Max 500,000 USDC reallocated per autonomous cycle to prevent slippage.
No Withdrawal: Funds stay in TreasuryManager contract at all times.
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started