Open VolodLytvynenko opened 1 week ago
@VolodLytvynenko @shivekkhurana so here we should just hide the toast for this error? What should we do in case of other router errors i.e. which ones we should show and which ones ignore? e.g.
"not enough token balance, token: %s, chainId: %d"
"not enough native balance, token: %s, chainId: %d"
"native token not found"
"token not found"
"no best route found"
"cannot check balance"
"bonder fee greater than estimated received, a higher amount is needed to cover fees"
"no positive balance"
@xAlisher, could you take a look at this question? Perhaps some additional validation should be added in the Figma.
Currently, we only have a Figma design for: 'Not enough native balance, token: %s, chainId: %d' — Figma link.
I believe the case 'No positive balance' is impossible to reach on the client.
For other cases:
'Not enough token balance, token: %s, chainId: %d' 'Native token not found' 'Token not found' 'No best route found' 'Cannot check balance' 'Bonder fee greater than estimated received, a higher amount is needed to cover fees'
should we just show something went wrong as described here ?
@clauxx Could you please provide a more detailed explanation of the validations and correct me if I'm misunderstanding anything:
'Native token not found' – Does this occur if the user selects a token that is not supported by the network and tries to send it using that network? if so, this feature is handled in our app
'Token not found' – (Could you clarify in which cases it can occur?)
'No best route found' – I believe in this case we should attempt to find another available network. (In my opinion, we should leave this toast If this happens)
'Cannot check balance' – (Could you clarify in which cases it can occur?)
'Bonder fee greater than estimated received, a higher amount is needed to cover fees' – This occurs when the transaction amount is less than the required fee to cover the transaction. For example, to send 0.000001 ETH from L1 to L2, the user would need to pay 0.000002 ETH in fees. I believe we should have additional design for this case
cc: @xAlisher
@clauxx Could you please provide a more detailed explanation of the validations and correct me if I'm misunderstanding anything:
1. 'Native token not found' – Does this occur if the user selects a token that is not supported by the network and tries to send it using that network? if so, this feature is handled in our app 2. 'Token not found' – (Could you clarify in which cases it can occur?) 3. 'No best route found' – I believe in this case we should attempt to find another available network. (In my opinion, we should leave this toast If this happens) 4. 'Cannot check balance' – (Could you clarify in which cases it can occur?) 5. 'Bonder fee greater than estimated received, a higher amount is needed to cover fees' – This occurs when the transaction amount is less than the required fee to cover the transaction. For example, to send 0.000001 ETH from L1 to L2, the user would need to pay 0.000002 ETH in fees. I believe we should have additional design for this case
cc: @xAlisher
should we just show something went wrong as described here ?
@VolodLytvynenko @xAlisher yeah I think this would be best. I don't see any toasts error toast in the design, we just show "No routes found" and "Try again" button, so I think it would make sense to not show error toasts in the send modal at all. WDYT?
@VolodLytvynenko @xAlisher @clauxx I think it is not wrong that we show this error, the wording is not best, but it is a way clearer than "Something went wrong"
I'd suggest to postpone the handling of toast error, wdyt?
@VolodLytvynenko @xAlisher @clauxx I think it is not wrong that we show this error, the wording is not best, but it is a way clearer than "Something went wrong"
I'd suggest to postpone the handling of toast error, wdyt?
Agree with @churik . A few toast with errors will disappear after implementing new sending flow
sounds good to me :+1:
Follow up for https://github.com/status-im/status-mobile/pull/21235
Steps:
Actual Result:
A toast message is displayed: "Not enough native balance, token ETH, chain id."
Expected Result:
The toast message is not shown
Devices: