零Gas MEV保护限价交易
简介
基于UniswapX协议的零Gas限价订单技能,通过荷兰拍卖机制实现MEV保护交易,适合追求价格控制的DeFi用户。
原始描述
Submit a UniswapX Dutch auction limit order. Use when user wants to set a limit price, get MEV-protected execution, or submit an order that fills at the best available price. No gas cost until filled.
通过你的 Agent 添加
安装目录:submit-limit-order/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
submit-limit-order 是一个纯 Markdown 型 DeFi 交易 Skill,用于通过 UniswapX 协议提交荷兰拍卖限价订单。用户可设定目标价格买入/卖出代币,订单在指定时间内从限价逐步衰减至市场可接受价格,期间无需支付 gas 费,直至订单被填充。
典型操作流程:
- 提取用户输入(tokenIn、tokenOut、amount、limitPrice、expiry)
- 调用
mcp__uniswap__get_quote获取市价基准 - 通过
mcp__uniswap__submit_uniswapx_order提交订单(默认 Dutch 类型) - 可选轮询
mcp__uniswap__get_uniswapx_order_status监控状态
显著优点
- Gasless 设计:订单提交和取消均无需 gas,仅成交时由 filler 承担
- MEV 保护:通过 Dutch auction 机制降低三明治攻击风险
- 价格优化:价格随时间衰减,提高成交概率同时保留限价保护
- 官方 MCP 集成:通过 Uniswap Labs 官方工具链交互,非直接网络调用
潜在局限与风险
- 来源可信度 T3:维护者为个人开发者(wpank),无组织背书
- 金融操作风险:涉及真实资金,智能合约风险、价格波动、订单以不利价格成交均可能发生
- 权限范围需审查:需授权多个 MCP 工具,建议最小化原则
- 链支持有限:UniswapX 并非全链可用,需确认目标链支持
适合人群
- 希望以特定价格定投或出场的 DeFi 用户
- 厌恶 MEV 攻击、追求 gas 效率的交易者
- 理解荷兰拍卖机制并能自主验证 token 合约的安全意识用户
常规风险提示
场景
建议动作
订单过期未成交
调整限价或延长 expiry 时间
Token 不在白名单
手动添加至配置或更换 token
链不支持 UniswapX
切换至 ethereum 等支持链或使用普通 swap
- 来源可信度 T3:维护者为个人开发者(wpank),无组织背书
- 金融操作风险:涉及真实资金,智能合约风险、价格波动、订单以不利价格成交均可能发生
- 权限范围需审查:需授权多个 MCP 工具,建议最小化原则
- 链支持有限:UniswapX 并非全链可用,需确认目标链支持
适合人群
- 希望以特定价格定投或出场的 DeFi 用户
- 厌恶 MEV 攻击、追求 gas 效率的交易者
- 理解荷兰拍卖机制并能自主验证 token 合约的安全意识用户
常规风险提示
场景
建议动作
订单过期未成交
调整限价或延长 expiry 时间
Token 不在白名单
手动添加至配置或更换 token
链不支持 UniswapX
切换至 ethereum 等支持链或使用普通 swap
| 场景 | 建议动作 |
|---|---|
| 订单过期未成交 | 调整限价或延长 expiry 时间 |
| Token 不在白名单 | 手动添加至配置或更换 token |
| 链不支持 UniswapX | 切换至 ethereum 等支持链或使用普通 swap |
安全认证:CLS-Certify v2.1.0 评分 78/100,静态与动态分析均无恶意代码,隐私合规通过,建议小额测试后使用。
技能正文
description: >-
Submit a UniswapX Dutch auction limit order. Use when user wants to set a
limit price, get MEV-protected execution, or submit an order that fills at
the best available price. No gas cost until filled.
allowed-tools: >-
Read, Glob, Grep,
Task(subagent_type:trade-executor),
mcp__uniswap__get_quote,
mcp__uniswap__submit_uniswapx_order,
mcp__uniswap__get_uniswapx_order_status,
mcp__uniswap__check_safety_status
model: opus
Submit Limit Order
Submit a gasless UniswapX Dutch auction limit order.
Activation
Use this skill when the user says any of:
- "Set a limit order"
- "Buy X at price Y"
- "Submit a UniswapX order"
- "Limit buy/sell"
Input Extraction
Parameter
Required
Default
Source
tokenIn
Yes
—
Token name/symbol
tokenOut
Yes
—
Token name/symbol
amount
Yes
—
Numeric value
chain
No
ethereum
Chain name
limitPrice
No
market price
Target price
expiry
No
5 minutes
Duration for Dutch auction decay
Workflow
-
Validate inputs: Check token allowlist, spending limits, and UniswapX support on the target chain.
-
Get current market price: Call get_quote to establish the baseline price.
-
Submit order: Call submit_uniswapx_order with:
- tokenIn, tokenOut, amount, chain
- orderType: "dutch" (default) or "priority"
-
Monitor (optional): Poll get_uniswapx_order_status until filled, expired, or cancelled.
-
Report:
Limit Order Submitted (UniswapX Dutch Auction)
Input: 1,000 USDC
Target: 0.310 WETH (limit: 1 WETH = $3,225)
Decay: $3,225 → $3,200 over 5 minutes
Status: PENDING
Order: 0xORDER_HASH...
Gas: $0.00 (gasless until filled)
Monitoring: Will report when filled or expired.
Error Handling
Error
User Message
Suggested Action
UNISWAPX_NOT_SUPPORTED
"UniswapX not available on [chain]."
Use supported chain or execute-swap
ORDER_EXPIRED
"Order expired without fill."
Adjust limit price or increase expiry
SAFETY_TOKEN_NOT_ALLOWED
"TOKEN is not on allowlist."
Add token to config
| Parameter | Required | Default | Source |
|---|---|---|---|
tokenIn |
Yes | — | Token name/symbol |
tokenOut |
Yes | — | Token name/symbol |
amount |
Yes | — | Numeric value |
chain |
No | ethereum | Chain name |
limitPrice |
No | market price | Target price |
expiry |
No | 5 minutes | Duration for Dutch auction decay |
-
Validate inputs: Check token allowlist, spending limits, and UniswapX support on the target chain.
-
Get current market price: Call
get_quoteto establish the baseline price. -
Submit order: Call
submit_uniswapx_orderwith:- tokenIn, tokenOut, amount, chain
- orderType: "dutch" (default) or "priority"
-
Monitor (optional): Poll
get_uniswapx_order_statusuntil filled, expired, or cancelled. -
Report:
Limit Order Submitted (UniswapX Dutch Auction)
Input: 1,000 USDC
Target: 0.310 WETH (limit: 1 WETH = $3,225)
Decay: $3,225 → $3,200 over 5 minutes
Status: PENDING
Order: 0xORDER_HASH...
Gas: $0.00 (gasless until filled)
Monitoring: Will report when filled or expired.
Error Handling
Error
User Message
Suggested Action
UNISWAPX_NOT_SUPPORTED
"UniswapX not available on [chain]."
Use supported chain or execute-swap
ORDER_EXPIRED
"Order expired without fill."
Adjust limit price or increase expiry
SAFETY_TOKEN_NOT_ALLOWED
"TOKEN is not on allowlist."
Add token to config
| Error | User Message | Suggested Action |
|---|---|---|
UNISWAPX_NOT_SUPPORTED |
"UniswapX not available on [chain]." | Use supported chain or execute-swap |
ORDER_EXPIRED |
"Order expired without fill." | Adjust limit price or increase expiry |
SAFETY_TOKEN_NOT_ALLOWED |
"TOKEN is not on allowlist." | Add token to config |
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。