omgnetwork / optimism-v2

ARCHIVE of monorepo implementing Boba, an L2 Compute solution built on Optimistic Ethereum - active repo is at https://github.com/bobanetwork/boba
https://github.com/bobanetwork/boba
MIT License
40 stars 22 forks source link

[UX] Boba Gateway/Bridge: Subtract gas fees automatically #453

Open wsdt opened 2 years ago

wsdt commented 2 years ago

Thought I would just drop this here. When bridging ETH to Boba (Rinkeby in this case) then the transaction would fail when trying to transfer the full amount.

What I've seen for some other bridges etc. is that they automatically subtract the gas from the amount to transfer which makes the bridge way more user-friendly.

Some suggestions:

image

Suggestions? Feedback?

CAPtheorem commented 2 years ago

Yes we had that feature ("Bridge All") but removed it because it was error prone. One issue was that users would select "Bridge All", but then wait for several minutes before signing the transaction. If the gas increased in that time window, the transaction would then fail, and conversely, if the gas decreased in that delay window, the user would have funds left in their account. Given that ETH is the fee token, it is particularity difficult to get "Bridge All" to work reliability in all circumstances.