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.
Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.
Quelldateien prüfen
Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Ein direkter Befehl überspringt den Prüf-Prompt. Prüfen Sie die Quelle, bevor Sie ihn ausführen.
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.
The Amped DeFi skill provides on-chain DeFi operations capabilities for agents, enabling seamless swaps, bridging, and money market (supply/borrow/repay/withdraw) 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.
Key capabilities:
Cross-chain and same-chain token swaps via solver network
Token bridging between spoke chains and the Sonic hub chain
Cross-chain money market operations - supply on one chain, borrow to another!
Money market operations (supply, withdraw, borrow, repay) with position tracking
Bridge tokens between chains via the swap infrastructure.
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.
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.
Tool
Purpose
amped_bridge_discover
Discover bridgeable tokens between two chains
amped_bridge_quote
Check bridgeability, limits, and max bridgeable amount
amped_bridge_execute
Execute bridge (delegates to swap infrastructure)
When to use bridging/cross-chain swaps:
Moving tokens from one chain to another (e.g., USDC on Base → ETH on Arbitrum)
Getting native gas tokens on a new chain (e.g., USDC → POL on Polygon)
Transferring assets to/from the Sonic hub chain
Preferred approach for gas distribution:
// Get gas tokens on multiple chains from a single source
→ amped_swap_quote(srcChainId="base", dstChainId="polygon", srcToken="USDC", dstToken="POL", amount="0.5", ...)
→ amped_swap_execute(quote)
// Result: 0.5 USDC on Base → ~4 POL on Polygon
Money Market Tools
Supply, borrow, repay, and withdraw assets from the SODAX money market with cross-chain capabilities.
Tool
Purpose
amped_mm_supply
Supply tokens as collateral to the money market. Supports cross-chain supply.
amped_mm_withdraw
Withdraw supplied tokens from the money market. Supports cross-chain withdraw.
amped_mm_borrow
Borrow tokens against supplied collateral. KEY FEATURE: Can borrow to a different chain!
amped_mm_repay
Repay borrowed tokens. Use amount='-1' or repayAll=true for full repay.
amped_mm_create_supply_intent
[Advanced] Create a supply intent without executing (for custom flows)
amped_mm_create_borrow_intent
[Advanced] Create a borrow intent without executing (supports cross-chain)
Cross-Chain Money Market Capabilities:
The SODAX money market supports powerful cross-chain operations:
Cross-Chain Borrow (Most powerful feature)
Supply collateral on Chain A (e.g., Ethereum)
Borrow tokens to Chain B (e.g., Arbitrum)
Your collateral stays on Chain A, but you receive borrowed tokens on Chain B
Use dstChainId parameter to specify the destination chain
Cross-Chain Supply
Supply tokens on Chain A
Collateral is recorded on Chain B (if different)
Use dstChainId parameter
Cross-Chain Withdraw
Withdraw collateral from Chain A
Receive tokens on Chain B
Use dstChainId parameter
When to use money market:
Earning yield by supplying assets
Borrowing against existing collateral
Accessing liquidity on Chain B without moving collateral from Chain A
Arbitraging interest rates across chains
Managing leveraged positions
Repaying debt to improve health factor
When NOT to use money market:
Simple token exchanges (use swap tools)
Moving assets across chains without borrowing (use bridge tools)
Wallet Management Tools
Manage multiple wallets with nicknames for easy identification.
Tool
Purpose
amped_list_wallets
List all configured wallets with their nicknames and addresses
amped_add_wallet
Add a new wallet with a nickname (supports private key or Bankr wallets)
amped_rename_wallet
Rename an existing wallet's nickname
amped_remove_wallet
Remove a wallet from configuration
amped_set_default_wallet
Set which wallet is used by default for operations
When to use wallet management:
Setting up multiple wallets for different purposes (trading, holding, testing)
Organizing wallets with memorable nicknames instead of addresses
Switching between wallets for different operations
Complete workflow for supplying to and monitoring money market positions:
Step 1: View Available Markets
→ amped_money_market_reserves(chainId="sonic")
← Returns: { reserves: [
{ token: "USDC", supplyAPY: "4.5%", totalSupplied: "..." },
{ token: "WETH", supplyAPY: "2.1%", totalSupplied: "..." }
]}
Step 2: Check Current Positions (RECOMMENDED: use cross-chain view)
→ amped_cross_chain_positions(walletId="main")
← Returns: {
summary: {
totalSupplyUsd: "15000.00",
totalBorrowUsd: "5000.00",
netWorthUsd: "10000.00",
availableBorrowUsd: "7000.00",
healthFactor: "2.55",
healthFactorStatus: { status: "healthy", color: "green" },
liquidationRisk: "none",
weightedSupplyApy: "4.25%",
weightedBorrowApy: "3.50%",
netApy: "1.08%"
},
chainBreakdown: [...],
collateralUtilization: {...},
riskMetrics: {...},
positions: [...],
recommendations: ["💡 You have $7000.00 in available borrowing power."]
}
Step 3: Supply Tokens
→ amped_mm_supply(
walletId="main",
chainId="sonic",
token="0x29219dd400f2bf60e5a23d13be72b486d4038894",
amount="1000",
useAsCollateral=true // Use as collateral for borrowing
)
← Returns: { txHash, spokeTxHash, hubTxHash }
Step 4: Verify Position Update (cross-chain view)
→ amped_cross_chain_positions(walletId="main")
← Returns: Updated positions reflecting the new supply across all chains
Cross-Chain Positions View (Recommended)
The amped_cross_chain_positions tool provides a unified portfolio view across all chains. This is the recommended way to check money market positions.
What it shows:
Total Portfolio Summary: Supply, borrow, net worth across ALL chains
Health Metrics: Health factor with status indicator, liquidation risk level
Borrowing Power: Available borrow amount based on collateral
Yield Metrics: Weighted supply/borrow APY, net APY
Chain Breakdown: Per-chain position summaries
Collateral Utilization: How much of your collateral is being used
Risk Metrics: Current LTV, buffer until liquidation, safe max borrow
Personalized Recommendations: AI-generated suggestions based on your position
Example Response:
{"success":true,"walletId":"main","address":"0x...","timestamp":"2026-02-02T12:58:27.999Z","summary":{"totalSupplyUsd":"25000.00","totalBorrowUsd":"8000.00","netWorthUsd":"17000.00","availableBorrowUsd":"12000.00","healthFactor":"2.65","healthFactorStatus":{"status":"healthy","color":"green"},"liquidationRisk":"none","weightedSupplyApy":"4.52%","weightedBorrowApy":"3.21%","netApy":"2.89%"},"chainBreakdown":[{"chainId":"ethereum","supplyUsd":"15000.00","borrowUsd":"5000.00","healthFactor":"2.80"},{"chainId":"arbitrum","supplyUsd":"5000.00","borrowUsd":"2000.00","healthFactor":"2.50"},{"chainId":"sonic","supplyUsd":"5000.00","borrowUsd":"1000.00","healthFactor":"5.00"}],"collateralUtilization":{"totalCollateralUsd":"20000.00","usedCollateralUsd":"8000.00","availableCollateralUsd":"12000.00","utilizationRate":"40.00%"},"riskMetrics":{"maxLtv":"80.00%","currentLtv":"32.00%","bufferUntilLiquidation":"53.00%","safeMaxBorrowUsd":"13600.00"},"recommendations":["💡 You have $12000.00 in available borrowing power.","🌐 You have positions across 3 chains. Monitor each chain's health factor independently."]}
When to use:
Always start here to get a complete picture of money market positions
Before any borrow/withdraw operation to check health factor
To monitor portfolio performance across all chains
To identify opportunities (available borrowing power, low utilization)
Key Feature: Borrow tokens to a different chain than where your collateral is supplied!
Scenario: Supply USDC on Ethereum, borrow USDT to Arbitrum
Step 1: Verify Collateral Position on Source Chain
→ amped_money_market_positions(walletId="main", chainId="ethereum")
← Returns: { positions: [...], totalCollateralUSD, availableBorrowUSD, healthFactor }
Step 2: Check Borrow Capacity
✓ Verify availableBorrowUSD > desired borrow amount
✓ Check healthFactor will remain safe after borrow
Step 3: Cross-Chain Borrow
→ amped_mm_borrow(
walletId="main",
chainId="ethereum", // Source chain (where collateral is)
dstChainId="arbitrum", // Destination chain (where you receive borrowed tokens)
token="0xaf88d065e77c8cC2239327C5EDb3A432268e5831", // USDT on Arbitrum
amount="500",
interestRateMode=2 // Variable rate
)
← Returns: {
txHash,
spokeTxHash, // On Ethereum (source)
hubTxHash,
dstSpokeTxHash, // On Arbitrum (destination)
isCrossChain: true
}
Step 4: Verify Position
→ amped_money_market_positions(walletId="main", chainId="ethereum")
← Returns: Updated positions with new borrow recorded
Step 5: Verify Received Tokens on Destination Chain
→ amped_wallet_address(walletId="main")
← Check USDT balance on Arbitrum via external means or position query
Cross-Chain Money Market Supply Workflow
Scenario: Supply tokens on Arbitrum, collateral recorded on Sonic
Step 1: Supply with Cross-Chain Flag
→ amped_mm_supply(
walletId="main",
chainId="arbitrum", // Source chain (where tokens are)
dstChainId="sonic", // Destination chain (where collateral is recorded)
token="0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
amount="1000",
useAsCollateral=true
)
← Returns: {
txHash,
isCrossChain: true,
message: "Tokens supplied on arbitrum. Collateral available on sonic."
}
Step 2: Verify on Destination Chain
→ amped_money_market_positions(walletId="main", chainId="sonic")
← Returns: Collateral should appear on Sonic
Money Market Repay Workflow
Complete workflow for repaying borrowed tokens:
Step 1: Check Borrow Position
→ amped_money_market_positions(walletId="main", chainId="sonic")
← Returns: { positions: [...], totalBorrowUSD, healthFactor }
Step 2: Repay (Full or Partial)
Option A - Partial Repay:
→ amped_mm_repay(
walletId="main",
chainId="sonic",
token="0x...",
amount="500"
)
Option B - Full Repay:
→ amped_mm_repay(
walletId="main",
chainId="sonic",
token="0x...",
amount="-1", // Special value for max
repayAll=true
)
Step 3: Verify Repayment
→ amped_money_market_positions(walletId="main", chainId="sonic")
← Returns: Updated positions with reduced borrow, improved healthFactor
Money Market Withdraw Workflow
Complete workflow for withdrawing supplied tokens:
Step 1: Check Position and Available Liquidity
→ amped_money_market_positions(walletId="main", chainId="sonic")
← Verify: withdrawal won't cause healthFactor to drop below safe level
← Verify: sufficient available liquidity in reserve
Step 2: Withdraw
→ amped_mm_withdraw(
walletId="main",
chainId="sonic",
token="0x...",
amount="500",
withdrawType="default" // Options: default, collateral, all
)
← Returns: { txHash, spokeTxHash, hubTxHash }
Step 3: Verify Withdrawal
→ amped_money_market_positions(walletId="main", chainId="sonic")
← Returns: Updated positions with reduced supply
Cross-Chain Money Market Examples
Example 1: Supply on Ethereum, Borrow to Base
User: "I have USDC on Ethereum. I want to borrow USDC on Base without moving my collateral."
Agent actions:
1. Check positions on Ethereum
→ amped_money_market_positions(walletId="main", chainId="ethereum")
2. Supply USDC on Ethereum
→ amped_mm_supply(
walletId="main",
chainId="ethereum",
token="0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
amount="10000",
useAsCollateral=true
)
3. Cross-chain borrow to Base
→ amped_mm_borrow(
walletId="main",
chainId="ethereum", // Collateral is here
dstChainId="base", // Receive borrowed tokens here
token="0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", // USDC on Base
amount="5000",
interestRateMode=2
)
4. Verify positions
→ amped_money_market_positions(walletId="main", chainId="ethereum")
→ amped_money_market_positions(walletId="main", chainId="base")
Example 2: Cross-Chain Withdraw
User: "I have collateral on Sonic but I want to withdraw to Arbitrum."
Agent actions:
→ amped_mm_withdraw(
walletId="main",
chainId="sonic", // Collateral source
dstChainId="arbitrum", // Token destination
token="0x...",
amount="1000"
)
Configuration
Environment Variables
Variable
Description
Default
AMPED_OC_MODE
Operation mode: 'execute' (agent signs) or 'prepare' (returns unsigned txs)
execute
AMPED_OC_WALLETS_JSON
JSON map of wallet configurations keyed by walletId
{}
AMPED_OC_RPC_URLS_JSON
JSON map of RPC URLs by chainId
{}
AMPED_OC_LIMITS_JSON
Policy limits configuration
{}
AMPED_OC_SODAX_DYNAMIC_CONFIG
Enable dynamic config via sodax.initialize()
false
Wallet Configuration (AMPED_OC_WALLETS_JSON)
{"main":{"address":"0x...","privateKey":"0x..."// Required for execute mode},"trading":{"address":"0x...","privateKey":"0x..."}}
Security: Private keys are never logged. In prepare mode, only address is required.
User: "Supply 5000 USDC and borrow 2000 USDT on Sonic"
Agent actions:
1. amped_money_market_reserves(chainId="sonic")
2. amped_mm_supply(walletId="main", chainId="sonic", token="0x29219dd400f2bf60e5a23d13be72b486d4038894", amount="5000")
3. amped_money_market_positions(walletId="main", chainId="sonic")
4. amped_mm_borrow(walletId="main", chainId="sonic", token="0x...usdt...", amount="2000")
5. amped_money_market_positions(walletId="main", chainId="sonic") // Verify new health factor
Example 4: Cross-Chain Money Market (Advanced)
User: "I want to use my USDC on Ethereum as collateral to borrow USDC on Arbitrum for a trading opportunity"
Agent actions:
1. Verify supported chains and tokens
→ amped_supported_tokens(module="moneyMarket", chainId="ethereum")
→ amped_supported_tokens(module="moneyMarket", chainId="arbitrum")
2. Check current positions
→ amped_money_market_positions(walletId="main", chainId="ethereum")
→ amped_money_market_positions(walletId="main", chainId="arbitrum")
3. Supply USDC on Ethereum
→ amped_mm_supply(
walletId="main",
chainId="ethereum",
token="0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
amount="50000",
useAsCollateral=true
)
4. Cross-chain borrow to Arbitrum
→ amped_mm_borrow(
walletId="main",
chainId="ethereum", // Source: collateral is here
dstChainId="arbitrum", // Destination: receive tokens here
token="0xaf88d065e77c8cC2239327C5EDb3A432268e5831", // USDC on Arbitrum
amount="20000",
interestRateMode=2
)
5. Verify the cross-chain borrow worked
→ Check positions on Ethereum (collateral + debt recorded)
→ Check USDC balance on Arbitrum (borrowed tokens received)
Result: User has 20k USDC on Arbitrum to trade with, while their 50k USDC collateral remains on Ethereum!
Transaction Execution Architecture
SODAX-First Routing (Mandatory)
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.