Pre-Trade Swap/Sell Tax Guardrail ($0.01 x402)
pre_trade_checkChecks HIFO vs FIFO tax savings, 366-day US short-to-long-term cliffs, and Aave v3 borrow-vs-sell before executing a swap.
Instructions
Checks HIFO vs FIFO savings, 366-day US ST->LT cliffs, and Aave v3 borrow-vs-sell before swapping ($0.01 USDC x402 on Base).
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": {
"walletAddress": "<walletAddress>",
"sellAsset": "<sellAsset>",
"sellAmount": "<sellAmount>"
},
"name": "pre_trade_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | ||
| sellAsset | Yes | ||
| sellAmount | Yes | ||
| jurisdiction | No | ||
| walletAddress | Yes | ||
| referrerWallet | No | ||
| paymentSignature | No |