@arcadia-finance/mcp-server 0.7.0 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,21 +3,108 @@
3
3
  [![npm](https://img.shields.io/npm/v/@arcadia-finance/mcp-server)](https://www.npmjs.com/package/@arcadia-finance/mcp-server)
4
4
  [![npm downloads](https://img.shields.io/npm/dm/@arcadia-finance/mcp-server)](https://www.npmjs.com/package/@arcadia-finance/mcp-server)
5
5
  [![License: AGPL-3.0](https://img.shields.io/badge/License-AGPL--3.0-blue)](LICENSE.md)
6
- [![TypeScript](https://img.shields.io/badge/TypeScript-5.5-blue)](https://www.typescriptlang.org/)
6
+ [![TypeScript](https://img.shields.io/badge/TypeScript-6.0-blue)](https://www.typescriptlang.org/)
7
7
  [![MCP](https://img.shields.io/badge/MCP-2026--07--28-green)](https://modelcontextprotocol.io/)
8
- [![Smithery](https://img.shields.io/badge/Smithery-listed-6b46c1)](https://smithery.ai/servers/arcadia-finance/mcp-server)
9
8
  [![MCP Badge](https://lobehub.com/badge/mcp/arcadia-finance-mcp-server)](https://lobehub.com/mcp/arcadia-finance-mcp-server)
10
9
  [![arcadia-finance-mcp-server MCP server](https://glama.ai/mcp/servers/arcadia-finance/mcp-server/badges/score.svg)](https://glama.ai/mcp/servers/arcadia-finance/mcp-server)
11
10
  [![mcptry](https://mcptry.com/badge/io.github.arcadia-finance/mcp-server)](https://mcptry.com/servers/io.github.arcadia-finance/mcp-server)
11
+ [![Arcadia Finance MCP on mcprush](https://mcprush.com/badge/arcadia-finance-mcp/score.svg)](https://mcprush.com/to/arcadia-finance-mcp?ref=badge)
12
12
 
13
- MCP server for [Arcadia Finance](https://arcadia.finance), a platform for concentrated liquidity on Uniswap and Aero with automated rebalancing, compounding, yield optimization, and leverage, or single-sided liquidity into lending pools. Read protocol data and build unsigned transactions for LP management, borrowing, deposits, and more.
13
+ MCP server for [Arcadia Finance](https://arcadia.finance), a platform for concentrated liquidity on Uniswap and Aero with automated rebalancing, compounding, yield optimization, and leverage, or single-sided liquidity into lending pools. Read protocol data and build unsigned transactions for LP management, borrowing and deposits. Live on Base, Optimism, Unichain and Robinhood.
14
14
 
15
- Designed for AI agents (Claude, Cursor, etc.) to interact with Arcadia onchain.
15
+ ## Quick start
16
16
 
17
- ## Install
17
+ The hosted server needs no install and no API key:
18
18
 
19
- [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_Server-0078d4?logo=visualstudiocode)](https://vscode.dev/redirect/mcp/install?name=arcadia-finance&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40arcadia-finance%2Fmcp-server%22%5D%7D)
20
- [![Install in Cursor](https://img.shields.io/badge/Cursor-Install_Server-black?logo=cursor)](https://cursor.com/en/install-mcp?name=arcadia-finance&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBhcmNhZGlhLWZpbmFuY2UvbWNwLXNlcnZlciJdfQ==)
19
+ ```
20
+ https://mcp.arcadia.finance/mcp
21
+ ```
22
+
23
+ [![Add to Claude](https://img.shields.io/badge/Claude-Add_Connector-D97757?logo=claude&logoColor=white)](https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=Arcadia%20Finance&connectorUrl=https%3A%2F%2Fmcp.arcadia.finance%2Fmcp)
24
+ [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_Server-0078d4?logo=visualstudiocode)](https://insiders.vscode.dev/redirect/mcp/install?name=arcadia-finance&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.arcadia.finance%2Fmcp%22%7D)
25
+ [![Install in Cursor](https://img.shields.io/badge/Cursor-Install_Server-black?logo=cursor)](https://cursor.com/en/install-mcp?name=arcadia-finance&config=eyJ1cmwiOiJodHRwczovL21jcC5hcmNhZGlhLmZpbmFuY2UvbWNwIn0%3D)
26
+
27
+ The Claude button opens **Customize > Connectors > Add custom connector** with the name and URL filled in. Claude Free allows one custom connector. On Team and Enterprise, an owner adds it under **Organization settings > Connectors**.
28
+
29
+ Most clients accept this config. Cursor reads it from `.cursor/mcp.json` or `~/.cursor/mcp.json`. VS Code uses `.vscode/mcp.json` with `"servers"` in place of `"mcpServers"` and `"type": "http"` on the server.
30
+
31
+ ```json
32
+ {
33
+ "mcpServers": {
34
+ "arcadia-finance": {
35
+ "url": "https://mcp.arcadia.finance/mcp"
36
+ }
37
+ }
38
+ }
39
+ ```
40
+
41
+ <details>
42
+ <summary>Claude Code</summary>
43
+
44
+ Install the plugin, which adds the server and the `clamm-liquidity` skill:
45
+
46
+ ```
47
+ /plugin install arcadia --marketplace arcadia-finance/mcp-server
48
+ ```
49
+
50
+ On Claude Code older than 2.1.275, run `/plugin marketplace add arcadia-finance/mcp-server`, then `/plugin install arcadia@arcadia-finance`. To add only the server:
51
+
52
+ ```bash
53
+ claude mcp add --transport http arcadia-finance https://mcp.arcadia.finance/mcp
54
+ ```
55
+
56
+ </details>
57
+
58
+ <details>
59
+ <summary>ChatGPT</summary>
60
+
61
+ Add `https://mcp.arcadia.finance/mcp` as a custom MCP app. Availability depends on your plan and workspace settings, see [OpenAI's guide](https://help.openai.com/en/articles/12584461).
62
+
63
+ </details>
64
+
65
+ <details>
66
+ <summary>Codex CLI</summary>
67
+
68
+ ```bash
69
+ codex mcp add arcadia-finance --url https://mcp.arcadia.finance/mcp
70
+ ```
71
+
72
+ </details>
73
+
74
+ <details>
75
+ <summary>Gemini CLI</summary>
76
+
77
+ ```bash
78
+ gemini mcp add --transport http arcadia-finance https://mcp.arcadia.finance/mcp
79
+ ```
80
+
81
+ </details>
82
+
83
+ ### Run it locally
84
+
85
+ To run the server as a local process instead (Node.js 22 or newer):
86
+
87
+ ```json
88
+ {
89
+ "mcpServers": {
90
+ "arcadia-finance": {
91
+ "command": "npx",
92
+ "args": ["-y", "@arcadia-finance/mcp-server"]
93
+ }
94
+ }
95
+ }
96
+ ```
97
+
98
+ In Claude Code: `claude mcp add arcadia-finance -- npx -y @arcadia-finance/mcp-server`. Optional environment variables are listed under [Configuration](#configuration).
99
+
100
+ ### Try it
101
+
102
+ - "Which Arcadia strategies on Base have the highest APY right now?"
103
+ - "Show the health factor and positions of Arcadia account 0x..."
104
+ - "Open the top WETH/USDC strategy with 1,000 USDC and turn on compounding."
105
+ - "What do the Arcadia lending pools pay lenders?"
106
+
107
+ Write tools return unsigned transactions. Your wallet signs them, see [Transaction Signing](#transaction-signing).
21
108
 
22
109
  ## Tools
23
110
 
@@ -47,8 +134,6 @@ Designed for AI agents (Claude, Cursor, etc.) to interact with Arcadia onchain.
47
134
 
48
135
  ### Write Tools
49
136
 
50
- All write tools return unsigned transactions as `{ to, data, value, chainId }`.
51
-
52
137
  | Tool | Description |
53
138
  | --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
54
139
  | `write_wallet_approve` | Approve an ERC20 token for spending. Required before depositing into an account. Call `read_wallet_allowances` first to check if already approved. |
@@ -72,7 +157,7 @@ All write tools return unsigned transactions as `{ to, data, value, chainId }`.
72
157
 
73
158
  ### Dev Tools
74
159
 
75
- Always registered but requires `PK` env var to function.
160
+ Registered only when the `PK` env var is set.
76
161
 
77
162
  | Tool | Description |
78
163
  | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -80,12 +165,11 @@ Always registered but requires `PK` env var to function.
80
165
 
81
166
  ## Transaction Signing
82
167
 
83
- All write tools return **unsigned transactions** as `{ to, data, value, chainId }`. This server does NOT sign or broadcast — your agent or application is responsible for that.
168
+ All write tools return **unsigned transactions** as `{ to, data, value, chainId }`. This server does not sign or broadcast them; your agent or application does.
84
169
 
85
170
  ### Options
86
171
 
87
- **Wallet MCP servers (recommended for production):**
88
- Pair this server with a wallet MCP server that handles signing:
172
+ **Wallet MCP servers** (recommended for production):
89
173
 
90
174
  | Wallet MCP | Provider | Model |
91
175
  | ----------------------------------------------------------------- | --------- | --------------------------------------------------------- |
@@ -115,25 +199,16 @@ const hash = await client.sendTransaction(tx);
115
199
  The server includes a dev-only signing tool that reads a private key from the `PK` environment variable. Set `PK` via a `.env` file or your MCP client config:
116
200
 
117
201
  ```bash
118
- # .env in the server directory (never commit — already gitignored)
202
+ # .env in the server directory (gitignored, never commit it)
119
203
  PK=0xYourPrivateKeyHex
120
204
  RPC_URL_BASE=https://base-mainnet.g.alchemy.com/v2/your-key
121
205
  ```
122
206
 
123
- The server loads `.env` automatically on startup. Works with any MCP client (Claude Desktop, Claude Code, VSCode, Cursor). MCP client `env` block settings take precedence if both are set.
124
-
125
- Not for production — use a dedicated wallet MCP server (Fireblocks, Turnkey, Safe) instead.
126
-
127
- ## Setup
207
+ The server loads `.env` on startup. Values in the MCP client `env` block take precedence.
128
208
 
129
- **Prerequisites:** Node.js >= 22
130
-
131
- ```bash
132
- yarn install
133
- yarn build
134
- ```
209
+ ## Configuration
135
210
 
136
- **Environment variables:**
211
+ All environment variables are optional.
137
212
 
138
213
  | Variable | Required | Default | Transport | Description |
139
214
  | ------------------- | -------- | ----------------------------- | --------- | -------------------------------------------------------------- |
@@ -142,89 +217,30 @@ yarn build
142
217
  | `RPC_URL_OPTIMISM` | No | Public RPC | Both | RPC URL for Optimism (10). |
143
218
  | `RPC_URL_ROBINHOOD` | No | Public RPC | Both | RPC URL for Robinhood (4663). |
144
219
  | `PK` | No | none | Both | Private key (hex) for dev-only `dev_send` tool. |
145
- | `TRANSPORT` | No | `stdio` | — | Transport mode: `stdio` or `http`. |
220
+ | `TRANSPORT` | No | `stdio` | n/a | Transport mode: `stdio` or `http`. |
146
221
  | `PORT` | No | `3000` | HTTP | Listen port for HTTP transport. |
147
222
  | `ALLOWED_ORIGINS` | No | `https://mcp.arcadia.finance` | HTTP | Comma-separated allowed Origin headers (CORS / DNS rebinding). |
148
223
  | `RATE_LIMIT_RPM` | No | `600` | HTTP | Max requests per minute per client IP. |
149
224
  | `POSTHOG_KEY` | No | none | HTTP | PostHog project key. Unset = no analytics are sent. |
150
225
  | `POSTHOG_HOST` | No | `https://eu.i.posthog.com` | HTTP | PostHog ingestion host. |
151
226
 
152
- **Supported chains:** Base (8453), Unichain (130), Optimism (10), Robinhood (4663)
153
-
154
- ## MCP Client Configuration
155
-
156
- **Remote (no install needed):**
157
-
158
- ```json
159
- {
160
- "mcpServers": {
161
- "arcadia-finance": {
162
- "url": "https://mcp.arcadia.finance/mcp"
163
- }
164
- }
165
- }
166
- ```
167
-
168
- **Via npx** (local stdio):
169
-
170
- ```json
171
- {
172
- "mcpServers": {
173
- "arcadia-finance": {
174
- "command": "npx",
175
- "args": ["-y", "@arcadia-finance/mcp-server"],
176
- "env": {
177
- "RPC_URL_BASE": "https://base-mainnet.g.alchemy.com/v2/your-key"
178
- }
179
- }
180
- }
181
- }
182
- ```
183
-
184
- **Claude Code:**
185
-
186
- ```bash
187
- # Remote
188
- claude mcp add arcadia-finance --transport http https://mcp.arcadia.finance/mcp
189
-
190
- # Local
191
- claude mcp add arcadia-finance -- npx -y @arcadia-finance/mcp-server
192
- ```
193
-
194
- **From source** (local development):
195
-
196
- ```json
197
- {
198
- "mcpServers": {
199
- "arcadia-finance": {
200
- "command": "node",
201
- "args": ["/absolute/path/to/mcp-server/dist/index.js"],
202
- "env": {
203
- "RPC_URL_BASE": "https://base-mainnet.g.alchemy.com/v2/your-key"
204
- }
205
- }
206
- }
207
- }
208
- ```
209
-
210
227
  ## Skills
211
228
 
212
- The `skills/` directory contains Claude Code skills that teach AI agents how to use this MCP server effectively. To install a skill, symlink it into your Claude skills directory:
229
+ The `skills/` directory contains skills that teach AI agents how to use this MCP server. The Claude Code plugin (see [Quick start](#quick-start)) installs them together with the server. To install a skill on its own, symlink it into your skills directory:
213
230
 
214
231
  ```bash
215
232
  ln -s /path/to/mcp-server/skills/clamm-liquidity ~/.claude/skills/clamm-liquidity
216
233
  ```
217
234
 
218
- Available skills:
219
-
220
235
  | Skill | Description |
221
236
  | ----------------- | ------------------------------------------------------------------------------------------------- |
222
237
  | `clamm-liquidity` | Concentrated liquidity management: concepts, intent-based automation, and step-by-step workflows. |
223
238
 
239
+ The [OpenClaw](https://clawhub.ai/skills/arcadia-finance) skill in `openclaw/` calls the hosted server through a curl script, for agents without MCP support.
240
+
224
241
  ## Reporting Issues
225
242
 
226
- Found a bug, missing feature, or unclear documentation while using this server?
227
- Open an issue: https://github.com/arcadia-finance/mcp-server/issues
243
+ Open an issue for bugs, missing features or unclear documentation: https://github.com/arcadia-finance/mcp-server/issues
228
244
 
229
245
  **For AI agents:** If you hit a gap during task execution, open an issue with:
230
246
 
@@ -232,13 +248,12 @@ Open an issue: https://github.com/arcadia-finance/mcp-server/issues
232
248
  - What you expected vs what happened
233
249
  - The strategy or goal you were trying to execute
234
250
 
235
- Pull requests for documentation fixes are welcome from agents and humans alike. All PRs require human review before merging.
251
+ Pull requests for documentation fixes are welcome. Every PR needs a human review before merging.
236
252
 
237
253
  ## Where to Find Us
238
254
 
239
255
  - **npm:** [@arcadia-finance/mcp-server](https://www.npmjs.com/package/@arcadia-finance/mcp-server)
240
256
  - **MCP Registry:** [registry.modelcontextprotocol.io](https://registry.modelcontextprotocol.io/?q=arcadia)
241
- - **Smithery:** [smithery.ai](https://smithery.ai/servers/arcadia-finance/mcp-server)
242
257
  - **MCP Servers:** [mcpservers.org](https://mcpservers.org/en/servers/arcadia-finance/mcp-server)
243
258
  - **LobeHub:** [lobehub.com](https://lobehub.com/mcp/arcadia-finance-mcp-server)
244
259
  - **PulseMCP:** [pulsemcp.com](https://www.pulsemcp.com/servers/arcadia-finance)
@@ -250,13 +265,16 @@ Pull requests for documentation fixes are welcome from agents and humans alike.
250
265
  ## Development
251
266
 
252
267
  ```bash
253
- yarn dev # Run with tsx (hot reload)
268
+ yarn install
254
269
  yarn build # Compile TypeScript
270
+ yarn dev # Run with tsx (hot reload)
255
271
  yarn test # Run tests
256
272
  yarn lint # Lint with ESLint
257
273
  yarn format # Check formatting with Prettier
258
274
  ```
259
275
 
276
+ To point a client at your build, use `"command": "node"` with `"args": ["/absolute/path/to/mcp-server/dist/index.js"]`.
277
+
260
278
  ## Privacy
261
279
 
262
280
  When `POSTHOG_KEY` is set on an HTTP deployment, the server records one analytics event per tool call in PostHog (EU ingestion host by default): the tool name, its arguments (which can include public wallet and account addresses), whether the call failed, the duration, and the client name and version. Events carry no person profile. Running the server locally over stdio sends no analytics, and neither does an HTTP deployment without `POSTHOG_KEY`. Tool calls never carry private keys. The development-only `dev_send` tool signs with a `PK` set in the server's own environment; the hosted server has none. Questions: legal@arcadia.finance.
@@ -6,6 +6,9 @@ import { CHAIN_ID_DESCRIPTION } from "../../config/chains.js";
6
6
  import { DevSendOutput } from "../output-schemas.js";
7
7
  import { validateAddress, validateHexCalldata, parseWeiDecimalString, } from "../../utils/validation.js";
8
8
  export function registerSendTool(server, chains) {
9
+ const pk = process.env.PK;
10
+ if (!pk)
11
+ return;
9
12
  server.registerTool("dev_send", {
10
13
  annotations: {
11
14
  title: "Sign and Send Transaction",
@@ -24,18 +27,6 @@ export function registerSendTool(server, chains) {
24
27
  }),
25
28
  }, async (params) => {
26
29
  try {
27
- const pk = process.env.PK;
28
- if (!pk) {
29
- return {
30
- content: [
31
- {
32
- type: "text",
33
- text: "Error: PK not set. Either create a .env file with PK=0x... in the server directory, or set PK in your MCP client config env block. This tool is for development only — use a dedicated wallet MCP server for production.",
34
- },
35
- ],
36
- isError: true,
37
- };
38
- }
39
30
  const validTo = validateAddress(params.to, "to");
40
31
  const calldata = validateHexCalldata(params.data, "data");
41
32
  const valueWei = parseWeiDecimalString(params.value, "value");
package/llms-full.txt CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## Overview
6
6
 
7
- Arcadia lets users deploy concentrated liquidity positions with automated rebalancing, compounding, yield optimization, and leverage, or provide single-sided liquidity to lending pools to earn borrower interest. This MCP server exposes the full protocol as 38 tools:
7
+ Arcadia lets users deploy concentrated liquidity positions with automated rebalancing, compounding, yield optimization, and leverage, or provide single-sided liquidity to lending pools to earn borrower interest. This MCP server exposes the full protocol as 37 tools, plus `dev_send` when `PK` is set:
8
8
 
9
9
  - **Account management**: health factor, collateral, debt, positions, PnL, history
10
10
  - **Wallet**: ERC20 balances, allowances, owned accounts, points
@@ -427,7 +427,7 @@ Parameters:
427
427
  - `disable` (string[], default: []): Asset-manager addresses to switch off, as returned by read_asset_manager_current
428
428
  - position context params and `chain_id`: same as write_account_automations
429
429
 
430
- ## Dev Tools (1)
430
+ ## Dev Tools (only when PK is set)
431
431
 
432
432
  ### dev_send
433
433
 
package/llms.txt CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## Overview
6
6
 
7
- Arcadia lets users deploy concentrated liquidity positions with automated rebalancing, compounding, yield optimization, and leverage, or provide single-sided liquidity to lending pools to earn borrower interest. This MCP server exposes the full protocol as 38 tools:
7
+ Arcadia lets users deploy concentrated liquidity positions with automated rebalancing, compounding, yield optimization, and leverage, or provide single-sided liquidity to lending pools to earn borrower interest. This MCP server exposes the full protocol as 37 tools, plus `dev_send` when `PK` is set:
8
8
 
9
9
  - **Account management**: health factor, collateral, debt, positions, PnL, history
10
10
  - **Wallet**: ERC20 balances, allowances, owned accounts, points
@@ -24,7 +24,7 @@ npx -y @arcadia-finance/mcp-server
24
24
 
25
25
  Or connect to the remote server: `https://mcp.arcadia.finance/mcp`
26
26
 
27
- ## Tools (38 total)
27
+ ## Tools (37, plus dev_send when PK is set)
28
28
 
29
29
  ### Read (19)
30
30
 
@@ -69,7 +69,7 @@ Or connect to the remote server: `https://mcp.arcadia.finance/mcp`
69
69
  - write_account_automations: configure automations from an intents array (complete desired state), returns the unsigned setAssetManagers tx
70
70
  - write_account_automations_delta: switch individual automations on or off, leaving the rest untouched
71
71
 
72
- ### Dev (1)
72
+ ### Dev (only when PK is set)
73
73
 
74
74
  - dev_send: sign and broadcast using local private key (dev only)
75
75
 
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@arcadia-finance/mcp-server",
3
3
  "mcpName": "io.github.arcadia-finance/mcp-server",
4
- "version": "0.7.0",
5
- "description": "MCP server for Arcadia Finance. Deploy concentrated liquidity on Uniswap/Aero, Aerodrome and Velodrome with automated rebalancing, compounding, yield optimization, and leverage, or single-sided liquidity into lending pools. Base, Optimism, Unichain and Robinhood.",
4
+ "version": "0.7.2",
5
+ "description": "MCP server for Arcadia Finance. Deploy concentrated liquidity on Uniswap/Aero, Aerodrome and Velodrome with automated rebalancing, compounding, yield optimization, and leverage, or single-sided liquidity into lending pools. Live on Base, Optimism, Unichain and Robinhood.",
6
6
  "type": "module",
7
7
  "license": "AGPL-3.0",
8
8
  "packageManager": "yarn@4.13.0",
@@ -27,6 +27,8 @@
27
27
  "slipstream",
28
28
  "base",
29
29
  "unichain",
30
+ "optimism",
31
+ "robinhood",
30
32
  "ethereum",
31
33
  "leverage",
32
34
  "yield-farming",
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "io.github.arcadia-finance/mcp-server",
4
4
  "title": "Arcadia Finance",
5
5
  "description": "Concentrated liquidity on Uniswap/Aero (rebalance, compound, leverage) or single-sided lending.",
6
- "version": "0.7.0",
6
+ "version": "0.7.2",
7
7
  "websiteUrl": "https://arcadia.finance",
8
8
  "icons": [
9
9
  {
@@ -20,7 +20,7 @@
20
20
  {
21
21
  "registryType": "npm",
22
22
  "identifier": "@arcadia-finance/mcp-server",
23
- "version": "0.7.0",
23
+ "version": "0.7.2",
24
24
  "transport": {
25
25
  "type": "stdio"
26
26
  },
@@ -4,19 +4,19 @@ description: Agent guide for clAMM management on Arcadia Finance. Covers 37 MCP
4
4
  user-invocable: true
5
5
  ---
6
6
 
7
- # Arcadia Finance — clAMM Agent Guide
7
+ # Arcadia Finance clAMM Agent Guide
8
8
 
9
- Arcadia is a platform for managing concentrated liquidity positions with automated rebalancing, compounding, yield optimization, and leverage. Positions live in Arcadia accounts, which can also borrow against their collateral. This skill covers everything needed to manage clAMM positions as an agent.
9
+ Arcadia is a platform for managing concentrated liquidity positions with automated rebalancing, compounding, yield optimization, and leverage. Positions live in Arcadia accounts, which can also borrow against their collateral. This skill covers clAMM position management for agents.
10
10
 
11
11
  ## Key Constraints
12
12
 
13
13
  - **All `write_*` tools return unsigned transactions** (`{ to, data, value, chainId }`): you must sign and broadcast them. See "Transaction Signing" below.
14
- - **Automation strategy config** (tick range, rebalance thresholds) is not currently settable via MCP — this requires Arcadia platform access.
14
+ - **Automation settings**: rebalance triggers, cooldowns and the POL and take-profit parameters go in the `strategy` of the `rebalance` intent in `write_account_automations`. You choose the range width when opening the position, with `tick_lower` and `tick_upper` in `write_account_add_liquidity`.
15
15
  - **Health factor** = `1 - (used_margin / liquidation_value)`. Higher is safer. `1` = no debt, `>0` = healthy, `0` = liquidation threshold, `<0` = past liquidation. Keep above 0.5 for leveraged positions; act immediately below 0.2.
16
16
  - **Minimum margin**: each lending pool enforces a fixed minimum margin denominated in the pool's numeraire (e.g. WETH for the WETH pool, USDC for the USDC pool), typically a few dollars in value. This gets **added to the debt** when computing `used_margin` (i.e. `used_margin = open_debt + minimum_margin`). It ensures liquidations remain profitable (covering gas costs) and prevents dust attacks. For small positions the fixed minimum margin dominates the used margin, pushing health factor lower than the leverage ratio alone would suggest (e.g. HF ~0.3 at 2× leverage). Increase position size for a healthier starting HF. `write_account_add_liquidity` also validates deposits against per-asset minimum amounts from strategy risk factors.
17
17
  - **Price warnings**: if `write_account_add_liquidity` finds a pool price off market or a token with no price, it returns the warnings, an `accept_price_checks` list and no transaction. Show the warnings to the user and call again with that list only after the user explicitly confirms. Never set `accept_price_checks` on the first call. New warnings on a rebuild need a new confirmation. The acknowledgement never bypasses a backend refusal.
18
18
  - **`asset_id`** is always an integer (NFT token ID for LP positions, 0 for ERC20 tokens).
19
- - **Wrapping ETH** — ETH must be wrapped to WETH before depositing. Call WETH's `deposit()` function (payable) with the ETH amount. No MCP tool for this, use your wallet.
19
+ - **Wrapping ETH**: ETH must be wrapped to WETH before depositing. Call WETH's `deposit()` function (payable) with the ETH amount. No MCP tool for this, use your wallet.
20
20
 
21
21
  ## Transaction Signing
22
22
 
@@ -28,10 +28,10 @@ Write tools (`write_*`) return unsigned transaction calldata. This server does N
28
28
 
29
29
  How you sign depends on your setup:
30
30
 
31
- - **MPC wallet** (Fireblocks, Dfns, Turnkey) — pass the unsigned tx to your provider's signing API
32
- - **Smart account** (Safe, Biconomy) — wrap the tx as a UserOperation or Safe transaction
33
- - **Embedded wallet** (Privy, Dynamic) — use the provider's `sendTransaction` method
34
- - **Direct private key** (development only): use the built-in `dev_send` tool (set `PK` in a `.env` file or MCP client config), or viem/ethers `sendTransaction` with a local signer
31
+ - **MPC wallet** (Fireblocks, Dfns, Turnkey): pass the unsigned tx to your provider's signing API
32
+ - **Smart account** (Safe, Biconomy): wrap the tx as a UserOperation or Safe transaction
33
+ - **Embedded wallet** (Privy, Dynamic): use the provider's `sendTransaction` method
34
+ - **Direct private key** (development only): use the built-in `dev_send` tool, which the server lists only when `PK` is set in a `.env` file or the MCP client config, or viem/ethers `sendTransaction` with a local signer
35
35
 
36
36
  Example with viem:
37
37
 
@@ -42,7 +42,7 @@ const receipt = await publicClient.waitForTransactionReceipt({ hash });
42
42
 
43
43
  ## Batching Philosophy
44
44
 
45
- Arcadia's flash-action tools can batch multiple DeFi operations into a single atomic transaction. **Always prefer batched tools** — they reduce transaction count, gas cost, and exposure to price movement between steps.
45
+ Arcadia's flash-action tools can batch multiple DeFi operations into a single atomic transaction. **Always prefer batched tools**: they reduce transaction count, gas cost, and exposure to price movement between steps.
46
46
 
47
47
  **When to split:** In high-volatility markets or for low-liquidity pools, batched transactions may revert because on-chain state changes between when the backend computes calldata and when the transaction executes. If a batched tool fails, fall back to individual tools with tighter slippage. Always try batched first, split only on failure.
48
48
 
@@ -74,7 +74,7 @@ Arcadia's flash-action tools can batch multiple DeFi operations into a single at
74
74
  | `read_account_aero_upgrade` | Aero upgrade check: what a wallet's accounts (or one account) still have to move to Aero, with status and counts and no calldata. Empty accounts and failed_accounts lists mean nothing to do. |
75
75
  | `read_guides` | Reference guides: `automation` (AM setup), `selection` (pool evaluation), `strategies` (step-by-step templates). |
76
76
 
77
- ### Preferred Write Tools (atomic/multi-step — use these first)
77
+ ### Preferred Write Tools (atomic/multi-step, use these first)
78
78
 
79
79
  These tools batch multiple operations into ONE atomic transaction. Always prefer these over individual tools.
80
80
 
@@ -118,13 +118,14 @@ These tools batch multiple operations into ONE atomic transaction. Always prefer
118
118
 
119
119
  ### Lending Pools
120
120
 
121
- Use as `pool_address` in `write_account_borrow` / `write_account_repay`, as `creditor` in `write_account_create` / `write_account_deleverage`. Same CREATE2 addresses on Base and Optimism. Unichain has no lending pools.
121
+ Use as `pool_address` in `write_account_borrow` / `write_account_repay`, as `creditor` in `write_account_create` / `write_account_deleverage`. A pool has the same CREATE2 address on every chain where it exists. Unichain has no lending pools.
122
122
 
123
- | Asset | Pool Address | Chains |
124
- | ----- | -------------------------------------------- | -------------- |
125
- | WETH | `0x803ea69c7e87D1d6C86adeB40CB636cC0E6B98E2` | Base, Optimism |
126
- | USDC | `0x3ec4a293Fb906DD2Cd440c20dECB250DeF141dF1` | Base, Optimism |
127
- | cbBTC | `0xa37E9b4369dc20940009030BfbC2088F09645e3B` | Base only |
123
+ | Asset | Pool Address | Chains |
124
+ | ----- | -------------------------------------------- | ------------------------- |
125
+ | WETH | `0x803ea69c7e87D1d6C86adeB40CB636cC0E6B98E2` | Base, Optimism, Robinhood |
126
+ | USDC | `0x3ec4a293Fb906DD2Cd440c20dECB250DeF141dF1` | Base, Optimism |
127
+ | cbBTC | `0xa37E9b4369dc20940009030BfbC2088F09645e3B` | Base only |
128
+ | USDG | `0xf37c0C5996503Fdd2b5CCCE36E659cD30393AE59` | Robinhood only |
128
129
 
129
130
  ### Asset Manager Addresses
130
131
 
@@ -179,9 +180,9 @@ Slipstream V3 on Optimism uses different addresses (exception to the determinist
179
180
 
180
181
  Spot vs margin is determined by whether a **creditor** (lending pool) is set at account creation, not by version number.
181
182
 
182
- - `account_version: 3` — **margin account** (created with a `creditor`). Can borrow, leverage, and mint LP. Uses an onchain whitelist of allowed collateral tokens.
183
- - `account_version: 4` or `0` (latest) — **spot account** (no creditor, no borrowing). Can hold assets and mint LP with `leverage: 0`. Accepts any ERC20 (no onchain whitelist).
184
- - `account_version: 1` or `2` — legacy. Not supported by current MCP tools (the automation tools require V3/V4).
183
+ - `account_version: 3`: **margin account** (created with a `creditor`). Can borrow, leverage, and mint LP. Uses an onchain whitelist of allowed collateral tokens.
184
+ - `account_version: 4` or `0` (latest): **spot account** (no creditor, no borrowing). Can hold assets and mint LP with `leverage: 0`. Accepts any ERC20 (no onchain whitelist).
185
+ - `account_version: 1` or `2`: legacy. Not supported by current MCP tools (the automation tools require V3/V4).
185
186
  - For **leveraged LP strategies**, use `account_version: 3` with a creditor.
186
187
  - To check an existing account's version: call `read_account_info`: the response includes the account version.
187
188
 
@@ -237,6 +238,6 @@ Protocols: Uniswap V3, Uniswap V4, Aero CL (MetadexCL V1). No Slipstream V1-V3.
237
238
 
238
239
  ## Reference Files
239
240
 
240
- - [automation.md](automation.md) — How to enable each automation type
241
- - [selection.md](selection.md) — How to evaluate pools, choose range width, size leverage, combine automation
241
+ - [automation.md](automation.md): How to enable each automation type
242
+ - [selection.md](selection.md): How to evaluate pools, choose range width, size leverage, combine automation
242
243
  - [strategies.md](strategies.md): Step-by-step strategy templates: delta neutral LP, protocol-owned liquidity, and the upgrade to Aero
@@ -1,6 +1,6 @@
1
1
  # Strategy Selection & Parameterization
2
2
 
3
- Use this guide to evaluate whether a strategy makes sense and how to configure it. Apply to any LP strategy — not just the delta neutral example in strategies.md.
3
+ Use this guide to evaluate whether a strategy makes sense and how to configure it. Apply to any LP strategy, not just the delta neutral example in strategies.md.
4
4
 
5
5
  ---
6
6
 
@@ -34,16 +34,13 @@ Must be positive to justify the leverage cost. Higher leverage amplifies both si
34
34
  - Volume + TVL: high volume/TVL ratio = fees are being earned actively
35
35
  - Active Merkl rewards: extra yield on top of the fee APY
36
36
 
37
- **`numeraire` — context-dependent meaning:**
38
-
39
- - **`write_account_add_liquidity`**: `numeraire` = account base currency (typically the stable side, e.g. USDC for a WETH/USDC position). The backend uses it to denominate calculations and determine the optimal swap ratio. For WETH/USDC: `numeraire = 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913` (USDC).
40
- - **`write_account_deleverage`**: `numeraire` = the debt token you're repaying (e.g. WETH address when repaying WETH debt). This differs from the add liquidity usage.
37
+ **`numeraire`**: `write_account_add_liquidity` detects the account's numeraire itself. In `write_account_deleverage`, `numeraire` is the debt token you repay (e.g. the WETH address when repaying WETH debt).
41
38
 
42
39
  ---
43
40
 
44
41
  ## 2. Range Width
45
42
 
46
- Range width is the central tradeoff in any LP strategy. It is set in the Arcadia platform after enabling the rebalancer. Understanding the full tradeoff is essential for choosing parameters — a simple fee APY comparison is not enough.
43
+ Range width is the central tradeoff in any LP strategy. You choose it when opening the position, by passing `tick_lower` and `tick_upper` for each position in `write_account_add_liquidity`. Understanding the full tradeoff is essential for choosing parameters: a simple fee APY comparison is not enough.
47
44
 
48
45
  **Core principle:** The `strategy_apy` from `read_strategy_list` (list view) is the 7-day average APY computed for that strategy's **default range width** (configured per strategy: e.g. very narrow for stables, ±7.5% / balanced for most volatile pairs). It is sampled every ~3 hours and averaged over 7d. It already reflects a concentrated range: NOT a full-range / pool-level number. Choosing a different range width changes your actual yield: narrower = higher fee capture but more rebalancing cost/risk, wider = lower fees but fewer rebalances. Call `read_strategy_info(strategy_id: <id>)` to see APY over the last 24 hours broken down by range width (very_narrow, narrow, balanced, wide, very_wide). The net return after rebalancing costs, IL, and gas determines the optimal width: see the model below.
49
46
 
@@ -51,9 +48,9 @@ Range width is the central tradeoff in any LP strategy. It is set in the Arcadia
51
48
 
52
49
  **Narrower range → higher fee capture, but three compounding costs:**
53
50
 
54
- 1. **Delta risk:** A narrow position changes composition rapidly as price moves. A WETH/USDC position that was 50/50 quickly becomes 100% WETH or 100% USDC when price moves even slightly. Your net exposure to the volatile asset fluctuates heavily — you are not truly delta neutral across the range.
51
+ 1. **Delta risk:** A narrow position changes composition rapidly as price moves. A WETH/USDC position that was 50/50 quickly becomes 100% WETH or 100% USDC when price moves even slightly. Your net exposure to the volatile asset fluctuates heavily; you are not truly delta neutral across the range.
55
52
 
56
- 2. **IL crystallized per rebalance:** Every rebalance permanently locks in accumulated impermanent loss. It doesn't disappear by rebalancing — it gets realized. More frequent rebalancing means more IL crystallized over time.
53
+ 2. **IL crystallized per rebalance:** Every rebalance permanently locks in accumulated impermanent loss. It doesn't disappear by rebalancing; it gets realized. More frequent rebalancing means more IL crystallized over time.
57
54
 
58
55
  3. **Rebalancing costs:** Each rebalance incurs gas costs plus swap slippage (the rebalancer must swap tokens to re-establish the target ratio for the new range). For small or low-fee positions, rebalancing costs can easily exceed earned fees.
59
56
 
@@ -108,9 +105,9 @@ Leverage multiplies both fee income and liquidation risk.
108
105
  | ----------------------------- | ------------------------------------------- | ------------------------- | ---------------------- |
109
106
  | 1× (no borrow, `leverage: 0`) | Safe LP, no liquidation risk | N/A | 1.0 (no debt) |
110
107
  | 2× | Classic delta neutral, volatile/stable pair | ~1.5–2× | ~0.5–0.7 |
111
- | 3×+ | Aggressive yield, only in stable conditions | < 1.5× — watch carefully | < 0.5 — watch closely |
108
+ | 3×+ | Aggressive yield, only in stable conditions | < 1.5×, watch carefully | < 0.5, watch closely |
112
109
 
113
- **Minimum margin and small positions:** Each lending pool enforces a fixed minimum margin denominated in the pool's numeraire (e.g. WETH, USDC, cbBTC), typically a few dollars in value. This gets added to the debt in the health factor formula: `used_margin = open_debt + minimum_margin`. It ensures liquidations remain profitable (gas costs) and prevents dust attacks. For small positions, this fixed overhead dominates used margin, pushing health factor lower than the leverage ratio alone would suggest — e.g. 2× leverage normally targets HF ~0.5–0.7, but a small position might start at HF ~0.3. Increase position size for a healthier starting HF.
110
+ **Minimum margin and small positions:** Each lending pool enforces a fixed minimum margin denominated in the pool's numeraire (e.g. WETH, USDC, cbBTC), typically a few dollars in value. This gets added to the debt in the health factor formula: `used_margin = open_debt + minimum_margin`. It ensures liquidations remain profitable (gas costs) and prevents dust attacks. For small positions, this fixed overhead dominates used margin, pushing health factor lower than the leverage ratio alone would suggest, e.g. 2× leverage normally targets HF ~0.5–0.7, but a small position might start at HF ~0.3. Increase position size for a healthier starting HF.
114
111
 
115
112
  **Profitability check:**
116
113
 
@@ -118,11 +115,11 @@ Leverage multiplies both fee income and liquidation risk.
118
115
  borrow_APY × (leverage - 1) < fee_APY × leverage → leverage is profitable
119
116
  ```
120
117
 
121
- **Two safety metrics — collateral ratio vs health factor:**
118
+ **Two safety metrics, collateral ratio vs health factor:**
122
119
 
123
120
  The API returns `health_factor = 1 - (used_margin / liquidation_value)`. This is between 0 and 1: higher is safer. `1` = no debt, `0` = liquidation threshold. See SKILL.md Key Constraints.
124
121
 
125
- A useful complementary metric is the **collateral ratio** — a rough estimate of how much buffer you have:
122
+ A useful complementary metric is the **collateral ratio**, a rough estimate of how much buffer you have:
126
123
 
127
124
  ```
128
125
  collateral_value × collateral_factor
@@ -130,27 +127,27 @@ collateral_value × collateral_factor
130
127
  debt_value
131
128
  ```
132
129
 
133
- Target collateral ratio ≥ 1.5 at entry (≈ health factor ~0.5+). Never open below 1.3 (≈ health factor ~0.3).
130
+ Target collateral ratio ≥ 1.5 at entry (health factor about 0.5 or higher). Never open below 1.3 (health factor about 0.3).
134
131
 
135
132
  **When to use less leverage:**
136
133
 
137
134
  - Borrow APY rising (utilization climbing in lending pool)
138
135
  - Market showing high volatility (gap risk)
139
- - Position already near support/resistance — a breakout would spike debt fast
136
+ - Position already near support/resistance: a breakout would spike debt fast
140
137
  - Health factor dropping toward 0.5 (check with `read_account_info`)
141
138
 
142
139
  ---
143
140
 
144
141
  ## 4. Combining Automation
145
142
 
146
- | Combination | Compatible | Notes |
147
- | --------------------------------- | ------------ | --------------------------------------------------------------------------------------------------------------------------- |
148
- | `rebalance` + `compound_fees` | ✅ Yes | Rebalance compounds at rebalance time; compound_fees adds compounding between rebalances. |
149
- | `rebalance` + `claim_rewards` | ✅ Yes | Claims yield between rebalances. Order is handled by the keeper's claim-before guard. |
150
- | `rebalance` + `claim_merkl` | ✅ Yes | Always combine when the pool has Merkl incentives. Zero conflict. |
151
- | `compound_fees` + `claim_merkl` | ✅ Yes | Merkl rewards are claimed separately from trading fees. |
152
- | `compound_fees` + `claim_rewards` | ⚠️ Per token | Valid only as a partition: each yielding token must go to exactly one of the two, and every yielding token must be covered. |
153
- | `add_to_lp` + anything | ✅ Yes | Independent fold. Only constraint: a folded token cannot be a convert `buy_token`. |
143
+ | Combination | Compatible | Notes |
144
+ | --------------------------------- | ---------- | --------------------------------------------------------------------------------------------------------------------------- |
145
+ | `rebalance` + `compound_fees` | Yes | Rebalance compounds at rebalance time; compound_fees adds compounding between rebalances. |
146
+ | `rebalance` + `claim_rewards` | Yes | Claims yield between rebalances. Order is handled by the keeper's claim-before guard. |
147
+ | `rebalance` + `claim_merkl` | Yes | Always combine when the pool has Merkl incentives. Zero conflict. |
148
+ | `compound_fees` + `claim_merkl` | Yes | Merkl rewards are claimed separately from trading fees. |
149
+ | `compound_fees` + `claim_rewards` | Per token | Valid only as a partition: each yielding token must go to exactly one of the two, and every yielding token must be covered. |
150
+ | `add_to_lp` + anything | Yes | Independent fold. Only constraint: a folded token cannot be a convert `buy_token`. |
154
151
 
155
152
  ---
156
153
 
@@ -160,7 +157,7 @@ Monitor periodically with `read_account_info` and `read_account_pnl`. Exit or ad
160
157
 
161
158
  | Signal | Threshold | Action |
162
159
  | -------------------------------- | ------------------------ | ------------------------------------- |
163
- | Borrow APY > fee APY | Persists 3+ checks | Exit strategy — no longer profitable |
160
+ | Borrow APY > fee APY | Persists 3+ checks | Exit strategy, no longer profitable |
164
161
  | Health factor falling | < 0.5 | Add collateral or reduce debt |
165
162
  | Health factor critical | < 0.2 | Immediate action required |
166
163
  | Position out-of-range repeatedly | Bot can't keep up | Widen range or reduce leverage |
@@ -1,6 +1,6 @@
1
1
  # Strategy Templates
2
2
 
3
- These are templates and examples — not the only valid approaches. Adapt parameters to current conditions. Use selection.md to evaluate whether a strategy fits before executing.
3
+ These are templates and examples, not the only valid approaches. Adapt parameters to current conditions. Use selection.md to evaluate whether a strategy fits before executing.
4
4
 
5
5
  ## Key Parameter Notes
6
6
 
@@ -29,9 +29,9 @@ Close: disable rebalancer → unstake → atomic close (burn LP + swap + repay
29
29
 
30
30
  ### Batching vs splitting
31
31
 
32
- **Default: always use atomic tools.** `write_account_add_liquidity` batches opening, `write_account_close` batches closing, `write_account_deleverage` batches debt repayment from collateral. These reduce transaction count and eliminate exposure to price movement between steps.
32
+ **Default: always use atomic tools.** `write_account_add_liquidity` batches opening, `write_account_close` batches closing, `write_account_deleverage` batches debt repayment from collateral. These reduce transaction count and exposure to price movement between steps.
33
33
 
34
- **When to split:** In high-volatility markets or for low-liquidity pools, atomic transactions may revert because on-chain state diverges from when the backend computed the calldata. If an atomic tool fails, fall back to individual tools with tighter slippage. Always try atomic first — split only on failure.
34
+ **When to split:** In high-volatility markets or for low-liquidity pools, atomic transactions may revert because on-chain state diverges from when the backend computed the calldata. If an atomic tool fails, fall back to individual tools with tighter slippage. Always try atomic first, split only on failure.
35
35
 
36
36
  ---
37
37
 
@@ -43,7 +43,7 @@ Close: disable rebalancer → unstake → atomic close (burn LP + swap + repay
43
43
 
44
44
  **Why it works:**
45
45
 
46
- - LP position is ~50% WETH, ~50% USDC by value at any given price
46
+ - LP position starts roughly 50% WETH, 50% USDC by value at entry
47
47
  - You borrow WETH to provide it → WETH debt ≈ WETH held in LP
48
48
  - Net WETH exposure ≈ 0 (small residual from IL)
49
49
  - You earn LP fees on the full leveraged notional
@@ -68,8 +68,8 @@ read_pool_list(chain_id: 8453)
68
68
  // 3. CREATE MARGIN ACCOUNT (V3 + creditor = can borrow/leverage)
69
69
  write_account_create(
70
70
  salt: <random uint32, e.g. 3141592653>,
71
- account_version: 3, // V3 margin — required for leverage
72
- creditor: "0x803ea69c7e87D1d6C86adeB40CB636cC0E6B98E2", // WETH lending pool — enables borrow
71
+ account_version: 3, // V3 margin, required for leverage
72
+ creditor: "0x803ea69c7e87D1d6C86adeB40CB636cC0E6B98E2", // WETH lending pool, enables borrow
73
73
  chain_id: 8453
74
74
  )
75
75
  → Submit tx, note deployed account address from tx receipt
@@ -96,13 +96,13 @@ write_account_add_liquidity(
96
96
  account_address: <account_address>,
97
97
  wallet_address: <owner_wallet>,
98
98
  positions: [{ strategy_id: <integer from step 1> }],
99
- deposits: [{ asset: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", amount: "10000000000", decimals: 6 }], // 10,000 USDC — pulled from wallet
99
+ deposits: [{ asset: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", amount: "10000000000", decimals: 6 }], // 10,000 USDC, pulled from wallet
100
100
  leverage: 2, // 2 = 2x leverage (0 = no leverage, 3 = 3x, etc.)
101
101
  slippage: 100, // 100 = 1% slippage tolerance (basis points)
102
102
  chain_id: 8453
103
103
  )
104
104
 
105
- // 6. ENABLE AUTOMATIONS — one call, one transaction
105
+ // 6. ENABLE AUTOMATIONS: one call, one transaction
106
106
  // Include every automation you want active: the intents array is the full desired state.
107
107
  // Add claim_merkl only if the pool has Merkl incentives (check fee APY breakdown in step 1).
108
108
  write_account_automations(
@@ -115,7 +115,7 @@ write_account_automations(
115
115
  ],
116
116
  chain_id: 8453
117
117
  )
118
- // → Returns { valid, plan, diff, human_summary, transaction } — broadcast the transaction
118
+ // → Returns { valid, plan, diff, human_summary, transaction }; broadcast the transaction
119
119
  ```
120
120
 
121
121
  ### Monitoring
@@ -127,34 +127,34 @@ read_account_info(account_address: <account_address>, chain_id: 8453)
127
127
  1 → no debt (safest)
128
128
  > 0.5 → healthy
129
129
  0.2–0.5 → monitor closely, consider adding collateral or reducing debt
130
- < 0.2 → ACTION REQUIRED — close to liquidation
130
+ < 0.2 → ACTION REQUIRED: close to liquidation
131
131
  0 → liquidation threshold
132
132
  < 0 → past liquidation
133
133
 
134
134
  Note: Each lending pool adds a fixed minimum margin (denominated in the pool's numeraire,
135
135
  typically a few dollars in value) to the debt when computing used_margin
136
136
  (used_margin = open_debt + minimum_margin). For small positions this fixed overhead
137
- dominates, pushing HF lower than the leverage ratio suggests — e.g. HF ~0.3 at 2×
137
+ dominates, pushing HF lower than the leverage ratio suggests, e.g. HF ~0.3 at 2×
138
138
  instead of ~0.5–0.7. Increase position size for a healthier starting HF.
139
139
 
140
140
  read_account_pnl(account_address: <account_address>, chain_id: 8453)
141
141
  → If net yield is consistently negative → evaluate exit
142
142
 
143
143
  read_pool_list(chain_id: 8453)
144
- → If borrow_APY risen above fee_APY → exit signal
144
+ → If borrow_APY has risen above fee_APY → exit signal
145
145
  ```
146
146
 
147
147
  ### Responding to health factor drops
148
148
 
149
149
  ```
150
150
  // Option A: Add collateral (raises health factor, cheapest)
151
- // Check allowance first — skip approve if already sufficient
151
+ // Check allowance first; skip approve if already sufficient
152
152
  read_wallet_allowances(owner_address: <wallet>, spender_address: <account>, token_addresses: ["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"], chain_id: 8453)
153
153
  write_wallet_approve(token_address: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", spender_address: <account>, amount: "max_uint256", chain_id: 8453)
154
154
  write_account_deposit(account_address: <account>, asset_addresses: ["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"], asset_amounts: ["<amount>"], chain_id: 8453)
155
155
 
156
156
  // Option B: Repay some WETH debt (reduces leverage)
157
- // NOTE: you must approve the WETH pool to spend WETH from your wallet first — check allowance, then approve if needed
157
+ // NOTE: you must approve the WETH pool to spend WETH from your wallet first: check allowance, then approve if needed
158
158
  read_wallet_allowances(owner_address: <wallet>, spender_address: "0x803ea69c7e87D1d6C86adeB40CB636cC0E6B98E2", token_addresses: ["0x4200000000000000000000000000000000000006"], chain_id: 8453)
159
159
  write_wallet_approve(token_address: "0x4200000000000000000000000000000000000006", spender_address: "0x803ea69c7e87D1d6C86adeB40CB636cC0E6B98E2", amount: "max_uint256", chain_id: 8453)
160
160
  write_account_repay(
@@ -178,7 +178,7 @@ write_account_deleverage(
178
178
 
179
179
  ### Closing
180
180
 
181
- **ALWAYS try the atomic close first** — it batches everything into 1-2 transactions instead of 6+.
181
+ **ALWAYS try the atomic close first**: it batches everything into 1-2 transactions instead of 6+.
182
182
 
183
183
  #### Preferred: Atomic close (1-2 transactions)
184
184
 
@@ -192,13 +192,13 @@ write_account_automations_delta(
192
192
  chain_id: 8453
193
193
  )
194
194
 
195
- // 1. Get account state — need asset list for the close call
195
+ // 1. Get account state (the close call needs the asset list)
196
196
  read_account_info(account_address: <account>, chain_id: 8453)
197
197
 
198
198
  // 2. Unstake if staked (required before close)
199
199
  write_account_stake(action: "unstake", asset_address: <staked_pm_address>, asset_id: <nft_id>, account_address: <account>, chain_id: 8453)
200
200
 
201
- // 3. Atomic close: burns LP + swaps all tokens to USDC + repays debt — ONE transaction
201
+ // 3. Atomic close: burns LP + swaps all tokens to USDC + repays debt in ONE transaction
202
202
  write_account_close(
203
203
  account_address: <account>,
204
204
  assets: [
@@ -242,7 +242,7 @@ write_account_withdraw(...) // withdraw all to wallet
242
242
  - IL: WETH price deviation from entry accumulates IL. Rebalancer mitigates but doesn't eliminate.
243
243
  - Liquidation: If WETH pumps sharply, health factor drops toward 0. Keep health factor above 0.5.
244
244
  - Borrow cost: WETH utilization spikes can make strategy unprofitable quickly.
245
- - Agent role: periodic health monitoring only — the rebalancer handles range management.
245
+ - Agent role: periodic health monitoring only; the rebalancer handles range management.
246
246
 
247
247
  ---
248
248
 
@@ -263,8 +263,8 @@ write_account_withdraw(...) // withdraw all to wallet
263
263
  | Objective | Maximize fees + yield | Reliable market presence |
264
264
  | Range | Narrow (high fee capture) | Wide or dynamic (capital protection) |
265
265
  | Rebalancing | Aggressive (stay in range) | Conservative (minimize cost) |
266
- | Leverage | Yes | No — protect principal |
267
- | IL tolerance | Moderate (offset by fees) | Low — preserving treasury |
266
+ | Leverage | Yes | No, protect principal |
267
+ | IL tolerance | Moderate (offset by fees) | Low, preserving treasury |
268
268
  | Success metric | Fee APY > borrow APY | Liquidity depth maintained |
269
269
 
270
270
  ### POL rebalancer behavior
@@ -274,7 +274,7 @@ The `protocol_owned_liquidity` strategy type uses a dynamic range algorithm (k1/
274
274
  ### Setup
275
275
 
276
276
  ```
277
- // Same tools, different intent — no leverage, wider slippage tolerance
277
+ // Same tools, different intent: no leverage, wider slippage tolerance
278
278
 
279
279
  // 1. Check allowance + approve treasury tokens (skip approve if already sufficient)
280
280
  read_wallet_allowances(owner_address: <treasury_wallet>, spender_address: <account>, token_addresses: [<token>], chain_id: 8453)
@@ -285,27 +285,26 @@ write_wallet_approve(token_address: <token>, spender_address: <account>, amount:
285
285
  // Use V3 + creditor only if you want the option to leverage later.
286
286
  write_account_create(
287
287
  salt: <random uint32>,
288
- account_version: 0, // V4 spot — no leverage needed for POL
288
+ account_version: 0, // V4 spot, no leverage needed for POL
289
289
  chain_id: 8453
290
290
  )
291
291
 
292
292
  // 3. Deposit treasury tokens
293
293
  write_account_deposit(account_address: <account>, ...)
294
294
 
295
- // 4. Open LP (no leverage — deposits are pulled from wallet)
295
+ // 4. Open LP (no leverage; deposits are pulled from wallet)
296
296
  write_account_add_liquidity(
297
297
  account_address: <account>,
298
298
  wallet_address: <treasury_wallet>,
299
299
  positions: [{ strategy_id: <from step 1> }],
300
300
  deposits: [{ asset: <token_address>, amount: <raw_amount>, decimals: <decimals> }],
301
- leverage: 0, // 0 = no leverage (NOT 1 — use 0 for unleveraged)
302
- slippage: 200, // 2% — wider tolerance for POL
301
+ leverage: 0, // 0 = no leverage (NOT 1; use 0 for unleveraged)
302
+ slippage: 200, // 2%, wider tolerance for POL
303
303
  chain_id: 8453
304
304
  )
305
305
 
306
306
  // 5. Enable the rebalancer on the POL strategy
307
- // The backend routes POL to the unified rebalancer and its POL strategy hook;
308
- // tuning params are part of the intent, all optional with the defaults shown.
307
+ // Tuning params are part of the intent, all optional with the defaults shown.
309
308
  write_account_automations(
310
309
  account_address: <account>,
311
310
  position_id: <lp_nft_id>,
@@ -340,11 +339,11 @@ read_account_pnl → track IL vs. fee income
340
339
  read_strategy_recommendation → check if rebalancing is needed
341
340
  ```
342
341
 
343
- **POL monitoring goal:** Ensure sufficient liquidity is deployed and treasury capital is not eroding excessively — not maximizing return.
342
+ **POL monitoring goal:** Ensure sufficient liquidity is deployed and treasury capital is not eroding excessively, not maximizing return.
344
343
 
345
344
  ## Upgrade to Aero (MetadexCL V1)
346
345
 
347
- Aero CL succeeds the Slipstream pools (Aerodrome on Base, Velodrome on Optimism) at the Aero launch, and the new AERO token succeeds the old one on Base. `write_account_aero_upgrade` upgrades one account in one flashAction signed by the owner: every Slipstream V1, V2 and V3 position, staked or not, moves into the Aero CL pool with the same pair and variant at the same range and tick spacing (when Aero has no pool at that tick spacing, the user picks another one), and every unit of old AERO (loose in the account, unclaimed rewards, an old-AERO pair) becomes the new AERO. Chains: Base and Optimism. Robinhood has nothing to upgrade.
346
+ Aero CL succeeds the Slipstream pools (Aerodrome on Base, Velodrome on Optimism) at the Aero launch, and the new AERO token succeeds the old one on Base. `write_account_aero_upgrade` upgrades one account in one flashAction signed by the owner. Every Slipstream V1, V2 and V3 position, staked or not, moves into the Aero CL pool with the same pair and variant, at the same range and tick spacing. When Aero has no pool at that tick spacing, the user picks another one. Every unit of old AERO (loose in the account, unclaimed rewards, an old-AERO pair) becomes the new AERO. Chains: Base and Optimism. Robinhood has nothing to upgrade.
348
347
 
349
348
  The backend decides what can move. Report its statuses and reasons as given; never decide eligibility yourself.
350
349
 
@@ -414,7 +413,7 @@ Pass `accounts` (up to 10 of one owner) instead of `account_address` for one pla
414
413
 
415
414
  ### Reconnecting automations
416
415
 
417
- The move mints a new position, so automations on the old Slipstream position stop applying. `managers_to_reconnect` lists the old managers (`kind`, `old_address`) and their Aero replacements (`new_address`). Call `write_account_automations` in `save` mode with the new `position_id` and the intents the account had. Omit `protocol` so the backend resolves `metadexcl_v1` from the position: a stale `slipstream_*` value would compile Slipstream managers. The save disables the old managers in the same transaction. When `old_managers_still_needed` is true a Slipstream position stays on the account (it waits for its Aero pool), so keep the old managers: enable the Aero position with `write_account_automations_delta` instead. Settings are recompiled from intents, not copied: restate custom rebalancer settings from `read_asset_manager_current`. Each Aero manager holds one config per account, so when several old Slipstream managers of one kind had different settings, ask the user which to keep. When an item has `target.tokens_flipped: true` the pair sorts the other way on Aero: swap `token0` and `token1` in the intents' token fields (`tokens`, `convert_tokens`, `profit_token`) use 1e6 minus the token0 ratios and swap `trigger_lower_tick_ratio` with `trigger_upper_tick_ratio`, or leave that automation off and tell the user. The reconnect is a separate transaction: until it confirms, the Aero positions run without automations, so a Safe should queue it right after the upgrade. On Optimism and Robinhood there is no CoW Swapper, so compounding a staked Aero position's xAERO reward is rejected there; `claim_rewards` works.
416
+ The move mints a new position, so automations on the old Slipstream position stop applying. `managers_to_reconnect` lists the old managers (`kind`, `old_address`) and their Aero replacements (`new_address`). Call `write_account_automations` in `save` mode with the new `position_id` and the intents the account had. Omit `protocol` so the backend resolves `metadexcl_v1` from the position: a stale `slipstream_*` value would compile Slipstream managers. The save disables the old managers in the same transaction. When `old_managers_still_needed` is true a Slipstream position stays on the account (it waits for its Aero pool), so keep the old managers: enable the Aero position with `write_account_automations_delta` instead. Settings are recompiled from intents, not copied: restate custom rebalancer settings from `read_asset_manager_current`. Each Aero manager holds one config per account, so when several old Slipstream managers of one kind had different settings, ask the user which to keep. When an item has `target.tokens_flipped: true` the pair sorts the other way on Aero: swap `token0` and `token1` in the intents' token fields (`tokens`, `convert_tokens`, `profit_token`), use 1e6 minus the token0 ratios, and swap `trigger_lower_tick_ratio` with `trigger_upper_tick_ratio`. Or leave that automation off and tell the user. The reconnect is a separate transaction: until it confirms, the Aero positions run without automations, so a Safe should queue it right after the upgrade. On Optimism and Robinhood there is no CoW Swapper, so compounding a staked Aero position's xAERO reward is rejected there; `claim_rewards` works.
418
417
 
419
418
  ### Margin vs spot
420
419
 
@@ -1,106 +0,0 @@
1
- ---
2
- name: arcadia-finance
3
- version: 1.5.0
4
- description: "DeFi liquidity management on Uniswap and Aero, live on Base, Optimism, Unichain and Robinhood. Deploy concentrated liquidity positions with automated rebalancing, compounding, yield optimization, and leverage, or provide single-sided liquidity to lending pools."
5
- metadata:
6
- openclaw:
7
- homepage: https://arcadia.finance
8
- requires:
9
- bins: [curl, jq]
10
- ---
11
-
12
- # Arcadia Finance
13
-
14
- > **Agent note:** `{baseDir}` refers to the directory containing this SKILL.md file. Resolve all `{baseDir}` paths relative to it.
15
-
16
- Arcadia helps users deploy concentrated liquidity positions on Uniswap, Aero, Aerodrome and Velodrome with automated rebalancing, compounding, yield optimization, and optional leverage, or provide single-sided liquidity to lending pools to earn borrower interest. Supported chains: Base (8453), Unichain (130), Optimism (10), Robinhood (4663).
17
-
18
- ## CLI Usage
19
-
20
- ```bash
21
- # Discover all available tools (run this first)
22
- {baseDir}/arcadia.sh --list
23
-
24
- # Call a specific tool
25
- {baseDir}/arcadia.sh <tool_name> '<json_args>'
26
- ```
27
-
28
- Requires: `curl`, `jq`. No other dependencies.
29
-
30
- ## Read Operations
31
-
32
- ```bash
33
- # List all accounts for a wallet
34
- {baseDir}/arcadia.sh read_wallet_accounts '{"wallet_address":"0x..."}'
35
-
36
- # Account details (health factor, collateral, debt, positions)
37
- {baseDir}/arcadia.sh read_account_info '{"account_address":"0x..."}'
38
-
39
- # Featured LP strategies with APY (last 24 hours at the featured range width)
40
- {baseDir}/arcadia.sh read_strategy_list '{"featured_only":true}'
41
-
42
- # Lending pools (TVL, APY, utilization)
43
- {baseDir}/arcadia.sh read_pool_list '{}'
44
-
45
- # Workflow guides (automation setup, strategy selection)
46
- {baseDir}/arcadia.sh read_guides '{"topic":"overview"}'
47
-
48
- # Available automations (rebalancer, compounder, yield claimer)
49
- {baseDir}/arcadia.sh read_asset_manager_intents '{}'
50
- ```
51
-
52
- ## Single-Sided Liquidity (Lending)
53
-
54
- Provide single-sided liquidity by depositing the pool's underlying asset into an Arcadia lending tranche (ERC-4626), earning interest from borrowers. Use `read_pool_list` to find `tranches[0].address` for each pool. Approve the tranche first (`write_wallet_approve`).
55
-
56
- ```bash
57
- # Lender deposit: lend 10 USDC into the USDC tranche, receive shares to your wallet
58
- {baseDir}/arcadia.sh write_pool_deposit '{"tranche_address":"0x...","assets":"10000000","receiver":"0x...","chain_id":8453}'
59
-
60
- # Lender exit: redeem shares back to the underlying asset
61
- {baseDir}/arcadia.sh write_pool_redeem '{"tranche_address":"0x...","shares":"10000000","receiver":"0x...","owner":"0x...","chain_id":8453}'
62
- ```
63
-
64
- `write_pool_deposit` is for lenders earning yield. For depositing collateral into an Arcadia account, use `write_account_deposit` instead.
65
-
66
- ## Write Operations
67
-
68
- All write tools return unsigned transactions `{ to, data, value, chainId }`. Sign with your wallet before broadcasting. See `{baseDir}/wallet-signing.md` for wallet options.
69
-
70
- ```bash
71
- # Open LP position (deposits + swaps + mints LP atomically)
72
- {baseDir}/arcadia.sh write_account_add_liquidity '{"account_address":"0x...","wallet_address":"0x...","positions":[{"strategy_id":123}],"deposits":[{"asset":"0x...","amount":"1000000","decimals":6}]}'
73
-
74
- # Close position (burn LP + swap + repay in one tx)
75
- {baseDir}/arcadia.sh write_account_close '{"account_address":"0x...","assets":[...],"receive_assets":[...]}'
76
-
77
- # Create a new account (salt must be unique per wallet)
78
- {baseDir}/arcadia.sh write_account_create '{"wallet_address":"0x...","salt":1,"chain_id":8453}'
79
-
80
- # Enable automation
81
- {baseDir}/arcadia.sh read_asset_manager_intents '{"account_address":"0x...","chain_id":8453}'
82
- {baseDir}/arcadia.sh write_account_automations '{"account_address":"0x...","position_id":12345,"intents":[{"kind":"compound_fees"},{"kind":"rebalance"}],"chain_id":8453}'
83
- ```
84
-
85
- If `write_account_add_liquidity` returns price warnings and no transaction, show the warnings to the user. Call it again with `accept_price_checks` set to the returned list only after the user explicitly confirms. New warnings on a rebuild need a new confirmation.
86
-
87
- ## Configuration
88
-
89
- The CLI connects to `https://mcp.arcadia.finance/mcp` by default. Set `ARCADIA_MCP_URL` to override (e.g. for local development).
90
-
91
- ## Data and Safety
92
-
93
- This skill connects to Arcadia's public API at `https://mcp.arcadia.finance/mcp` (override via `ARCADIA_MCP_URL`). Tool calls send public wallet addresses, account addresses, and transaction parameters to this server. This is the same data that is publicly visible on-chain. No private keys or signing capabilities are transmitted.
94
-
95
- - Write tools return unsigned transactions only. Never auto-sign.
96
- - Always confirm transaction details with the user before signing.
97
- - Check account health factor with `read_account_info` before risky operations.
98
- - Do not pass private keys or secrets as tool arguments. Only public addresses and amounts are needed.
99
-
100
- ## References
101
-
102
- - Full tool documentation: https://mcp.arcadia.finance/llms-full.txt
103
- - Contract addresses: see `{baseDir}/contracts.md`
104
- - Signing guide: see `{baseDir}/wallet-signing.md`
105
- - Website: https://arcadia.finance
106
- - Docs: https://docs.arcadia.finance
@@ -1,80 +0,0 @@
1
- #!/bin/bash
2
- # CLI wrapper for Arcadia Finance MCP server.
3
- # Uses curl + jq to call tools over Streamable HTTP.
4
- #
5
- # Usage:
6
- # ./arcadia.sh <tool_name> '<json_args>'
7
- # ./arcadia.sh --list
8
- #
9
- # Requires: curl, jq
10
-
11
- set -euo pipefail
12
-
13
- MCP_URL="${ARCADIA_MCP_URL:-https://mcp.arcadia.finance/mcp}"
14
-
15
- for bin in curl jq; do
16
- if ! command -v "$bin" >/dev/null 2>&1; then
17
- echo "Required: $bin" >&2
18
- exit 1
19
- fi
20
- done
21
-
22
- TOOL_NAME="${1:-}"
23
- ARGS_JSON="${2:-"{}"}"
24
-
25
- if [[ -z "$TOOL_NAME" ]]; then
26
- echo "Usage: $0 <tool_name> '<json_args>'"
27
- echo " $0 --list"
28
- exit 1
29
- fi
30
-
31
- # Request metadata MCP 2026-07-28 requires on every call.
32
- META='{"io.modelcontextprotocol/protocolVersion":"2026-07-28","io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"arcadia-openclaw","version":"1.5.0"}}'
33
-
34
- # POST one request; the body is plain JSON or a single SSE data: line.
35
- mcp_post() {
36
- local method="$1" name="$2" payload="$3" body json message
37
- body=$(curl -sf -X POST "$MCP_URL" \
38
- -H "Content-Type: application/json" \
39
- -H "Accept: application/json, text/event-stream" \
40
- -H "Mcp-Protocol-Version: 2026-07-28" \
41
- -H "Mcp-Method: $method" \
42
- ${name:+-H "Mcp-Name: $name"} \
43
- -d "$payload") || { echo "ERROR: request to $MCP_URL failed" >&2; return 1; }
44
- json=$(printf '%s\n' "$body" | sed -n 's/^data: //p; /^{/p' | head -1)
45
- message=$(jq -r '.error.message // empty' <<<"$json")
46
- if [[ -n "$message" ]]; then
47
- echo "ERROR: $message" >&2
48
- return 1
49
- fi
50
- printf '%s\n' "$json"
51
- }
52
-
53
- if [[ "$TOOL_NAME" == "--list" ]]; then
54
- PAYLOAD=$(jq -nc --argjson meta "$META" '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{"_meta":$meta}}')
55
-
56
- mcp_post "tools/list" "" "$PAYLOAD" | jq -r '.result.tools | sort_by(.name)[] | "\(.name): \(.description[0:120])"'
57
- else
58
- if ! echo "$ARGS_JSON" | jq . >/dev/null 2>&1; then
59
- echo "ERROR: Invalid JSON arguments: $ARGS_JSON" >&2
60
- exit 1
61
- fi
62
-
63
- PAYLOAD=$(jq -nc --arg name "$TOOL_NAME" --argjson args "$ARGS_JSON" --argjson meta "$META" \
64
- '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":$name,"arguments":$args,"_meta":$meta}}')
65
-
66
- RESULT=$(mcp_post "tools/call" "$TOOL_NAME" "$PAYLOAD")
67
- IS_ERROR=$(echo "$RESULT" | jq -r '.result.isError // false')
68
- TEXT=$(echo "$RESULT" | jq -r '.result.content[0].text // empty')
69
-
70
- if [[ "$IS_ERROR" == "true" ]]; then
71
- if echo "$TEXT" | grep -qi "internal exception\|500\|internal server error"; then
72
- echo "ERROR: Request failed. Check that IDs and addresses are valid. Details: $TEXT" >&2
73
- else
74
- echo "ERROR: $TEXT" >&2
75
- fi
76
- exit 1
77
- else
78
- echo "$TEXT"
79
- fi
80
- fi
@@ -1,66 +0,0 @@
1
- # Arcadia Contract Addresses
2
-
3
- Supported chains: Base (8453), Unichain (130), Optimism (10), Robinhood (4663).
4
-
5
- ## Shared Addresses
6
-
7
- | Contract | Address |
8
- | ---------- | ------------------------------------------ |
9
- | Factory | 0xDa14Fdd72345c4d2511357214c5B89A919768e59 |
10
- | Registry | 0xd0690557600eb8Be8391D1d97346e2aab5300d5f |
11
- | Liquidator | 0xA4B0b9fD1d91fA2De44F6ABFd59cC14bA1E1a7Af |
12
-
13
- Lending pools (same CREATE2 addresses across chains; Unichain has none):
14
-
15
- | Pool | Address | Chains |
16
- | -------- | ------------------------------------------ | ------------------------- |
17
- | LP_WETH | 0x803ea69c7e87D1d6C86adeB40CB636cC0E6B98E2 | Base, Optimism, Robinhood |
18
- | LP_USDC | 0x3ec4a293Fb906DD2Cd440c20dECB250DeF141dF1 | Base, Optimism |
19
- | LP_CBBTC | 0xa37E9b4369dc20940009030BfbC2088F09645e3B | Base only |
20
- | LP_USDG | 0xf37c0C5996503Fdd2b5CCCE36E659cD30393AE59 | Robinhood only |
21
-
22
- ## Asset Managers
23
-
24
- Rebalancers, compounders, and yield claimers are deployed per DEX protocol. Most share the same address on every chain.
25
-
26
- Protocol availability per chain:
27
-
28
- - **Base**: Slipstream V1, V2, V3, Uniswap V3, V4, Aero CL (MetadexCL V1), CoW Swap.
29
- - **Optimism**: Slipstream V1, V3, Uniswap V3, V4, Aero CL (MetadexCL V1) (no V2, no CoW Swap). V3 uses different AM addresses than Base (exception to the deterministic deployment pattern).
30
- - **Unichain**: Slipstream V1, Uniswap V3, V4 (no V2/V3, no CoW Swap)
31
- - **Robinhood**: Uniswap V3, V4 and Aero CL (no Slipstream V1-V3, no Aerodrome V1, no CoW Swap). Lending pools are WETH and USDG, there is no USDC on this chain.
32
-
33
- Use `read_asset_manager_intents` to discover available automations and their addresses per chain.
34
-
35
- ## Chain-Specific Tokens
36
-
37
- ### Base (8453)
38
-
39
- | Token | Address | Decimals |
40
- | ------------- | ------------------------------------------ | -------- |
41
- | WETH | 0x4200000000000000000000000000000000000006 | 18 |
42
- | USDC | 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 | 6 |
43
- | cbBTC | 0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf | 8 |
44
- | AERO | 0x3f5bF3EdAc59d650D8fDf9657a71F2f904A3a4Ee | 18 |
45
- | AERO (legacy) | 0x940181a94A35A4569E4529A3CDfB74e38FD98631 | 18 |
46
-
47
- ### Optimism (10)
48
-
49
- | Token | Address | Decimals |
50
- | ------ | ------------------------------------------ | -------- |
51
- | WETH | 0x4200000000000000000000000000000000000006 | 18 |
52
- | USDC | 0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85 | 6 |
53
- | OP | 0x4200000000000000000000000000000000000042 | 18 |
54
- | VELO | 0x9560e827aF36c94D2Ac33a39bCE1Fe78631088Db | 18 |
55
- | WBTC | 0x68f180fcCe6836688e9084f035309E29Bf0A2095 | 8 |
56
- | wstETH | 0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb | 18 |
57
-
58
- ### Unichain (130)
59
-
60
- | Token | Address | Decimals |
61
- | ----- | ------------------------------------------ | -------- |
62
- | WETH | 0x4200000000000000000000000000000000000006 | 18 |
63
- | USDC | 0x078D782b760474a361dDA0AF3839290b0EF57AD6 | 6 |
64
- | WBTC | 0x0555E30da8f98308EdB960aa94C0Db47230d2B9c | 8 |
65
- | UNI | 0x8f187aA05619a017077f5308904739877ce9eA21 | 18 |
66
- | VELO | 0x7f9AdFbd38b669F03d1d11000Bc76b9AaEA28A81 | 18 |
@@ -1,11 +0,0 @@
1
- # Signing Unsigned Transactions
2
-
3
- All Arcadia write tools return unsigned transactions as `{ to, data, value, chainId }`. You need a separate wallet to sign and broadcast. Never expose private keys to the agent.
4
-
5
- ## Wallet MCP Servers (recommended)
6
-
7
- - MCP Wallet Signer (github.com/nikicat/mcp-wallet-signer): routes to browser wallet (MetaMask, Rabby), non-custodial
8
- - Phantom MCP (@phantom/mcp-server): for Phantom wallet users
9
- - Privy MCP (github.com/incentivai-io/privy-mcp-server): wallet infrastructure
10
- - Coinbase AgentKit (github.com/coinbase/agentkit): wallet-agnostic signing
11
- - Safe MCP (github.com/safer-sh/safer): multi-sig via Safe