Calculate Cross-Chain Transaction Cost
The cost of cross-chain messages includes:
Source chain transaction costs: Paid in the source network’s native token to cover transaction processing.
Destination chain transaction costs: Calculated in the source token based on the current exchange rate, this covers execution on the destination chain. Transmitters use the UDF protocol on the EIB to determine the maximum affordable gas price; if funds are insufficient, the transaction may be flagged as underpriced.
Transmitter Fee: A fixed fee in the source token compensates transmitters for message delivery, supporting reliable service with predictable costs.
Case example: Consider a transaction from Binance Smart Chain (BSC) to Ethereum (ETH).
Source chain cost: The transaction on BSC incurs a 0.01 BNB fee, paid by the sender.
Destination chain cost: With ETH gas prices at 100 Gwei, the transmitter uses the UDF protocol to estimate a cost of 0.005 ETH, converted to 0.00075 BNB.
Transmitter Fee: Assume that the transmitter's fixed fee is 0.001 BNB.
The total transaction cost would stand at 0.01175 BNB, paid entirely in the source network’s currency by the sender. In some cases, omni-chain application owners may subsidize a portion of this cost on-chain as an incentive.
Final transaction costs are calculated via the frontend SDK, backend API, or directly on-chain. The fee model is adaptable and will be periodically revised based on market demands and community feedback. Alternative models (e.g., USD, BTC, or NGL) are also under consideration.
Fee Distribution
Collected fees are allocated to:
Transmitter Rewards: Rewards based on the work transmitters perform in message verification and delivery.
Super Transmitter Rewards: A fixed share of transmitters' income to compensate Super Transmitters for message verification.
Protocol revenue: Initially set to zero, protocol revenue may be adjusted later based on community governance.
Last updated