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

Deposit out of gas errors and gas estimate #674

Open
hwwhww opened this issue Dec 19, 2023 · 1 comment
Open

Deposit out of gas errors and gas estimate #674

hwwhww opened this issue Dec 19, 2023 · 1 comment

Comments

@hwwhww
Copy link
Contributor

hwwhww commented Dec 19, 2023

Thank @parithosh and users for helping report it.

Issue

Issue on Holesky:

A lot of deposits are randomly failing via the official launchpad due to Warning! Error encountered during contract execution [out of gas]
https://holesky.etherscan.io/address/0x4242424242424242424242424242424242424242
example txn: https://holesky.etherscan.io/tx/0xda360eb53f1d55afedde9077120a8a278ad692364b641462514eed182462cf62
I also looked at other transactions on the contract and it seems that other users have also been observing this behavior for a few days

Issue on Mainnet:

I checked the deposit txs since January 1st, 2023, and there are 32 similar cases by 4 different senders.
For example: https://etherscan.io/tx/0x1f0058046a81d08edcf2c6cd720836434269ee22121e5425311f760451feb0ca

Note: not sure if they used launchpad or other tools

Potential cause

From my poor Dapp experience and code trace, I think Launchpad doesn’t set a specific gas limit, so it is using the eth_gasEstimate RPC call result to set the gas limit.

The deposit contract FV report said the best-to-worst gas cost is between [46162, 157642].

A hypothesis

I suspect the gas estimate was inaccurate when deposit call congestion happened because the TX ordering was unknown; therefore, the user may get out of gas error. Does that make sense?

However, in my previous deposit on Holesky launchpad (via metamask, see here), the gas limit was much larger than the gas used.

/cc @CarlBeek @wackerow for consulting 🙏

@parithosh
Copy link
Member

Also thanks to @roblinkriver for raising the issue initially :)

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

2 participants