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.
1
75
Title:
The Graphic Novel Syndicate: A Fully Automated 60-Page Production Pipeline
Project Link: [https://app.melius.com/projects/c95de835-b21e-42cb-b77b-d11344bb6a92/canvas/feccc0eb-d8d4-4196-8dfd-21ee38fe6af0 ]
Video Walkthrough: [https://youtu.be/lN5iBnjXkAw]
Project Description:
Most creators use generative AI to create isolated images or short videos. I wanted to push Melius to its absolute architectural limits by building a fully automated, scalable production pipeline designed to generate a cohesive 60-page noir graphic novel. I successfully rendered 18 complete pages (over 100 panels) end-to-end, but I eventually hit the hard limits of both the UI performance (severe lagging) and my credit balance. However, the engine architecture itself is fully functional, proven, and ready to scale. It is not just a comic; it is a workflow-native engine designed for continuous storytelling.
Process Overview & Architecture (What I Used):
To achieve absolute consistency without the system hallucinating or losing the plot, I structured the Melius canvas like a software backend, utilizing multiple node types:
Phase 1: The Master Brain (World Building LLM)
I started with a primary LLM node acting as the "Showrunner." Given a single seed sentence, it generated a comprehensive "Story Bible," locking in the overarching plot, environmental aesthetics, and strict character design rules.
Phase 2: The Logic Parsers (Workflow Routing LLMs)
To prevent data overload, the output from the Master Brain is fed into secondary, specialized AI Text Nodes. These act as logical routers. They parse the master script and isolate exact prompts for specific panels, ensuring each downstream image node receives only the precise data it needs.
Phase 3: The Render Array (Parallel Text-to-Image)
The parsed prompts are fed simultaneously into a battery of Image Generation nodes (Flux/Grok). This parallel array generates the raw pages (6 panels at a time) maintaining the high-contrast noir aesthetic dictated by the Master Brain.
Phase 4: The Cinematic Climax (Start/End Frame Video & Audio)
To fulfill the ">1 node type" requirement and add a massive "wow" factor, the final panels of key scenes are routed into Image-to-Video and Audio (ElevenLabs) nodes. By feeding Panel A (Start Frame) and Panel B (End Frame) into the video model, the engine creates hyper-smooth, logical cinematic transitions for the story's climax, complemented by epic sound design.
Extensiveness of Agent Use:
The Melius Agent was my co-architect throughout this build. I utilized the Agent to help design the logical flow of the parsing nodes. When dealing with the massive data flow from the Master LLM to the 6-panel Render Array, the Agent helped structure the prompt extraction logic, ensuring the "spaghetti wiring" remained functional and the data routed correctly to the visual generators.
Feedback on Experience Using Melius:
The Highlights & UI Experience:
This is arguably the first AI agent I've encountered capable of genuinely grasping complex, high-level structural requests. While I am highly accustomed to the deep technicality of complex node-based tools like ComfyUI, Melius offers a brilliant contrast: the visual canvas is incredibly clean and accessible. The ability to visually orchestrate AI collaboration is phenomenal.
Areas for Improvement (Stress-Test Feedback):
Because I pushed the platform to its limits with this massive pipeline, I found a few severe bottlenecks:
Credit Exhaustion from Deep R&D: My ultimate goal was to finalize the entire 60-page project to the highest possible polish, but I hit hard credit limitations after rendering 18 pages. I burned through a massive portion of my credits purely on R&D—extensively testing different model outputs, probing the Agent's comprehension limits, and figuring out exactly how far and how deep I could push the node architecture before it broke.
Performance & Batch Errors: The web app currently struggles under heavy production loads. By the time I reached 18 pages, I experienced choppy canvas navigation and frequent errors when queuing multiple generation batches.
Wiring Logic at Scale: In massive multi-node networks, the Agent occasionally lost track of correct connections. It would claim everything was wired perfectly, but upon explicit prompting to double-check its work, it would discover its own routing errors.
Pre-Run Cost Estimator: A massive UX improvement for power users would be implementing a built-in UI feature that analytically calculates the exact credit cost of the entire node tree before hitting "Generate," rather than relying on the Agent's estimates.
Custom LoRAs: Adding support for custom LoRAs would be the ultimate upgrade for maintaining absolute character consistency in sequential art pipelines like this one.
11
42
2.3K
TipJar is a functional Proof-of-Concept (PoC) designed to demonstrate the integration of Solidity smart contracts with a Web3 frontend. It serves as a lightweight template for content creators looking to accept decentralized micro-donations directly on the BNB Chain.
Please Note: This project is provided as a foundational sandbox. Before deploying to a production mainnet, developers and creators should:
Update and verify the deployed contract addresses.
Customize the UI/UX design to match their personal brand.
Adapt the Web3 provider logic and event handling based on their specific project requirements.
Feel free to fork, modify, and integrate this logic into your own Web3 infrastructure!
Stop coding. Start training. 🚀
From complex terminal scripts to a seamless no-code experience. Meet CzechAI Auto-Trainer – the Diamond Edition of AI fine-tuning. 💎
Your data, your model, zero code.