Two Uniswap txns calling
swapExactETHForTokens that are almost identical (even same timestamp) except for the value and gas price, but the one with higher value and gas price runs out of gas and uses much more gas than the other one. The only other difference is of course a proportionally different
I've linked above, but these are the txns:
- ✔️ https://etherscan.io/tx/0xcf3e9d50afae4076db3469438e1baddd0da77dac499ae527d6eabf55e0c97ad9
- ❌ https://etherscan.io/tx/0xe1640ab307910ecf639790f272ef7b1e0f64b41bba03c75e9012eb5f1c6b17ae
This has happened to me twice now. The other time was a lot less value but still x10 gas price over the txn that was fully mined (although that txn failed for a different reason - insufficient output amount).
- ✔️ https://etherscan.io/tx/0x435bbc9963c3ef9a4e384b589b08938f8b266f4c53a0e06fd078b9b5f3f6b6ac
- ❌ https://etherscan.io/tx/0x621c5d7dcb7765e2d9c187f17691ae0ea3337bc6fe912ab9c277331cd2998e06
Any idea what could be causing the failing txns to run out of gas (and even use much more gas) given that they're virtually identical to a successful swap at the same time, but with much higher gas price?
The internal txns are also identical between the txns in each case.