More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 43,358 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Gas Price | 10774087 | 1424 days ago | IN | 0 ETH | 0.01166564 | ||||
Accept Ownership | 10774084 | 1424 days ago | IN | 0 ETH | 0.00933123 | ||||
Transfer Ownersh... | 9663943 | 1595 days ago | IN | 0 ETH | 0.00154717 | ||||
Set Gas Price | 9663935 | 1595 days ago | IN | 0 ETH | 0.00095578 | ||||
Set Gas Price | 9656999 | 1597 days ago | IN | 0 ETH | 0.00265742 | ||||
Set Gas Price | 9656999 | 1597 days ago | IN | 0 ETH | 0.00314042 | ||||
Set Gas Price | 9093913 | 1688 days ago | IN | 0 ETH | 0.00163848 | ||||
Set Gas Price | 9060386 | 1694 days ago | IN | 0 ETH | 0.00065833 | ||||
Set Gas Price | 9060281 | 1694 days ago | IN | 0 ETH | 0.00089002 | ||||
Set Gas Price | 9060249 | 1694 days ago | IN | 0 ETH | 0.00065097 | ||||
Set Gas Price | 9060104 | 1694 days ago | IN | 0 ETH | 0.00089509 | ||||
Set Gas Price | 9058873 | 1694 days ago | IN | 0 ETH | 0.00066725 | ||||
Set Gas Price | 9058460 | 1694 days ago | IN | 0 ETH | 0.00088966 | ||||
Set Gas Price | 9049276 | 1696 days ago | IN | 0 ETH | 0.00065097 | ||||
Set Gas Price | 9049232 | 1696 days ago | IN | 0 ETH | 0.00089509 | ||||
Set Gas Price | 9049158 | 1696 days ago | IN | 0 ETH | 0.00065097 | ||||
Set Gas Price | 9048985 | 1696 days ago | IN | 0 ETH | 0.00092221 | ||||
Set Gas Price | 9048768 | 1696 days ago | IN | 0 ETH | 0.00065097 | ||||
Set Gas Price | 9048149 | 1696 days ago | IN | 0 ETH | 0.00092221 | ||||
Set Gas Price | 9047707 | 1696 days ago | IN | 0 ETH | 0.0005479 | ||||
Set Gas Price | 9047629 | 1696 days ago | IN | 0 ETH | 0.00081372 | ||||
Set Gas Price | 9047595 | 1696 days ago | IN | 0 ETH | 0.0005696 | ||||
Set Gas Price | 9047510 | 1696 days ago | IN | 0 ETH | 0.00092221 | ||||
Set Gas Price | 9047480 | 1696 days ago | IN | 0 ETH | 0.00062385 | ||||
Set Gas Price | 9047445 | 1696 days ago | IN | 0 ETH | 0.00092221 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
BancorGasPriceLimit
Compiler Version
v0.4.18+commit.9cf6e910
Optimization Enabled:
Yes with 500 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-04-16 */ pragma solidity ^0.4.18; contract Utils { /** constructor */ function Utils() public { } // verifies that an amount is greater than zero modifier greaterThanZero(uint256 _amount) { require(_amount > 0); _; } // validates an address - currently only checks that it isn't null modifier validAddress(address _address) { require(_address != address(0)); _; } // verifies that the address is different than this contract address modifier notThis(address _address) { require(_address != address(this)); _; } // Overflow protected math functions /** @dev returns the sum of _x and _y, asserts if the calculation overflows @param _x value 1 @param _y value 2 @return sum */ function safeAdd(uint256 _x, uint256 _y) internal pure returns (uint256) { uint256 z = _x + _y; assert(z >= _x); return z; } /** @dev returns the difference of _x minus _y, asserts if the subtraction results in a negative number @param _x minuend @param _y subtrahend @return difference */ function safeSub(uint256 _x, uint256 _y) internal pure returns (uint256) { assert(_x >= _y); return _x - _y; } /** @dev returns the product of multiplying _x by _y, asserts if the calculation overflows @param _x factor 1 @param _y factor 2 @return product */ function safeMul(uint256 _x, uint256 _y) internal pure returns (uint256) { uint256 z = _x * _y; assert(_x == 0 || z / _x == _y); return z; } } contract IOwned { // this function isn't abstract since the compiler emits automatically generated getter functions as external function owner() public view returns (address) {} function transferOwnership(address _newOwner) public; function acceptOwnership() public; } contract Owned is IOwned { address public owner; address public newOwner; event OwnerUpdate(address indexed _prevOwner, address indexed _newOwner); /** @dev constructor */ function Owned() public { owner = msg.sender; } // allows execution by the owner only modifier ownerOnly { assert(msg.sender == owner); _; } /** @dev allows transferring the contract ownership the new owner still needs to accept the transfer can only be called by the contract owner @param _newOwner new contract owner */ function transferOwnership(address _newOwner) public ownerOnly { require(_newOwner != owner); newOwner = _newOwner; } /** @dev used by a new owner to accept an ownership transfer */ function acceptOwnership() public { require(msg.sender == newOwner); OwnerUpdate(owner, newOwner); owner = newOwner; newOwner = address(0); } } contract IBancorGasPriceLimit { function gasPrice() public view returns (uint256) {} function validateGasPrice(uint256) public view; } contract BancorGasPriceLimit is IBancorGasPriceLimit, Owned, Utils { uint256 public gasPrice = 0 wei; // maximum gas price for bancor transactions /** @dev constructor @param _gasPrice gas price limit */ function BancorGasPriceLimit(uint256 _gasPrice) public greaterThanZero(_gasPrice) { gasPrice = _gasPrice; } /* @dev gas price getter @return the current gas price */ function gasPrice() public view returns (uint256) { return gasPrice; } /* @dev allows the owner to update the gas price limit @param _gasPrice new gas price limit */ function setGasPrice(uint256 _gasPrice) public ownerOnly greaterThanZero(_gasPrice) { gasPrice = _gasPrice; } /* @dev validate that the given gas price is equal to the current network gas price @param _gasPrice tested gas price */ function validateGasPrice(uint256 _gasPrice) public view greaterThanZero(_gasPrice) { require(_gasPrice <= gasPrice); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[{"name":"_gasPrice","type":"uint256"}],"name":"validateGasPrice","outputs":[],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_gasPrice","type":"uint256"}],"name":"setGasPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"newOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"gasPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_gasPrice","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_prevOwner","type":"address"},{"indexed":true,"name":"_newOwner","type":"address"}],"name":"OwnerUpdate","type":"event"}]
Contract Creation Code
60606040526000600255341561001457600080fd5b6040516020806103d08339810160405280805160008054600160a060020a03191633600160a060020a0316178155909250829150811161005357600080fd5b5060025561036a806100666000396000f3006060604052600436106100825763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416636b4dff1f811461008757806379ba50971461009f5780638da5cb5b146100b2578063bf1fe420146100ee578063d4ee1d9014610104578063f2fde38b14610117578063fe173b9714610143575b600080fd5b341561009257600080fd5b61009d600435610168565b005b34156100aa57600080fd5b61009d610189565b34156100bd57600080fd5b6100c561023e565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b34156100f957600080fd5b61009d60043561025a565b341561010f57600080fd5b6100c5610293565b341561012257600080fd5b61009d73ffffffffffffffffffffffffffffffffffffffff600435166102af565b341561014e57600080fd5b610156610338565b60405190815260200160405180910390f35b806000811161017657600080fd5b60025482111561018557600080fd5b5050565b6001543373ffffffffffffffffffffffffffffffffffffffff9081169116146101b157600080fd5b60015460005473ffffffffffffffffffffffffffffffffffffffff91821691167f343765429aea5a34b3ff6a3785a98a5abb2597aca87bfbb58632c173d585373a60405160405180910390a3600180546000805473ffffffffffffffffffffffffffffffffffffffff1990811673ffffffffffffffffffffffffffffffffffffffff841617909155169055565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b6000543373ffffffffffffffffffffffffffffffffffffffff90811691161461027f57fe5b806000811161028d57600080fd5b50600255565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b6000543373ffffffffffffffffffffffffffffffffffffffff9081169116146102d457fe5b60005473ffffffffffffffffffffffffffffffffffffffff828116911614156102fc57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff191673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600254905600a165627a7a723058207c3717a0fab0538f138a38c18e85d8e97df2543bba184b60099d279062fd92fa0029000000000000000000000000000000000000000000000000000000012a05f200
Deployed Bytecode
0x6060604052600436106100825763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416636b4dff1f811461008757806379ba50971461009f5780638da5cb5b146100b2578063bf1fe420146100ee578063d4ee1d9014610104578063f2fde38b14610117578063fe173b9714610143575b600080fd5b341561009257600080fd5b61009d600435610168565b005b34156100aa57600080fd5b61009d610189565b34156100bd57600080fd5b6100c561023e565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b34156100f957600080fd5b61009d60043561025a565b341561010f57600080fd5b6100c5610293565b341561012257600080fd5b61009d73ffffffffffffffffffffffffffffffffffffffff600435166102af565b341561014e57600080fd5b610156610338565b60405190815260200160405180910390f35b806000811161017657600080fd5b60025482111561018557600080fd5b5050565b6001543373ffffffffffffffffffffffffffffffffffffffff9081169116146101b157600080fd5b60015460005473ffffffffffffffffffffffffffffffffffffffff91821691167f343765429aea5a34b3ff6a3785a98a5abb2597aca87bfbb58632c173d585373a60405160405180910390a3600180546000805473ffffffffffffffffffffffffffffffffffffffff1990811673ffffffffffffffffffffffffffffffffffffffff841617909155169055565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b6000543373ffffffffffffffffffffffffffffffffffffffff90811691161461027f57fe5b806000811161028d57600080fd5b50600255565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b6000543373ffffffffffffffffffffffffffffffffffffffff9081169116146102d457fe5b60005473ffffffffffffffffffffffffffffffffffffffff828116911614156102fc57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff191673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600254905600a165627a7a723058207c3717a0fab0538f138a38c18e85d8e97df2543bba184b60099d279062fd92fa0029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000012a05f200
-----Decoded View---------------
Arg [0] : _gasPrice (uint256): 5000000000
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000012a05f200
Swarm Source
bzzr://7c3717a0fab0538f138a38c18e85d8e97df2543bba184b60099d279062fd92fa
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.