[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6Q56Q2DTRHRCN0SB93C7233":3,"skill-same:01M6Q56Q2DTRHRCN0SB93C7233":284},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":71,"commitSha":72,"skillDirectory":73,"forksCount":74,"repositoryHtmlUrl":75,"repositoryHomepageUrl":6,"ownerHtmlUrl":76,"ownerBlogUrl":6,"ownerDescription":77,"updatedAt":78,"install":79,"resources":92},"01M6Q56Q2DTRHRCN0SB93C7233","amped-defi",null,"25 DeFi tools for cross-chain swaps, bridging, and money market operations via SODAX SDK. Supply on Chain A, borrow to Chain B. Supports Ethereum, Arbitrum, Base, Optimism, Avalanche, BSC, Polygon, Sonic, LightLink, HyperEVM, Kaia.","Kernel8901\u002Fai-agent-skills-classification","Kernel8901","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F72647553?v=4","01M6KV388J2H5PNC8D8P940BJD","01M6KV38CS5B3AY63RKZB410YM",7,"MIT","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"defi","amped defi","money","for","bsc","wallets","supply","mm","avalanche","tokens","swaps","status","Wallet","remove","cross-chain","bridge","user","list","intents","create","2026-11-10 10:12:30",false,"---\nname: amped-defi\ndescription: 25 DeFi tools for cross-chain swaps, bridging, and money market operations via SODAX SDK. Supply on Chain A, borrow to Chain B. Supports Ethereum, Arbitrum, Base, Optimism, Avalanche, BSC, Polygon, Sonic, LightLink, HyperEVM, Kaia.\nversion: 1.0.0\nauthor: Amped Finance\ntools:\n  # Discovery Tools (7)\n  - amped_supported_chains\n  - amped_supported_tokens\n  - amped_wallet_address\n  - amped_money_market_reserves\n  - amped_money_market_positions\n  - amped_cross_chain_positions\n  - amped_user_intents\n  # Swap Tools (4)\n  - amped_swap_quote\n  - amped_swap_execute\n  - amped_swap_status\n  - amped_swap_cancel\n  # Bridge Tools (3)\n  - amped_bridge_discover\n  - amped_bridge_quote\n  - amped_bridge_execute\n  # Money Market Tools (6)\n  - amped_mm_supply\n  - amped_mm_withdraw\n  - amped_mm_borrow\n  - amped_mm_repay\n  - amped_mm_create_supply_intent\n  - amped_mm_create_borrow_intent\n  # Wallet Management Tools (5)\n  - amped_list_wallets\n  - amped_add_wallet\n  - amped_rename_wallet\n  - amped_remove_wallet\n  - amped_set_default_wallet\n---\n\n# Amped DeFi Skill\n\n## Overview\n\nThe **Amped DeFi** skill provides on-chain DeFi operations capabilities for agents, enabling seamless **swaps**, **bridging**, and **money market** (supply\u002Fborrow\u002Frepay\u002Fwithdraw) actions across multiple chains using the SODAX SDK. This skill abstracts the complexity of cross-chain intent flows, allowance handling, and policy enforcement, allowing agents to execute DeFi operations safely and efficiently.\n\n**Key capabilities:**\n- Cross-chain and same-chain token swaps via solver network\n- Token bridging between spoke chains and the Sonic hub chain\n- **Cross-chain money market operations** - supply on one chain, borrow to another!\n- Money market operations (supply, withdraw, borrow, repay) with position tracking\n- Policy enforcement (spend limits, slippage caps, allowlists)\n- Support for both execution mode (agent signs) and prepare mode (unsigned txs for external signing)\n\n## Tool Categories\n\n### Discovery Tools\n\nUse these tools to explore supported chains, tokens, and wallet state before executing operations.\n\n| Tool | Purpose |\n|------|---------|\n| `amped_supported_chains` | List all supported spoke chains (e.g., ethereum, arbitrum, sonic) |\n| `amped_supported_tokens` | Get supported tokens for a specific module (swaps\u002Fbridge\u002FmoneyMarket) on a chain |\n| `amped_wallet_address` | Resolve wallet address by walletId (validates private key ↔ address match in execute mode) |\n| `amped_money_market_reserves` | View available money market reserves (collateral\u002Fborrow markets) |\n| `amped_money_market_positions` | View user's money market positions on a SINGLE chain |\n| `amped_cross_chain_positions` | **RECOMMENDED**: View aggregated positions across ALL chains with total supply\u002Fborrow, health factor, borrowing power, net APY, and risk metrics |\n| `amped_user_intents` | Query user's swap\u002Fbridge intent history from SODAX backend API. Shows open, filled, cancelled intents with full event details. |\n\n**When to use:** Always start with discovery tools to verify chain\u002Ftoken support before attempting any operation.\n\n### User Intent History (SODAX API)\n\nQuery the SODAX backend API to retrieve complete intent history for a wallet:\n\n```\n→ amped_user_intents(\n    walletId=\"main\",\n    status=\"all\",     \u002F\u002F \"all\", \"open\", or \"closed\"\n    limit=10,         \u002F\u002F Number of results (max 100)\n    offset=0          \u002F\u002F For pagination\n  )\n← Returns: {\n    pagination: { total: 1545, offset: 0, limit: 10, hasMore: true },\n    intents: [\n      {\n        intentHash: \"0x5b18d04a545f089e6de59106fa79498cfc0b0274...\",\n        txHash: \"0x1c4a8ded456b97ba9fa2b95ee954ed7e92a40365...\",\n        chainId: 146,\n        blockNumber: 57622027,\n        status: \"closed\",\n        createdAt: \"2025-12-10T19:44:00.380Z\",\n        input: { token: \"0x654D...\", amount: \"10000000000000000000\", chainId: 1768124270 },\n        output: { token: \"0x9Ee1...\", minAmount: \"78684607057391028830\", chainId: 5 },\n        deadline: \"2026-12-10T19:48:32.000Z\",\n        events: [\n          { type: \"intent-filled\", txHash: \"0x7981...\", blockNumber: 57622086, ... }\n        ]\n      }\n    ],\n    summary: { totalIntents: 1545, returned: 10, openIntents: 3, closedIntents: 1537 }\n  }\n```\n\n**When to use:**\n- Track status of pending swap\u002Fbridge operations\n- View historical intent execution history\n- Debug failed or cancelled intents\n- Monitor solver performance and fill rates\n\n### Swap Tools\n\nCross-chain and same-chain token swaps via SODAX's intent-based solver network.\n\n| Tool | Purpose |\n|------|---------|\n| `amped_swap_quote` | Get an exact-in or exact-out swap quote with slippage and fee estimates |\n| `amped_swap_execute` | Execute a swap (handles allowance, approval, and execution automatically) |\n| `amped_swap_status` | Check the status of a swap transaction or intent |\n| `amped_swap_cancel` | Cancel an active swap intent (where supported) |\n\n**When to use swaps:**\n- Exchanging one token for another on the same chain\n- Cross-chain swaps (e.g., USDC on Ethereum → USDT on Arbitrum)\n- When you need competitive pricing via solver competition\n\n**When NOT to use swaps:**\n- Moving the same token across chains (use bridge tools instead)\n- Borrowing\u002Flending operations (use money market tools instead)\n\n### Bridge Tools\n\nBridge tokens between chains via the swap infrastructure.\n\n> **Note:** In SODAX, bridges and cross-chain swaps use the same underlying intent-based messaging system. The `amped_bridge_execute` tool internally delegates to the swap infrastructure, which provides better routing and reliability.\n>\n> **Recommendation:** Use cross-chain swaps (`amped_swap_quote` + `amped_swap_execute`) directly for bridging. You can swap USDC on one chain directly to native tokens (ETH, AVAX, POL, etc.) on another chain in a single operation.\n\n| Tool | Purpose |\n|------|---------|\n| `amped_bridge_discover` | Discover bridgeable tokens between two chains |\n| `amped_bridge_quote` | Check bridgeability, limits, and max bridgeable amount |\n| `amped_bridge_execute` | Execute bridge (delegates to swap infrastructure) |\n\n**When to use bridging\u002Fcross-chain swaps:**\n- Moving tokens from one chain to another (e.g., USDC on Base → ETH on Arbitrum)\n- Getting native gas tokens on a new chain (e.g., USDC → POL on Polygon)\n- Transferring assets to\u002Ffrom the Sonic hub chain\n\n**Preferred approach for gas distribution:**\n```\n\u002F\u002F Get gas tokens on multiple chains from a single source\n→ amped_swap_quote(srcChainId=\"base\", dstChainId=\"polygon\", srcToken=\"USDC\", dstToken=\"POL\", amount=\"0.5\", ...)\n→ amped_swap_execute(quote)\n\u002F\u002F Result: 0.5 USDC on Base → ~4 POL on Polygon\n```\n\n### Money Market Tools\n\nSupply, borrow, repay, and withdraw assets from the SODAX money market with **cross-chain capabilities**.\n\n| Tool | Purpose |\n|------|---------|\n| `amped_mm_supply` | Supply tokens as collateral to the money market. Supports cross-chain supply. |\n| `amped_mm_withdraw` | Withdraw supplied tokens from the money market. Supports cross-chain withdraw. |\n| `amped_mm_borrow` | Borrow tokens against supplied collateral. **KEY FEATURE: Can borrow to a different chain!** |\n| `amped_mm_repay` | Repay borrowed tokens. Use amount='-1' or repayAll=true for full repay. |\n| `amped_mm_create_supply_intent` | [Advanced] Create a supply intent without executing (for custom flows) |\n| `amped_mm_create_borrow_intent` | [Advanced] Create a borrow intent without executing (supports cross-chain) |\n\n**Cross-Chain Money Market Capabilities:**\n\nThe SODAX money market supports powerful cross-chain operations:\n\n1. **Cross-Chain Borrow** (Most powerful feature)\n   - Supply collateral on Chain A (e.g., Ethereum)\n   - Borrow tokens to Chain B (e.g., Arbitrum)\n   - Your collateral stays on Chain A, but you receive borrowed tokens on Chain B\n   - Use `dstChainId` parameter to specify the destination chain\n\n2. **Cross-Chain Supply**\n   - Supply tokens on Chain A\n   - Collateral is recorded on Chain B (if different)\n   - Use `dstChainId` parameter\n\n3. **Cross-Chain Withdraw**\n   - Withdraw collateral from Chain A\n   - Receive tokens on Chain B\n   - Use `dstChainId` parameter\n\n**When to use money market:**\n- Earning yield by supplying assets\n- Borrowing against existing collateral\n- **Accessing liquidity on Chain B without moving collateral from Chain A**\n- Arbitraging interest rates across chains\n- Managing leveraged positions\n- Repaying debt to improve health factor\n\n**When NOT to use money market:**\n- Simple token exchanges (use swap tools)\n- Moving assets across chains without borrowing (use bridge tools)\n\n### Wallet Management Tools\n\nManage multiple wallets with nicknames for easy identification.\n\n| Tool | Purpose |\n|------|---------|\n| `amped_list_wallets` | List all configured wallets with their nicknames and addresses |\n| `amped_add_wallet` | Add a new wallet with a nickname (supports private key or Bankr wallets) |\n| `amped_rename_wallet` | Rename an existing wallet's nickname |\n| `amped_remove_wallet` | Remove a wallet from configuration |\n| `amped_set_default_wallet` | Set which wallet is used by default for operations |\n\n**When to use wallet management:**\n- Setting up multiple wallets for different purposes (trading, holding, testing)\n- Organizing wallets with memorable nicknames instead of addresses\n- Switching between wallets for different operations\n- Managing a portfolio across multiple addresses\n\n**Example workflow:**\n```\n1. amped_add_wallet(nickname=\"trading\", address=\"0x...\", privateKey=\"0x...\")\n2. amped_add_wallet(nickname=\"vault\", address=\"0x...\")\n3. amped_set_default_wallet(nickname=\"trading\")\n4. amped_list_wallets()  \u002F\u002F Shows all wallets with default indicator\n5. amped_swap_execute(walletId=\"trading\", ...)  \u002F\u002F Uses trading wallet\n```\n\n## Safety Rules\n\n⚠️ **MUST FOLLOW — These rules are enforced by the Policy Engine:**\n\n1. **Always get a quote before executing**\n   - Never execute a swap without first calling `amped_swap_quote`\n   - Never execute a bridge without first calling `amped_bridge_quote`\n   - Review the quote output for acceptable slippage and output amounts\n\n2. **Verify chain and token are supported**\n   - Call `amped_supported_chains` and `amped_supported_tokens` before operations\n   - Unsupported chains\u002Ftokens will return clear errors\n\n3. **Check slippage is within acceptable bounds**\n   - Slippage is specified in basis points (bps): 100 bps = 1%\n   - Default max slippage: 100 bps (1%)\n   - Quotes with slippage exceeding configured caps will be rejected\n   - Policy violations return structured errors with remediation guidance\n\n4. **Never attempt to drain entire wallet**\n   - Leave sufficient balance for gas fees\n   - Spend limits are enforced per-transaction and per-day\n   - Policy caps: `maxSwapInputUsd`, `maxBridgeAmountToken`, `maxBorrowUsd`\n\n5. **Always verify transaction status after execution**\n   - Use `amped_swap_status` to track swap completion\n   - Check `amped_money_market_positions` to verify position updates\n   - Never assume success based on transaction hash alone\n\n6. **Enforce allowlist compliance**\n   - Only operate on `allowedChains` and `allowedTokensByChain` per policy\n   - Blocked recipients are rejected\n   - Policy failures return structured errors with remediation text\n\n7. **Simulation is enabled by default**\n   - `skipSimulation=false` unless operator override\n   - Simulations catch revert conditions before broadcast\n\n8. **Monitor health factor for money market positions**\n   - Health factor \u003C 1.0 = liquidation risk\n   - Keep health factor > 1.5 for safety margin\n   - Use `amped_money_market_positions` to monitor\n\n## Parameter Conventions\n\n### Amount Units\n- **Amounts are in human-readable units** (e.g., `\"100\"` for 100 USDC, `\"0.5\"` for 0.5 ETH)\n- The SDK internally converts to raw units using token decimals from SODAX config\n- Examples:\n  - `\"1000\"` USDC (USDC has 6 decimals) → 1000000000 raw units\n  - `\"1.5\"` ETH (ETH has 18 decimals) → 1500000000000000000 raw units\n\n### Slippage (Basis Points)\n- Slippage is specified in **basis points (bps)** where 100 bps = 1%\n- Common values:\n  - `50` = 0.5% (tight, for stable pairs)\n  - `100` = 1% (standard)\n  - `300` = 3% (volatile pairs or cross-chain)\n- Quotes exceeding configured `maxSlippageBps` will be rejected\n\n### Chain Identifiers\n- Chain IDs are **string identifiers**, not numeric chain IDs:\n  - `\"ethereum\"` (Ethereum mainnet)\n  - `\"arbitrum\"` (Arbitrum One)\n  - `\"sonic\"` (Sonic hub chain)\n  - `\"base\"` (Base)\n  - `\"optimism\"` (Optimism)\n  - `\"avalanche\"` (Avalanche)\n  - `\"bsc\"` (BNB Smart Chain)\n\n### Token Addresses\n- Token addresses should be **checksum addresses** (mixed-case per EIP-55)\n- Examples:\n  - `\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\"` (USDC on Ethereum)\n  - `\"0x4200000000000000000000000000000000000006\"` (WETH on Base)\n\n### Wallet Identification\n- All execute tools require a `walletId` string\n- Wallet resolution is by ID; private keys are never exposed in tool parameters\n\n### Optional Parameters\n- `recipient`: Optional destination address (defaults to wallet address)\n- `timeoutMs`: Optional operation timeout in milliseconds\n- `policyId`: Optional policy profile selector for custom limits\n- `dstChainId`: **For cross-chain money market** - destination chain for the operation\n\n## Workflows\n\n### Swap Workflow\n\nComplete workflow for executing a token swap:\n\n```\nStep 1: Discovery (if needed)\n  → amped_supported_chains\n  → amped_supported_tokens(module=\"swaps\", chainId=\"ethereum\")\n\nStep 2: Get Quote\n  → amped_swap_quote(\n      walletId=\"main\",\n      srcChainId=\"ethereum\",\n      dstChainId=\"arbitrum\",\n      srcToken=\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\",\n      dstToken=\"0xaf88d065e77c8cC2239327C5EDb3A432268e5831\",\n      amount=\"1000\",\n      type=\"exact_input\",\n      slippageBps=100\n    )\n  ← Returns: { quoteId, expectedOutput, slippageBps, fees, deadline }\n\nStep 3: Review Quote\n  ✓ Check slippageBps ≤ maxSlippageBps (configurable, default 100)\n  ✓ Verify expectedOutput meets requirements\n  ✓ Confirm fees are acceptable\n\nStep 4: Execute Swap\n  → amped_swap_execute(\n      walletId=\"main\",\n      quote=\u003Cquote from step 2>,\n      maxSlippageBps=100,\n      skipSimulation=false\n    )\n  ← Returns: { spokeTxHash, hubTxHash, intentHash, status }\n\nStep 5: Verify Status\n  → amped_swap_status(txHash=spokeTxHash)\n  ← Returns: { status, confirmations, filledAmount, remainingAmount }\n\nStep 6: Handle Failures (if needed)\n  → amped_swap_cancel(walletId=\"main\", intent=\u003Cintent>, srcChainId=\"ethereum\")\n```\n\n### Bridge Workflow\n\nComplete workflow for bridging tokens between chains:\n\n```\nStep 1: Discover Routes\n  → amped_bridge_discover(\n      srcChainId=\"ethereum\",\n      dstChainId=\"sonic\",\n      srcToken=\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\"\n    )\n  ← Returns: { bridgeableTokens: [...] }\n\nStep 2: Get Bridge Quote\n  → amped_bridge_quote(\n      srcChainId=\"ethereum\",\n      dstChainId=\"sonic\",\n      srcToken=\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\",\n      dstToken=\"0x29219dd400f2bf60e5a23d13be72b486d4038894\"\n    )\n  ← Returns: { isBridgeable: true, maxBridgeableAmount: \"1000000\" }\n\nStep 3: Review Limits\n  ✓ Verify isBridgeable === true\n  ✓ Check amount ≤ maxBridgeableAmount\n  ✓ Confirm amount within policy limits\n\nStep 4: Execute Bridge\n  → amped_bridge_execute(\n      walletId=\"main\",\n      srcChainId=\"ethereum\",\n      dstChainId=\"sonic\",\n      srcToken=\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\",\n      dstToken=\"0x29219dd400f2bf60e5a23d13be72b486d4038894\",\n      amount=\"5000\",\n      recipient=\"0x...\" \u002F\u002F optional, defaults to wallet\n    )\n  ← Returns: { spokeTxHash, hubTxHash }\n```\n\n### Money Market Supply Workflow\n\nComplete workflow for supplying to and monitoring money market positions:\n\n```\nStep 1: View Available Markets\n  → amped_money_market_reserves(chainId=\"sonic\")\n  ← Returns: { reserves: [\n      { token: \"USDC\", supplyAPY: \"4.5%\", totalSupplied: \"...\" },\n      { token: \"WETH\", supplyAPY: \"2.1%\", totalSupplied: \"...\" }\n    ]}\n\nStep 2: Check Current Positions (RECOMMENDED: use cross-chain view)\n  → amped_cross_chain_positions(walletId=\"main\")\n  ← Returns: { \n      summary: {\n        totalSupplyUsd: \"15000.00\",\n        totalBorrowUsd: \"5000.00\",\n        netWorthUsd: \"10000.00\",\n        availableBorrowUsd: \"7000.00\",\n        healthFactor: \"2.55\",\n        healthFactorStatus: { status: \"healthy\", color: \"green\" },\n        liquidationRisk: \"none\",\n        weightedSupplyApy: \"4.25%\",\n        weightedBorrowApy: \"3.50%\",\n        netApy: \"1.08%\"\n      },\n      chainBreakdown: [...],\n      collateralUtilization: {...},\n      riskMetrics: {...},\n      positions: [...],\n      recommendations: [\"? You have $7000.00 in available borrowing power.\"]\n    }\n\nStep 3: Supply Tokens\n  → amped_mm_supply(\n      walletId=\"main\",\n      chainId=\"sonic\",\n      token=\"0x29219dd400f2bf60e5a23d13be72b486d4038894\",\n      amount=\"1000\",\n      useAsCollateral=true  \u002F\u002F Use as collateral for borrowing\n    )\n  ← Returns: { txHash, spokeTxHash, hubTxHash }\n\nStep 4: Verify Position Update (cross-chain view)\n  → amped_cross_chain_positions(walletId=\"main\")\n  ← Returns: Updated positions reflecting the new supply across all chains\n```\n\n### Cross-Chain Positions View (Recommended)\n\nThe `amped_cross_chain_positions` tool provides a **unified portfolio view** across all chains. This is the recommended way to check money market positions.\n\n**What it shows:**\n- **Total Portfolio Summary**: Supply, borrow, net worth across ALL chains\n- **Health Metrics**: Health factor with status indicator, liquidation risk level\n- **Borrowing Power**: Available borrow amount based on collateral\n- **Yield Metrics**: Weighted supply\u002Fborrow APY, net APY\n- **Chain Breakdown**: Per-chain position summaries\n- **Collateral Utilization**: How much of your collateral is being used\n- **Risk Metrics**: Current LTV, buffer until liquidation, safe max borrow\n- **Personalized Recommendations**: AI-generated suggestions based on your position\n\n**Example Response:**\n```json\n{\n  \"success\": true,\n  \"walletId\": \"main\",\n  \"address\": \"0x...\",\n  \"timestamp\": \"2026-02-02T12:58:27.999Z\",\n  \"summary\": {\n    \"totalSupplyUsd\": \"25000.00\",\n    \"totalBorrowUsd\": \"8000.00\",\n    \"netWorthUsd\": \"17000.00\",\n    \"availableBorrowUsd\": \"12000.00\",\n    \"healthFactor\": \"2.65\",\n    \"healthFactorStatus\": { \"status\": \"healthy\", \"color\": \"green\" },\n    \"liquidationRisk\": \"none\",\n    \"weightedSupplyApy\": \"4.52%\",\n    \"weightedBorrowApy\": \"3.21%\",\n    \"netApy\": \"2.89%\"\n  },\n  \"chainBreakdown\": [\n    { \"chainId\": \"ethereum\", \"supplyUsd\": \"15000.00\", \"borrowUsd\": \"5000.00\", \"healthFactor\": \"2.80\" },\n    { \"chainId\": \"arbitrum\", \"supplyUsd\": \"5000.00\", \"borrowUsd\": \"2000.00\", \"healthFactor\": \"2.50\" },\n    { \"chainId\": \"sonic\", \"supplyUsd\": \"5000.00\", \"borrowUsd\": \"1000.00\", \"healthFactor\": \"5.00\" }\n  ],\n  \"collateralUtilization\": {\n    \"totalCollateralUsd\": \"20000.00\",\n    \"usedCollateralUsd\": \"8000.00\",\n    \"availableCollateralUsd\": \"12000.00\",\n    \"utilizationRate\": \"40.00%\"\n  },\n  \"riskMetrics\": {\n    \"maxLtv\": \"80.00%\",\n    \"currentLtv\": \"32.00%\",\n    \"bufferUntilLiquidation\": \"53.00%\",\n    \"safeMaxBorrowUsd\": \"13600.00\"\n  },\n  \"recommendations\": [\n    \"? You have $12000.00 in available borrowing power.\",\n    \"? You have positions across 3 chains. Monitor each chain's health factor independently.\"\n  ]\n}\n```\n\n**When to use:**\n- Always start here to get a complete picture of money market positions\n- Before any borrow\u002Fwithdraw operation to check health factor\n- To monitor portfolio performance across all chains\n- To identify opportunities (available borrowing power, low utilization)\n\n### Cross-Chain Money Market Borrow Workflow (Advanced)\n\n**Key Feature:** Borrow tokens to a different chain than where your collateral is supplied!\n\n```\nScenario: Supply USDC on Ethereum, borrow USDT to Arbitrum\n\nStep 1: Verify Collateral Position on Source Chain\n  → amped_money_market_positions(walletId=\"main\", chainId=\"ethereum\")\n  ← Returns: { positions: [...], totalCollateralUSD, availableBorrowUSD, healthFactor }\n\nStep 2: Check Borrow Capacity\n  ✓ Verify availableBorrowUSD > desired borrow amount\n  ✓ Check healthFactor will remain safe after borrow\n\nStep 3: Cross-Chain Borrow\n  → amped_mm_borrow(\n      walletId=\"main\",\n      chainId=\"ethereum\",        \u002F\u002F Source chain (where collateral is)\n      dstChainId=\"arbitrum\",     \u002F\u002F Destination chain (where you receive borrowed tokens)\n      token=\"0xaf88d065e77c8cC2239327C5EDb3A432268e5831\",  \u002F\u002F USDT on Arbitrum\n      amount=\"500\",\n      interestRateMode=2         \u002F\u002F Variable rate\n    )\n  ← Returns: { \n      txHash, \n      spokeTxHash,               \u002F\u002F On Ethereum (source)\n      hubTxHash, \n      dstSpokeTxHash,            \u002F\u002F On Arbitrum (destination)\n      isCrossChain: true \n    }\n\nStep 4: Verify Position\n  → amped_money_market_positions(walletId=\"main\", chainId=\"ethereum\")\n  ← Returns: Updated positions with new borrow recorded\n\nStep 5: Verify Received Tokens on Destination Chain\n  → amped_wallet_address(walletId=\"main\")\n  ← Check USDT balance on Arbitrum via external means or position query\n```\n\n### Cross-Chain Money Market Supply Workflow\n\n```\nScenario: Supply tokens on Arbitrum, collateral recorded on Sonic\n\nStep 1: Supply with Cross-Chain Flag\n  → amped_mm_supply(\n      walletId=\"main\",\n      chainId=\"arbitrum\",        \u002F\u002F Source chain (where tokens are)\n      dstChainId=\"sonic\",        \u002F\u002F Destination chain (where collateral is recorded)\n      token=\"0xaf88d065e77c8cC2239327C5EDb3A432268e5831\",\n      amount=\"1000\",\n      useAsCollateral=true\n    )\n  ← Returns: {\n      txHash,\n      isCrossChain: true,\n      message: \"Tokens supplied on arbitrum. Collateral available on sonic.\"\n    }\n\nStep 2: Verify on Destination Chain\n  → amped_money_market_positions(walletId=\"main\", chainId=\"sonic\")\n  ← Returns: Collateral should appear on Sonic\n```\n\n### Money Market Repay Workflow\n\nComplete workflow for repaying borrowed tokens:\n\n```\nStep 1: Check Borrow Position\n  → amped_money_market_positions(walletId=\"main\", chainId=\"sonic\")\n  ← Returns: { positions: [...], totalBorrowUSD, healthFactor }\n\nStep 2: Repay (Full or Partial)\n  Option A - Partial Repay:\n  → amped_mm_repay(\n      walletId=\"main\",\n      chainId=\"sonic\",\n      token=\"0x...\",\n      amount=\"500\"\n    )\n  \n  Option B - Full Repay:\n  → amped_mm_repay(\n      walletId=\"main\",\n      chainId=\"sonic\",\n      token=\"0x...\",\n      amount=\"-1\",        \u002F\u002F Special value for max\n      repayAll=true\n    )\n\nStep 3: Verify Repayment\n  → amped_money_market_positions(walletId=\"main\", chainId=\"sonic\")\n  ← Returns: Updated positions with reduced borrow, improved healthFactor\n```\n\n### Money Market Withdraw Workflow\n\nComplete workflow for withdrawing supplied tokens:\n\n```\nStep 1: Check Position and Available Liquidity\n  → amped_money_market_positions(walletId=\"main\", chainId=\"sonic\")\n  ← Verify: withdrawal won't cause healthFactor to drop below safe level\n  ← Verify: sufficient available liquidity in reserve\n\nStep 2: Withdraw\n  → amped_mm_withdraw(\n      walletId=\"main\",\n      chainId=\"sonic\",\n      token=\"0x...\",\n      amount=\"500\",\n      withdrawType=\"default\"  \u002F\u002F Options: default, collateral, all\n    )\n  ← Returns: { txHash, spokeTxHash, hubTxHash }\n\nStep 3: Verify Withdrawal\n  → amped_money_market_positions(walletId=\"main\", chainId=\"sonic\")\n  ← Returns: Updated positions with reduced supply\n```\n\n## Cross-Chain Money Market Examples\n\n### Example 1: Supply on Ethereum, Borrow to Base\n\n```\nUser: \"I have USDC on Ethereum. I want to borrow USDC on Base without moving my collateral.\"\n\nAgent actions:\n1. Check positions on Ethereum\n   → amped_money_market_positions(walletId=\"main\", chainId=\"ethereum\")\n\n2. Supply USDC on Ethereum\n   → amped_mm_supply(\n       walletId=\"main\",\n       chainId=\"ethereum\",\n       token=\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\",\n       amount=\"10000\",\n       useAsCollateral=true\n     )\n\n3. Cross-chain borrow to Base\n   → amped_mm_borrow(\n       walletId=\"main\",\n       chainId=\"ethereum\",        \u002F\u002F Collateral is here\n       dstChainId=\"base\",         \u002F\u002F Receive borrowed tokens here\n       token=\"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\",  \u002F\u002F USDC on Base\n       amount=\"5000\",\n       interestRateMode=2\n     )\n\n4. Verify positions\n   → amped_money_market_positions(walletId=\"main\", chainId=\"ethereum\")\n   → amped_money_market_positions(walletId=\"main\", chainId=\"base\")\n```\n\n### Example 2: Cross-Chain Withdraw\n\n```\nUser: \"I have collateral on Sonic but I want to withdraw to Arbitrum.\"\n\nAgent actions:\n→ amped_mm_withdraw(\n    walletId=\"main\",\n    chainId=\"sonic\",             \u002F\u002F Collateral source\n    dstChainId=\"arbitrum\",       \u002F\u002F Token destination\n    token=\"0x...\",\n    amount=\"1000\"\n  )\n```\n\n## Configuration\n\n### Environment Variables\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| `AMPED_OC_MODE` | Operation mode: `'execute'` (agent signs) or `'prepare'` (returns unsigned txs) | `execute` |\n| `AMPED_OC_WALLETS_JSON` | JSON map of wallet configurations keyed by walletId | `{}` |\n| `AMPED_OC_RPC_URLS_JSON` | JSON map of RPC URLs by chainId | `{}` |\n| `AMPED_OC_LIMITS_JSON` | Policy limits configuration | `{}` |\n| `AMPED_OC_SODAX_DYNAMIC_CONFIG` | Enable dynamic config via `sodax.initialize()` | `false` |\n\n### Wallet Configuration (`AMPED_OC_WALLETS_JSON`)\n\n```json\n{\n  \"main\": {\n    \"address\": \"0x...\",\n    \"privateKey\": \"0x...\"  \u002F\u002F Required for execute mode\n  },\n  \"trading\": {\n    \"address\": \"0x...\",\n    \"privateKey\": \"0x...\"\n  }\n}\n```\n\n**Security:** Private keys are never logged. In prepare mode, only address is required.\n\n### Policy Limits (`AMPED_OC_LIMITS_JSON`)\n\n```json\n{\n  \"maxSwapInputUsd\": 10000,\n  \"maxBridgeAmountToken\": {\n    \"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\": 50000\n  },\n  \"maxBorrowUsd\": 5000,\n  \"maxSlippageBps\": 100,\n  \"allowedChains\": [\"ethereum\", \"arbitrum\", \"sonic\", \"base\"],\n  \"allowedTokensByChain\": {\n    \"ethereum\": [\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\", \"0x...\"]\n  },\n  \"blockedRecipients\": [\"0x...\"]\n}\n```\n\n### RPC Configuration (`AMPED_OC_RPC_URLS_JSON`)\n\n```json\n{\n  \"ethereum\": \"https:\u002F\u002Feth-mainnet.g.alchemy.com\u002Fv2\u002F...\",\n  \"arbitrum\": \"https:\u002F\u002Farb-mainnet.g.alchemy.com\u002Fv2\u002F...\",\n  \"base\": \"https:\u002F\u002Fbase-mainnet.g.alchemy.com\u002Fv2\u002F...\",\n  \"sonic\": \"https:\u002F\u002Frpc.soniclabs.com\"\n}\n```\n\n## Error Handling\n\n### Policy Violations\n\nPolicy violations return structured errors with:\n- `code`: Error code (e.g., `POLICY_SLIPPAGE_EXCEEDED`)\n- `message`: Human-readable description\n- `remediation`: Suggested action to resolve\n- `current`: Current value that violated policy\n- `limit`: Configured limit\n\n### Common Error Codes\n\n| Code | Description | Remediation |\n|------|-------------|-------------|\n| `POLICY_SLIPPAGE_EXCEEDED` | Quote slippage exceeds maxSlippageBps | Increase maxSlippageBps or wait for better conditions |\n| `POLICY_SPEND_LIMIT_EXCEEDED` | Amount exceeds per-transaction or daily limit | Reduce amount or request limit increase |\n| `POLICY_CHAIN_NOT_ALLOWED` | Chain not in allowedChains | Add chain to allowedChains or use different chain |\n| `POLICY_TOKEN_NOT_ALLOWED` | Token not in allowedTokensByChain | Add token to allowlist or use different token |\n| `INSUFFICIENT_BALANCE` | Wallet balance \u003C requested amount | Reduce amount or fund wallet |\n| `INSUFFICIENT_ALLOWANCE` | Token allowance \u003C requested amount | Tool will auto-approve, or approve manually |\n| `QUOTE_EXPIRED` | Quote deadline has passed | Get fresh quote |\n| `BRIDGE_NOT_AVAILABLE` | Token pair not bridgeable | Use swap for different tokens or different route |\n| `MM_HEALTH_FACTOR_LOW` | Operation would cause liquidation risk | Repay debt or add collateral first |\n| `MM_CROSS_CHAIN_NOT_SUPPORTED` | Cross-chain operation not supported for this pair | Use same-chain operation or different token\u002Fchain |\n\n## Idempotency and Retries\n\n### Client Operation ID\n\nExecute tools accept an optional `clientOperationId` parameter for idempotency:\n- Duplicate operations with the same ID within the cache window return the cached result\n- Prevents duplicate broadcasts on retries\n- Recommended for automated workflows\n\n### Retry Guidance\n\n- **Read operations** (quotes, status, positions): Safe to retry with exponential backoff\n- **Write operations** (execute, supply, borrow): Use `clientOperationId` to prevent duplicates\n- **Timeout handling**: Bridge and money market operations specify timeouts; respect SDK defaults\n\n## Security Model\n\n### Key Segregation\n\n- Each agent workspace has distinct wallet configurations\n- Spoke providers are cached per `walletId` and never shared across agents\n- Private keys are resolved by `walletId` only; never passed as parameters\n\n### Execution vs Prepare Mode\n\n| Mode | Signing | Use Case |\n|------|---------|----------|\n| `execute` | Agent signs with private key | Automated agents, server-side operations |\n| `prepare` | Returns unsigned tx for external signing | Hardware wallets, air-gapped signing, multi-sig |\n\n### Logging\n\nStructured logs include:\n- `requestId`: Unique request identifier\n- `agentId`: Agent identifier (if available)\n- `walletId`: Wallet identifier\n- `opType`: Operation type (swap, bridge, supply, etc.)\n- `chainIds`, `tokenAddresses`: Operation context\n- `txHashes`: Transaction hashes (for tracing)\n\n**Never logged:** Private keys, full wallet JSON, sensitive configuration\n\n## Chain-Specific Notes\n\n### Sonic Hub Chain\n\n- Sonic is the **hub chain** for SODAX operations\n- Uses `SonicSpokeProvider` instead of `EvmSpokeProvider`\n- Special handling required for hub chain operations\n- Money market operations are hub-centric but support cross-chain interactions\n\n### EVM Spoke Chains\n\n- Use `EvmSpokeProvider` for standard EVM chains (Ethereum, Arbitrum, Base, etc.)\n- Standard allowance\u002Fapproval flow applies\n- Bridge operations go: Spoke → Hub → Destination Spoke\n- Cross-chain money market operations leverage the hub for state management\n\n## Cross-Chain Money Market Architecture\n\n```\n┌─────────────────────────────────────────────────────────────────┐\n│                    SODAX Money Market Flow                       │\n├─────────────────────────────────────────────────────────────────┤\n│                                                                  │\n│  Cross-Chain Borrow Example:                                     │\n│  Supply USDC on Ethereum → Borrow USDT on Arbitrum              │\n│                                                                  │\n│  ┌─────────────┐         ┌─────────┐         ┌─────────────┐   │\n│  │  Ethereum   │ ──────► │  Sonic  │ ──────► │  Arbitrum   │   │\n│  │  (Supply)   │         │  (Hub)  │         │  (Borrow)   │   │\n│  └─────────────┘         └─────────┘         └─────────────┘   │\n│        │                      │                     │           │\n│        │  1. Supply USDC      │                     │           │\n│        │  2. Record collateral│                     │           │\n│        │─────────────────────►│                     │           │\n│        │                      │  3. Verify collateral│           │\n│        │                      │  4. Process borrow   │           │\n│        │                      │────────────────────►│           │\n│        │                      │                     │ 5. Deliver│\n│        │                      │                     │    USDT   │\n│        │                      │                     │           │\n│                                                                  │\n│  Key Insight: Your collateral stays on the source chain,         │\n│  but you receive borrowed tokens on the destination chain!       │\n│                                                                  │\n└─────────────────────────────────────────────────────────────────┘\n```\n\n## Examples\n\n### Example 1: Simple Same-Chain Swap\n\n```\nUser: \"Swap 100 USDC for ETH on Ethereum\"\n\nAgent actions:\n1. amped_swap_quote(\n     walletId=\"main\",\n     srcChainId=\"ethereum\",\n     dstChainId=\"ethereum\",\n     srcToken=\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\",\n     dstToken=\"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2\",\n     amount=\"100\",\n     type=\"exact_input\",\n     slippageBps=100\n   )\n2. Review quote (slippage 0.8%, expected output 0.042 ETH)\n3. amped_swap_execute(walletId=\"main\", quote=\u003Cquote>, maxSlippageBps=100)\n4. amped_swap_status(txHash=\u003CspokeTxHash>)\n```\n\n### Example 2: Cross-Chain Bridge\n\n```\nUser: \"Bridge 1000 USDC from Ethereum to Sonic\"\n\nAgent actions:\n1. amped_bridge_discover(srcChainId=\"ethereum\", dstChainId=\"sonic\", srcToken=\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\")\n2. amped_bridge_quote(srcChainId=\"ethereum\", dstChainId=\"sonic\", srcToken=\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\", dstToken=\"0x29219dd400f2bf60e5a23d13be72b486d4038894\")\n3. amped_bridge_execute(walletId=\"main\", srcChainId=\"ethereum\", dstChainId=\"sonic\", srcToken=\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\", dstToken=\"0x29219dd400f2bf60e5a23d13be72b486d4038894\", amount=\"1000\")\n```\n\n### Example 3: Supply and Borrow Loop (Same Chain)\n\n```\nUser: \"Supply 5000 USDC and borrow 2000 USDT on Sonic\"\n\nAgent actions:\n1. amped_money_market_reserves(chainId=\"sonic\")\n2. amped_mm_supply(walletId=\"main\", chainId=\"sonic\", token=\"0x29219dd400f2bf60e5a23d13be72b486d4038894\", amount=\"5000\")\n3. amped_money_market_positions(walletId=\"main\", chainId=\"sonic\")\n4. amped_mm_borrow(walletId=\"main\", chainId=\"sonic\", token=\"0x...usdt...\", amount=\"2000\")\n5. amped_money_market_positions(walletId=\"main\", chainId=\"sonic\") \u002F\u002F Verify new health factor\n```\n\n### Example 4: Cross-Chain Money Market (Advanced)\n\n```\nUser: \"I want to use my USDC on Ethereum as collateral to borrow USDC on Arbitrum for a trading opportunity\"\n\nAgent actions:\n1. Verify supported chains and tokens\n   → amped_supported_tokens(module=\"moneyMarket\", chainId=\"ethereum\")\n   → amped_supported_tokens(module=\"moneyMarket\", chainId=\"arbitrum\")\n\n2. Check current positions\n   → amped_money_market_positions(walletId=\"main\", chainId=\"ethereum\")\n   → amped_money_market_positions(walletId=\"main\", chainId=\"arbitrum\")\n\n3. Supply USDC on Ethereum\n   → amped_mm_supply(\n       walletId=\"main\",\n       chainId=\"ethereum\",\n       token=\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\",\n       amount=\"50000\",\n       useAsCollateral=true\n     )\n\n4. Cross-chain borrow to Arbitrum\n   → amped_mm_borrow(\n       walletId=\"main\",\n       chainId=\"ethereum\",        \u002F\u002F Source: collateral is here\n       dstChainId=\"arbitrum\",     \u002F\u002F Destination: receive tokens here\n       token=\"0xaf88d065e77c8cC2239327C5EDb3A432268e5831\",  \u002F\u002F USDC on Arbitrum\n       amount=\"20000\",\n       interestRateMode=2\n     )\n\n5. Verify the cross-chain borrow worked\n   → Check positions on Ethereum (collateral + debt recorded)\n   → Check USDC balance on Arbitrum (borrowed tokens received)\n\nResult: User has 20k USDC on Arbitrum to trade with, while their 50k USDC collateral remains on Ethereum!\n```\n\n## Transaction Execution Architecture\n\n### SODAX-First Routing (Mandatory)\n\n**Critical:** ALL DeFi operations MUST route through the SODAX SDK first. External wallet backends (like Bankr) are used ONLY for transaction execution—never for routing decisions.\n\n```\n┌─────────────────────────────────────────────────────────────────┐\n│                  SODAX SDK (Routing Layer)                      │\n│  ✓ Calculates optimal swap routes                               │\n│  ✓ Determines bridge paths                                      │\n│  ✓ Manages money market intents                                 │\n│  ✓ Handles slippage, fees, deadlines                            │\n│  ✓ Prepares transaction data (to, data, value)                  │\n└───────────────────────────┬─────────────────────────────────────┘\n                            │\n                            ▼ raw transaction data\n┌─────────────────────────────────────────────────────────────────┐\n│           Wallet Backend (Execution Layer ONLY)                 │\n│  ✓ Signs the pre-computed transaction                           │\n│  ✓ Submits to blockchain                                        │\n│  ✓ Returns transaction hash                                     │\n│  ✗ NO routing decisions                                         │\n│  ✗ NO token swapping logic                                      │\n│  ✗ NO DeFi protocol selection                                   │\n└─────────────────────────────────────────────────────────────────┘\n```\n\n### Supported Backends\n\n| Backend | Description | Use Case |\n|---------|-------------|----------|\n| `localKey` | Direct signing via private key from `~\u002F.evm-wallet.json` or config | Default, self-custody |\n| `bankr` | Bankr API for transaction submission | Managed wallets via Bankr |\n\n### Backend Selection\n\nThe wallet backend is selected via:\n1. `config.json` → `walletBackend: \"bankr\" | \"localKey\"`\n2. Environment: `AMPED_OC_WALLET_BACKEND`\n3. Default: `localKey`\n\n### Bankr Integration\n\nWhen `walletBackend: \"bankr\"` is configured:\n\n1. **SODAX SDK prepares the transaction** - All routing, calculation, and intent creation happens in SODAX\n2. **Transaction data is passed to Bankr** - Only the raw `{to, data, value, chainId}` is sent\n3. **Bankr signs and submits** - Bankr executes exactly what SODAX prepared\n4. **No Bankr routing** - Bankr does NOT interpret or re-route the transaction\n\nThis ensures:\n- Consistent behavior across all backends\n- SODAX optimizations always apply\n- Audit trail shows SODAX as routing authority\n- Backend is a pure execution layer\n\n### Configuration Example (Bankr)\n\n```json\n\u002F\u002F ~\u002F.openclaw\u002Fextensions\u002Famped-defi\u002Fconfig.json\n{\n  \"walletBackend\": \"bankr\",\n  \"bankrApiKey\": \"bk_...\",\n  \"bankrApiUrl\": \"https:\u002F\u002Fapi.bankr.bot\",\n  \"bankrWalletAddress\": \"0x...\"\n}\n```\n\n**Security Note:** The Bankr API key is stored locally and never exposed in tool parameters or logs.\n","# Amped DeFi Skill\n\n## Overview\n\nThe **Amped DeFi** skill provides on-chain DeFi operations capabilities for agents, enabling seamless **swaps**, **bridging**, and **money market** (supply\u002Fborrow\u002Frepay\u002Fwithdraw) actions across multiple chains using the SODAX SDK. This skill abstracts the complexity of cross-chain intent flows, allowance handling, and policy enforcement, allowing agents to execute DeFi operations safely and efficiently.\n\n**Key capabilities:**\n- Cross-chain and same-chain token swaps via solver network\n- Token bridging between spoke chains and the Sonic hub chain\n- **Cross-chain money market operations** - supply on one chain, borrow to another!\n- Money market operations (supply, withdraw, borrow, repay) with position tracking\n- Policy enforcement (spend limits, slippage caps, allowlists)\n- Support for both execution mode (agent signs) and prepare mode (unsigned txs for external signing)\n\n## Tool Categories\n\n### Discovery Tools\n\nUse these tools to explore supported chains, tokens, and wallet state before executing operations.\n\n| Tool | Purpose |\n|------|---------|\n| `amped_supported_chains` | List all supported spoke chains (e.g., ethereum, arbitrum, sonic) |\n| `amped_supported_tokens` | Get supported tokens for a specific module (swaps\u002Fbridge\u002FmoneyMarket) on a chain |\n| `amped_wallet_address` | Resolve wallet address by walletId (validates private key ↔ address match in execute mode) |\n| `amped_money_market_reserves` | View available money market reserves (collateral\u002Fborrow markets) |\n| `amped_money_market_positions` | View user's money market positions on a SINGLE chain |\n| `amped_cross_chain_positions` | **RECOMMENDED**: View aggregated positions across ALL chains with total supply\u002Fborrow, health factor, borrowing power, net APY, and risk metrics |\n| `amped_user_intents` | Query user's swap\u002Fbridge intent history from SODAX backend API. Shows open, filled, cancelled intents with full event details. |\n\n**When to use:** Always start with discovery tools to verify chain\u002Ftoken support before attempting any operation.\n\n### User Intent History (SODAX API)\n\nQuery the SODAX backend API to retrieve complete intent history for a wallet:\n\n```\n→ amped_user_intents(\n    walletId=\"main\",\n    status=\"all\",     \u002F\u002F \"all\", \"open\", or \"closed\"\n    limit=10,         \u002F\u002F Number of results (max 100)\n    offset=0          \u002F\u002F For pagination\n  )\n← Returns: {\n    pagination: { total: 1545, offset: 0, limit: 10, hasMore: true },\n    intents: [\n      {\n        intentHash: \"0x5b18d04a545f089e6de59106fa79498cfc0b0274...\",\n        txHash: \"0x1c4a8ded456b97ba9fa2b95ee954ed7e92a40365...\",\n        chainId: 146,\n        blockNumber: 57622027,\n        status: \"closed\",\n        createdAt: \"2025-12-10T19:44:00.380Z\",\n        input: { token: \"0x654D...\", amount: \"10000000000000000000\", chainId: 1768124270 },\n        output: { token: \"0x9Ee1...\", minAmount: \"78684607057391028830\", chainId: 5 },\n        deadline: \"2026-12-10T19:48:32.000Z\",\n        events: [\n          { type: \"intent-filled\", txHash: \"0x7981...\", blockNumber: 57622086, ... }\n        ]\n      }\n    ],\n    summary: { totalIntents: 1545, returned: 10, openIntents: 3, closedIntents: 1537 }\n  }\n```\n\n**When to use:**\n- Track status of pending swap\u002Fbridge operations\n- View historical intent execution history\n- Debug failed or cancelled intents\n- Monitor solver performance and fill rates\n\n### Swap Tools\n\nCross-chain and same-chain token swaps via SODAX's intent-based solver network.\n\n| Tool | Purpose |\n|------|---------|\n| `amped_swap_quote` | Get an exact-in or exact-out swap quote with slippage and fee estimates |\n| `amped_swap_execute` | Execute a swap (handles allowance, approval, and execution automatically) |\n| `amped_swap_status` | Check the status of a swap transaction or intent |\n| `amped_swap_cancel` | Cancel an active swap intent (where supported) |\n\n**When to use swaps:**\n- Exchanging one token for another on the same chain\n- Cross-chain swaps (e.g., USDC on Ethereum → USDT on Arbitrum)\n- When you need competitive pricing via solver competition\n\n**When NOT to use swaps:**\n- Moving the same token across chains (use bridge tools instead)\n- Borrowing\u002Flending operations (use money market tools instead)\n\n### Bridge Tools\n\nBridge tokens between chains via the swap infrastructure.\n\n> **Note:** In SODAX, bridges and cross-chain swaps use the same underlying intent-based messaging system. The `amped_bridge_execute` tool internally delegates to the swap infrastructure, which provides better routing and reliability.\n>\n> **Recommendation:** Use cross-chain swaps (`amped_swap_quote` + `amped_swap_execute`) directly for bridging. You can swap USDC on one chain directly to native tokens (ETH, AVAX, POL, etc.) on another chain in a single operation.\n\n| Tool | Purpose |\n|------|---------|\n| `amped_bridge_discover` | Discover bridgeable tokens between two chains |\n| `amped_bridge_quote` | Check bridgeability, limits, and max bridgeable amount |\n| `amped_bridge_execute` | Execute bridge (delegates to swap infrastructure) |\n\n**When to use bridging\u002Fcross-chain swaps:**\n- Moving tokens from one chain to another (e.g., USDC on Base → ETH on Arbitrum)\n- Getting native gas tokens on a new chain (e.g., USDC → POL on Polygon)\n- Transferring assets to\u002Ffrom the Sonic hub chain\n\n**Preferred approach for gas distribution:**\n```\n\u002F\u002F Get gas tokens on multiple chains from a single source\n→ amped_swap_quote(srcChainId=\"base\", dstChainId=\"polygon\", srcToken=\"USDC\", dstToken=\"POL\", amount=\"0.5\", ...)\n→ amped_swap_execute(quote)\n\u002F\u002F Result: 0.5 USDC on Base → ~4 POL on Polygon\n```\n\n### Money Market Tools\n\nSupply, borrow, repay, and withdraw assets from the SODAX money market with **cross-chain capabilities**.\n\n| Tool | Purpose |\n|------|---------|\n| `amped_mm_supply` | Supply tokens as collateral to the money market. Supports cross-chain supply. |\n| `amped_mm_withdraw` | Withdraw supplied tokens from the money market. Supports cross-chain withdraw. |\n| `amped_mm_borrow` | Borrow tokens against supplied collateral. **KEY FEATURE: Can borrow to a different chain!** |\n| `amped_mm_repay` | Repay borrowed tokens. Use amount='-1' or repayAll=true for full repay. |\n| `amped_mm_create_supply_intent` | [Advanced] Create a supply intent without executing (for custom flows) |\n| `amped_mm_create_borrow_intent` | [Advanced] Create a borrow intent without executing (supports cross-chain) |\n\n**Cross-Chain Money Market Capabilities:**\n\nThe SODAX money market supports powerful cross-chain operations:\n\n1. **Cross-Chain Borrow** (Most powerful feature)\n   - Supply collateral on Chain A (e.g., Ethereum)\n   - Borrow tokens to Chain B (e.g., Arbitrum)\n   - Your collateral stays on Chain A, but you receive borrowed tokens on Chain B\n   - Use `dstChainId` parameter to specify the destination chain\n\n2. **Cross-Chain Supply**\n   - Supply tokens on Chain A\n   - Collateral is recorded on Chain B (if different)\n   - Use `dstChainId` parameter\n\n3. **Cross-Chain Withdraw**\n   - Withdraw collateral from Chain A\n   - Receive tokens on Chain B\n   - Use `dstChainId` parameter\n\n**When to use money market:**\n- Earning yield by supplying assets\n- Borrowing against existing collateral\n- **Accessing liquidity on Chain B without moving collateral from Chain A**\n- Arbitraging interest rates across chains\n- Managing leveraged positions\n- Repaying debt to improve health factor\n\n**When NOT to use money market:**\n- Simple token exchanges (use swap tools)\n- Moving assets across chains without borrowing (use bridge tools)\n\n### Wallet Management Tools\n\nManage multiple wallets with nicknames for easy identification.\n\n| Tool | Purpose |\n|------|---------|\n| `amped_list_wallets` | List all configured wallets with their nicknames and addresses |\n| `amped_add_wallet` | Add a new wallet with a nickname (supports private key or Bankr wallets) |\n| `amped_rename_wallet` | Rename an existing wallet's nickname |\n| `amped_remove_wallet` | Remove a wallet from configuration |\n| `amped_set_default_wallet` | Set which wallet is used by default for operations |\n\n**When to use wallet management:**\n- Setting up multiple wallets for different purposes (trading, holding, testing)\n- Organizing wallets with memorable nicknames instead of addresses\n- Switching between wallets for different operations\n- Managing a portfolio across multiple addresses\n\n**Example workflow:**\n```\n1. amped_add_wallet(nickname=\"trading\", address=\"0x...\", privateKey=\"0x...\")\n2. amped_add_wallet(nickname=\"vault\", address=\"0x...\")\n3. amped_set_default_wallet(nickname=\"trading\")\n4. amped_list_wallets()  \u002F\u002F Shows all wallets with default indicator\n5. amped_swap_execute(walletId=\"trading\", ...)  \u002F\u002F Uses trading wallet\n```\n\n## Safety Rules\n\n⚠️ **MUST FOLLOW — These rules are enforced by the Policy Engine:**\n\n1. **Always get a quote before executing**\n   - Never execute a swap without first calling `amped_swap_quote`\n   - Never execute a bridge without first calling `amped_bridge_quote`\n   - Review the quote output for acceptable slippage and output amounts\n\n2. **Verify chain and token are supported**\n   - Call `amped_supported_chains` and `amped_supported_tokens` before operations\n   - Unsupported chains\u002Ftokens will return clear errors\n\n3. **Check slippage is within acceptable bounds**\n   - Slippage is specified in basis points (bps): 100 bps = 1%\n   - Default max slippage: 100 bps (1%)\n   - Quotes with slippage exceeding configured caps will be rejected\n   - Policy violations return structured errors with remediation guidance\n\n4. **Never attempt to drain entire wallet**\n   - Leave sufficient balance for gas fees\n   - Spend limits are enforced per-transaction and per-day\n   - Policy caps: `maxSwapInputUsd`, `maxBridgeAmountToken`, `maxBorrowUsd`\n\n5. **Always verify transaction status after execution**\n   - Use `amped_swap_status` to track swap completion\n   - Check `amped_money_market_positions` to verify position updates\n   - Never assume success based on transaction hash alone\n\n6. **Enforce allowlist compliance**\n   - Only operate on `allowedChains` and `allowedTokensByChain` per policy\n   - Blocked recipients are rejected\n   - Policy failures return structured errors with remediation text\n\n7. **Simulation is enabled by default**\n   - `skipSimulation=false` unless operator override\n   - Simulations catch revert conditions before broadcast\n\n8. **Monitor health factor for money market positions**\n   - Health factor \u003C 1.0 = liquidation risk\n   - Keep health factor > 1.5 for safety margin\n   - Use `amped_money_market_positions` to monitor\n\n## Parameter Conventions\n\n### Amount Units\n- **Amounts are in human-readable units** (e.g., `\"100\"` for 100 USDC, `\"0.5\"` for 0.5 ETH)\n- The SDK internally converts to raw units using token decimals from SODAX config\n- Examples:\n  - `\"1000\"` USDC (USDC has 6 decimals) → 1000000000 raw units\n  - `\"1.5\"` ETH (ETH has 18 decimals) → 1500000000000000000 raw units\n\n### Slippage (Basis Points)\n- Slippage is specified in **basis points (bps)** where 100 bps = 1%\n- Common values:\n  - `50` = 0.5% (tight, for stable pairs)\n  - `100` = 1% (standard)\n  - `300` = 3% (volatile pairs or cross-chain)\n- Quotes exceeding configured `maxSlippageBps` will be rejected\n\n### Chain Identifiers\n- Chain IDs are **string identifiers**, not numeric chain IDs:\n  - `\"ethereum\"` (Ethereum mainnet)\n  - `\"arbitrum\"` (Arbitrum One)\n  - `\"sonic\"` (Sonic hub chain)\n  - `\"base\"` (Base)\n  - `\"optimism\"` (Optimism)\n  - `\"avalanche\"` (Avalanche)\n  - `\"bsc\"` (BNB Smart Chain)\n\n### Token Addresses\n- Token addresses should be **checksum addresses** (mixed-case per EIP-55)\n- Examples:\n  - `\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\"` (USDC on Ethereum)\n  - `\"0x4200000000000000000000000000000000000006\"` (WETH on Base)\n\n### Wallet Identification\n- All execute tools require a `walletId` string\n- Wallet resolution is by ID; private keys are never exposed in tool parameters\n\n### Optional Parameters\n- `recipient`: Optional destination address (defaults to wallet address)\n- `timeoutMs`: Optional operation timeout in milliseconds\n- `policyId`: Optional policy profile selector for custom limits\n- `dstChainId`: **For cross-chain money market** - destination chain for the operation\n\n## Workflows\n\n### Swap Workflow\n\nComplete workflow for executing a token swap:\n\n```\nStep 1: Discovery (if needed)\n  → amped_supported_chains\n  → amped_supported_tokens(module=\"swaps\", chainId=\"ethereum\")\n\nStep 2: Get Quote\n  → amped_swap_quote(\n      walletId=\"main\",\n      srcChainId=\"ethereum\",\n      dstChainId=\"arbitrum\",\n      srcToken=\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\",\n      dstToken=\"0xaf88d065e77c8cC2239327C5EDb3A432268e5831\",\n      amount=\"1000\",\n      type=\"exact_input\",\n      slippageBps=100\n    )\n  ← Returns: { quoteId, expectedOutput, slippageBps, fees, deadline }\n\nStep 3: Review Quote\n  ✓ Check slippageBps ≤ maxSlippageBps (configurable, default 100)\n  ✓ Verify expectedOutput meets requirements\n  ✓ Confirm fees are acceptable\n\nStep 4: Execute Swap\n  → amped_swap_execute(\n      walletId=\"main\",\n      quote=\u003Cquote from step 2>,\n      maxSlippageBps=100,\n      skipSimulation=false\n    )\n  ← Returns: { spokeTxHash, hubTxHash, intentHash, status }\n\nStep 5: Verify Status\n  → amped_swap_status(txHash=spokeTxHash)\n  ← Returns: { status, confirmations, filledAmount, remainingAmount }\n\nStep 6: Handle Failures (if needed)\n  → amped_swap_cancel(walletId=\"main\", intent=\u003Cintent>, srcChainId=\"ethereum\")\n```\n\n### Bridge Workflow\n\nComplete workflow for bridging tokens between chains:\n\n```\nStep 1: Discover Routes\n  → amped_bridge_discover(\n      srcChainId=\"ethereum\",\n      dstChainId=\"sonic\",\n      srcToken=\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\"\n    )\n  ← Returns: { bridgeableTokens: [...] }\n\nStep 2: Get Bridge Quote\n  → amped_bridge_quote(\n      srcChainId=\"ethereum\",\n      dstChainId=\"sonic\",\n      srcToken=\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\",\n      dstToken=\"0x29219dd400f2bf60e5a23d13be72b486d4038894\"\n    )\n  ← Returns: { isBridgeable: true, maxBridgeableAmount: \"1000000\" }\n\nStep 3: Review Limits\n  ✓ Verify isBridgeable === true\n  ✓ Check amount ≤ maxBridgeableAmount\n  ✓ Confirm amount within policy limits\n\nStep 4: Execute Bridge\n  → amped_bridge_execute(\n      walletId=\"main\",\n      srcChainId=\"ethereum\",\n      dstChainId=\"sonic\",\n      srcToken=\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\",\n      dstToken=\"0x29219dd400f2bf60e5a23d13be72b486d4038894\",\n      amount=\"5000\",\n      recipient=\"0x...\" \u002F\u002F optional, defaults to wallet\n    )\n  ← Returns: { spokeTxHash, hubTxHash }\n```\n\n### Money Market Supply Workflow\n\nComplete workflow for supplying to and monitoring money market positions:\n\n```\nStep 1: View Available Markets\n  → amped_money_market_reserves(chainId=\"sonic\")\n  ← Returns: { reserves: [\n      { token: \"USDC\", supplyAPY: \"4.5%\", totalSupplied: \"...\" },\n      { token: \"WETH\", supplyAPY: \"2.1%\", totalSupplied: \"...\" }\n    ]}\n\nStep 2: Check Current Positions (RECOMMENDED: use cross-chain view)\n  → amped_cross_chain_positions(walletId=\"main\")\n  ← Returns: { \n      summary: {\n        totalSupplyUsd: \"15000.00\",\n        totalBorrowUsd: \"5000.00\",\n        netWorthUsd: \"10000.00\",\n        availableBorrowUsd: \"7000.00\",\n        healthFactor: \"2.55\",\n        healthFactorStatus: { status: \"healthy\", color: \"green\" },\n        liquidationRisk: \"none\",\n        weightedSupplyApy: \"4.25%\",\n        weightedBorrowApy: \"3.50%\",\n        netApy: \"1.08%\"\n      },\n      chainBreakdown: [...],\n      collateralUtilization: {...},\n      riskMetrics: {...},\n      positions: [...],\n      recommendations: [\"? You have $7000.00 in available borrowing power.\"]\n    }\n\nStep 3: Supply Tokens\n  → amped_mm_supply(\n      walletId=\"main\",\n      chainId=\"sonic\",\n      token=\"0x29219dd400f2bf60e5a23d13be72b486d4038894\",\n      amount=\"1000\",\n      useAsCollateral=true  \u002F\u002F Use as collateral for borrowing\n    )\n  ← Returns: { txHash, spokeTxHash, hubTxHash }\n\nStep 4: Verify Position Update (cross-chain view)\n  → amped_cross_chain_positions(walletId=\"main\")\n  ← Returns: Updated positions reflecting the new supply across all chains\n```\n\n### Cross-Chain Positions View (Recommended)\n\nThe `amped_cross_chain_positions` tool provides a **unified portfolio view** across all chains. This is the recommended way to check money market positions.\n\n**What it shows:**\n- **Total Portfolio Summary**: Supply, borrow, net worth across ALL chains\n- **Health Metrics**: Health factor with status indicator, liquidation risk level\n- **Borrowing Power**: Available borrow amount based on collateral\n- **Yield Metrics**: Weighted supply\u002Fborrow APY, net APY\n- **Chain Breakdown**: Per-chain position summaries\n- **Collateral Utilization**: How much of your collateral is being used\n- **Risk Metrics**: Current LTV, buffer until liquidation, safe max borrow\n- **Personalized Recommendations**: AI-generated suggestions based on your position\n\n**Example Response:**\n```json\n{\n  \"success\": true,\n  \"walletId\": \"main\",\n  \"address\": \"0x...\",\n  \"timestamp\": \"2026-02-02T12:58:27.999Z\",\n  \"summary\": {\n    \"totalSupplyUsd\": \"25000.00\",\n    \"totalBorrowUsd\": \"8000.00\",\n    \"netWorthUsd\": \"17000.00\",\n    \"availableBorrowUsd\": \"12000.00\",\n    \"healthFactor\": \"2.65\",\n    \"healthFactorStatus\": { \"status\": \"healthy\", \"color\": \"green\" },\n    \"liquidationRisk\": \"none\",\n    \"weightedSupplyApy\": \"4.52%\",\n    \"weightedBorrowApy\": \"3.21%\",\n    \"netApy\": \"2.89%\"\n  },\n  \"chainBreakdown\": [\n    { \"chainId\": \"ethereum\", \"supplyUsd\": \"15000.00\", \"borrowUsd\": \"5000.00\", \"healthFactor\": \"2.80\" },\n    { \"chainId\": \"arbitrum\", \"supplyUsd\": \"5000.00\", \"borrowUsd\": \"2000.00\", \"healthFactor\": \"2.50\" },\n    { \"chainId\": \"sonic\", \"supplyUsd\": \"5000.00\", \"borrowUsd\": \"1000.00\", \"healthFactor\": \"5.00\" }\n  ],\n  \"collateralUtilization\": {\n    \"totalCollateralUsd\": \"20000.00\",\n    \"usedCollateralUsd\": \"8000.00\",\n    \"availableCollateralUsd\": \"12000.00\",\n    \"utilizationRate\": \"40.00%\"\n  },\n  \"riskMetrics\": {\n    \"maxLtv\": \"80.00%\",\n    \"currentLtv\": \"32.00%\",\n    \"bufferUntilLiquidation\": \"53.00%\",\n    \"safeMaxBorrowUsd\": \"13600.00\"\n  },\n  \"recommendations\": [\n    \"? You have $12000.00 in available borrowing power.\",\n    \"? You have positions across 3 chains. Monitor each chain's health factor independently.\"\n  ]\n}\n```\n\n**When to use:**\n- Always start here to get a complete picture of money market positions\n- Before any borrow\u002Fwithdraw operation to check health factor\n- To monitor portfolio performance across all chains\n- To identify opportunities (available borrowing power, low utilization)\n\n### Cross-Chain Money Market Borrow Workflow (Advanced)\n\n**Key Feature:** Borrow tokens to a different chain than where your collateral is supplied!\n\n```\nScenario: Supply USDC on Ethereum, borrow USDT to Arbitrum\n\nStep 1: Verify Collateral Position on Source Chain\n  → amped_money_market_positions(walletId=\"main\", chainId=\"ethereum\")\n  ← Returns: { positions: [...], totalCollateralUSD, availableBorrowUSD, healthFactor }\n\nStep 2: Check Borrow Capacity\n  ✓ Verify availableBorrowUSD > desired borrow amount\n  ✓ Check healthFactor will remain safe after borrow\n\nStep 3: Cross-Chain Borrow\n  → amped_mm_borrow(\n      walletId=\"main\",\n      chainId=\"ethereum\",        \u002F\u002F Source chain (where collateral is)\n      dstChainId=\"arbitrum\",     \u002F\u002F Destination chain (where you receive borrowed tokens)\n      token=\"0xaf88d065e77c8cC2239327C5EDb3A432268e5831\",  \u002F\u002F USDT on Arbitrum\n      amount=\"500\",\n      interestRateMode=2         \u002F\u002F Variable rate\n    )\n  ← Returns: { \n      txHash, \n      spokeTxHash,               \u002F\u002F On Ethereum (source)\n      hubTxHash, \n      dstSpokeTxHash,            \u002F\u002F On Arbitrum (destination)\n      isCrossChain: true \n    }\n\nStep 4: Verify Position\n  → amped_money_market_positions(walletId=\"main\", chainId=\"ethereum\")\n  ← Returns: Updated positions with new borrow recorded\n\nStep 5: Verify Received Tokens on Destination Chain\n  → amped_wallet_address(walletId=\"main\")\n  ← Check USDT balance on Arbitrum via external means or position query\n```\n\n### Cross-Chain Money Market Supply Workflow\n\n```\nScenario: Supply tokens on Arbitrum, collateral recorded on Sonic\n\nStep 1: Supply with Cross-Chain Flag\n  → amped_mm_supply(\n      walletId=\"main\",\n      chainId=\"arbitrum\",        \u002F\u002F Source chain (where tokens are)\n      dstChainId=\"sonic\",        \u002F\u002F Destination chain (where collateral is recorded)\n      token=\"0xaf88d065e77c8cC2239327C5EDb3A432268e5831\",\n      amount=\"1000\",\n      useAsCollateral=true\n    )\n  ← Returns: {\n      txHash,\n      isCrossChain: true,\n      message: \"Tokens supplied on arbitrum. Collateral available on sonic.\"\n    }\n\nStep 2: Verify on Destination Chain\n  → amped_money_market_positions(walletId=\"main\", chainId=\"sonic\")\n  ← Returns: Collateral should appear on Sonic\n```\n\n### Money Market Repay Workflow\n\nComplete workflow for repaying borrowed tokens:\n\n```\nStep 1: Check Borrow Position\n  → amped_money_market_positions(walletId=\"main\", chainId=\"sonic\")\n  ← Returns: { positions: [...], totalBorrowUSD, healthFactor }\n\nStep 2: Repay (Full or Partial)\n  Option A - Partial Repay:\n  → amped_mm_repay(\n      walletId=\"main\",\n      chainId=\"sonic\",\n      token=\"0x...\",\n      amount=\"500\"\n    )\n  \n  Option B - Full Repay:\n  → amped_mm_repay(\n      walletId=\"main\",\n      chainId=\"sonic\",\n      token=\"0x...\",\n      amount=\"-1\",        \u002F\u002F Special value for max\n      repayAll=true\n    )\n\nStep 3: Verify Repayment\n  → amped_money_market_positions(walletId=\"main\", chainId=\"sonic\")\n  ← Returns: Updated positions with reduced borrow, improved healthFactor\n```\n\n### Money Market Withdraw Workflow\n\nComplete workflow for withdrawing supplied tokens:\n\n```\nStep 1: Check Position and Available Liquidity\n  → amped_money_market_positions(walletId=\"main\", chainId=\"sonic\")\n  ← Verify: withdrawal won't cause healthFactor to drop below safe level\n  ← Verify: sufficient available liquidity in reserve\n\nStep 2: Withdraw\n  → amped_mm_withdraw(\n      walletId=\"main\",\n      chainId=\"sonic\",\n      token=\"0x...\",\n      amount=\"500\",\n      withdrawType=\"default\"  \u002F\u002F Options: default, collateral, all\n    )\n  ← Returns: { txHash, spokeTxHash, hubTxHash }\n\nStep 3: Verify Withdrawal\n  → amped_money_market_positions(walletId=\"main\", chainId=\"sonic\")\n  ← Returns: Updated positions with reduced supply\n```\n\n## Cross-Chain Money Market Examples\n\n### Example 1: Supply on Ethereum, Borrow to Base\n\n```\nUser: \"I have USDC on Ethereum. I want to borrow USDC on Base without moving my collateral.\"\n\nAgent actions:\n1. Check positions on Ethereum\n   → amped_money_market_positions(walletId=\"main\", chainId=\"ethereum\")\n\n2. Supply USDC on Ethereum\n   → amped_mm_supply(\n       walletId=\"main\",\n       chainId=\"ethereum\",\n       token=\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\",\n       amount=\"10000\",\n       useAsCollateral=true\n     )\n\n3. Cross-chain borrow to Base\n   → amped_mm_borrow(\n       walletId=\"main\",\n       chainId=\"ethereum\",        \u002F\u002F Collateral is here\n       dstChainId=\"base\",         \u002F\u002F Receive borrowed tokens here\n       token=\"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\",  \u002F\u002F USDC on Base\n       amount=\"5000\",\n       interestRateMode=2\n     )\n\n4. Verify positions\n   → amped_money_market_positions(walletId=\"main\", chainId=\"ethereum\")\n   → amped_money_market_positions(walletId=\"main\", chainId=\"base\")\n```\n\n### Example 2: Cross-Chain Withdraw\n\n```\nUser: \"I have collateral on Sonic but I want to withdraw to Arbitrum.\"\n\nAgent actions:\n→ amped_mm_withdraw(\n    walletId=\"main\",\n    chainId=\"sonic\",             \u002F\u002F Collateral source\n    dstChainId=\"arbitrum\",       \u002F\u002F Token destination\n    token=\"0x...\",\n    amount=\"1000\"\n  )\n```\n\n## Configuration\n\n### Environment Variables\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| `AMPED_OC_MODE` | Operation mode: `'execute'` (agent signs) or `'prepare'` (returns unsigned txs) | `execute` |\n| `AMPED_OC_WALLETS_JSON` | JSON map of wallet configurations keyed by walletId | `{}` |\n| `AMPED_OC_RPC_URLS_JSON` | JSON map of RPC URLs by chainId | `{}` |\n| `AMPED_OC_LIMITS_JSON` | Policy limits configuration | `{}` |\n| `AMPED_OC_SODAX_DYNAMIC_CONFIG` | Enable dynamic config via `sodax.initialize()` | `false` |\n\n### Wallet Configuration (`AMPED_OC_WALLETS_JSON`)\n\n```json\n{\n  \"main\": {\n    \"address\": \"0x...\",\n    \"privateKey\": \"0x...\"  \u002F\u002F Required for execute mode\n  },\n  \"trading\": {\n    \"address\": \"0x...\",\n    \"privateKey\": \"0x...\"\n  }\n}\n```\n\n**Security:** Private keys are never logged. In prepare mode, only address is required.\n\n### Policy Limits (`AMPED_OC_LIMITS_JSON`)\n\n```json\n{\n  \"maxSwapInputUsd\": 10000,\n  \"maxBridgeAmountToken\": {\n    \"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\": 50000\n  },\n  \"maxBorrowUsd\": 5000,\n  \"maxSlippageBps\": 100,\n  \"allowedChains\": [\"ethereum\", \"arbitrum\", \"sonic\", \"base\"],\n  \"allowedTokensByChain\": {\n    \"ethereum\": [\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\", \"0x...\"]\n  },\n  \"blockedRecipients\": [\"0x...\"]\n}\n```\n\n### RPC Configuration (`AMPED_OC_RPC_URLS_JSON`)\n\n```json\n{\n  \"ethereum\": \"https:\u002F\u002Feth-mainnet.g.alchemy.com\u002Fv2\u002F...\",\n  \"arbitrum\": \"https:\u002F\u002Farb-mainnet.g.alchemy.com\u002Fv2\u002F...\",\n  \"base\": \"https:\u002F\u002Fbase-mainnet.g.alchemy.com\u002Fv2\u002F...\",\n  \"sonic\": \"https:\u002F\u002Frpc.soniclabs.com\"\n}\n```\n\n## Error Handling\n\n### Policy Violations\n\nPolicy violations return structured errors with:\n- `code`: Error code (e.g., `POLICY_SLIPPAGE_EXCEEDED`)\n- `message`: Human-readable description\n- `remediation`: Suggested action to resolve\n- `current`: Current value that violated policy\n- `limit`: Configured limit\n\n### Common Error Codes\n\n| Code | Description | Remediation |\n|------|-------------|-------------|\n| `POLICY_SLIPPAGE_EXCEEDED` | Quote slippage exceeds maxSlippageBps | Increase maxSlippageBps or wait for better conditions |\n| `POLICY_SPEND_LIMIT_EXCEEDED` | Amount exceeds per-transaction or daily limit | Reduce amount or request limit increase |\n| `POLICY_CHAIN_NOT_ALLOWED` | Chain not in allowedChains | Add chain to allowedChains or use different chain |\n| `POLICY_TOKEN_NOT_ALLOWED` | Token not in allowedTokensByChain | Add token to allowlist or use different token |\n| `INSUFFICIENT_BALANCE` | Wallet balance \u003C requested amount | Reduce amount or fund wallet |\n| `INSUFFICIENT_ALLOWANCE` | Token allowance \u003C requested amount | Tool will auto-approve, or approve manually |\n| `QUOTE_EXPIRED` | Quote deadline has passed | Get fresh quote |\n| `BRIDGE_NOT_AVAILABLE` | Token pair not bridgeable | Use swap for different tokens or different route |\n| `MM_HEALTH_FACTOR_LOW` | Operation would cause liquidation risk | Repay debt or add collateral first |\n| `MM_CROSS_CHAIN_NOT_SUPPORTED` | Cross-chain operation not supported for this pair | Use same-chain operation or different token\u002Fchain |\n\n## Idempotency and Retries\n\n### Client Operation ID\n\nExecute tools accept an optional `clientOperationId` parameter for idempotency:\n- Duplicate operations with the same ID within the cache window return the cached result\n- Prevents duplicate broadcasts on retries\n- Recommended for automated workflows\n\n### Retry Guidance\n\n- **Read operations** (quotes, status, positions): Safe to retry with exponential backoff\n- **Write operations** (execute, supply, borrow): Use `clientOperationId` to prevent duplicates\n- **Timeout handling**: Bridge and money market operations specify timeouts; respect SDK defaults\n\n## Security Model\n\n### Key Segregation\n\n- Each agent workspace has distinct wallet configurations\n- Spoke providers are cached per `walletId` and never shared across agents\n- Private keys are resolved by `walletId` only; never passed as parameters\n\n### Execution vs Prepare Mode\n\n| Mode | Signing | Use Case |\n|------|---------|----------|\n| `execute` | Agent signs with private key | Automated agents, server-side operations |\n| `prepare` | Returns unsigned tx for external signing | Hardware wallets, air-gapped signing, multi-sig |\n\n### Logging\n\nStructured logs include:\n- `requestId`: Unique request identifier\n- `agentId`: Agent identifier (if available)\n- `walletId`: Wallet identifier\n- `opType`: Operation type (swap, bridge, supply, etc.)\n- `chainIds`, `tokenAddresses`: Operation context\n- `txHashes`: Transaction hashes (for tracing)\n\n**Never logged:** Private keys, full wallet JSON, sensitive configuration\n\n## Chain-Specific Notes\n\n### Sonic Hub Chain\n\n- Sonic is the **hub chain** for SODAX operations\n- Uses `SonicSpokeProvider` instead of `EvmSpokeProvider`\n- Special handling required for hub chain operations\n- Money market operations are hub-centric but support cross-chain interactions\n\n### EVM Spoke Chains\n\n- Use `EvmSpokeProvider` for standard EVM chains (Ethereum, Arbitrum, Base, etc.)\n- Standard allowance\u002Fapproval flow applies\n- Bridge operations go: Spoke → Hub → Destination Spoke\n- Cross-chain money market operations leverage the hub for state management\n\n## Cross-Chain Money Market Architecture\n\n```\n┌─────────────────────────────────────────────────────────────────┐\n│                    SODAX Money Market Flow                       │\n├─────────────────────────────────────────────────────────────────┤\n│                                                                  │\n│  Cross-Chain Borrow Example:                                     │\n│  Supply USDC on Ethereum → Borrow USDT on Arbitrum              │\n│                                                                  │\n│  ┌─────────────┐         ┌─────────┐         ┌─────────────┐   │\n│  │  Ethereum   │ ──────► │  Sonic  │ ──────► │  Arbitrum   │   │\n│  │  (Supply)   │         │  (Hub)  │         │  (Borrow)   │   │\n│  └─────────────┘         └─────────┘         └─────────────┘   │\n│        │                      │                     │           │\n│        │  1. Supply USDC      │                     │           │\n│        │  2. Record collateral│                     │           │\n│        │─────────────────────►│                     │           │\n│        │                      │  3. Verify collateral│           │\n│        │                      │  4. Process borrow   │           │\n│        │                      │────────────────────►│           │\n│        │                      │                     │ 5. Deliver│\n│        │                      │                     │    USDT   │\n│        │                      │                     │           │\n│                                                                  │\n│  Key Insight: Your collateral stays on the source chain,         │\n│  but you receive borrowed tokens on the destination chain!       │\n│                                                                  │\n└─────────────────────────────────────────────────────────────────┘\n```\n\n## Examples\n\n### Example 1: Simple Same-Chain Swap\n\n```\nUser: \"Swap 100 USDC for ETH on Ethereum\"\n\nAgent actions:\n1. amped_swap_quote(\n     walletId=\"main\",\n     srcChainId=\"ethereum\",\n     dstChainId=\"ethereum\",\n     srcToken=\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\",\n     dstToken=\"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2\",\n     amount=\"100\",\n     type=\"exact_input\",\n     slippageBps=100\n   )\n2. Review quote (slippage 0.8%, expected output 0.042 ETH)\n3. amped_swap_execute(walletId=\"main\", quote=\u003Cquote>, maxSlippageBps=100)\n4. amped_swap_status(txHash=\u003CspokeTxHash>)\n```\n\n### Example 2: Cross-Chain Bridge\n\n```\nUser: \"Bridge 1000 USDC from Ethereum to Sonic\"\n\nAgent actions:\n1. amped_bridge_discover(srcChainId=\"ethereum\", dstChainId=\"sonic\", srcToken=\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\")\n2. amped_bridge_quote(srcChainId=\"ethereum\", dstChainId=\"sonic\", srcToken=\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\", dstToken=\"0x29219dd400f2bf60e5a23d13be72b486d4038894\")\n3. amped_bridge_execute(walletId=\"main\", srcChainId=\"ethereum\", dstChainId=\"sonic\", srcToken=\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\", dstToken=\"0x29219dd400f2bf60e5a23d13be72b486d4038894\", amount=\"1000\")\n```\n\n### Example 3: Supply and Borrow Loop (Same Chain)\n\n```\nUser: \"Supply 5000 USDC and borrow 2000 USDT on Sonic\"\n\nAgent actions:\n1. amped_money_market_reserves(chainId=\"sonic\")\n2. amped_mm_supply(walletId=\"main\", chainId=\"sonic\", token=\"0x29219dd400f2bf60e5a23d13be72b486d4038894\", amount=\"5000\")\n3. amped_money_market_positions(walletId=\"main\", chainId=\"sonic\")\n4. amped_mm_borrow(walletId=\"main\", chainId=\"sonic\", token=\"0x...usdt...\", amount=\"2000\")\n5. amped_money_market_positions(walletId=\"main\", chainId=\"sonic\") \u002F\u002F Verify new health factor\n```\n\n### Example 4: Cross-Chain Money Market (Advanced)\n\n```\nUser: \"I want to use my USDC on Ethereum as collateral to borrow USDC on Arbitrum for a trading opportunity\"\n\nAgent actions:\n1. Verify supported chains and tokens\n   → amped_supported_tokens(module=\"moneyMarket\", chainId=\"ethereum\")\n   → amped_supported_tokens(module=\"moneyMarket\", chainId=\"arbitrum\")\n\n2. Check current positions\n   → amped_money_market_positions(walletId=\"main\", chainId=\"ethereum\")\n   → amped_money_market_positions(walletId=\"main\", chainId=\"arbitrum\")\n\n3. Supply USDC on Ethereum\n   → amped_mm_supply(\n       walletId=\"main\",\n       chainId=\"ethereum\",\n       token=\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\",\n       amount=\"50000\",\n       useAsCollateral=true\n     )\n\n4. Cross-chain borrow to Arbitrum\n   → amped_mm_borrow(\n       walletId=\"main\",\n       chainId=\"ethereum\",        \u002F\u002F Source: collateral is here\n       dstChainId=\"arbitrum\",     \u002F\u002F Destination: receive tokens here\n       token=\"0xaf88d065e77c8cC2239327C5EDb3A432268e5831\",  \u002F\u002F USDC on Arbitrum\n       amount=\"20000\",\n       interestRateMode=2\n     )\n\n5. Verify the cross-chain borrow worked\n   → Check positions on Ethereum (collateral + debt recorded)\n   → Check USDC balance on Arbitrum (borrowed tokens received)\n\nResult: User has 20k USDC on Arbitrum to trade with, while their 50k USDC collateral remains on Ethereum!\n```\n\n## Transaction Execution Architecture\n\n### SODAX-First Routing (Mandatory)\n\n**Critical:** ALL DeFi operations MUST route through the SODAX SDK first. External wallet backends (like Bankr) are used ONLY for transaction execution—never for routing decisions.\n\n```\n┌─────────────────────────────────────────────────────────────────┐\n│                  SODAX SDK (Routing Layer)                      │\n│  ✓ Calculates optimal swap routes                               │\n│  ✓ Determines bridge paths                                      │\n│  ✓ Manages money market intents                                 │\n│  ✓ Handles slippage, fees, deadlines                            │\n│  ✓ Prepares transaction data (to, data, value)                  │\n└───────────────────────────┬─────────────────────────────────────┘\n                            │\n                            ▼ raw transaction data\n┌─────────────────────────────────────────────────────────────────┐\n│           Wallet Backend (Execution Layer ONLY)                 │\n│  ✓ Signs the pre-computed transaction                           │\n│  ✓ Submits to blockchain                                        │\n│  ✓ Returns transaction hash                                     │\n│  ✗ NO routing decisions                                         │\n│  ✗ NO token swapping logic                                      │\n│  ✗ NO DeFi protocol selection                                   │\n└─────────────────────────────────────────────────────────────────┘\n```\n\n### Supported Backends\n\n| Backend | Description | Use Case |\n|---------|-------------|----------|\n| `localKey` | Direct signing via private key from `~\u002F.evm-wallet.json` or config | Default, self-custody |\n| `bankr` | Bankr API for transaction submission | Managed wallets via Bankr |\n\n### Backend Selection\n\nThe wallet backend is selected via:\n1. `config.json` → `walletBackend: \"bankr\" | \"localKey\"`\n2. Environment: `AMPED_OC_WALLET_BACKEND`\n3. Default: `localKey`\n\n### Bankr Integration\n\nWhen `walletBackend: \"bankr\"` is configured:\n\n1. **SODAX SDK prepares the transaction** - All routing, calculation, and intent creation happens in SODAX\n2. **Transaction data is passed to Bankr** - Only the raw `{to, data, value, chainId}` is sent\n3. **Bankr signs and submits** - Bankr executes exactly what SODAX prepared\n4. **No Bankr routing** - Bankr does NOT interpret or re-route the transaction\n\nThis ensures:\n- Consistent behavior across all backends\n- SODAX optimizations always apply\n- Audit trail shows SODAX as routing authority\n- Backend is a pure execution layer\n\n### Configuration Example (Bankr)\n\n```json\n\u002F\u002F ~\u002F.openclaw\u002Fextensions\u002Famped-defi\u002Fconfig.json\n{\n  \"walletBackend\": \"bankr\",\n  \"bankrApiKey\": \"bk_...\",\n  \"bankrApiUrl\": \"https:\u002F\u002Fapi.bankr.bot\",\n  \"bankrWalletAddress\": \"0x...\"\n}\n```\n\n**Security Note:** The Bankr API key is stored locally and never exposed in tool parameters or logs.\n",{"name":5,"tools":43,"author":69,"version":70,"description":7},[44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68],"amped_supported_chains","amped_supported_tokens","amped_wallet_address","amped_money_market_reserves","amped_money_market_positions","amped_cross_chain_positions","amped_user_intents","amped_swap_quote","amped_swap_execute","amped_swap_status","amped_swap_cancel","amped_bridge_discover","amped_bridge_quote","amped_bridge_execute","amped_mm_supply","amped_mm_withdraw","amped_mm_borrow","amped_mm_repay","amped_mm_create_supply_intent","amped_mm_create_borrow_intent","amped_list_wallets","amped_add_wallet","amped_rename_wallet","amped_remove_wallet","amped_set_default_wallet","Amped Finance","1.0.0","main","f4cb2d49f7667e79ef7804f50396d5aaffdf1f56","金融\u002Famped-defi-publish",1,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification","https:\u002F\u002Fgithub.com\u002FKernel8901","a little little little dobe in life but science geek","2026-04-05 16:43:56",{"source":8,"skillName":5,"commands":80,"prompt":90,"zipAvailable":91},[81,84,87],{"tool":82,"command":83},"npx","npx skills add Kernel8901\u002Fai-agent-skills-classification --skill amped-defi",{"tool":85,"command":86},"bunx","bunx skills add Kernel8901\u002Fai-agent-skills-classification --skill amped-defi",{"tool":88,"command":89},"pnpm","pnpm dlx skills add Kernel8901\u002Fai-agent-skills-classification --skill amped-defi","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002FSKILL.md",true,[93,99,105,109,113,117,121,125,129,133,137,141,145,149,153,157,161,165,169,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,233,237,240,244,248,252,256,260,264,268,272,276,280],{"path":94,"resourceType":95,"resourceTypeDesc":96,"sizeBytes":97,"sourceHtmlUrl":98},"_meta.json","REFERENCE","参考文档",294,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002F_meta.json",{"path":100,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":103,"sourceHtmlUrl":104},"examples\u002Fbasic-usage.ts","SCRIPT","脚本",3618,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fexamples\u002Fbasic-usage.ts",{"path":106,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":107,"sourceHtmlUrl":108},"index.js",77,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Findex.js",{"path":110,"resourceType":95,"resourceTypeDesc":96,"sizeBytes":111,"sourceHtmlUrl":112},"openclaw.plugin.json",1318,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fopenclaw.plugin.json",{"path":114,"resourceType":95,"resourceTypeDesc":96,"sizeBytes":115,"sourceHtmlUrl":116},"package.json",1605,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fpackage.json",{"path":118,"resourceType":95,"resourceTypeDesc":96,"sizeBytes":119,"sourceHtmlUrl":120},"README.md",22207,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002FREADME.md",{"path":122,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":123,"sourceHtmlUrl":124},"src\u002F__mocks__\u002F@sodax\u002Fsdk.ts",487,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002F__mocks__\u002F@sodax\u002Fsdk.ts",{"path":126,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":127,"sourceHtmlUrl":128},"src\u002F__tests__\u002Ferrors.test.ts",7515,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002F__tests__\u002Ferrors.test.ts",{"path":130,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":131,"sourceHtmlUrl":132},"src\u002F__tests__\u002FpolicyEngine.test.ts",11196,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002F__tests__\u002FpolicyEngine.test.ts",{"path":134,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":135,"sourceHtmlUrl":136},"src\u002F__tests__\u002FpositionAggregator.test.ts",8071,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002F__tests__\u002FpositionAggregator.test.ts",{"path":138,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":139,"sourceHtmlUrl":140},"src\u002F__tests__\u002Fsetup.ts",767,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002F__tests__\u002Fsetup.ts",{"path":142,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":143,"sourceHtmlUrl":144},"src\u002F__tests__\u002FsodaxApi.test.ts",6086,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002F__tests__\u002FsodaxApi.test.ts",{"path":146,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":147,"sourceHtmlUrl":148},"src\u002F__tests__\u002FwalletRegistry.test.ts",4714,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002F__tests__\u002FwalletRegistry.test.ts",{"path":150,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":151,"sourceHtmlUrl":152},"src\u002Findex.ts",12616,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Findex.ts",{"path":154,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":155,"sourceHtmlUrl":156},"src\u002Fpolicy\u002FpolicyEngine.ts",11572,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Fpolicy\u002FpolicyEngine.ts",{"path":158,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":159,"sourceHtmlUrl":160},"src\u002Fproviders\u002FspokeProviderFactory.ts",8024,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Fproviders\u002FspokeProviderFactory.ts",{"path":162,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":163,"sourceHtmlUrl":164},"src\u002Fsodax\u002Fclient.ts",2738,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Fsodax\u002Fclient.ts",{"path":166,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":167,"sourceHtmlUrl":168},"src\u002Ftools\u002Fbridge.ts",14012,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Ftools\u002Fbridge.ts",{"path":170,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":171,"sourceHtmlUrl":172},"src\u002Ftools\u002Fdiscovery.ts",34241,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Ftools\u002Fdiscovery.ts",{"path":174,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":175,"sourceHtmlUrl":176},"src\u002Ftools\u002FmoneyMarket.ts",41433,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Ftools\u002FmoneyMarket.ts",{"path":178,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":179,"sourceHtmlUrl":180},"src\u002Ftools\u002Fportfolio.ts",23272,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Ftools\u002Fportfolio.ts",{"path":182,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":183,"sourceHtmlUrl":184},"src\u002Ftools\u002Fswap.ts",33548,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Ftools\u002Fswap.ts",{"path":186,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":187,"sourceHtmlUrl":188},"src\u002Ftools\u002FwalletManagement.ts",10366,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Ftools\u002FwalletManagement.ts",{"path":190,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":191,"sourceHtmlUrl":192},"src\u002Ftypes.ts",4417,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Ftypes.ts",{"path":194,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":195,"sourceHtmlUrl":196},"src\u002Futils\u002Ferrors.ts",12682,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Futils\u002Ferrors.ts",{"path":198,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":199,"sourceHtmlUrl":200},"src\u002Futils\u002FerrorUtils.ts",450,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Futils\u002FerrorUtils.ts",{"path":202,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":203,"sourceHtmlUrl":204},"src\u002Futils\u002FpositionAggregator.ts",18770,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Futils\u002FpositionAggregator.ts",{"path":206,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":207,"sourceHtmlUrl":208},"src\u002Futils\u002FpriceService.ts",4412,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Futils\u002FpriceService.ts",{"path":210,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":211,"sourceHtmlUrl":212},"src\u002Futils\u002FsodaxApi.ts",7521,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Futils\u002FsodaxApi.ts",{"path":214,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":215,"sourceHtmlUrl":216},"src\u002Futils\u002FtokenResolver.ts",11229,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Futils\u002FtokenResolver.ts",{"path":218,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":219,"sourceHtmlUrl":220},"src\u002Fwallet\u002FbackendConfig.ts",3844,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Fwallet\u002FbackendConfig.ts",{"path":222,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":223,"sourceHtmlUrl":224},"src\u002Fwallet\u002Fbackends\u002FBankrBackend.ts",12760,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Fwallet\u002Fbackends\u002FBankrBackend.ts",{"path":226,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":227,"sourceHtmlUrl":228},"src\u002Fwallet\u002Fbackends\u002FBankrWalletProvider.ts",10280,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Fwallet\u002Fbackends\u002FBankrWalletProvider.ts",{"path":230,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":231,"sourceHtmlUrl":232},"src\u002Fwallet\u002Fbackends\u002FEnvBackend.ts",4138,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Fwallet\u002Fbackends\u002FEnvBackend.ts",{"path":234,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":235,"sourceHtmlUrl":236},"src\u002Fwallet\u002Fbackends\u002FEvmWalletSkillBackend.ts",2922,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Fwallet\u002Fbackends\u002FEvmWalletSkillBackend.ts",{"path":238,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":123,"sourceHtmlUrl":239},"src\u002Fwallet\u002Fbackends\u002Findex.ts","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Fwallet\u002Fbackends\u002Findex.ts",{"path":241,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":242,"sourceHtmlUrl":243},"src\u002Fwallet\u002Findex.ts",253,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Fwallet\u002Findex.ts",{"path":245,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":246,"sourceHtmlUrl":247},"src\u002Fwallet\u002Fproviders\u002FAmpedWalletProvider.ts",9177,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Fwallet\u002Fproviders\u002FAmpedWalletProvider.ts",{"path":249,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":250,"sourceHtmlUrl":251},"src\u002Fwallet\u002Fproviders\u002FBankrBackend.ts",11932,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Fwallet\u002Fproviders\u002FBankrBackend.ts",{"path":253,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":254,"sourceHtmlUrl":255},"src\u002Fwallet\u002Fproviders\u002FchainConfig.ts",5439,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Fwallet\u002Fproviders\u002FchainConfig.ts",{"path":257,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":258,"sourceHtmlUrl":259},"src\u002Fwallet\u002Fproviders\u002Findex.ts",1442,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Fwallet\u002Fproviders\u002Findex.ts",{"path":261,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":262,"sourceHtmlUrl":263},"src\u002Fwallet\u002Fproviders\u002FLocalKeyBackend.ts",5072,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Fwallet\u002Fproviders\u002FLocalKeyBackend.ts",{"path":265,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":266,"sourceHtmlUrl":267},"src\u002Fwallet\u002Fproviders\u002Ftypes.ts",4371,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Fwallet\u002Fproviders\u002Ftypes.ts",{"path":269,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":270,"sourceHtmlUrl":271},"src\u002Fwallet\u002FskillWalletAdapter.ts",10230,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Fwallet\u002FskillWalletAdapter.ts",{"path":273,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":274,"sourceHtmlUrl":275},"src\u002Fwallet\u002Ftypes.ts",5690,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Fwallet\u002Ftypes.ts",{"path":277,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":278,"sourceHtmlUrl":279},"src\u002Fwallet\u002FwalletManager.ts",16000,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Fwallet\u002FwalletManager.ts",{"path":281,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":282,"sourceHtmlUrl":283},"src\u002Fwallet\u002FwalletRegistry.ts",5799,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Famped-defi-publish\u002Fsrc\u002Fwallet\u002FwalletRegistry.ts",[285,306,329,337,344,370],{"skillNo":286,"name":287,"nameZh":6,"description":288,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":289,"categories":290,"keywords":291,"publishedAt":38},"01M6Q5R6WZ06RRB9RQTW54B34B","zyfai","Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit\u002Fwithdraw anytime.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzyfai-sdk\u002FSKILL.md",[],[287,292,293,18,294,34,295,30,296,297,298,299,300,301,302,303,304,305],"safe","ethereum","Optimization","use","base","deposit","withdraw","yield","arbitrum","non-custodial","passive","defi yield","earn","yield optimization",{"skillNo":307,"name":308,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":309,"categories":310,"keywords":311,"publishedAt":38},"01M6Q5R337B5JSNER4P4YS03TN","zerion-api","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api\u002FSKILL.md",[],[312,313,314,315,316,317,318,18,319,30,320,321,322,323,324,325,326,327,328],"api","zerion api","zerion","MCP","mcp server","server","blockchain","transactions","crypto wallet","crypto","evm","solana","query","across","positions","token","prices",{"skillNo":330,"name":331,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":332,"categories":333,"keywords":334,"publishedAt":38},"01M6Q5QZFYTDAZMZ27BN5VZXAR","zerion-api-skill","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api-skill\u002FSKILL.md",[],[312,335,336,313,314,315,316,317,318,18,319,30,321,322,323,324,325,326,327,328],"api skill","zerion api skill",{"skillNo":338,"name":339,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":340,"categories":341,"keywords":342,"publishedAt":38},"01M6Q5QW17QW98RA3FE45E4RD8","zerion-api-mcp","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api-mcp\u002FSKILL.md",[],[315,312,343,313,314,316,317,18,319,30,320,321,322,323,324,325,326,327,328],"zerion api mcp",{"skillNo":345,"name":346,"nameZh":6,"description":347,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":348,"categories":349,"keywords":350,"publishedAt":38},"01M6Q5QQYZB7A501BDEQWKGSJT","yahoo-finance-forex","Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR\u002FUSD, GBP\u002FUSD, USD\u002FJPY, etc.). Analyzes sentiment and provides trading context.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fyahoo-finance-forex\u002FSKILL.md",[],[351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,21],"finance","yahoo finance","forex","yahoo","yahoo finance forex","github","https","sentiment","real-time","python3","install","Market","usd","news","time","currency","gbp","pip","market data",{"skillNo":371,"name":372,"nameZh":6,"description":373,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":374,"categories":375,"keywords":376,"publishedAt":38},"01M6Q5QM6VS84WZVM7BKXXPF32","yahoo-finance","This skill should be used when the user asks to \"get stock prices\", \"check stock quotes\", \"look up earnings\", \"get financial data\", \"find trending stocks\", or needs stock market data from Yahoo Finance.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fyahoo-finance-cli\u002FSKILL.md",[],[351,352,354,377,378,379,380,381,382,362,383,384,385,386,387,388,389,390,328,369],"cli","homebrew","find","check","brew","up","local","get","stock","link","trending","sf","quotes","ln"]