grassrootseconomics / cic-custodial

Experimental custodial API
GNU Affero General Public License v3.0
1 stars 0 forks source link

Gas cache monitor routine #34

Closed kamikazechaser closed 1 year ago

kamikazechaser commented 1 year ago

Min gas prices could potentially fluctuate every block (~5sec). A gas cache routine should run either on every custodial instance and sync via block change websocket or a global cache which updates a redis key.

kamikazechaser commented 1 year ago

Relevant discussion -> https://forum.celo.org/t/increase-of-minimum-gas-fee-part-ii/4947

We could set it as minGasValue which will be accepted if the block gas target (20M) is not achieved. If it is achieved it will exponentially scale it up. For alfajores testing, 5 gwei is more than enough for now.

kamikazechaser commented 1 year ago

Using EIP 1559 with a max gas price of 20 gwei. See https://github.com/grassrootseconomics/celoutils.