@arcadia-finance/mcp-server 0.5.0 → 0.5.1

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
@@ -5,9 +5,9 @@
5
5
  [![License: AGPL-3.0](https://img.shields.io/badge/License-AGPL--3.0-blue)](LICENSE.md)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-5.5-blue)](https://www.typescriptlang.org/)
7
7
  [![MCP](https://img.shields.io/badge/MCP-2025--11--25-green)](https://modelcontextprotocol.io/)
8
- [![smithery badge](https://smithery.ai/badge/@arcadia-finance/mcp-server)](https://smithery.ai/servers/arcadia-finance/mcp-server)
8
+ [![Smithery](https://img.shields.io/badge/Smithery-listed-6b46c1)](https://smithery.ai/servers/arcadia-finance/mcp-server)
9
9
  [![MCP Badge](https://lobehub.com/badge/mcp/arcadia-finance-mcp-server)](https://lobehub.com/mcp/arcadia-finance-mcp-server)
10
- [![arcadia-finance-mcp-server MCP server](https://glama.ai/mcp/servers/arcadia-finance/arcadia-finance-mcp-server/badges/score.svg)](https://glama.ai/mcp/servers/arcadia-finance/arcadia-finance-mcp-server)
10
+ [![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
11
 
12
12
  MCP server for [Arcadia Finance](https://arcadia.finance), a platform for concentrated liquidity on Uniswap and Aerodrome 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
13
 
@@ -40,31 +40,31 @@ Designed for AI agents (Claude, Cursor, etc.) to interact with Arcadia onchain.
40
40
  | `read.strategy.info` | Full detail for a specific LP strategy: APY per range width, pool config. |
41
41
  | `read.strategy.recommendation` | Rebalancing recommendation for an account. |
42
42
  | `read.guides` | Reference guides: automation setup, strategy selection, strategy templates. |
43
- | `read.asset_manager.intents` | Automation intents and their params; add `account_address` for live per-account availability. |
43
+ | `read.asset_manager.intents` | Automation intents and their params; add `account_address` for live per-account availability. |
44
44
  | `read.asset_manager.current` | Automations enabled on an account: decoded config, mapped intents, Merkl state, superseded managers. |
45
45
 
46
46
  ### Write Tools
47
47
 
48
48
  All write tools return unsigned transactions as `{ to, data, value, chainId }`.
49
49
 
50
- | Tool | Description |
51
- | ------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
52
- | `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. |
53
- | `write.pool.deposit` | Lend the pool's underlying asset into an ERC-4626 tranche to earn interest. Mints tranche shares to the receiver. |
54
- | `write.pool.redeem` | Redeem tranche shares back into the underlying asset (lender exit). |
55
- | `write.account.create` | Create a new Arcadia account via Factory. |
56
- | `write.account.deposit` | Deposit ERC20 tokens into an account. |
57
- | `write.account.withdraw` | Withdraw assets from an account. |
58
- | `write.account.borrow` | Borrow from a lending pool. |
59
- | `write.account.repay` | Repay debt to a lending pool from wallet. |
60
- | `write.account.add_liquidity` | Flash-action: deposit + swap + mint LP + optional leverage, atomically. |
61
- | `write.account.remove_liquidity` | Remove/decrease LP position liquidity. |
62
- | `write.account.swap` | Swap assets within an account (backend-routed). |
63
- | `write.account.deleverage` | Repay debt by selling collateral (swap + repay in one tx). |
64
- | `write.account.close` | Atomic close: burn LP + swap + repay debt in one tx. |
65
- | `write.account.stake` | Stake, unstake, or claim rewards for LP positions. |
66
- | `write.account.automations` | Configure automations from an intents array (full desired state). Returns the unsigned setAssetManagers tx. |
67
- | `write.account.automations_delta` | Enable/disable individual automations, leaving the rest untouched. |
50
+ | Tool | Description |
51
+ | --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
52
+ | `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. |
53
+ | `write.pool.deposit` | Lend the pool's underlying asset into an ERC-4626 tranche to earn interest. Mints tranche shares to the receiver. |
54
+ | `write.pool.redeem` | Redeem tranche shares back into the underlying asset (lender exit). |
55
+ | `write.account.create` | Create a new Arcadia account via Factory. |
56
+ | `write.account.deposit` | Deposit ERC20 tokens into an account. |
57
+ | `write.account.withdraw` | Withdraw assets from an account. |
58
+ | `write.account.borrow` | Borrow from a lending pool. |
59
+ | `write.account.repay` | Repay debt to a lending pool from wallet. |
60
+ | `write.account.add_liquidity` | Flash-action: deposit + swap + mint LP + optional leverage, atomically. |
61
+ | `write.account.remove_liquidity` | Remove/decrease LP position liquidity. |
62
+ | `write.account.swap` | Swap assets within an account (backend-routed). |
63
+ | `write.account.deleverage` | Repay debt by selling collateral (swap + repay in one tx). |
64
+ | `write.account.close` | Atomic close: burn LP + swap + repay debt in one tx. |
65
+ | `write.account.stake` | Stake, unstake, or claim rewards for LP positions. |
66
+ | `write.account.automations` | Configure automations from an intents array (full desired state). Returns the unsigned setAssetManagers tx. |
67
+ | `write.account.automations_delta` | Enable/disable individual automations, leaving the rest untouched. |
68
68
 
69
69
  ### Dev Tools
70
70
 
@@ -210,8 +210,8 @@ ln -s /path/to/mcp-server/skills/clamm-liquidity ~/.claude/skills/clamm-liquidit
210
210
 
211
211
  Available skills:
212
212
 
213
- | Skill | Description |
214
- | ----------------- | ------------------------------------------------------------------------------------------------------------------- |
213
+ | Skill | Description |
214
+ | ----------------- | ------------------------------------------------------------------------------------------------- |
215
215
  | `clamm-liquidity` | Concentrated liquidity management: concepts, intent-based automation, and step-by-step workflows. |
216
216
 
217
217
  ## Reporting Issues
@@ -236,7 +236,7 @@ Pull requests for documentation fixes are welcome from agents and humans alike.
236
236
  - **LobeHub:** [lobehub.com](https://lobehub.com/mcp/arcadia-finance-mcp-server)
237
237
  - **PulseMCP:** [pulsemcp.com](https://www.pulsemcp.com/servers/arcadia-finance)
238
238
  - **MCP Market:** [mcpmarket.com](https://mcpmarket.com/server/arcadia-finance)
239
- - **Glama:** [glama.ai](https://glama.ai/mcp/servers/arcadia-finance/arcadia-finance-mcp-server)
239
+ - **Glama:** [glama.ai](https://glama.ai/mcp/servers/arcadia-finance/mcp-server)
240
240
  - **awesome-mcp-servers:** [github.com/TensorBlock/awesome-mcp-servers](https://github.com/TensorBlock/awesome-mcp-servers)
241
241
 
242
242
  ## Development
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@arcadia-finance/mcp-server",
3
3
  "mcpName": "io.github.arcadia-finance/mcp-server",
4
- "version": "0.5.0",
4
+ "version": "0.5.1",
5
5
  "description": "MCP server for Arcadia Finance. Deploy concentrated liquidity on Uniswap, Aerodrome, and Velodrome with automated rebalancing, compounding, yield optimization, and leverage, or single-sided liquidity into lending pools. Base, Unichain, and Optimism.",
6
6
  "type": "module",
7
7
  "license": "AGPL-3.0",
8
8
  "packageManager": "yarn@4.13.0",
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "https://github.com/arcadia-finance/mcp-server.git"
11
+ "url": "git+https://github.com/arcadia-finance/mcp-server.git"
12
12
  },
13
13
  "homepage": "https://arcadia.finance",
14
14
  "keywords": [
@@ -45,7 +45,7 @@
45
45
  "LICENSE.md"
46
46
  ],
47
47
  "bin": {
48
- "arcadia-mcp": "./dist/index.js"
48
+ "arcadia-mcp": "dist/index.js"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "rm -rf dist && tsc && cp src/abis/*.json dist/abis/",
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/Aerodrome (rebalance, compound, leverage) or single-sided lending.",
6
- "version": "0.5.0",
6
+ "version": "0.5.1",
7
7
  "websiteUrl": "https://arcadia.finance",
8
8
  "repository": {
9
9
  "url": "https://github.com/arcadia-finance/mcp-server",
@@ -13,7 +13,7 @@
13
13
  {
14
14
  "registryType": "npm",
15
15
  "identifier": "@arcadia-finance/mcp-server",
16
- "version": "0.5.0",
16
+ "version": "0.5.1",
17
17
  "transport": {
18
18
  "type": "stdio"
19
19
  },
@@ -68,37 +68,37 @@ Arcadia's flash-action tools can batch multiple DeFi operations into a single at
68
68
  | `read.strategy.info` | Detail for a specific strategy by `strategy_id`, including range-width APY breakdown. |
69
69
  | `read.point_leaderboard` | Points leaderboard. No `chain_id` needed — points are cross-chain. |
70
70
  | `read.strategy.recommendation` | Rebalancing recommendation for an account. Uses 1d APY (not 7d like `read.strategy.list`), so numbers may differ. |
71
- | `read.asset_manager.intents` | List the automation intents and their params. Pass `account_address` for live per-account availability plus the rule blocking anything unavailable. |
72
- | `read.asset_manager.current` | What is enabled on an account now: decoded per-manager config, the intents it maps to, Merkl claim state, and superseded managers to clear. |
71
+ | `read.asset_manager.intents` | List the automation intents and their params. Pass `account_address` for live per-account availability plus the rule blocking anything unavailable. |
72
+ | `read.asset_manager.current` | What is enabled on an account now: decoded per-manager config, the intents it maps to, Merkl claim state, and superseded managers to clear. |
73
73
  | `read.guides` | Reference guides: `automation` (AM setup), `selection` (pool evaluation), `strategies` (step-by-step templates). |
74
74
 
75
75
  ### Preferred Write Tools (atomic/multi-step — use these first)
76
76
 
77
77
  These tools batch multiple operations into ONE atomic transaction. Always prefer these over individual tools.
78
78
 
79
- | Tool | Batches | When to use |
80
- | ---------------------------------- | -------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
81
- | `write.account.add_liquidity` | deposit + swap + mint LP + optional borrow | Open LP position. Do NOT call `write.account.deposit` separately — this handles wallet transfer atomically. |
82
- | `write.account.close` | burn LP + swap + repay debt (up to 3 steps) | Close/exit a position. ALWAYS try this first. Tokens stay in account — follow up with `write.account.withdraw`. |
83
- | `write.account.deleverage` | swap collateral + repay debt | Repay debt using account collateral (no wallet tokens needed). Preferred for health factor fixes. |
84
- | `write.account.automations` | resolve intents + validate + build setAssetManagers tx | Configure automations. Pass the full desired intents array; the backend picks the managers and encodes them. |
79
+ | Tool | Batches | When to use |
80
+ | ----------------------------- | ------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------- |
81
+ | `write.account.add_liquidity` | deposit + swap + mint LP + optional borrow | Open LP position. Do NOT call `write.account.deposit` separately — this handles wallet transfer atomically. |
82
+ | `write.account.close` | burn LP + swap + repay debt (up to 3 steps) | Close/exit a position. ALWAYS try this first. Tokens stay in account — follow up with `write.account.withdraw`. |
83
+ | `write.account.deleverage` | swap collateral + repay debt | Repay debt using account collateral (no wallet tokens needed). Preferred for health factor fixes. |
84
+ | `write.account.automations` | resolve intents + validate + build setAssetManagers tx | Configure automations. Pass the full desired intents array; the backend picks the managers and encodes them. |
85
85
 
86
86
  ### Individual Write Tools (use when batched tools fail or for standalone operations)
87
87
 
88
- | Tool | When to use |
89
- | -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
90
- | `write.wallet.approve` | Approve a token for spending. **Required before `write.account.deposit`** and before `write.account.add_liquidity` (when depositing from wallet). Call `read.wallet.allowances` first to check if already approved. |
91
- | `write.account.create` | Create a new Arcadia account (one-time setup). Use `account_version: 0` for the latest version (recommended). |
92
- | `write.account.deposit` | Deposit ERC20 tokens as collateral. NOT needed before `write.account.add_liquidity` — that tool handles deposits atomically. |
93
- | `write.account.withdraw` | Withdraw assets to account owner. Account version auto-detected on-chain. Params: `asset_addresses[]`, `asset_amounts[]` (exact amounts, no max_uint256), optional `asset_ids[]` (0 for ERC20). |
94
- | `write.account.borrow` | Borrow from a lending pool. NOT needed for leveraged LP — `write.account.add_liquidity` handles borrowing internally. |
95
- | `write.account.repay` | Repay debt from wallet (approve pool first). Use `amount: "max_uint256"` to repay in full. For repaying with account collateral, prefer `write.account.deleverage`. |
96
- | `write.account.swap` | Swap assets within account (backend handles routing). For closing positions, prefer `write.account.close`. |
97
- | `write.account.remove_liquidity` | PARTIAL liquidity decrease only (position stays open). For full LP removal/exit, use `write.account.close`. |
98
- | `write.account.stake` | Stake, unstake, or claim rewards for an LP position. Direction auto-detected from `asset_address`. |
99
- | `write.pool.deposit` | **Lend to earn yield.** Deposit the pool's underlying asset (USDC / WETH / cbBTC) into the ERC-4626 tranche, receive tranche shares that accrue interest from borrowers. Requires prior `write.wallet.approve` to the tranche. **Different from `write.account.deposit`**: that deposits collateral into your Arcadia account; this deposits as a lender. |
100
- | `write.pool.redeem` | **Lender exit.** Burn tranche shares and redeem the underlying asset, including accrued interest. Pass the owner's share balance (or a partial amount) in `shares`. |
101
- | `write.account.automations_delta` | Change one automation without restating the rest: `enable` takes intents, `disable` takes asset-manager addresses from `read.asset_manager.current`. Prefer `write.account.automations` when setting the full desired state. See automation.md. |
88
+ | Tool | When to use |
89
+ | --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
90
+ | `write.wallet.approve` | Approve a token for spending. **Required before `write.account.deposit`** and before `write.account.add_liquidity` (when depositing from wallet). Call `read.wallet.allowances` first to check if already approved. |
91
+ | `write.account.create` | Create a new Arcadia account (one-time setup). Use `account_version: 0` for the latest version (recommended). |
92
+ | `write.account.deposit` | Deposit ERC20 tokens as collateral. NOT needed before `write.account.add_liquidity` — that tool handles deposits atomically. |
93
+ | `write.account.withdraw` | Withdraw assets to account owner. Account version auto-detected on-chain. Params: `asset_addresses[]`, `asset_amounts[]` (exact amounts, no max_uint256), optional `asset_ids[]` (0 for ERC20). |
94
+ | `write.account.borrow` | Borrow from a lending pool. NOT needed for leveraged LP — `write.account.add_liquidity` handles borrowing internally. |
95
+ | `write.account.repay` | Repay debt from wallet (approve pool first). Use `amount: "max_uint256"` to repay in full. For repaying with account collateral, prefer `write.account.deleverage`. |
96
+ | `write.account.swap` | Swap assets within account (backend handles routing). For closing positions, prefer `write.account.close`. |
97
+ | `write.account.remove_liquidity` | PARTIAL liquidity decrease only (position stays open). For full LP removal/exit, use `write.account.close`. |
98
+ | `write.account.stake` | Stake, unstake, or claim rewards for an LP position. Direction auto-detected from `asset_address`. |
99
+ | `write.pool.deposit` | **Lend to earn yield.** Deposit the pool's underlying asset (USDC / WETH / cbBTC) into the ERC-4626 tranche, receive tranche shares that accrue interest from borrowers. Requires prior `write.wallet.approve` to the tranche. **Different from `write.account.deposit`**: that deposits collateral into your Arcadia account; this deposits as a lender. |
100
+ | `write.pool.redeem` | **Lender exit.** Burn tranche shares and redeem the underlying asset, including accrued interest. Pass the owner's share balance (or a partial amount) in `shares`. |
101
+ | `write.account.automations_delta` | Change one automation without restating the rest: `enable` takes intents, `disable` takes asset-manager addresses from `read.asset_manager.current`. Prefer `write.account.automations` when setting the full desired state. See automation.md. |
102
102
 
103
103
  ### Dev Tools (only available when `PK` env var is set)
104
104
 
@@ -17,13 +17,13 @@ Pass the LP position's `position_id` and the backend fetches the protocol, stake
17
17
 
18
18
  ## The five intents
19
19
 
20
- | Intent | What it does | Needs position context |
21
- | --------------- | ------------------------------------------------------------------------------------- | ---------------------- |
22
- | `compound_fees` | Reinvest earned fees and rewards back into the LP | yes |
23
- | `claim_rewards` | Claim yield out, as-earned or converted to one token via CowSwap | yes |
24
- | `add_to_lp` | Fold idle pool-token balances (deposits, rebalance leftovers) back into the LP | yes |
25
- | `rebalance` | Reposition the LP: out-of-range, take-profit, or POL strategy | yes |
26
- | `claim_merkl` | Auto-claim Merkl incentive rewards | no |
20
+ | Intent | What it does | Needs position context |
21
+ | --------------- | ------------------------------------------------------------------------------ | ---------------------- |
22
+ | `compound_fees` | Reinvest earned fees and rewards back into the LP | yes |
23
+ | `claim_rewards` | Claim yield out, as-earned or converted to one token via CowSwap | yes |
24
+ | `add_to_lp` | Fold idle pool-token balances (deposits, rebalance leftovers) back into the LP | yes |
25
+ | `rebalance` | Reposition the LP: out-of-range, take-profit, or POL strategy | yes |
26
+ | `claim_merkl` | Auto-claim Merkl incentive rewards | no |
27
27
 
28
28
  Every intent takes `enabled` (default true) and an optional `position_id`.
29
29
 
@@ -61,7 +61,7 @@ write.account.automations(
61
61
 
62
62
  `compound_fees`, `claim_rewards` and `add_to_lp` accept a `tokens` array (`token0`, `token1`, and `reward` for the yielding intents) so different tokens can be routed differently. Omitting `tokens` means all yielding tokens for the compound/claim intents.
63
63
 
64
- `reward` only exists on a staked position whose reward token is not one of the pool tokens. When the reward token *is* a pool token it collapses into that token.
64
+ `reward` only exists on a staked position whose reward token is not one of the pool tokens. When the reward token _is_ a pool token it collapses into that token.
65
65
 
66
66
  **Every yielding token must be assigned to exactly one of `compound_fees` or `claim_rewards`.** Scoping one intent to a subset without covering the rest is rejected, and no token may appear in both. So `compound_fees` with `tokens: ["token0"]` on its own is invalid: token1's yield would be unassigned.
67
67
 
@@ -86,22 +86,22 @@ Note also that `add_to_lp` is opt-in per token: folding an idle balance happens
86
86
 
87
87
  The backend enforces compatibility rules rather than letting an invalid combination reach the chain. When one fires the tool returns an error with the rule name and reason, and no transaction. The full set:
88
88
 
89
- | Rule | Meaning |
90
- | ---- | ------- |
91
- | `duplicate_intent_kind` | Each intent kind may appear only once. Two rebalance strategies is ambiguous. |
92
- | `token_double_assigned` | A token cannot be both compounded and claimed. |
93
- | `incomplete_partition` | Every yielding token must be assigned to compound or claim. |
94
- | `empty_token_scope` | A `tokens` list must not be explicitly empty. Omit it to mean "all". |
95
- | `tokens_out_of_scope` | Named a token this position does not yield (e.g. `reward` on an unstaked position, or a reward that is itself a pool token). |
96
- | `claim_to_wallet_requires_pure_claim` | A wallet/custom-recipient payout requires claiming every yielding token as-earned, nothing converted. |
97
- | `convert_tokens_out_of_scope` | `convert_tokens` must be a subset of the claimed tokens. |
98
- | `convert_settles_in_account` | Converted rewards must settle in the account. |
99
- | `claim_convert_missing_buy_token` | Converting requires a `buy_token`. |
100
- | `convert_target_is_compounded` | `buy_token` cannot be a token you also compound. |
101
- | `convert_target_in_convert_set` | `buy_token` cannot be one of the tokens being converted. |
102
- | `convert_target_is_folded` | `buy_token` cannot also be folded by `add_to_lp`, or the converted rewards get re-added immediately. |
103
- | `compound_reward_buy_token_not_pool_token` | The compound CowSwap leg must buy one of the position's underlyings. |
104
- | `multiple_convert_targets` | One account has a single CowSwapper metadata slot, so a compound-reward swap leg and a claim-and-convert leg cannot coexist. |
89
+ | Rule | Meaning |
90
+ | ------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
91
+ | `duplicate_intent_kind` | Each intent kind may appear only once. Two rebalance strategies is ambiguous. |
92
+ | `token_double_assigned` | A token cannot be both compounded and claimed. |
93
+ | `incomplete_partition` | Every yielding token must be assigned to compound or claim. |
94
+ | `empty_token_scope` | A `tokens` list must not be explicitly empty. Omit it to mean "all". |
95
+ | `tokens_out_of_scope` | Named a token this position does not yield (e.g. `reward` on an unstaked position, or a reward that is itself a pool token). |
96
+ | `claim_to_wallet_requires_pure_claim` | A wallet/custom-recipient payout requires claiming every yielding token as-earned, nothing converted. |
97
+ | `convert_tokens_out_of_scope` | `convert_tokens` must be a subset of the claimed tokens. |
98
+ | `convert_settles_in_account` | Converted rewards must settle in the account. |
99
+ | `claim_convert_missing_buy_token` | Converting requires a `buy_token`. |
100
+ | `convert_target_is_compounded` | `buy_token` cannot be a token you also compound. |
101
+ | `convert_target_in_convert_set` | `buy_token` cannot be one of the tokens being converted. |
102
+ | `convert_target_is_folded` | `buy_token` cannot also be folded by `add_to_lp`, or the converted rewards get re-added immediately. |
103
+ | `compound_reward_buy_token_not_pool_token` | The compound CowSwap leg must buy one of the position's underlyings. |
104
+ | `multiple_convert_targets` | One account has a single CowSwapper metadata slot, so a compound-reward swap leg and a claim-and-convert leg cannot coexist. |
105
105
 
106
106
  Read `errors[].reason`, adjust the intents, retry. `read.asset_manager.intents` with an account address tells you up front which intents are currently blocked.
107
107
 
@@ -119,11 +119,11 @@ Read `errors[].reason`, adjust the intents, retry. `read.asset_manager.intents`
119
119
 
120
120
  Three success-path cases return no `transaction`, and an agent must not treat any of them as "nothing to do but broadcast anyway":
121
121
 
122
- | Field | Meaning |
123
- | ----- | ------- |
124
- | `preview_only: true` | Preview mode. Re-run with `save`. |
125
- | `no_changes_needed: true` | The account already matches the request. Nothing to send. |
126
- | (error) `tenderly_sim_status: "failure"` | The call would revert. Fix the cause, do not broadcast. |
122
+ | Field | Meaning |
123
+ | ---------------------------------------- | --------------------------------------------------------- |
124
+ | `preview_only: true` | Preview mode. Re-run with `save`. |
125
+ | `no_changes_needed: true` | The account already matches the request. Nothing to send. |
126
+ | (error) `tenderly_sim_status: "failure"` | The call would revert. Fix the cause, do not broadcast. |
127
127
 
128
128
  ## Superseded managers
129
129
 
@@ -143,13 +143,13 @@ Asset managers are redeployed over time. An account registered on an older deplo
143
143
 
144
144
  **Key `out_of_range` params:**
145
145
 
146
- | Param | Default | Description |
147
- | -------------------------- | -------- | -------------------------------------------------------------------------- |
148
- | `optimal_token0_ratio` | `500000` | Target token0 composition (1e6-scaled: 500000 = 50%) |
146
+ | Param | Default | Description |
147
+ | -------------------------- | -------- | -------------------------------------------------------------------------------- |
148
+ | `optimal_token0_ratio` | `500000` | Target token0 composition (1e6-scaled: 500000 = 50%) |
149
149
  | `trigger_lower_tick_ratio` | `0` | Offset from tick_lower as a fraction of tick range (1e6-scaled, 0 = at boundary) |
150
- | `trigger_upper_tick_ratio` | `0` | Offset from tick_upper, same scaling. Asymmetric values are valid |
151
- | `min_rebalance_time` | `3600` | Cooldown in seconds |
152
- | `max_rebalance_time` | `1e12` | Max time before a forced rebalance (effectively disabled) |
150
+ | `trigger_upper_tick_ratio` | `0` | Offset from tick_upper, same scaling. Asymmetric values are valid |
151
+ | `min_rebalance_time` | `3600` | Cooldown in seconds |
152
+ | `max_rebalance_time` | `1e12` | Max time before a forced rebalance (effectively disabled) |
153
153
 
154
154
  Trigger ratios are **tick distance, not price**: a ratio of 50000 shifts the trigger by 5% of `(tick_upper - tick_lower)` ticks. Positive values delay the rebalance until price travels further beyond the range; negative values fire preemptively while price is still in range.
155
155
 
@@ -179,7 +179,7 @@ Quota is bypassed when: gas cost < pending fees / 2, or position value >= $50k.
179
179
 
180
180
  **When to add on top of a rebalance:** The rebalance compounds at rebalance time. Adding `compound_fees` also compounds between rebalances, which means more frequent compounding and higher effective APY.
181
181
 
182
- **Staked positions:** a staked position earns staking emissions (for example AERO), not LP fees. When the reward token is not one of the pool tokens, the backend routes it through the CowSwapper automatically: the reward is swapped to a pool token via a CoW Protocol batch auction (MEV-protected) and folded into the LP. You do not enable a CowSwapper yourself and you do not pick the sell/buy tokens. When the reward token *is* a pool token no swap is needed and none is configured.
182
+ **Staked positions:** a staked position earns staking emissions (for example AERO), not LP fees. When the reward token is not one of the pool tokens, the backend routes it through the CowSwapper automatically: the reward is swapped to a pool token via a CoW Protocol batch auction (MEV-protected) and folded into the LP. You do not enable a CowSwapper yourself and you do not pick the sell/buy tokens. When the reward token _is_ a pool token no swap is needed and none is configured.
183
183
 
184
184
  ---
185
185
 
@@ -189,13 +189,13 @@ Quota is bypassed when: gas cost < pending fees / 2, or position value >= $50k.
189
189
 
190
190
  **Config:**
191
191
 
192
- | Field | Default | Description |
193
- | ---------------- | ------------ | ----------------------------------------------------------------------- |
194
- | `mode` | `as_earned` | `as_earned` pays the tokens as-is, `convert_to` swaps them via CowSwap |
195
- | `destination` | `account` | `account` or `wallet` (the owner EOA) |
196
- | `buy_token` | none | ERC20 to swap into. Required whenever anything is being converted |
197
- | `recipient` | none | Explicit payout address, overrides `destination` |
198
- | `tokens` | all yielding | Which tokens' yield to claim out |
192
+ | Field | Default | Description |
193
+ | ---------------- | -------------- | ---------------------------------------------------------------------- |
194
+ | `mode` | `as_earned` | `as_earned` pays the tokens as-is, `convert_to` swaps them via CowSwap |
195
+ | `destination` | `account` | `account` or `wallet` (the owner EOA) |
196
+ | `buy_token` | none | ERC20 to swap into. Required whenever anything is being converted |
197
+ | `recipient` | none | Explicit payout address, overrides `destination` |
198
+ | `tokens` | all yielding | Which tokens' yield to claim out |
199
199
  | `convert_tokens` | defers to mode | Subset of `tokens` to swap; the rest are claimed as-earned |
200
200
 
201
201
  CowSwap settles inside the account, so a converted claim cannot pay out to a wallet. `convert_tokens` is what enables a partial convert: swap the reward to USDC while claiming token0 and token1 as-earned.
@@ -143,14 +143,14 @@ Target collateral ratio ≥ 1.5 at entry (≈ health factor ~0.5+). Never open b
143
143
 
144
144
  ## 4. Combining Automation
145
145
 
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`. |
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`. |
154
154
 
155
155
  ---
156
156