Rough design for a trustless tipping mechanism for BEEFY relayers:
Data Types on BH:
Tips
: Mapping between an outbound message nonce and the beefy relayer tip.ExportMessage
:When the forwarded XCM is received on BH, set Tips[Message.Nonce] = TipAmount
. Export the message for delivery to Polkadot
When an inbound message is processed by the Gateway contract on the Ethereum, the InboundMessageDispatched
event includes the address of the BEEFY relayer that provided the BEEFY state used to prove the message.
rewards
pallet.The frontend should calculate a suitable tip based on current bridge traffic, and with awareness that there is a free BEEFY consensus update every 4 hours (the mandatory beefy commitment at the start of each session)