Setting Incentives
Learn where incentives details need to be included
As we studied in previous lessons, the sendCrossChainMessage function takes TeleporterMessageInput struct as an input. The fields feeInfo in the TeleporterMessageInput will be a TeleporterFeeInfo struct formed by the ERC20 contract address in which the fee will be paid, as well as the amount of tokens to incentivize the relayer. This amount needs to be set in wei units. Let's take a look at it:
As you can see, the TeleporterMessageInput now needs to include the ERC20 address that will pay the incentives and the amount, all this as part of the TeleporterFeeInfo