👷♀️Contract Architecture
Brydge's goal is to create a seamless experience for a user to transact between protocols. In this case, we look specifically at a mechanism to allow users to purchase assets on one chain from another.
Example Transaction Flow
User has TokenA on ChainA and wishes to purchase an asset on ChainB from a contract that expects TokenB.
User confirms a transaction to BrydgeMultichainRouter on ChainA including a payload of desired transactions and an amount of TokenA
BrydgeMultichainRouter forwards TokenA and payload to BrydgeMultichainPortal
BrydgeMultichainPortal executes a swap via a DEX from TokenA --> USDC
BrydgeMultichainPortal sends USDC and remaining payload --> Stargate on ChainA
Stargate routes USDC and payload --> BrydgeMultichainPortal on ChainB
BrydgeMultichainPortal executes a swap via a DEX from USDC --> TokenB
BrydgeMultichainPortal executes asset purchase
BrydgeMultichainPortal forwards asset --> User on ChainB
Visual Design
Last updated