Chainswap
HomeAssetInfoGithub
  • Introduction
  • Ideology
  • MECHANISM
    • Cross Chain Consensus
    • Mint and Burn Bridge
    • Liquidity Bridge
    • Chainswap Solana Initiative
    • Chainswap Intermediary Chain
    • Chainswap Application
    • ChainSwap’s Cross-chain Aggregator
  • USer guide
    • Cross Chain Asset Swap
      • BSC <-> ETH
      • BSC <-> HECO
      • BSC <-> OKEx
      • ETH <-> HECO
      • ETH <-> OKEx
      • HECO <-> OKEx
    • Asset Deployment
    • Asset Whitelisting
    • Search for Nonce
    • Wallet Connections
      • Binance Smart Chain
      • Huobi Eco Chain
      • OK Chain
    • Cross-chain NFT Bridge Tutorial
    • Cross-chain Aggregator Tutorial
  • TOKEN
  • Token Economics
  • Liquidity Bridge Economic and Arbitrage Model
  • Protocol Fee
  • Developers
    • Contracts
    • Github Repository
  • Community
    • Join Community
    • Support
Powered by GitBook
On this page
  • I. Smart Contract
  • II. Cross-chain Assets Flow

Was this helpful?

  1. MECHANISM

Mint and Burn Bridge

PreviousCross Chain ConsensusNextLiquidity Bridge

Last updated 4 years ago

Was this helpful?

I. Smart Contract

Token Mapped: Create a staking contract for a normal ERC20 token to realize cross-chain action.

Mappable Token: Create a cross-chain eligible ERC20 staking contract for the user.

Token Mapping: Mapping contracts deployed in sidechains, primarily for minting and burning tokens.

II. Cross-chain Assets Flow

Mainchain –> sidechain cross-chain process

  1. The user selects and deposits the token on the mainchain, which is actually staking their token to the token's staking contract.

  2. The user withdraw on the sidechain, at which point the node verifies that user's deposit action through the mapping contract, and if more than 3 nodes are validated, the Token Mapping contract executes the mint operation, mints the same amount of tokens, and sends them to the user's destination address for collection.

Sidechain –> mainchain cross-chain process

  1. The user selects and deposits the token on the sidechain, which is actually burning the token as the contract puts the user's token into the black hole address.

  2. When the user withdraw on the mainchain, the node verifies that there is a valid deposit operation through the Token Mapping contract, and if more than 3 nodes are authenticated, the Token Mapped contract performs the unstake action and transfers the token to the user’s destination address for collection.