Cancel a Presale
Overview
- Presale owners can cancel their pool using the controls in the Owner Zone.
- Cancelling requires confirming a transaction with the owner's wallet.
- After cancellation, the owner needs to withdraw their originally deposited project tokens from the presale contract.
- Crucially, if the project token has transfer fees, rewards, or transaction limits, the owner must first interact with the token's smart contract to exclude the presale contract address from these restrictions before withdrawing the tokens.
- Once any necessary exclusions are done, the tokens can be withdrawn via the Pinksale interface.
Steps
Follow these steps if you need to cancel your presale:
Step 1: Cancel Presale
- Connect Wallet: Ensure your wallet (the one that owns the presale pool) is connected to Pinksale.
- Visit Pool: Navigate to your specific presale pool page.
- Cancel: Locate the Owner Zone section and click the Cancel Pool button.
- Confirm: Your wallet (e.g., MetaMask) will prompt you to confirm the cancellation transaction. Review the details and gas fee, then click Confirm.
Step 2: Withdraw Tokens from Canceled Pool
After successfully cancelling the pool (Step 1), you need to withdraw the project tokens you initially deposited to create the pool.
Important Pre-requisite for Tokens with Fees/Limits: If your project token's smart contract includes features like transaction fees (tax), reflection rewards, or maximum transaction amount limits, you must exclude the Pinksale presale contract address from these features before attempting to withdraw your tokens. Failure to do so will likely cause the withdrawal transaction (Step 2.5) to fail.
Follow these sub-steps if the pre-requisite applies, otherwise skip to Step 2.5:
-
Find Your Token Contract Address: Locate your project token's contract address. You can find this on a block explorer like BSCScan or by clicking the "token address" link on your (now canceled) launchpad page.
-
Connect Wallet to Token Contract: Navigate to your token's contract page on the relevant block explorer (e.g., BSCScan). Go to the Contract tab, then select Write Contract. Click Connect to Web3 to connect your wallet.
Note: You must connect using the wallet address that is the owner of the token contract.
-
Exclude Presale Address from Fees/Limits:
- Once connected, look for a function in your token contract related to excluding addresses from fees/limits (e.g.,
excludeFromFees
,setExcludedFromRewards
,excludeFromMaxTx
,exclude
, or similar). Use your browser's find function (Ctrl+F or Cmd+F) and search for "exclude".
- Once connected, look for a function in your token contract related to excluding addresses from fees/limits (e.g.,
- In the input field for this function (e.g.,
account
or_address
), paste your Pinksale presale contract address (the address of the pool you just cancelled).
Here's your presale contract address:
- If the function requires a boolean input (like
exclude(address, bool)
or showingexclude (bool)
), inputTrue
.
- Click the Write button for that specific function.
Note: Some contracts might use "exempt" instead of "exclude". If you don't find "exclude", search for "exempt" and follow the same process.
- Confirm Exclusion Transaction: Your wallet will pop up asking to confirm the transaction on the token contract. Review the details and gas fee, then click Confirm. Wait for this transaction to be confirmed on the blockchain.
- Withdraw Tokens via Pinksale UI: Go back to your cancelled presale pool page on Pinksale. Find and click the Withdraw canceled tokens button (this button likely appears in the Owner Zone after cancellation is confirmed). Confirm the withdrawal transaction in your wallet when prompted.
Q&A
- Q1: Under what conditions can I usually cancel my presale?
- A: Typically, cancellation is possible before the presale successfully concludes (e.g., before the Soft Cap is met and the end time passes). If the presale was successful, you'd usually 'Finalize' it instead. Check Pinksale's specific rules for exact conditions.
- Q2: If I cancel, what happens to the money people contributed?
- A: Cancelling a presale generally allows contributors to claim back 100% of the funds they put in. The cancellation triggers the refund mechanism for them.
- Q3: Why must I exclude the presale contract address from my token's fees before withdrawing my own tokens?
- A: The presale contract holds your tokens. To send them back to you, it performs a transfer. If your token taxes transfers, it would tax this return transfer. Excluding the presale contract address from fees ensures the full amount of your tokens can be sent back from the presale contract to your wallet without being taxed by your token's own rules.
- Q4: Does every token owner need to perform the 'exclude address' step before withdrawing from a cancelled pool?
- A: No. If your project token is standard and has no transfer fees, rewards based on transfers, or maximum transaction limits, you do not need to perform the exclusion steps. You can withdraw directly after cancelling.
- Q5: Where can I find the 'Withdraw canceled tokens' button?
- A: It should appear on your presale pool page, likely within the Owner Zone section, after you have successfully completed the 'Cancel Pool' transaction.
Troubleshooting
- Q: Why can't I find or click the 'Cancel Pool' button?
- A: Ensure your owner wallet is connected. The option might be unavailable if the presale has already succeeded (met Soft Cap/Hard Cap and ended), been finalized, or already cancelled. Check the current status of your presale.
- Q: Why is the transaction to 'exclude' the presale address failing on the block explorer?
- A: Check if you're using the correct token owner wallet, pasted the correct presale contract address, have enough gas money, and are using the correct function name (
exclude
,exempt
, etc.) and parameters (True
?) defined in your specific token contract.
- A: Check if you're using the correct token owner wallet, pasted the correct presale contract address, have enough gas money, and are using the correct function name (
- Q: Why is the 'Withdraw canceled tokens' transaction failing?
- A: First, confirm the pool cancellation was successful. If your token has fees/limits, verify you successfully excluded the presale address before attempting withdrawal. Also, ensure you have enough native currency for gas fees for the withdrawal itself.
- Q: I forgot to exclude the presale address before trying to withdraw my taxed tokens, and now the withdrawal fails. What do I do?
- A: Go back to your token's contract on the block explorer now. Use the 'Write Contract' function to exclude the Pinksale presale contract address from fees/limits. Once that transaction confirms, return to the Pinksale page and try clicking 'Withdraw canceled tokens' again.