Skip to content
Mythos

Mythos

AI-NATIVE AGENTIC LENDING PROTOCOL

Created on 20th April 2026

•

Mythos

Mythos

AI-NATIVE AGENTIC LENDING PROTOCOL

The problem Mythos solves

DeFi Lending is Broken — It Still Needs Humans

Traditional DeFi lending protocols (Aave, Compound, etc.) fix interest rates algorithmically with no room for negotiation, or rely on humans to manually accept/reject loan terms. This creates three problems:

  • No personalization — your credit history and collateral quality don't affect your rate.
  • Slow settlement — human-in-the-loop approvals delay disbursement.
  • No machine-native payments — AI agents can't autonomously pay for the services they consume.

What Mythos Does

Mythos is an AI-native agentic lending protocol on Solana where two autonomous AI agents — Lenny (borrower) and Luna (lender) — negotiate your interest rate in real time, pay each other for AI services via x402 USDC micropayments, and settle the final loan entirely on-chain through an Anchor smart contract — with zero human clicks.

  • 🤝 For borrowers: Get a personalized interest rate negotiated on your behalf based on your on-chain credit attestation (SAS) and live collateral prices (Jupiter).
  • 🏦 For lenders/protocols: Automate risk pricing and loan acceptance without manual review queues.
  • 🤖 For AI agent developers: See the first live implementation of x402 (HTTP 402 Payment Required) gating AI-to-AI service calls on Solana — agents autonomously pay each other in USDC.
  • ⚡ For the DeFi ecosystem: Replace opaque credit bureaus with verifiable on-chain credit identity via Solana Attestation Service (SAS) PDAs.

Result: A loan goes from request → negotiation → on-chain settlement in under 400ms, with every step auditable on Solana Devnet.

Challenges we ran into

  1. Anchor Program Compilation with cargo-build-sbf

Compiling the Anchor program against Solana’s BPF target (sbf-solana-solana) was a major hurdle. The cargo-build-sbf toolchain is tightly coupled to a specific Agave SDK version, and mismatched Rust nightly versions caused opaque linker errors.
Solution: We pinned the toolchain in rust-toolchain.toml to stable 1.95 and locked Agave to 3.1.13, ensuring consistent and reproducible builds.

  1. x402 Payment Verification on Devnet

Verifying USDC micropayments required parsing postTokenBalances from Helius getTransaction responses. These responses are deeply nested, inconsistently ordered, and differ between simulated and real transactions.
Solution: We implemented a robust parser that matches token balances using the mint address instead of index positions. Additionally, we introduced a fallback demo mode so the app remains fully functional even without a Helius API key.

  1. CrewAI Agent Orchestration + Real-Time Streaming

Enabling agents (Lenny and Luna) to exchange structured JSON counter-offers while streaming negotiation rounds live to the frontend posed synchronization challenges. CrewAI’s callback system does not natively align with FastAPI’s async event loop.
Solution: We used a shared asyncio.Queue to decouple agent execution from WebSocket communication. This allowed smooth real-time streaming of each negotiation round to the frontend.

  1. Phantom Wallet Integration in Demo Mode

Not all hackathon judges have a Devnet-funded Phantom wallet, which created friction in demonstrating the full workflow.
Solution: We built a DEMO_MODE using a pre-funded backend signer keypair. This enables judges to trigger the entire flow with a single click—covering agent negotiation, x402 payments, and Anchor instructions—with simulated signatures clearly labeled.

  1. Clear Separation of Simulated vs. Real Flows

It was critical to ensure transparency between real and simulated components.
Solution:

All simulated transaction signatures are prefixed with SIM_*
API responses include a "demo": true flag
The README provides a clear mapping of features (real vs. simulated) along with environment variables required to switch to full production mode

Tracks Applied (1)

Best Use of Solana

| Hackathon Alignment | Evidence | |---|---| | Solana scalability | Anchor program live on Devnet (FGG836...), Helius RP...Read More
Solana

Solana

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