t2000_claim_rewards
Claim pending protocol rewards from lending positions and automatically convert them to USDC.
Instructions
Claim pending protocol rewards from lending positions and auto-convert to USDC.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- packages/mcp/src/tools/write.ts:480-492 (handler)The handler implementation for the tool 't2000_claim_rewards'. It invokes 'agent.claimRewards()' within a mutex lock to safely claim and convert protocol rewards.
server.tool( 't2000_claim_rewards', 'Claim pending protocol rewards from lending positions and auto-convert to USDC.', {}, async () => { try { const result = await mutex.run(() => agent.claimRewards()); return { content: [{ type: 'text', text: JSON.stringify(result) }] }; } catch (err) { return errorResult(err); } }, );