Relaying
How ditto creates a network of relayers.
In the context of Ditto Orchestration layer each operator runs the cosmos node and the simulation client. The simulation client is also responsible for relaying transactions on target chains. The compensation for relaying transactions is being calculated at runtime from the parameters stored inthe entry point contract. The parameters incentivize the most optimal possible gas price to be set.
The Ditto Entry Point enables workflow execution by a set of executors. Compensation is calculated using the following formula:
UG = 500 as of current parameters set up*
where:
C - is the the compensation to executor with reward
FR - fixed reward for successfull execution
UG - uncompensated amount of gas units
tp - target gas price for each evm chain
SG - spent gas for execution
CG - compensated amount of gas for execution
This uncompensated gas amount incentivizes executors to use the most optimal gas price, balancing timely execution with maximizing yield.
The breakeven point is deliberately set significantly higher than the historical average gas price (approximately 100 times higher across EVM chains) to ensure margin. This breakeven can also be adjusted dynamically based on target gas prices.
Last updated