> For the complete documentation index, see [llms.txt](https://docs.swapx.co/swapx/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.swapx.co/swapx/features/token-presales/how-to-withdraw-the-remaining-tokens-from-your-presale.md).

# How to withdraw the remaining tokens from your presale?

Sometimes a successful or failed presale will leave behind some tokens in the smart contract, this is how you, as the owner of the presale can withdraw them.

## Step By Step Guide

1. Go to the presale page as the **Owner** of the presale, you should be able to see a **Manage** tab at the top of the screen, click on it to go the management UI for your presale.&#x20;

![Note: If you don't see this button make sure that your wallet is connected and that it's the owner wallet that created the presale.](https://4056115832-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhYtN_tETJSWJ3RtM3i%2Fuploads%2Fsb68Yqze21SpLWHKKzLP%2Fimage.png?alt=media\&token=94903f09-1fde-4087-9430-e9ce8ddb4a6e)

2\. Click on the green **Withdraw Leftover Tokens** button in the **Manage Presale** section of the management UI.&#x20;

![This button will be disabled if you're not eligible to withdraw the tokens](https://4056115832-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhYtN_tETJSWJ3RtM3i%2Fuploads%2FJ0XVQiWwR79LZ83zq93y%2Fimage.png?alt=media\&token=1a0fe296-ce80-42a6-8445-1dd589453dd5)

3\. A popup should appear with details about the action you're about to perform, click **Withdraw** on the warning popup.<br>

![make sure you read the text](https://4056115832-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhYtN_tETJSWJ3RtM3i%2Fuploads%2FDbwXDMHKMGHXXHW6qHgc%2Fimage.png?alt=media\&token=8fa057bc-5c6e-4d4c-bfd3-ac3ddd33a870)

4\. When your wallet prompts you, make sure to confirm the transaction, then wait a few seconds for the transaction to go through and a green toast toast to appear in the top left corner indicating the success of the operation.

## FAQ

*Q - The transaction went through successfully but nothing happened?*

A - Make sure your presale is either **Failed**, **Cancelled** or **Finalized**, otherwise the tokens will remain on the smart contract.

*Q - When I click **Withdraw** in the popup an error appears that says "PS-ERR-1041", what does this mean?*

A - It means the remaining tokens have already been withdrawn by the owner of the presale, double check using a scanner website such as BSCscan to check if there are indeed remaining tokens.
