How to Participate in an IFO with BscScan
Last updated
Last updated
Warning: this page is outdated. As we will be bringing several new updates to the IFO process over the coming weeks, we won't keep this page up to date for now: please refer to the details in the IFO proposal (vote) for the specifics of the IFO you want to take part in instead.
Joining IFOs can be exciting and very rewarding. The PancakeSwap website’s IFO page is an easy way to join an IFO. But some users may prefer to interact directly with smart contracts on the BscScan website. Using BscScan will let you see a contract's code, review its analytics and events in real-time, and find other useful information.
Currently, only MetaMask or WalletConnect wallets can interact directly with BscScan. WalletConnect is still in beta, so for now we recommend using MetaMask.
Interacting directly with smart contracts is not something we’d recommend to beginners. If you’d like to join an IFO without the complicated steps, we have a How to Participate in an IFO guide to help you through the process using the PancakeSwap website.
Before you can join an IFO there are a few things you will need to do to get ready. Follow the steps below to make sure you're ready to buy when the IFO event goes live.
To take part in an IFO, you'll need a PancakeSwap profile. Having a profile protects the security of the IFO and makes it fair for everyone. The small cost of a profile also helps keep the total CAKE supply down by burning a little CAKE from each profile created. To create a profile, you can follow our How to Set Up an NFT Profile guide.
Once you have a profile, you will also need to provide liquidity to get some CAKE-BNB LP Tokens. These will be used to buy the tokens being offered in the IFO. To provide liquidity and get some CAKE-BNB LP Tokens, you can follow our How to Add/Remove Liquidity guide.
While an IFO is live, you will have 1 hour to participate. If you have prepared your CAKE-BNB LP Tokens it doesn’t take long at all to buy the new token.
You’re going to need the IFO’s smart contract address to join the IFO. You can find a link to the contract’s BscScan page on the IFO page of the PancakeSwap website underneath the Unlimited Sale section.
On the contract page, in the top-left area you’ll find the contract address. Copy the address to clipboard.
Before you’re able to spend into the IFO, you’ll need to approve the contract spending your LP Tokens.
1. Open a new tab and visit the PancakeSwap LP BscScan contract page and make sure you’re on Contract, Write Contract.
2. Click Connect to Web3 to connect MetaMask.
Confirm the connection.
3. Under function 1, “approve”, you’ll see “spender:address”. Paste the IFO’s contract address you copied to clipboard earlier.
5. You’re also going to need to approve the amount of LP Tokens the contract can spend. In the value field, you’ll need to enter the amount in Wei. You can use the BscScan Unit Converter to easily change your amount into Wei.
6. Click Write and accept the action in your MetaMask wallet. You’re now able to buy into the IFO up to the amount you’ve approved.
Now that you’ve approved the IFO to spend your Pancake LP Tokens, you’re ready to buy into the IFO.
1. Go back to the tab you have open with the IFO contract. Click onto Contract, and then onto Write Contract.
2. Under function 1, depositPool, you’ll see “_amount”. Type or paste your Wei value from before into the field.
3. Under the _amount field you’ll see “_pid”. This will tell the contract which sale you want to buy into between the Basic Sale and Unlimited Sale. If you’re not sure which sale to choose, you can read about them in How to Participate in an IFO guide.
To buy into the Basic Sale, type 0 into the _pid field.
4. Check you typed the right information then click the Write button. Confirm your action in MetaMask.
5. A View your transaction button will appear. You can click the button to view your transaction on the BscScan explorer to confirm it worked.
You can also check the IFO page on PancakeSwap’s website to see your deposit.
1. To buy into the Unlimited Sale, follow the same steps as in the Basic Sale until you are entering an amount into the “_pid” field of the IFO contract.
2. Here, instead of typing 0, type 1. This will deposit your funds into the Unlimited Sale. From here click Write and confirm your action in MetaMask.
3. You can click View your transaction, or visit the PancakeSwap IFO page to confirm your transaction.
When the IFO has ended, you will be able to collect your new tokens. How many you will get depends on how many people participated in the IFO. Any extra LP Tokens you have committed to the IFO that aren't used to buy new tokens will be returned to you.
1. To collect your new tokens, you’ll need to visit the IFO contract page on BscScan, and click Contract, then Write Contract.
2. You’ll have to connect MetaMask to WEB3 by clicking on Connect to Web3. Confirm the action with MetaMask.
3. Scroll down to function 3, harvestPool. Here you’ll find “_pid” and a field to type into. Just like earlier, you can type 0 to collect your tokens from the Basic Sale, and 1 to collect your tokens from the Unlimited Sale.
Type 0 or 1 and click Write. Confirm your action in MetaMask.
4. You can click View your transaction or visit the PancakeSwap IFO page to confirm your tokens have been collected.
All done! Your new IFO tokens will be in your wallet, and any unspent LP Tokens will be returned to you.\