loot_sell
Sell LOOT tokens for ETH via router, using amount or percent, with slippage and deadline. Approves router, quotes exact sell, refuses unprotected floor, burns game position.
Instructions
Sell a LOOT token for ETH through the deployed router. Takes amount_tokens (decimal) or percent of the wallet balance. Approves the router once if needed, quotes the exact sell, and refuses rather than send an unprotected floor. Fixed 5,000,000 gas. Needs LOOT_AGENT_PRIVATE_KEY. Selling burns the game position for the amount sold.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | ||
| percent | No | percent of balance to sell instead of amount_tokens | |
| slippage_bps | No | ||
| amount_tokens | No | tokens to sell, decimal string | |
| deadline_seconds | No |