quote_compound
Get a quote for compounding a position (harvest fees/rewards, swap to ratio, reinvest). Returns expected liquidity increase, swap plan, simulation results. Verifies position eligibility. Read-only. Phase one: rejects third reward tokens (no verifiable swap path). Failure modes: ineligible position, third reward token, insufficient harvested fees for minimum liquidity unit, swap plan failure.
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": {
"wallet": "<wallet>",
"positionMint": "<positionMint>"
},
"name": "quote_compound"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | Wallet public key | |
| positionMint | Yes | Position NFT mint address | |
| sourceSignatures | No | Optional: prior harvest transaction signatures to merge (max 3) |