Cross-Chain Routing

  1. The validator, scanning the blockchain, catches an event on the contract for this transaction and reports it to the relay. In the message, the validator transmits the transaction data in the source network and the parameters for the transaction in the target network.
  2. The relay calls the cross-chain routing smart contract function and makes an exchange of BRBC/wRBC tokens from the pool for tokens selected by the user via a DEX like Pancakeswap.
  3. The hash of the source network is recorded in the smart contract of the target network — which protects against double sending.
  4. To balance the RBC/BRBC/wRBC pools, tokens are transferred over the bridge.
  5. Restrictions, the amount of commissions, etc. are set on the contract.

--

--

Rubic: A 'one-click' #CrossChain Service + tools to enable it for #dApps. Trade over 15,500+ #tokens across 26 #networks, through the aggregation of 60+ #DEXs!

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rubic

Rubic

1.1K Followers

Rubic: A 'one-click' #CrossChain Service + tools to enable it for #dApps. Trade over 15,500+ #tokens across 26 #networks, through the aggregation of 60+ #DEXs!