The Gas Oracle is a Smart Contract deployed on each of the chains in the network that tracks the estimated gas prices on other chains. This is needed to estimate the cost of gas to send a message in the messaging system. The sender of the message pays up front for the transactions required on both the Synapse Chain and the Destination.
- 1.Track gas prices on all chains
- 2.Include these prices in the summit so they are attested to by all agents
In the future, the gas oracle will use tools like tx.gasprice to track time-averaged values for different gas stats.