π§Symbiosis Core Smart Contracts
Symbiosis core smart contracts overview.
Last updated
Symbiosis core smart contracts overview.
Last updated
If you are curious to see the Symbiosis protocol in action, check out Symbiosis WebApp.
Symbiosis core smart contracts are open source and available at https://github.com/symbiosis-finance/core-contracts
For security audits of Symbiosis core smart contract, please refer to Security Audits of Symbiosis.
Symbiosis core smart contracts implement the on-chain logic of cross-chain operations (cross-chain swaps, cross-chain zaps, interchain communication, bridging). The smart contracts are deployed and tuned by Symbiosis administrators while adding a blockchain to the Symbiosis protocol.
The Symbiosis protocol has three slightly different sets of smart contracts: Scheme 1.
All smart contracts shown in Scheme 1, except MulticallRouter and Octopool, are inherited from Symbiosis protocol V1 without a modification. Let's see what each contract does:
The MetaRouterGateway contract secures the interactions of the MetaRouter contract with usersβ ERC20 tokens. Usersβ ERC20 tokens should only be approved for this contract.
The MetaRouter contract manages calls to other Symbiosis contracts on one blockchain within one cross-chain operation.
The Portal contract locks and unlocks users' stablecoins during cross-chain operations.
The BridgeV2 contract is a proxy between the Symbiosis relayers network and the Synthesis/Portal contracts.
The Synthesis contract on S-chain mints and burns sTokens during cross-chain operations. The Synthesis contract on the BNB chain mints and burns sSIS tokens when bridging SIS tokens.
Symbiosis Octopool is a Symbiosis AMM with multiple tokens. There are two Symbiosis Octopools on Boba BNB: one with sStable tokens and the another one with sWETH tokens.
The MulticallRouter contract manages calls to Symbiosis contracts on Boba BNB (S-chain) within one cross-chain operation, when S-chain isn't the source or destination blockchain of the cross-chain operation.
Uniswap-like DEX {SIS BNB / BNB}: Symbiosis owns a Uniswap-like DEX with a {SIS BNB / BNB} pair on the BNB chain, allowing users to trade SIS tokens on the BNB chain.
Symbiosis Routing Contracts document explains how the contracts interact during cross-chain operations.
sTokens (sStable tokens and sWETH tokens) are discussed here: sTokens in Symbiosis.
Here is an explanation of how the Symbiosis protocol handles cross-chain operations Symbiosis Routing Contracts.