Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gasless Bridge & Gas providing through a bridge #251

Open
Enphiguralimificule opened this issue Feb 13, 2025 · 0 comments
Open

Gasless Bridge & Gas providing through a bridge #251

Enphiguralimificule opened this issue Feb 13, 2025 · 0 comments

Comments

@Enphiguralimificule
Copy link

Is your feature request related to a problem?

When we are using aeBridge for transfering assets from EVM to Archethic or fromArchethic to EVM, we do need gas on both blockchain in order to pay the transactions fees of the different TXs of the bridge.

Currently, when we're going from EVM to Archethic, if the recipient is a blank address, then the transaction fees from the Archethic side are supported by Archethic. If the recipient address is not blank, then the user need $UCO to pay for the transaction fees on the Archethic side.

Several points to note:

  • Lot of users have been stucked because they wanted to bridge to their (used) AE address but didn't had enough gas ($UCO) to pay for the fees
  • The restriction can be bypassed by always sending the funds to a new Archethic address (hence the fees are always supported by Archethic)
  • The support to blank address has a cost for Archethic
  • The user needs enough gas on both blockchain of the bridge to be able to make it

Describe the solution you'd like

Several in-bridge options:

  1. For the issue of not having enough gas on the blockchain of departure:
    An in-bridge option that will change a part of the funds to transfer for gas to pay the transaction fees on the blockchain of departure

  2. For the issue of not having enough gas on the destination blockchain (either only for the bridge or for the bridge + some more TXs after):
    An in-bridge option that will change a part of the funds to transfer for gas to pay the transaction fees on the destination blockchain (or to pay the transaction fees and change a bit more for extra gas allowing the user to continue doing TXs once he/she is done with the bridge)

For a better UX, the protocol will automatically:

  • Scan the sending and recipient addresses to figure if they have enough gas for the bridge and if not, propose the relevant options (auto-select)
  • Scan the recipient address to figure out if it has enough gas to make several transactions after the bridge and if not, propose the option (2)

This features will solve the issue where the user is becoming stuck due to the lack of gas on a blockchain and will allow to terminate the support for the Archethic fees for a bridge to a blank address. It basically allows to:

  • Do gasless bridging
  • Get extra gas on the destination blockchain
  • Improve the UX

Implementation example:
Image

Additional context

These options would be automated by smart-contracts, so it does not require maintenance (fully autonomous)

The implementation example is just a quick sketch:

  • The information would be better written (need to be reviewed to be more pro/neutral)
  • All the texts could be wrapped in their respective tooltips and displayed on hover

Epic

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant