Contract 0xa63175c355ff06182c906176953cbf801fa681a8

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xe603076d3b96ef0e007a049bf6433777e29c9b804577d95c3daab5fe321920cd0x60806040256701392022-09-21 9:45:18553 days 22 hrs ago0x199be3f4fc1f5ec9b13dc0ebe4353fdba4fc4705 IN  Create: GasPrice0 ETH0.00004523 0.1
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x4e473ac5a47925311c282be70a6e245d4bd88dcb7f4842061d46e1b3df4bc63f289456302022-10-07 18:52:54537 days 13 hrs ago 0xf568023f13621879ea42f7b1f32170851981ae9d 0xa63175c355ff06182c906176953cbf801fa681a80 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GasPrice

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Arbiscan.io on 2022-09-21
*/

/**
 *Submitted for verification at BscScan.com on 2021-03-23
*/
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/GSN/Context.sol


pragma solidity ^0.6.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


pragma solidity ^0.6.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: contracts/BIFI/utils/GasPrice.sol


pragma solidity ^0.6.12;


contract GasPrice is Ownable {

    uint public maxGasPrice = 10000000000; // 10 gwei

    event NewMaxGasPrice(uint oldPrice, uint newPrice);

    function setMaxGasPrice(uint _maxGasPrice) external onlyOwner {
        emit NewMaxGasPrice(maxGasPrice, _maxGasPrice);
        maxGasPrice = _maxGasPrice;
    }
}

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"NewMaxGasPrice","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"maxGasPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxGasPrice","type":"uint256"}],"name":"setMaxGasPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526402540be40060015534801561001957600080fd5b506000610024610073565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350610077565b3390565b6103c6806100866000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80633de39c111461005c578063715018a6146100765780638da5cb5b14610080578063d2fa635e146100a4578063f2fde38b146100c1575b600080fd5b6100646100e7565b60408051918252519081900360200190f35b61007e6100ed565b005b6100886101a1565b604080516001600160a01b039092168252519081900360200190f35b61007e600480360360208110156100ba57600080fd5b50356101b0565b61007e600480360360208110156100d757600080fd5b50356001600160a01b031661025c565b60015481565b6100f5610366565b6000546001600160a01b03908116911614610157576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6101b8610366565b6000546001600160a01b0390811691161461021a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600154604080519182526020820183905280517f6cd1fd4984e740b70fdaa541de6804a081ba328ce08dee74b9a78a9aac879d0c9281900390910190a1600155565b610264610366565b6000546001600160a01b039081169116146102c6576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661030b5760405162461bcd60e51b815260040180806020018281038252602681526020018061036b6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a26469706673582212203bbf9415e12a2caaa5799f5f17d1d22e755295acddea5ad0305e350aaf41022564736f6c634300060c0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100575760003560e01c80633de39c111461005c578063715018a6146100765780638da5cb5b14610080578063d2fa635e146100a4578063f2fde38b146100c1575b600080fd5b6100646100e7565b60408051918252519081900360200190f35b61007e6100ed565b005b6100886101a1565b604080516001600160a01b039092168252519081900360200190f35b61007e600480360360208110156100ba57600080fd5b50356101b0565b61007e600480360360208110156100d757600080fd5b50356001600160a01b031661025c565b60015481565b6100f5610366565b6000546001600160a01b03908116911614610157576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6101b8610366565b6000546001600160a01b0390811691161461021a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600154604080519182526020820183905280517f6cd1fd4984e740b70fdaa541de6804a081ba328ce08dee74b9a78a9aac879d0c9281900390910190a1600155565b610264610366565b6000546001600160a01b039081169116146102c6576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661030b5760405162461bcd60e51b815260040180806020018281038252602681526020018061036b6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a26469706673582212203bbf9415e12a2caaa5799f5f17d1d22e755295acddea5ad0305e350aaf41022564736f6c634300060c0033

Deployed ByteCode Sourcemap

3445:321:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3483:37;;;:::i;:::-;;;;;;;;;;;;;;;;2813:148;;;:::i;:::-;;2171:79;;;:::i;:::-;;;;-1:-1:-1;;;;;2171:79:0;;;;;;;;;;;;;;3599:164;;;;;;;;;;;;;;;;-1:-1:-1;3599:164:0;;:::i;3116:244::-;;;;;;;;;;;;;;;;-1:-1:-1;3116:244:0;-1:-1:-1;;;;;3116:244:0;;:::i;3483:37::-;;;;:::o;2813:148::-;2393:12;:10;:12::i;:::-;2383:6;;-1:-1:-1;;;;;2383:6:0;;;:22;;;2375:67;;;;;-1:-1:-1;;;2375:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2920:1:::1;2904:6:::0;;2883:40:::1;::::0;-1:-1:-1;;;;;2904:6:0;;::::1;::::0;2883:40:::1;::::0;2920:1;;2883:40:::1;2951:1;2934:19:::0;;-1:-1:-1;;;;;;2934:19:0::1;::::0;;2813:148::o;2171:79::-;2209:7;2236:6;-1:-1:-1;;;;;2236:6:0;2171:79;:::o;3599:164::-;2393:12;:10;:12::i;:::-;2383:6;;-1:-1:-1;;;;;2383:6:0;;;:22;;;2375:67;;;;;-1:-1:-1;;;2375:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3692:11:::1;::::0;3677:41:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;::::1;3729:11;:26:::0;3599:164::o;3116:244::-;2393:12;:10;:12::i;:::-;2383:6;;-1:-1:-1;;;;;2383:6:0;;;:22;;;2375:67;;;;;-1:-1:-1;;;2375:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3205:22:0;::::1;3197:73;;;;-1:-1:-1::0;;;3197:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3307:6;::::0;;3286:38:::1;::::0;-1:-1:-1;;;;;3286:38:0;;::::1;::::0;3307:6;::::1;::::0;3286:38:::1;::::0;::::1;3335:6;:17:::0;;-1:-1:-1;;;;;;3335:17:0::1;-1:-1:-1::0;;;;;3335:17:0;;;::::1;::::0;;;::::1;::::0;;3116:244::o;725:106::-;813:10;725:106;:::o

Metadata Hash

3bbf9415e12a2caaa5799f5f17d1d22e755295acddea5ad0305e350aaf410225
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.