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.
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) |