Close
5. Preview the estimated post-close portfolio
// User obtains a quotation for closing positions
const withdrawalToken = mainnetTokens.WBTC;
const deleverageInfo = await adapter.close({
account,
portfolio,
withdrawalToken,
});6. Obtain the required approval permission and send the router transaction
Last updated