/0x-settler:0x-settler-integrate-swapfrom 0x-settler
Implement swaps against 0x Settler multicalls: taker flow, Permit2/AllowanceHolder VIP funding, action ordering, minOut, blocked targets, meta-txn and intent modes. Use when building a router, DEX aggregator client, or smart contract that settles via 0x Settler.
Ships in 0x-settler. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Settler is a non-custodial multicall settler: sell tokens enter via a VIP transfer (Permit2 or AllowanceHolder), middle actions route through DEX/RFQ adapters, and the user receives buyToken subject to minOut. Do not treat it as a long-term custody vault.
msg.sender is payer)1. User ERC20-approves Permit2 (or uses AllowanceHolder exec)
2. User (or router) calls Settler with:
- VIP action 0: transfer sellToken → Settler (Permit2 or AH)
- Action 1..n: swaps (UniV3 VIP, RFQ, BASIC to allowed targets, …)
- Final: send remaining buyToken to recipient ≥ minOut
3. Transient payer/operator/witness locks clear by end of tx
2); ownerOf revert ⇒ feature paused~amount < 10000 = bps of balance (taker / intent-bridge only — not meta Feature 3)| Mode | How funds enter | Integrator notes |
|---|---|---|
| Permit2 VIP | User signs Permit2; Settler pulls | Use skill:permit2-signature-transfer / allowance flow |
| AllowanceHolder | User AH.exec with empty Permit2 sig, nonce 0 | Deadline checked in Settler; AH keys (operator, owner, token) |
| Meta-txn | Relayer submits; witness binds actions + slippage | First action must VIP-spend and clear witness |
| Intent | Solver allowlist; witness binds slippage only | Solver cannot change signed Slippage fields |
See also: skill:0x-settler-settlement-auth (security model of locks).
operator to the pool; only that operator may trigger pay.// Pseudocode — adapt to chain ABI / SDK
actions = [
encodeTransferFromVIP(sellToken, amount), // Permit2 or AH
encodeUniswapV3VIP(path, …), // or other adapters
]
call Settler.execute(actions, buyToken, minOut, recipient)
// require buyToken.balanceOf(recipient) increased ≥ minOut (or use return data if ABI exposes)
| Footgun | Correct behavior |
|---|---|
| BASIC to Permit2/AH | Blocked or catastrophic; never encode |
| Meta without leading VIP | Witness never clears; spend fails / auth broken |
| Assuming stuck dust is recoverable | User self-risk; not protocol custody |
| Wrong feature ID / paused Deployer | Preflight ownerOf(featureId) |
| Intent solver rewriting slip | Must respect signed Slippage |
skill:0x-settler-settlement-auth — auth/locks securityskill:permit2-allowance-flow, skill:permit2-signature-transferprograms/immunefi-0x-settler/notes/patterns-for-skills.mdWhat SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
Other plugins' skills for the same job
npx claudepluginhub cyotee/cyotee-claude-plugins --plugin 0x-settler