Coding

Miraix LI.FI Earn Agent

Try it

Use this skill when the user wants to discover the best USDC vaults with LI.FI Earn, ask an agent to choose a safe vault on Base/Arbitrum/Ethereum, prepare a...

What it does

Use this skill for Miraix AI yield actions powered by and when the user wants an agent to move from intent to deposit.

The skill document

Miraix LI.FI Earn Agent

Use this skill for Miraix AI yield actions powered by LI.FI Earn and Composer when the user wants an agent to move from intent to deposit.

Relevant product surfaces:

  • Earn discovery API: POST /api/earn/chat
  • Composer quote API: POST /api/earn/quote
  • Miraix UI: LI.FI Earn -> USDC Vault Discovery -> Composer Deposit Flow

When to use it

  • The user says things like:
    • Put 1 USDC into the safest vault on Base
    • Find the best USDC vault on Arbitrum
    • Deposit 5 USDC into the best LI.FI Earn vault
    • Use Agentic Wallet to deposit into a vault
  • The user wants an agent to recommend a vault and prepare a deposit instead of manually comparing vault cards.
  • The user wants to know where deposited funds went and which receipt token they now hold.

Workflow

  1. Extract:
    • amount in USDC if provided
    • preferred chain (Base, Arbitrum, Ethereum) if provided
    • risk mode if provided (safe, balanced, degen)
  2. Call the Miraix Earn discovery endpoint:
curl -sS -X POST https://app.miraix.fun/api/earn/chat \
  -H 'Content-Type: application/json' \
  -d '{"message":"Put 1 USDC into the safest vault on Base"}'
  1. Base the answer on the returned JSON. The most important fields are:

    • message
    • thoughts
    • data.filters
    • data.action.mode
    • data.action.summary
    • data.action.rationale
    • data.action.selectedVaultId
    • quote.vaults
  2. Treat the first recommended vault as the default execution target unless the user asks to compare options first.

  3. If the user wants to execute now, prepare the Composer deposit quote:

curl -sS -X POST https://app.miraix.fun/api/earn/quote \
  -H 'Content-Type: application/json' \
  -d '{
    "chainId":8453,
    "vaultAddress":"",
    "walletAddress":"",
    "fromAmount":"1000000",
    "fromTokenAddress":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
  }'
  1. For execution:

    • Prefer an embedded or Agentic Wallet connected in Miraix.
    • Execute approval first if estimate.approvalAddress is present and allowance is insufficient.
    • Execute the Composer deposit transaction.
  2. After a successful deposit, explain:

    • which vault received the funds
    • which chain the funds were deposited on
    • which receipt token or position token was received
    • that the receipt token remains in the same wallet

Output guidance

  • Keep the answer action-oriented.
  • When recommending a vault, include:
    • vault name
    • chain
    • protocol
    • APY
    • why it was selected
  • When deposit execution succeeds, use plain language:
    • Deposited 1 USDC into Spark USDC Vault on Base. Expected receipt: sparkUSDC in the same wallet.
  • Explain receipt tokens in simple language:
    • sparkUSDC is the vault receipt token that represents the deposited position.
  • If live discovery falls back to seeded vaults, say that clearly instead of pretending the list is live.
  • If gas is insufficient, say that the wallet needs more native gas token on the target chain before the deposit can proceed.

Related skills

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai22 installs8 stars

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván559 installs18 stars

Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.

by nssa.io1.0k installs47 stars

Fetch raw ad creative, app, ranking, and revenue data from AdMapix as structured JSON.

by fly0pants4.3k installs296 stars

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván855 installs69 stars

More from richard7463

Browse all skills

Run an executable X Layer pre-execution guard for autonomous agents: OnchainOS DEX route judgment, honeypot and price-impact checks, proof-mode evidence, and...

by richard746314 installs

Use this skill when the user wants to put a Solana wallet on trial, identify the action most likely to cause regret tomorrow, return a verdict, and only then...

by richard746313 installs

Use this skill when the user wants a single approved onchain order for a Solana wallet, one explicit forbidden order, a quote-backed execution preview, or a...

by richard746316 installs

Use this skill when the user wants to run Miraix Meme Court, shortlist Solana meme candidates, apply Rug Court safety and liquidity checks, approve one disci...

by richard746314 installs

Use this skill when the user wants to install Miraix Agent Arena in OpenClaw, bind an Arena pair code, turn a natural-language trading idea into an Arena-rea...

by richard746318 installs