-
Notifications
You must be signed in to change notification settings - Fork 599
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
Uniswap 900K gas estimation fixing solution #243
Comments
Also limiting |
Same valid for all synth tokens. See for example sETH+ETH Uniswap pool transactions: https://etherscan.io/address/0xe9cf7887b93150d4f2da7dfc6d502b216438f244 |
It seems having some synths minted from user wallet, increases gas limit to 10M: https://www.reddit.com/r/synthetix_io/comments/djd6ca/uniswap_synthetix_gas_required_exceeds_allowance/ |
It is not possible to swap SNX to DAI or any other token because of this bug. |
@hav-noms why is this closed? I am not able to swap sETH to ETH on uniswap due to this bug |
@hav-noms the problem seams to still exists. For certain transactions it would be useful to send the transaction with a default user defined gas limit after the gas estimation failed. Currently the users are facing unresponsive dApps. e.g. Uniswap: |
Related issues: vyperlang/vyper#1091, Uniswap/v1-contracts#39
We suggest to move _emit call before tokenFallback to resolve Uniswap 900K gas estimation. Solidity passes 63/64 of gas in subcalls and now estimator increases gas until 1/64 of gas left is enough for _emit call.
Currently gas estimator is feeding Uniswap proxy until 1/64 of gasleft would be enough for _emit call.
Moving _emit before tokenFallback would decrease gas estimation to 100K instead of 900K
The text was updated successfully, but these errors were encountered: