Exchange Rate and Slippage
When the user selects Token 1 and Token 2, the exchange rate is calculated. The exchange rate takes into account the slippage and also shows the Maximum sent and Minimum received values to the user.

The exchange rate is calculated as follows:

  1. 1.
    (T1+slippage): Exact RBC. The course is determined by the DEX. At this stage, the goal is to get a specific amount of RBC - "exact RBC”, so this amount of received RBC is used to calculate the exchange in the target network for Token 2. Slippage is applied to Token 1 - the user can spend the amount specified by him + % slippage. This is the Maximum sent value.
  2. 2.
    RBC: BRBC is Always 1 to 1. RBC is a platform token added to all networks available for Cross-Chain Routing and listed on DEXs at the same rate. Therefore, the rate of RBC tokens in all networks is always 1 to 1. If the RBC rate in one network changes, it will be balanced by users - transferring RBC across the bridge and trading on DEXs.
  3. 3.
    (exact BRBC - platform fee) : (T2 - slippage). The goal is to get at least 2 RBC Tokens for a specific amount that was indicated to the user. This is the Minimum received value.

Failed Transactions:

  • The swap in the source network may not take place due to a change in the exchange rate of tokens.
In this case, the gas for the transaction will be burned, the user will pay a network fee. To avoid this situation, the recommended minimum slippage is 2% - this value is set in the default settings. Through the UI, the user can increase the slippage values.
  • The swap in the target network may also fail due to a change in the exchange rate of tokens.
At the same time, for both transactions in the source and target networks, the same value of slippage will be used.
The frequency and degree of rate's change depends on the token.

Smart-Slippage

Further development of Cross-Chain Routing will provide the user with the opportunity to choose the minimum and recommended slippage. By receiving quantitative and qualitative data on the change in the exchange rate of the selected tokens, we will be able to offer the user the minimum and recommended slippage.