lmusarella / Pancakeswap-Prediction-Bot-2023

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.
MIT License
27 stars 8 forks source link

getCakeBalance is not defined #4

Closed rootisareservedword closed 1 year ago

rootisareservedword commented 1 year ago

Hi, I'm attempting to run the bot with SIMULATION_MODE set to false, but I am receiving the following error:

Pancakeswap-Prediction-Bot/bot-lib/pcs-bot.module.js:145 const balance = getCrypto() === BNB_CRYPTO ? await getBNBBalance() : await getCakeBalance(); ^

ReferenceError: getCakeBalance is not defined at getPersonalBalance (/Pancakeswap-Prediction-Bot/bot-lib/pcs-bot.module.js:145:72) at startBotCommand (/Pancakeswap-Prediction-Bot/bot-lib/pcs-bot.module.js:63:25) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async init (/Pancakeswap-Prediction-Bot/bot-script/pcs-bot.js:25:3)

Any suggestions? Thanks!

lmusarella commented 1 year ago

Hi, thank you very much for reporting. I have fixed the error. Redownload and try again, it should work.

rootisareservedword commented 1 year ago

It's working now! Thank you! Great work!