GasFeeThrottler Contract
Last Update: February 2023
GasFeeThrottler.sol
contract GasFeeThrottler {
bool public shouldGasThrottle = true;
address public gasprice = address(0xA43509661141F254F54D9A326E8Ec851A0b95307);
modifier gasThrottle() {
if (shouldGasThrottle && Address.isContract(gasprice)) {
require(tx.gasprice <= IGasPrice(gasprice).maxGasPrice(), "gas is too high!");
}
_;
}
}GasPrice.sol
Last updated
Was this helpful?