lock_lp
Lock LP tokens in the LPLocker contract on Base with time-based unlock. Automates ERC-20 approval; input token, amount, and duration.
Instructions
Lock LP tokens in the LPLocker contract on Base. Handles ERC-20 approval automatically. Requires DEPLOYER_PRIVATE_KEY env var. Fee: 0.001 ETH per lock.
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": {
"token": "<token>",
"amount": "<amount>",
"duration_days": "<duration_days>"
},
"name": "lock_lp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | LP token contract address to lock | |
| amount | Yes | Amount of LP tokens to lock (human-readable, e.g. '1000') | |
| duration_days | Yes | Lock duration in days |