executeLPStake
Provide liquidity to a pool and earn rewards by executing an LP stake. Requires prior validation of balance, pool details, and user approval.
Instructions
Execute LP stake to provide liquidity and earn rewards. Returns a position ID that can be used to track the position status.
Prerequisites (mandatory):
Call
getLPPayTokenListto verify sufficient balanceCall
getLPPoolInfoto understand pool parametersDisplay stake details (amount, fees, expected APY) to user
Obtain explicit user confirmation
AI agent must obtain explicit user confirmation before calling this endpoint.
Response is an acknowledgment only — use getLPPositionList to confirm actual position.
Position activation typically takes 10-60 seconds for on-chain confirmation.
Do NOT call this endpoint directly without user approval.
Agent hint: Use this endpoint to execute LP stake after getting user confirmation. Never call without user approval. Always call getLPPayTokenList and getLPPoolInfo first. positionId=0 creates new position; non-zero adds to existing position. Either use rangeLower/rangeUpper OR priceLower/priceUpper, not both.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| positionId | Yes | ||
| poolAddress | Yes | ||
| payTokenAmount | Yes | ||
| payTokenCode | Yes | ||
| rangeUpper | No | ||
| rangeLower | No | ||
| priceUpper | No | ||
| priceLower | No |