Failed Transaction turned into a successful transaction = close to under-collateralized

Hello…

Last night I tried to generate DAI with my locked ETH… The amount I generated would have left my collatorilzation ratio at 300% - But the transaction failed.

So I tried again but with the highest GAS fee…

I woke up and all of a sudden it looks like both transactions were successful, and I have double the amount of DAI and my collatoralization ratio was at 157%… (I quickly paid some back to get it back above 200%)

What happened here? How did the failed transaction succeed?

https://etherscan.io/tx/0x181fa07adc38c55c804076218ad4d8477766c88ecdb0ce27c47ca3d55d710141

https://etherscan.io/tx/0xe134f94b30478ac53dd9734edec64ee1c75c4ee8f3067d576b1431b4cf916ef1

Looks like your 60Gwei transaction had higher nonce then your first one so they both executed one after another. The nonce needs to be the same as the transaction you want to replace. If you are using MetaMask enable the advanced gas controls so you can set the nonce manually in future.

2 Likes

Just for clarification, OP incorrectly stated that transaction failed. He probably meant that it did not execute.

1 Like