Prepare an Aerodrome gauge stake
prepare_aerodrome_gauge_depositStake v2 LP tokens into a pool's gauge to earn AERO emissions, with the LP-token approval the gauge needs and an allowance cleanup after. Phased, because which token the gauge pulls is its own stakingToken: call it without lp_token to get that read back, then again with the resolved address for the complete atomic plan. Staking redirects that position's trading fees to the pool's voters, so it trades fee income for emissions rather than adding to it. A dead gauge accepts the stake and pays nothing, so check gauge_alive. Size amount from the live LP balance, not from an earlier deposit simulation.
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": {
"chain_id": "<chain_id>",
"sender": "<sender>",
"gauge": "<gauge>",
"amount": "<amount>"
},
"name": "prepare_aerodrome_gauge_deposit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gauge | Yes | Gauge from a Sugar pools read (address) | |
| amount | Yes | Exact LP token amount to stake in base units (positive decimal integer) | |
| sender | Yes | address | |
| chain_id | Yes | Base (8453) only | |
| lp_token | No | Gauge stakingToken from this tool's first-phase read; omit to get that read, supply it for the full plan (address) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| execution_plan_reference | No | artifact_reference; pass unchanged |