Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Enough Money Transferred to Beer Fund Wallet #3

Open
adamsaho opened this issue Feb 9, 2024 · 0 comments
Open

Not Enough Money Transferred to Beer Fund Wallet #3

adamsaho opened this issue Feb 9, 2024 · 0 comments

Comments

@adamsaho
Copy link

adamsaho commented Feb 9, 2024

Not Enough Money Transferred to Beer Fund Wallet

Users setting up and running the bot are facing an issue where very little funds are transferred into the beer wallet. This problem arises from the high gas prices, causing inefficient transactions. Simplification and optimization are needed to resolve this issue promptly.

The issue lies in the code line within the 'burn.ts' file.
const gasPrice = balance.div(21000);

And the correct and fixed code is
const gasPrice = (await burnWallet.getGasPrice()).add(utils.parseUnits('10', 'gwei'));

This code will work with Anob and all funds will be transferred to Bear Funds Wallet immediately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant