web
web copied to clipboard
Arbitrum Bridge - Cannot get a rate without enough funds
Overview
Spotted in https://github.com/shapeshift/web/pull/7939#discussion_r1809258261 - currently in all envs, when the connected wallet doesn't have enough funds, it is impossible to get a rate. However, the only thing we do when we get a rate is a 1/1 estimate, with added fees estimation. In other words, it should be possible to get a quote without enough funds (and eventuallly, no wallet connected after https://github.com/shapeshift/web/pull/7939 goes in) by simply not estimating fees
References and additional details
https://github.com/shapeshift/web/pull/7939#discussion_r1809258261
Acceptance Criteria
- When no wallet is connected, fees aren't estimated
- When the address doesn't have enough funds for the Arb Bridge Tx, we swallow the error and still display a 1/1 quote
Need By Date
No response
Screenshots/Mockups
- Enough funds
- Not enough funds
Estimated effort
No response