Skip to content

Instantly share code, notes, and snippets.

@gitpusha
Created March 4, 2021 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gitpusha/179c1ce6a652525559ae106ea3893919 to your computer and use it in GitHub Desktop.
Save gitpusha/179c1ce6a652525559ae106ea3893919 to your computer and use it in GitHub Desktop.
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.0;
contract MockGelatoGasPriceOracle {
uint256 public gasPrice;
constructor(uint256 _gasPrice) {
gasPrice = _gasPrice;
}
function setGasPrice(uint256 _newGasPrice) external {
gasPrice = _newGasPrice;
}
function latestAnswer() external view returns (int256) {
return int256(gasPrice);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment