write.asset_manager.yield_claimer_cowswap
Claim LP fees and swap them to a target token using CowSwap batch auctions with MEV protection. Configure both yield claiming and token swapping in one operation for Base chain liquidity positions.
Instructions
Encode args for yield claimer coupled with CowSwap. Claims LP fees, then swaps the claimed tokens to a target token via CowSwap batch auctions (MEV-protected). For staked LPs, sell_tokens is the staking reward token list (e.g. [AERO_address]). For non-staked LPs, sell_tokens is all LP fee tokens except the buy_token — e.g. for a WETH/USDC LP claiming fees as USDC, use sell_tokens: [WETH_address], buy_token: USDC_address. Sets metadata on BOTH the CowSwapper and the Yield Claimer. Returns { asset_managers, statuses, datas } with 2 entries (cowswapper + yield_claimer). Base only. Combinable with other intent tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dex_protocol | Yes | DEX protocol of the LP position — used to resolve the correct asset manager address. | |
| sell_tokens | Yes | Token addresses to sell. Staked LP: [AERO]. Non-staked: [token0, token1] minus buy_token. | |
| buy_token | Yes | Token address to receive after swap | |
| fee_recipient | Yes | Address to receive claimed fees | |
| enabled | No | True to enable, false to disable | |
| chain_id | No | Chain ID: 8453 (Base) or 130 (Unichain) |