web icon indicating copy to clipboard operation
web copied to clipboard

Improve error message on defi protocols, when the user doesn't have enough ETH

Open DiggyDiggy2 opened this issue 2 years ago • 0 comments

Overview

  1. 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
  2. Instead of showing "transaction failed" - we should show "Not enough ETH to cover gas"

References and additional details

  1. Go to stake FOX (into FOXy) on an account with only FOX and very little or no Ethereum
  2. Notice that on the approval step, the transaction simply fails but as a user, its not clear why.
  3. We need to change the error message

Screen Shot 2022-10-13 at 1 46 12 PM

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

DiggyDiggy2 avatar Oct 13 '22 19:10 DiggyDiggy2