Base Uniswap v4 Zero-Slippage RFQ Hook
Zero-slippage swaps on Base (8453) via Uniswap v4 Hook 0xd72CD1d46bA05479583fbB561B558f133BA98088.
我该使用它吗
质量与安全性
发现(2)
- HIGH
- MEDIUM在 univ4_rfq_quote_and_build_swap 中
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"base-univ4-rfq-hook": {
"url": "https://courage-matches-omaha-commissions.trycloudflare.com/mcp"
}
}
}远程端点
https://courage-matches-omaha-commissions.trycloudflare.com/mcpstreamable-http它能做什么
工具清单
工具(4)
⚪univ4_rfq_quote_and_build_swap(tokenIn, tokenOut, amountIn, isWei)
One-step Zero-Slippage Atomic Swap builder on Base Mainnet (Chain ID: 8453) via Uniswap v4 RFQ Hook (0xd72CD1d46bA05479583fbB561B558f133BA98088). Quotes flat Chainlink Oracle price (-0.30% fee, 0% AMM curve price impact) backed by $3.25B+ Morpho Blue & KyberSwap liquidity, and returns the exact PoolKey, SwapParams, and ECDSA-signed bytes hookData for PoolManager.swap.
输入模式
{
"type": "object",
"properties": {
"tokenIn": {
"type": "string",
"description": "Input token symbol or address on Base (USDC, WETH, cbBTC, cbETH, wstETH, AERO, EURC)"
},
"tokenOut": {
"type": "string",
"description": "Output token symbol or address on Base (USDC, WETH, cbBTC, cbETH, wstETH, AERO, EURC)"
},
"amountIn": {
"type": "string",
"description": "Input amount (human-readable by default, or wei if isWei=true)"
},
"isWei": {
"type": "boolean",
"description": "Set true if amountIn is already in raw wei/smallest unit"
}
},
"required": [
"tokenIn",
"tokenOut",
"amountIn"
]
}🟢univ4_rfq_get_quote(tokenIn, tokenOut, amountIn, isWei)
Sub-millisecond (<1ms) indicative quote from Chainlink On-Chain Oracles on Base Mainnet (-0.30% fee) and speculative KyberSwap route pre-fetch.
输入模式
{
"type": "object",
"properties": {
"tokenIn": {
"type": "string",
"description": "Input token symbol or address on Base"
},
"tokenOut": {
"type": "string",
"description": "Output token symbol or address on Base"
},
"amountIn": {
"type": "string",
"description": "Input amount"
},
"isWei": {
"type": "boolean",
"description": "Set true if amountIn is in raw wei"
}
},
"required": [
"tokenIn",
"tokenOut",
"amountIn"
]
}🟢univ4_rfq_get_hookdata(quoteId)
Retrieves the pre-fetched ECDSA-signed bytes hookData for a quoteId to pass to Uniswap v4 PoolManager.swap(key, params, hookData).
输入模式
{
"type": "object",
"properties": {
"quoteId": {
"type": "string",
"description": "The 32-byte hex quoteId returned by univ4_rfq_get_quote"
}
},
"required": [
"quoteId"
]
}🟢univ4_rfq_list_pools
Lists all 21 initialized Uniswap v4 RFQ pools on Base Mainnet, live Chainlink oracle prices, and Morpho Blue flash liquidity stock.
输入模式
{
"type": "object",
"properties": {}
}社区
证据