Skip to content
VaTINN AI

VaTINN AI

DeFAI YieldGuard — Global AutoYield Agent

Created on 14th March 2026

•

VaTINN AI

VaTINN AI

DeFAI YieldGuard — Global AutoYield Agent

The problem VaTINN AI solves

Most DeFi users leave yield on the table — not because they don't care, but because
optimizing across protocols like Aave V3 and Morpho Blue requires constant monitoring,
DeFi expertise, and manual transactions. APYs shift every few hours, and no one has
time to watch a dashboard all day.

Vatiin AI solves this by giving every user a personal on-chain AI agent.

  • Set it in plain English. You write one sentence — "Maximize yield with low risk
    on stablecoins" — and the agent understands your intent, risk tolerance, and goals.
    No DeFi knowledge required.

  • It runs 24/7 without you. Powered by Qwen 3 235B (235-billion parameter MoE model)
    via Alibaba DashScope, the agent continuously evaluates yield opportunities and decides
    when and where to rebalance — autonomously.

  • Fully on-chain execution. Every rebalance is a real transaction on Base. The agent
    calls Aave V3 or Morpho Blue directly through auditable smart contracts. You can verify
    every action on BaseScan.

  • Non-custodial by design. Your funds never leave your control. The agent only moves
    assets between whitelisted yield protocols — it cannot withdraw to arbitrary addresses.

  • Dual automation guarantee. Chainlink Automation triggers the agent on-chain every
    6 hours. A cron fallback on the backend ensures execution even if Chainlink is delayed.
    You get true 24/7 uptime.

In short: Vatiin AI turns passive DeFi participation into an active, intelligent yield
strategy — without requiring the user to do anything after the initial setup.

Challenges we ran into

1. Chainlink Automation + Custom Logic Contract Integration

Getting Chainlink's AutomationCompatibleInterface to correctly trigger our
YieldOptimizerCore was non-trivial. The checkUpkeep / performUpkeep pattern
requires the contract to be registered on the Chainlink Automation registry with
sufficient LINK balance, and the ABI encoding of performData had to match exactly
what our consumer contract expected. We debugged this by writing a local simulation
script that replayed the upkeep call before deploying to Base Sepolia.

2. Qwen 3 235B JSON Schema Validation

The LLM occasionally returned reasoning text wrapped around the JSON payload, or
used slightly different key names. This caused silent failures in the yield execution
pipeline. We solved it by adding a strict JSON extraction step with regex fallback,
and a Zod schema validator that rejects malformed responses before they reach the
on-chain execution layer.

3. SSR + Wagmi / RainbowKit on Astro

Astro's server-side rendering conflicted with Wagmi's client-side wallet hooks.
Components using useAccount or useConnect would throw hydration mismatches.
The fix was isolating all wallet-dependent components as Astro islands with
client:load, and wrapping them in a custom WagmiProvider that only initializes
on the client.

4. Auto-redirect Loop on Landing Page

After fixing the wallet connect flow, users who were already connected would get
silently redirected to /dashboard within 2–3 seconds of landing on the homepage.
The bug was in WalletConnect.tsx — a useEffect watching isConnected was
triggering window.location.href = '/dashboard' on every render. We removed the
auto-redirect entirely and replaced it with a visible "Dashboard" button that appears
when the wallet is connected, giving users full control.

5. IndexedDB Persistence Across Dashboard Pages

Each dashboard page is a separate Astro route with its own HTML shell. Sharing
IndexedDB state (transaction history, risk profile) across pages required a
consistent DB schema and careful versioning. We centralized all DB access in
src/lib/db.ts with a single openDB call and versioned object stores, ensuring
no migration conflicts between page navigations.

Cheer Project

Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.

Discussion

Builders also viewed

See more projects on Devfolio