PancakeSwap 백서

PancakeSwap

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 48쪽

6-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHREX7DHcljbY5IkjgJ%2F-MazU3f7baGsVWuAZcKf%2F-Mb0AKsDaaKpkPdPRL06%2Fimage.png?alt=media\&token=6a5fda83-e3b7-4f3c-991c-5679025e6d6d) You cannot change your prediction during a live round, however. You are locked into your prediction from earlier. ## Once your entered round finishes After 5/10 minutes as the live round, your entered round will finish. Everything is automatic, so there's nothing you need to do to end the round. ### Seeing the results 1\. As the 5 minutes finish, the "LIVE" section will change to "Calculating". Calculating the results only takes a moment. ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHREX7DHcljbY5IkjgJ%2F-MazU3f7baGsVWuAZcKf%2F-Mb0AxggN8jreJQeU67L%2Fimage.png?alt=media\&token=6122fc84-4e74-4538-8d82-e5323ca78aaf) 2\. After a short wait, the finished round will move left and say "Expired". The result of the round will display with either UP colored in green, or DOWN colored in red. ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHREX7DHcljbY5IkjgJ%2F-MazU3f7baGsVWuAZcKf%2F-Mb0C_pQ3kjjE-qs73GR%2Fimage.png?alt=media\&token=f80f72b9-927c-4e3a-b83e-2257e1d531f7) 3\. If you've been busy and missed the results, you can scroll back a few rounds by clicking the **left arrow** on the purple bunny cards. ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHREX7DHcljbY5IkjgJ%2F-MazU3f7baGsVWuAZcKf%2F-Mb0FlZSuDmnImZpn_zM%2Fimage.png?alt=media\&token=50b1f358-660a-4243-93fc-dd5d1e450e18) ### Seeing results for older rounds If you want to see the results for rounds you've entered that are older than a few rounds, you'll need to follow the steps below to find the results. 1\. Click on the **reversing clock icon** next to the round timer. ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHREX7DHcljbY5IkjgJ%2F-MazU3f7baGsVWuAZcKf%2F-Mb0H7H5rWAS0jGn6qZC%2Fimage.png?alt=media\&token=84b40b86-e639-4744-a307-d8fb5effd63e) 2\. A "History" panel will open. By default, you should see your most recent round at the top of the list. Click anywhere on the round to see more information. ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHREX7DHcljbY5IkjgJ%2F-MazU3f7baGsVWuAZcKf%2F-Mb0J72WWPDRWvIZsMOU%2Fimage.png?alt=media\&token=6cf19f75-165b-4fc3-953c-bdf27aed86cb) ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHREX7DHcljbY5IkjgJ%2F-MazU3f7baGsVWuAZcKf%2F-Mb0KCbzbd-F76HYPktu%2Fimage.png?alt=media\&token=e774b287-f441-48ef-801d-518b9e57f87d) ### Collecting any winnings 1\. If you won your entered round, a **Collect Winnings** button will appear next to a gold trophy. Click the button. ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHREX7DHcljbY5IkjgJ%2F-MazU3f7baGsVWuAZcKf%2F-Mb0CKs3SIwawkZxRkR4%2Fimage.png?alt=media\&token=7b5f2630-4769-4dbc-bae1-0ffec8804431) 2\. A new window will appear showing the amount of winnings you can collect with a **Confirm** button. Click the button and confirm the action in your wallet. ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHREX7DHcljbY5IkjgJ%2F-MazU3f7baGsVWuAZcKf%2F-Mb0DHhDUjiz7Vv46sr9%2Fimage.png?alt=media\&token=cf24f698-04a2-4599-9516-afc719663a29) Your token winnings will now be in your wallet. ### Collecting winnings from older rounds Sometimes you may be away from PancakeSwap's Prediction page for a while or may have forgotten to collect winnings from older rounds. You can still collect winnings owed to you from older rounds at any time. 1\. Find more information on past rounds you've entered by clicking on the **reversing clock icon** next to the round timer. ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHREX7DHcljbY5IkjgJ%2F-MazU3f7baGsVWuAZcKf%2F-Mb0H7H5rWAS0jGn6qZC%2Fimage.png?alt=media\&token=84b40b86-e639-4744-a307-d8fb5effd63e) 2\. A "History" panel will open. You can click "Uncollected" to view all rounds you've not collected the winnings for yet (click a the transaction if you want to see more details). Click the **Collect** button. ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHREX7DHcljbY5IkjgJ%2F-MazU3f7baGsVWuAZcKf%2F-Mb0OTHrQD1RJdlXalxW%2Fimage.png?alt=media\&token=64eecfaf-7c3a-4482-9597-29f5785e8c12) 3\. A new window will appear showing the amount of winnings you can collect with a **Confirm** button. Click the button and confirm the action in your wallet. ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHREX7DHcljbY5IkjgJ%2F-MazU3f7baGsVWuAZcKf%2F-Mb0DHhDUjiz7Vv46sr9%2Fimage.png?alt=media\&token=cf24f698-04a2-4599-9516-afc719663a29) Your winnings will now be in your wallet. ## Viewing historic profit and loss data If you'd like to see how you've done overall in Prediction, you can view PNL (Profit and Loss) data whenever you'd like. 1\. On the Prediction page, click the **reversing clock icon** next to the round timer. A "History" panel will open. ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHREX7DHcljbY5IkjgJ%2F-MazU3f7baGsVWuAZcKf%2F-Mb0H7H5rWAS0jGn6qZC%2Fimage.png?alt=media\&token=84b40b86-e639-4744-a307-d8fb5effd63e) 2\. On the history panel, click the **PNL** tab. ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHREX7DHcljbY5IkjgJ%2F-MazU3f7baGsVWuAZcKf%2F-Mb0UeAlYWLhP55DQxl1%2Fimage.png?alt=media\&token=09ae4560-9fd7-434a-9928-8a20aa53ad35) The tab will open with stats for your historic performance in Prediction, including your net results, average return, best round, and other information. ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHREX7DHcljbY5IkjgJ%2F-MazU3f7baGsVWuAZcKf%2F-Mb0VBvoNdRw1GPgDMPv%2Fimage.png?alt=media\&token=da6e9be6-1d56-44f1-baf6-d18dbc0eba80) 3\. You can click the **View Reclaimed & Won** button at the bottom of the PNL tab to view those transactions on the BscScan explorer. ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHREX7DHcljbY5IkjgJ%2F-MazU3f7baGsVWuAZcKf%2F-Mb0UzaL_Tj2DiP7Edli%2Fimage.png?alt=media\&token=17368b5e-2767-407b-bc53-b2388430ced1) That's all there is to using Prediction. Good luck making the right calls! # Prediction Mini App ### What is mini app? Telegram mini app allows you to quickly access PancakeSwap features within Telegram. ### How to connect my wallet? {% tabs %} {% tab title="Desktop" %} **Use MetaMask** You can connect your mobile MetaMask wallet to the desktop Telegram mini app using QR code. To connect, choose “MetaMask”, click “Mobile”, and scan the QR code using MetaMask on your phone. **Use WalletConnect** You can connect any mobile wallet to the desktop Telegram mini app using QR code. To connect, choose “WalletConnect”, click QR code, and scan the QR code using the mobile on your phone. {% hint style="warning" %} “Desktop” option for MetaMask is not functional. You can only connect mobile MetaMask to desktop Telegram mini app. {% endhint %} {% endtab %} {% tab title="iPhone" %} **Use MetaMask** You can connect your MetaMask wallet to your Telegram mini app. To connect, choose “MetaMask”. If a prompt appears to ask if you want to be taken to the MetaMask app, click Open. Then follow the instructions in the MetaMask app to connect. **Use WalletConnect** You can connect any supported mobile wallet to your Telegram mini app. To connect, choose “WalletConnect”, click “View All”, and select your wallet. If a prompt appears to ask if you want to be taken to the wallet app, click Open. Then follow the instructions in the wallet app to connect. {% endtab %} {% tab title="Android" %} **Use MetaMask** You can connect your MetaMask wallet to your Telegram mini app. To connect, choose “MetaMask”. You will be redirected to MetaMask, then simply follow the instructions in the MetaMask app to connect. **Use WalletConnect** You can connect any supported mobile wallet to your Telegram mini app. To connect, choose “WalletConnect”, click “View All”, and select your wallet. You will be redirected to the wallet app, then follow the instructions in the wallet app to connect. {% hint style="warning" %} Wallet Connect may not work on some of the Android phones. In that case, please connect via other methods. {% endhint %} {% endtab %} {% endtabs %} ### Which PancakeSwap Market is supported? Currently the mini app supports the BNBUSD market on BNB Chain. ### How do I sign and confirm transactions for mini app? You will need to sign and execute transactions in your connected wallet app. {% hint style="warning" %} On iPhone, you may need to manually switch between wallet apps and Telegram. Please follow the onscreen instructions. {% endhint %} ### Can I use my extension wallets on Desktop? Unfortunately Telegram mini app only supports mobile wallets at the moment. <br> # Prediction - Leaderboard The **Prediction Leaderboard** highlights the top participants in PancakeSwap Prediction.\ It allows players to see how they rank against others based on different metrics. > **Note**: A wallet must participate in at least **10 rounds** to appear on the leaderboard by default.\ > Specific wallet addresses can still be searched manually. ### How to Use the Leaderboard 1. **Access the Leaderboard** directly from the Prediction page. <figure><img src="https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHREX7DHcljbY5IkjgJ-1972196547%2Fuploads%2F3coO0VjrQJ0ThXKtHr2q%2Fimage.png?alt=media&amp;token=282a0b20-1efb-4187-8106-fc3a618b82c9" alt=""><figcaption></figcaption></figure> 2. **Filter by Token** * Choose the market (BNB, BTC, ETH) you want to view top players for. 3. **Sort by Ranking Criteria** * **Rounds Played**: Total number of rounds a user has participated in. * **Net Winnings**: Total tokens won from successful predictions, after the 3% fee is deducted. * **Total BNB**: Aggregate amount of BNB used for predictions. * **Win Rate**: Ratio of rounds won to total rounds participated. 4. **Search by Wallet Address** * Enter a wallet address to display its scorecard, even if it does not meet the 10-round threshold. <figure><img src="https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHREX7DHcljbY5IkjgJ-1972196547%2Fuploads%2FA7LjgzfoG5UfnCPHeMVK%2Fimage.png?alt=media&amp;token=9e33b62a-ea28-4f5b-959d-6c716707b43f" alt=""><figcaption></figcaption></figure> <figure><img src="https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHREX7DHcljbY5IkjgJ-1972196547%2Fuploads%2FCA52BYeDkjECHg4IUKMO%2Fimage.png?alt=media&amp;token=07d2c6cb-e32b-42f1-a177-07e1d0ad0d4d" alt="" width="384"><figcaption></figcaption></figure> *** # Prediction FAQ {% hint style="info" %} Use the sidebar to quickly find the answers to your questions! {% endhint %} ## A) General Questions ### **1. What are the fees?** 3% of each round's total pot will go to the treasury, of which 100% will be used to buyback and burn CAKE. ### 2. How is the payout calculated? * Payout Ratio for UP Pool = Total Value of Both Pools ÷ Value of UP Pool * Payout Ratio for DOWN Pool = Total Value of Both Pools ÷ Value of DOWN Pool **Example - Bet 2 BNB "DOWN", outcome = "DOWN":** * DOWN side = 15 BNB, total prize pool = 150 BNB * DOWN payout ratio = 150 BNB / 15 BNB = 10x * Payout Amount = Payout Ratio × Position × (1 - Treasury Fee) * If you bet 2 BNB on DOWN, payout = (2 × 10) × (1 − 0.03) = 19.4 BNB * Profit = 19.4 − 2 = 17.4 BNB ### 3. Is there a time limit before I can collect my winnings? No, you’ll be able to collect your winnings at any time in the future. ### 4. What’s the PancakeSwap Prediction contract address? **BNB Chain** * **BNBUSD**: [0x18b2a687610328590bc8f2e5fedde3b582a49cda](https://bscscan.com/address/0x18b2a687610328590bc8f2e5fedde3b582a49cda) * **BTCUSD**: [0x48781a7d35f6137a9135Bbb984AF65fd6AB25618](https://bscscan.com/address/0x48781a7d35f6137a9135Bbb984AF65fd6AB25618#code) * **ETHUSD**: [0x7451F994A8D510CBCB46cF57D50F31F188Ff58F5](https://bscscan.com/address/0x7451F994A8D510CBCB46cF57D50F31F188Ff58F5#code) ## B) Positions & Results ### 1. **Can I change or remove my position?** No. Once you enter a position, you can NOT change the direction, add to, or remove your position. It's locked in, so make sure you're 100% happy with your position direction before confirming. ### 2. When will markets be cancelled? What happens then? * **When:** Oracle or backend service failure, or other extraneous circumstances. * **Outcome:** Users can claim 100% of their original bet amount (no fee). ### 3. The round's result changed after the round ended! Why? Sometimes, after a round closes, the final result may be different from the last result shown while the round was live. If you watch a round end on "DOWN", it may appear to flip to "UP" a few seconds later. This is because we use the Oracle price feed to determine the final outcome of a round. The period between the end of one round and the start of the next is 30 seconds, but the Oracle refreshes every 20 seconds. It's possible that during this short period, the Oracle might send an update while the transaction to trigger the next round is being minted. This can appear to "flip" the outcome of the previous round. ### 4. What is Locked Price & Closed Price? * **Locked Price:** Price at the start of the LIVE phase. * **Closed Price:** Price at the end of the round, used to determine winners. **Example – Round 400 (BNB Prediction):** 1. **12:00–12:05:** Place Bet → User bets 0.1 BNB on "UP" 2. **12:05–12:10:** Lock Phase → Locked Price = $850 3. **12:10:** Close Phase → Closed Price = $860 4. **Result: "UP"** bet wins **Notes:** * Oracle price may take up to 20 seconds to update. * House win: All bets goes to the House ### 5. What situations are considered a HOUSE WIN? **Scenarios:** 1. No opposing bets exist and the user loses (e.g., only one user bets UP and outcome = DOWN) 2. Locked Price = Closed Price **What happens:** * PancakeSwap takes 100% of the pool; all funds go to CAKE burn. * Users on either side lose their initial bet amount. **Example - No opposing bets:** * User A bets UP, no DOWN bets exist, outcome = DOWN → User A loses; 100% of funds go to treasury. * User B bets UP, no DOWN bets exist, outcome = UP → User B reclaims 97% of deposit. ## C) Market Pauses ### 1. What does it mean when markets are paused? Markets are paused when there are conditions which affect the reliability of the contract. Markets being paused means that no bets will be taking place for any rounds. ### 2. What causes PancakeSwap Prediction market to pause? The prediction market will pause under the following conditions: 1. The prediction contract has been unable to obtain the price from the ChainLink oracle due to the oracle not having posted the price at the time the round has ended. 2. The prediction contract has been unable to execute an action (ending a round or getting a price from the oracle) due to the tx being stuck in the mempool for longer than 15 blocks. 3. PancakeSwap has decided to discontinue prediction for that market / asset. ### 3. What happens to my position if the market pauses? If the markets pause while you have a live position, your funds will be available to reclaim, the same way as you would normally claim your winnings. To reclaim funds, you’ll need to pay some gas fees. We can’t compensate you for the gas fees, so please bear this small risk in mind before participating. ### 4. When will the markets resume after being paused? The markets will resume when an admin (one of the chefs) manually resumes the market. ## D) Troubleshooting & Claims ### 1. How do I claim past winnings from the CAKEUSD market on BNB Chain? * Go to <https://pancakeswap.finance/prediction?token=CAKE&chain=bsc> * Check the history tab for historical round winnings ### 2. Why can’t I see my winnings in my wallet? When you collect winnings, they might not appear in your wallet’s transaction logs as usual.\ This is because they use a different type of transaction: Internal transactions.\ Enter your wallet address on BscScan, then check the “Internal Txns” tab to confirm that they’ve arrived.\ ![](https://lh5.googleusercontent.com/9NoIvK-oztyEaizCfgrj-poPIP_uWeFDYsa0_nxN3sKUiIwFdACy_BemrtRLJn-ZkyW3LprfRn4s9lL24BOGb-I-t1vHoh5wkuTx7bObHQl5sS7xPmuZEOTVPUXr7LPNAfPfqr12) ### 3. Why aren't the results of my round showing? There’s a 15 block buffer on each round, which can cause delays of up to 45 seconds after the end of a round.\ This buffer is to accommodate for the fact that we may not be able to reliably fetch a price and end a round immediately: various blockchain factors affect the speed in which transactions get confirmed on the network. ### 4. I can’t collect my winnings, what should I do? Make sure you have enough BNB in your wallet to pay for gas fees. You’ll need a little BNB to trigger the smart contract. ### **5. What if I can't claim winnings from the website?** You might be able to claim your winnings directly from the contract. Follow the steps in the 3 tabs below. {% tabs %} {% tab title="Check rounds you played" %} How to check the history of rounds you played 1. Go to BscScan page of the [Prediction contract](https://bscscan.com/address/0x18B2A687610328590Bc8F2e5fEdDe3b582A49cdA#readContract) (e.g. BNBUSD). 2. Scroll down to “8. getUserRounds”. 3. Type in your wallet address under “user(address)”. 4. Set “cursor(uint256)" to 0 and “size(uint256)" to 1000. 5. Tap “Query” 6. Rounds you entered will show below in the first row. (after “uint256\[]:”) {% endtab %} {% tab title="Check if you can claim" %} First, check whether you should actually be able to claim from the round you played. 1. Go to BscScan page of the [Prediction contract](https://bscscan.com/address/0x18B2A687610328590Bc8F2e5fEdDe3b582A49cdA#readContract) (e.g. BNBUSD), and go to the Read tab 2. Scroll down to “4. claimable”. 3. Type in the round id you want to check under "epoch(uint256)”. 4. Type in your wallet address under “user(address)”. 5. Tap “Query” 6. If a round is claimable, it will show “true”. 7. If the result is "false". Please repeat the above steps and try with "19. refundable". 8. Note: ⬆️ If you see a round returns "false" on both "4. claimable" and "19. refundable", but it shows on the website, it's probably been claimed already and the website is lagging. {% endtab %} {% tab title="Claim from a round" %} How to claim 1. Go to BscScan page of the [Prediction contract](https://bscscan.com/address/0x18B2A687610328590Bc8F2e5fEdDe3b582A49cdA#readContract) (e.g. BNBUSD), and go to the Write tab 2. Tap “🔴 Connect to Web3” 3. Use MetaMask or WalletConnect to connect. 4. Scroll down to “3. claim” 5. Type in the round number you want to claim in this format, including the \[] brackets: `[12345]` If you want to claim from multiple rounds together, separate the rounds with a comma like this: `[12345,12346,12347]` 6. Tap “Write” 7. Confirm on wallet {% endtab %} {% endtabs %} # Lottery Playing the PancakeSwap Lottery gives you a chance to win huge CAKE prizes! It's easy, fair, and you can enter as often as you like as long as you have the CAKE to buy a ticket. [View smart contract](https://bscscan.com/address/0x5aF6D33DE2ccEC94efb1bDF8f92Bd58085432d2c) ## **Specifics:** * Lottery ticket cost for 1 ticket: \~$5 USD in CAKE. * Individual user Lottery entry limit: No overall limit, but only 100 tickets can be bought at a time. * Paying for one ticket will give users a random 6-digit combination with each digit being between 0-9, for e.g. “1-9-3-2-0-4”. Match
프로젝트로 돌아가기