Why did my transaction fail?
Your transaction may fail for a number of different reasons including:
- Transaction rejected.
When your signing tool (e.g., Ledger, MetaMask, Mist, etc.) prompts you to sign the transaction you have one final opportunity to reject the transaction. If you do, this is seen by the application as a transaction failure.
- Not enough gas.
The system attempts to set the gas amount high enough that this doesn't happen, but sometimes it can get it wrong if the available orders on OasisDEX change before your transaction is mined. You may also run out of gas if you change the gas amount in your signing tool before submitting the transaction.
- Not enough exchange costs provided.
The system will attempt to recommend an exchange cost to you, but sometimes it can get this estimate wrong if the available orders on OasisDEX change before your transaction is mined. Since this can be set by you as part of the process, you may have set it too low. We recommend setting it to a little bit above what recommended, to deal with order book movement.
- Not enough ETH available to loan.
The system has a limited amount of ETH available on hand to loan out for position creation. The UI should warn you if you try to exceed this, but a bug in the UI or extraneous circumstances may cause the UI to not properly alert you.
- Not enough ETH.
The system will submit a transaction for signing that includes the correct amount of ETH, but if you change this with your signing tool it may no longer be enough to fulfill the transaction.
- Not enough depth on the OasisDEX orderbook.
The contracts trade DAI for ETH using OasisDEX and if there isn't enough ETH available for sale then the transaction will fail to protect the system. Try again with a smaller leverage size.
Please contact us if none of this helps solve your problem!