Messaging/alert for not enough native token gas for amounts close to max
Overview
Currently in production, when selecting an amount that is close to, but not the max amount of an asset a user gets not enough ASSET.ASSET for gas.
Sending some amount less than very close to the available balance will result in a successful trade (if it is above the minimum)
Displaying to the User an amount of balance, and then not allowing them to interact with the balance in full has caused support tickets and a bad user experience for those transacting in small amounts and wishing to use their full balances in any transaction.
References and additional details
https://github.com/shapeshift/web/assets/94998097/eec5195c-f0fc-49ca-a227-e3f07b18ed05
Acceptance Criteria
Could we possibly allow a user to send all of their balance and subtract the gas after they have selected the full amount?
Man this feels like a feature request for Send Max.
Still gonna keep it as a ticket.
Need By Date
No response
Screenshots/Mockups
No response
Estimated effort
No response
This very use case was conflated with the "max" button functionality which ended up as a Rube Goldberg machine that had to fetch multiple quotes for a given swapper:
- one to determine the fees
- another to determine the quote using the input amount minus the fees from the previous quote
The issue is that network fee fluctuations were causing trade failures. We added a multiplier on the fee to allow for some fluctuations but it always meant balance was left over in the account, hence "send most" meme in product discussions.
I strongly recommend we avoid this
The learning was send max for native assets on native chains wasn't a fixable loop.
Man this feels like a feature request for Send Max.
if it walks like a duck...
per conversation on 1-22-24 product will look at error messagin to other UX to help user undertand