yuyasugano/pancake-bakery-arbitrage

"Gas Estimation Failed" - Remix

Closed this issue · 2 comments

Thanks for sharing this repo, it's interesting stuff.

I have deployed the contract via Remix to the BSC main net, but I receive a "Gas Estimation Failed" error when attempting to call startArbitrage as per the below images.

Have you tested this contract and has it worked before? Does the contract itself require a balance of BNB to pay fees for interacting with the PCS and BS contracts?

image

image

@webdog-rich Thanks for reaching out to me. I've got a similar question about Gas Estimation Failure recently. Could you try to set the fixed number for gasPrice? You may need to check the current trend and the current gasPrice before running a transaction. Firing the functions in the smartcontract requires a few BNB to execute transactions as you understood already, if you deployed that contract in BSC, you need to send some BNB to the smart contract's address.

The last thing, I did not test all codes in prod BSC environments and haven't run the codes for real arbitrage opportinities yet. Those codes are educational and informational purpose basically. Therefore you may need to modify and change the codes if you're looking for real arbitrage purpose in my understanding. Thanks mate.

@webdog-rich I will close the case. Please reopen the case if you've got concerns.