write_account_adjust_range
Move an existing Arcadia LP position to a new tick range in one flashAction while leaving the account's other collateral and debt unchanged.
Instructions
Move one LP position in an Arcadia account to a new tick range in one flashAction: the position is burned, its own tokens (fees included, less the protocol share) are swapped to the new range's ratio and it is minted again, staked again when it was. Nothing else in the account moves and the debt is unchanged, so other collateral keeps backing the account. Use this to re-range a position the account already holds; use write_account_add_liquidity to open a position or add capital. Supports Uniswap V3, Uniswap V4, Slipstream and Aero positions in spot and margin accounts. position_manager and position_id are the position's asset address and NFT id from read_account_info. tick_lower and tick_upper must be multiples of the pool's tick spacing and differ from the current range. A staked or wrapped Slipstream position whose gauge is killed is refused: move it to Aero (write_account_aero_upgrade) or close it. The returned calldata is time-sensitive: sign and broadcast promptly; on a price revert, build again. After a transaction confirms, pass its block as min_block on the next call. If tenderly_sim_status is failure the tool returns an error and no transaction; unavailable means Tenderly did not answer: call once more before signing. Only the account owner can sign it. If the pool's price is off market or one of its tokens has no price, the tool returns the price warnings, an accept_price_checks list and NO transaction. Show the warnings to the user and call again with that accept_price_checks list only after the user explicitly confirms they accept them. If a later call returns new warnings, even on a rebuild, show them and get a new confirmation before passing their list.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account_address": "<account_address>",
"position_manager": "<position_manager>",
"position_id": "<position_id>",
"tick_lower": "<tick_lower>",
"tick_upper": "<tick_upper>"
},
"name": "write_account_adjust_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain_id | No | Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood) | |
| slippage | No | Swap slippage in bps. Omit for the backend default (50). | |
| min_block | No | Block of the transaction you just confirmed, so the build reads state at or after it | |
| tick_lower | Yes | Lower tick of the new range | |
| tick_upper | Yes | Upper tick of the new range | |
| position_id | Yes | NFT id of the position | |
| account_address | Yes | Arcadia account address | |
| position_manager | Yes | Asset address of the position in the account (from read_account_info) | |
| accept_price_checks | No | The accept_price_checks list returned with the price warnings of a previous call, passed unchanged and only after the user has explicitly confirmed those warnings. Never set it on the first call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ||
| before | No | ||
| description | No | ||
| transaction | Yes | ||
| price_checks | No | ||
| tenderly_sim_url | No | ||
| tenderly_sim_status | No | ||
| expected_value_change | No | ||
| expected_value_change_unavailable | No |