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.
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.
This BEP is already implemented.
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.
Import a governable parameter dynamicExtraIncentiveAmount
to the RelayerIncentivize Contract:
- The
dynamicExtraIncentiveAmount
represents the amount of BNB which will be transferred from the SystemReward to the bsc relayer reward pool. - The
dynamicExtraIncentiveAmount
can be modified by sidechain governance on BC.
Modify the addReward
method in the RelayerIncentivize contract:
- Try to claim
dynamicExtraIncentiveAmount
from the SystemReward contract. - Add the new claimed reward to the existing reward.
- Add the total reward to the relayer reward pool.
All the content is licensed under CC0.