بنقرة واحدة
base-avantis
Open and manage perpetual futures positions on Avantis (Base mainnet) — USDC-margined perps with up to 100x leverage.
القائمة
Open and manage perpetual futures positions on Avantis (Base mainnet) — USDC-margined perps with up to 100x leverage.
Travel Agent — book AND cancel real hotels and stays end to end. Use when the user wants to BOOK or RESERVE a hotel/stay (not just look one up): "book me a hotel in Lisbon", "reserve that room"; or to CANCEL / look up a booking they made through you: "cancel my hotel", "what's my booking". Discovery is free; booking spends real USDC and always requires the user's explicit confirmation; cancelling requires a code Travala emails to the booking address. Hotels and stays only (no flights). Routes payment through the platform's proven x402 rail — never invent payment logic, never sign a transfer yourself.
Your economic toolbelt. Use when the user mentions earning, selling, charging, invoicing, paying, spending, x402, stripe, reputation, agent economy, offerings, marketplace, transactions, or asks "can you make money" / "how do I earn". Uses open standards (x402, Stripe MCP, AP2, ERC-8004) — never invent payment logic; always use the official tools listed below.
Extend or edit an EXISTING video the user already has (lengthen/continue a clip, multi-shot stitch of existing footage, audio for a video they already made). NOT for new videos or images — for any NEW video, clip, animation, or image use the higgsfield-cloud skill, and never route here as a fallback when higgsfield-cloud is blocked.
Swap tokens, provide liquidity, and stake on Aerodrome (Base mainnet) — Base's leading DEX, Velodrome v2 fork with stable + volatile pools.
Supply, borrow, and manage positions on Moonwell (Base mainnet) — a Compound v2-style money market with mUSDC, mWETH, mcbETH, mcbBTC.
Swap tokens and manage liquidity on Uniswap v3 (Base mainnet) — Universal Router for swaps, NonfungiblePositionManager for v3 positions.
| name | base-avantis |
| description | Open and manage perpetual futures positions on Avantis (Base mainnet) — USDC-margined perps with up to 100x leverage. |
Use this skill when: the user wants to open / close / modify a leveraged position on a perpetual futures market (BTC-PERP, ETH-PERP, etc.) on Base. USDC is the collateral asset; positions are settled in USDC.
Avantis runs a multi-asset perp DEX with pooled liquidity (USDC junior + USDC senior tranches). Trader PnL is paid from the LP pool; LPs earn fees + spread. Positions are tokenized as ERC-721 NFTs in the TradingStorage contract. Trade execution flows through the TradeExecutor contract, which interacts with PriceAggregator (Pyth) for marks.
0xf16d1B91Fd64eb31BCFD8DefAa5D6f3eBe8c3CB6 (positions, params)0x35e6f1f7E13F60B30dEdB8B83BdF2bcADd7eb466 (open / close / modify)0xC52F84d05D69ECc8c5C9B252c81dEcad7B0C50990x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913Source the actual addresses from Avantis's official docs at https://docs.avantisfi.com — the above are illustrative and may shift; verify before executing.
1. List active markets:
curl -sS https://api.avantisfi.com/v1/markets \
-H 'accept: application/json'
Returns per-market: pair id, max leverage, taker fee, current funding, OI long/short, mark price (from Pyth).
2. Check user's positions:
WALLET="${BANKR_WALLET_ADDRESS}"
curl -sS "https://api.avantisfi.com/v1/positions?trader=${WALLET}"
Returns each open position: pair, long/short, collateral, leverage, entry price, current mark, unrealized PnL, liquidation price.
3. Funding rates + OI (for the LIST view):
curl -sS "https://api.avantisfi.com/v1/markets/${PAIR_ID}/stats"
Open flow (via the SDK / direct contract call):
openTrade(...) with trade params: pair, long/short, collateral, leverage, slippage, optional SL/TPEncode openTrade calldata (this is the canonical interface; check Avantis docs for any param order changes):
# Pseudo-call — verify struct shape against current ABI
cast calldata "openTrade((address,uint256,uint256,uint256,uint256,uint256,bool,uint256,uint256,uint256))" \
"($WALLET,$PAIR_ID,$COLLATERAL_USDC_WEI,$LEVERAGE,$OPEN_PRICE,$SLIPPAGE_BPS,$IS_LONG,$TP_PRICE,$SL_PRICE,$BLOCK)"
Open via the API to skip the calldata-encoding step:
curl -sS -X POST "https://api.avantisfi.com/v1/trades/open" \
-H 'content-type: application/json' \
--data "{\"trader\":\"${WALLET}\",\"pair_id\":${PAIR_ID},\"collateral\":${COLLATERAL},\"leverage\":${LEV},\"is_long\":${IS_LONG},\"slippage_bps\":50}"
The API returns the EIP-712 trade payload and the address to call; bankr signs and broadcasts.
cast calldata "closeTradeMarket(uint256)" $TRADE_INDEX
Or partial close: closeTradeMarketPartial(uint256,uint256) with the size to close.
TRADING_STORAGE="0xf16d1B91Fd64eb31BCFD8DefAa5D6f3eBe8c3CB6"
TRADE_EXECUTOR="0x35e6f1f7E13F60B30dEdB8B83BdF2bcADd7eb466"
USDC="0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
COLLAT=$((200 * 10**6)) # 200 USDC
# 1. Approve
bankr send --to $USDC \
--data $(cast calldata "approve(address,uint256)" $TRADING_STORAGE $COLLAT)
# 2. Open the trade
bankr send --to $TRADE_EXECUTOR --data $OPEN_TRADE_CALLDATA
Report tx hash + a https://app.avantisfi.com/profile link so the user can monitor.
base-aerodrome / base-uniswap / bankr swapbankr launchbase-morpho / base-moonwell"open a 2x long on ETH with 100 USDC"
"close my ETH long"