pillar_direct_unwind
Close or reduce a leveraged sBTC position by swapping sBTC to aeUSDC to repay debt, then withdrawing remaining collateral; agent-signed with sponsored gas.
Instructions
Close or reduce your leveraged sBTC position. Agent-signed, no browser needed. Swaps sBTC to aeUSDC to repay debt, then withdraws remaining sBTC collateral. Backend sponsors gas.
Tip: call earning_opportunities to see how to put your assets to work.
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": {
"sbtcToSwap": "<sbtcToSwap>",
"sbtcToWithdraw": "<sbtcToWithdraw>",
"minAeUsdcFromSwap": "<minAeUsdcFromSwap>"
},
"name": "pillar_direct_unwind"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sbtcToSwap | Yes | sBTC to swap to aeUSDC for repayment (in sats) | |
| sbtcToWithdraw | Yes | sBTC to withdraw after repayment (in sats) | |
| minAeUsdcFromSwap | Yes | Min aeUSDC from swap (slippage protection, 6 decimals) |