Skip to main content

The role of gas price updater bots in Mangrove

Mangrove needs the gas price to determine the bounty of takers for removing a failing offer from a list. On chains where the gas price varies, Mangrove uses an oracle to get the gas price.

The role of the gas price updater bot is simply to push up-to-date gas prices to the oracle contract whenever the gas price changes significantly.

Example bot​

The mangrove-bots monorepo on GitHub contains an example gas price updater bot.