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...
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:
POST /api/earn/chatPOST /api/earn/quoteLI.FI Earn -> USDC Vault Discovery -> Composer Deposit FlowPut 1 USDC into the safest vault on BaseFind the best USDC vault on ArbitrumDeposit 5 USDC into the best LI.FI Earn vaultUse Agentic Wallet to deposit into a vaultUSDC if providedBase, Arbitrum, Ethereum) if providedsafe, balanced, degen)bash
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"}'
Base the answer on the returned JSON. The most important fields are:
messagethoughtsdata.filtersdata.action.modedata.action.summarydata.action.rationaledata.action.selectedVaultIdquote.vaultsTreat the first recommended vault as the default execution target unless the user asks to compare options first.
If the user wants to execute now, prepare the Composer deposit quote:
bash
curl -sS -X POST https://app.miraix.fun/api/earn/quote \
-H 'Content-Type: application/json' \
-d '{
"chainId":8453,
"vaultAddress":"<vault-address>",
"walletAddress":"<wallet-address>",
"fromAmount":"1000000",
"fromTokenAddress":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}'
estimate.approvalAddress is present and allowance is insufficient.Deposited 1 USDC into Spark USDC Vault on Base. Expected receipt: sparkUSDC in the same wallet.sparkUSDC is the vault receipt token that represents the deposited position.