Bridge Smart Contracts
Smart contracts are the backbone of BeraBridge’s trustless operation. They automate the entire process of locking, minting, and unlocking assets, ensuring that there’s no need for intermediaries or central authorities. Each supported blockchain has its own set of smart contracts, which perform the following roles:
Locking Assets: When a user transfers assets from one blockchain to another, the assets are locked in a smart contract on the source chain. This ensures that the user cannot use those assets on the source chain while they are being bridged.
Minting/Unlocking Assets: Once the transaction is verified, smart contracts on the destination chain either mint new tokens (representing the bridged assets) or unlock pre-existing tokens.
Burning Tokens: When assets are sent back to the original chain, the minted tokens on the destination chain are burned, and the locked assets are released back to the user.
By using smart contracts, BeraBridge ensures that asset transfers are fully transparent and governed by code rather than intermediaries, preserving decentralization.
Last updated