Contract Architecture
Last updated
Last updated
BIM Exchange with Bungee’s smart contracts act as connectors for various DEXs, aggregators, and bridges. The design emphasizes modularity over upgradability, meaning once deployed, modules are immutable, except in cases where a pause is necessary due to bugs.
When initiating a bridging transaction, users interact with the Registry contract, which decodes transaction data and identifies the necessary steps. If no swap is involved, the route moves directly to bridging. Otherwise, a middleware handles token swaps before passing the process to the respective bridge implementation, completing the transfer to the destination chain.