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

Bridge adapter for protocol tokens #4

Open
dpbpolymer opened this issue Feb 20, 2024 · 0 comments
Open

Bridge adapter for protocol tokens #4

dpbpolymer opened this issue Feb 20, 2024 · 0 comments

Comments

@dpbpolymer
Copy link
Contributor

User story:

  • As an application I want to bridge my protocol tokens between chains from my application interface.

Objectives:

  • Build a bridging application that lets users bridge tokens between chains.

Implementation tips:

As an application deploying their own tokens on multiple chain,

  • You can choose to deploy a lock and mint bridge that mints wrapped token representations under your project name.
  • You can choose to deploy a burn and mint for tokens you first deploy on different chains and whitelist for your bridge.
  • To further improve ease of integration you can choose to build the scaffolding of a UI or widget that protocols can then use.

Creative use of Acknowledgements

  • In IBC when a packet is sent, it goes through three distinct phases of the packet lifecycle: (1) the initiating sendPacket transaction from the source chain, (2) the corresponding recvPacket transaction on the destination chain that executes a specific action (referred to as the 'onRecvPacket' callback action), and (3) finally a acknowledgment or timeout transaction. The acknowledgment serves as a notification to the originating chain about the receipt of the packet on the destination.

    NOTE: timeouts are currently not supported on testnet

  • If the action involves the minting of a specific token on the destination chain, there are ways to improve UX: the user tokens on source are unlocked or not burned in case of a failed onRecvPacket callback action of minting new tokens.

References: Lock/burn and mint bridge , xERC20, OFT

@dpbpolymer dpbpolymer changed the title Bridge adaptor for protocol tokens Bridge adapter for protocol tokens Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant