Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 2.47 KB

BEP86.md

File metadata and controls

43 lines (30 loc) · 2.47 KB

BEP-86: Dynamic Extra Incentive For BSC Relayers

1. Summary

This BEP proposes a reward mechanism to balance the gain and risk for BSC relayers, which will attract more relayers to engage in and improve the cross chain communication robustness between BC and BSC.

2. Abstract

Now all bsc-relayers are suffering from BNB loss in relaying cross chain packages from BC to BSC. Besides, it would not be helpful to community development if common users have to pay more relay fees. To compensate relayers and avoid additional burden to common users, some dynamic extra reward will be granted to bsc-relayers from the SystemReward Contract.

3. Status

This BEP is already implemented.

4. Motivation

Anyone can maintain a bsc-relayer by depositing 100BNB to the RelayerHub contract. If the relay reward can cover the relay cost, then more and more people will maintain their own bsc-relayer, which will improve the robustness of the cross chain communication between BC and BSC. Otherwise, no one is willing to maintain a bsc-relayer. Thus the communication between the BC and the BSC will be blocked.

5. Specification

5.1 Governable Parameter

Import a governable parameter dynamicExtraIncentiveAmount to the RelayerIncentivize Contract:

  1. The dynamicExtraIncentiveAmount represents the amount of BNB which will be transferred from the SystemReward to the bsc relayer reward pool.
  2. The dynamicExtraIncentiveAmount can be modified by sidechain governance on BC.

5.2 Modify RelayerIncentivize Contract

Modify the addReward method in the RelayerIncentivize contract:

  1. Try to claim dynamicExtraIncentiveAmount from the SystemReward contract.
  2. Add the new claimed reward to the existing reward.
  3. Add the total reward to the relayer reward pool.

6. License

All the content is licensed under CC0.