How does the OpenZeppelin relayer ensure optimal gas fees for the transactions that get relayed through it? Also curious to know if the team has any future plans to decentralize the Relayer?
Relayer gas fees are either set via a gas station-type service (Polygon for instance) or via analysis of recent blocks to determine the required gas price of transactions that were mined). Gas prices are adjusted every minute. The speed of the Relayer is then used to determine how high gas should be set based on the gas fee basis price described above.
There are no plans to decentralize the Relayer service as of now.