web
web copied to clipboard
Improve error message on defi protocols, when the user doesn't have enough ETH
Overview
- If a user is depositing into a Defi position, and they don't have enough ETH to cover gas, the error message is not very helpful
- Instead of showing "transaction failed" - we should show "Not enough ETH to cover gas"
References and additional details
- Go to stake FOX (into FOXy) on an account with only FOX and very little or no Ethereum
- Notice that on the approval step, the transaction simply fails but as a user, its not clear why.
- We need to change the error message
Acceptance Criteria
As a user, when i'm depositing into a protocol/staking etc, and I don't have enough ETH to cover gas, I should see an error message that says "Not enough ETH to cover gas"
Need By Date
No response
Screenshots/Mockups
No response
Estimated effort
No response