write_wallet_upgrade_velo
Upgrade VELO held in a wallet on Optimism to the new AERO on Base: ordered unsigned wallet transactions from owner_address, an approve when the allowance is short, then depositLiquid on the Velodrome migration with the Hyperlane fee as value. 0.044 new AERO per VELO arrives at the same address on Base once the message lands. VELO inside an Arcadia account must be withdrawn to the wallet first (write_account_withdraw). VELO stays usable, so this is optional. Optimism (chain_id 10) only. 'upgrade unavailable' names the contract's reason: not_open (with the opening time), paused, budget_exhausted, recipient_not_deployed (a contract wallet with no code on Base).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Raw units (18 decimals). Omit for the wallet's full VELO balance. | |
| chain_id | No | Chain ID: 10 (Optimism) | |
| owner_address | Yes | Wallet holding the VELO on Optimism; receives the AERO on Base |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee_wei | Yes | ||
| amount_in | Yes | ||
| new_token | Yes | ||
| old_token | Yes | ||
| recipient | Yes | ||
| description | Yes | ||
| transactions | Yes | ||
| expected_amount_out | Yes | ||
| destination_chain_id | Yes |