ETH Price: $2,373.97 (-0.95%)

Contract

0x7e2eA51355AEa97bBEcE28213D84d7502601B281

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
0x608060401140419112023-12-27 13:09:59281 days ago1703682599IN
 Create: AddressManager
0 ETH0.0015938585930.00477539

View more zero value Internal Transactions in Advanced View mode

Advanced mode:

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AddressManager

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : AddressManager.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

// external
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";

// internal
import "../utils/proxy/solidity-0.8.0/ProxyOwned.sol";
import "../utils/proxy/solidity-0.8.0/ProxyPausable.sol";

import "../interfaces/IAddressManager.sol";

/// @title An address manager where all common addresses are stored
contract AddressManager is Initializable, ProxyOwned, ProxyPausable {
    address public safeBox;

    address public referrals;

    address public stakingThales;

    address public multiCollateralOnOffRamp;

    address public pyth;

    address public speedMarketsAMM;

    mapping(string => address) public addressBook;

    function initialize(
        address _owner,
        address _safeBox,
        address _referrals,
        address _stakingThales,
        address _multiCollateralOnOffRamp,
        address _pyth,
        address _speedMarketsAMM
    ) external initializer {
        setOwner(_owner);
        safeBox = _safeBox;
        referrals = _referrals;
        stakingThales = _stakingThales;
        multiCollateralOnOffRamp = _multiCollateralOnOffRamp;
        pyth = _pyth;
        speedMarketsAMM = _speedMarketsAMM;
    }

    //////////////////getters/////////////////

    /// @notice get all addresses
    function getAddresses() external view returns (IAddressManager.Addresses memory) {
        IAddressManager.Addresses memory allAddresses;

        allAddresses.safeBox = safeBox;
        allAddresses.referrals = referrals;
        allAddresses.stakingThales = stakingThales;
        allAddresses.multiCollateralOnOffRamp = multiCollateralOnOffRamp;
        allAddresses.pyth = pyth;
        allAddresses.speedMarketsAMM = speedMarketsAMM;

        return allAddresses;
    }

    /// @notice Get all addresses from the address book based on the contract names
    /// @param _contractNames array of contract names
    /// @return contracts array of addresses
    function getAddresses(string[] calldata _contractNames) external view returns (address[] memory contracts) {
        contracts = new address[](_contractNames.length);
        for (uint i = 0; i < _contractNames.length; i++) {
            if (addressBook[_contractNames[i]] == address(0)) revert InvalidAddressForContractName(_contractNames[i]);
            contracts[i] = addressBook[_contractNames[i]];
        }
    }

    /// @notice Get address from the addressBook based on the contract name
    /// @param _contractName name of the contract
    /// @return contract_ the address of the contract
    function getAddress(string calldata _contractName) external view returns (address contract_) {
        if (addressBook[_contractName] == address(0)) revert InvalidAddressForContractName(_contractName);
        contract_ = addressBook[_contractName];
    }

    /// @notice Check if a contract name has been assigned with an address
    /// @param _contractName name of the contract
    /// @return contractExists returns true if the contract exists or false if the address is set to ZERO address
    function checkIfContractExists(string calldata _contractName) external view returns (bool contractExists) {
        contractExists = addressBook[_contractName] != address(0);
    }

    //////////////////setters/////////////////

    /// @notice set corresponding addresses
    function setAddresses(
        address _safeBox,
        address _referrals,
        address _stakingThales,
        address _multiCollateralOnOffRamp,
        address _pyth,
        address _speedMarketsAMM
    ) external onlyOwner {
        safeBox = _safeBox;
        referrals = _referrals;
        stakingThales = _stakingThales;
        multiCollateralOnOffRamp = _multiCollateralOnOffRamp;
        pyth = _pyth;
        speedMarketsAMM = _speedMarketsAMM;
        emit SetAddresses(_safeBox, _referrals, _stakingThales, _multiCollateralOnOffRamp, _pyth, _speedMarketsAMM);
    }

    /// @notice Set contract name and address in the address book
    /// @param _contractName name of the contract
    /// @param _address the address of the contract
    function setAddressInAddressBook(string memory _contractName, address _address) external onlyOwner {
        require(_address != address(0), "InvalidAddress");
        addressBook[_contractName] = _address;
        emit NewContractInAddressBook(_contractName, _address);
    }

    /// @notice Reset a contract name to ZERO address
    /// @param _contractName name of the contract
    function resetAddressForContract(string memory _contractName) external onlyOwner {
        require(addressBook[_contractName] != address(0), "AlreadyReset");
        addressBook[_contractName] = address(0);
        emit NewContractInAddressBook(_contractName, address(0));
    }

    //////////////////events/////////////////

    event NewContractInAddressBook(string _contractName, address _address);
    event SetAddresses(
        address _safeBox,
        address _referrals,
        address _stakingThales,
        address _multiCollateralOnOffRamp,
        address _pyth,
        address _speedMarketsAMM
    );

    error InvalidAddressForContractName(string _contractName);
}

File 2 of 6 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} modifier, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

File 3 of 6 : ProxyOwned.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// Clone of syntetix contract without constructor
contract ProxyOwned {
    address public owner;
    address public nominatedOwner;
    bool private _initialized;
    bool private _transferredAtInit;

    function setOwner(address _owner) public {
        require(_owner != address(0), "Owner address cannot be 0");
        require(!_initialized, "Already initialized, use nominateNewOwner");
        _initialized = true;
        owner = _owner;
        emit OwnerChanged(address(0), _owner);
    }

    function nominateNewOwner(address _owner) external onlyOwner {
        nominatedOwner = _owner;
        emit OwnerNominated(_owner);
    }

    function acceptOwnership() external {
        require(msg.sender == nominatedOwner, "You must be nominated before you can accept ownership");
        emit OwnerChanged(owner, nominatedOwner);
        owner = nominatedOwner;
        nominatedOwner = address(0);
    }

    function transferOwnershipAtInit(address proxyAddress) external onlyOwner {
        require(proxyAddress != address(0), "Invalid address");
        require(!_transferredAtInit, "Already transferred");
        owner = proxyAddress;
        _transferredAtInit = true;
        emit OwnerChanged(owner, proxyAddress);
    }

    modifier onlyOwner {
        _onlyOwner();
        _;
    }

    function _onlyOwner() private view {
        require(msg.sender == owner, "Only the contract owner may perform this action");
    }

    event OwnerNominated(address newOwner);
    event OwnerChanged(address oldOwner, address newOwner);
}

File 4 of 6 : ProxyPausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// Inheritance
import "./ProxyOwned.sol";

// Clone of syntetix contract without constructor

contract ProxyPausable is ProxyOwned {
    uint public lastPauseTime;
    bool public paused;

    

    /**
     * @notice Change the paused state of the contract
     * @dev Only the contract owner may call this.
     */
    function setPaused(bool _paused) external onlyOwner {
        // Ensure we're actually changing the state before we do anything
        if (_paused == paused) {
            return;
        }

        // Set our paused state.
        paused = _paused;

        // If applicable, set the last pause time.
        if (paused) {
            lastPauseTime = block.timestamp;
        }

        // Let everyone know that our pause state has changed.
        emit PauseChanged(paused);
    }

    event PauseChanged(bool isPaused);

    modifier notPaused {
        require(!paused, "This action cannot be performed while the contract is paused");
        _;
    }
}

File 5 of 6 : IAddressManager.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.16;

interface IAddressManager {
    struct Addresses {
        address safeBox;
        address referrals;
        address stakingThales;
        address multiCollateralOnOffRamp;
        address pyth;
        address speedMarketsAMM;
    }

    function safeBox() external view returns (address);

    function referrals() external view returns (address);

    function stakingThales() external view returns (address);

    function multiCollateralOnOffRamp() external view returns (address);

    function pyth() external view returns (address);

    function speedMarketsAMM() external view returns (address);

    function getAddresses() external view returns (Addresses memory);

    function getAddresses(string[] calldata _contractNames) external view returns (address[] memory contracts);

    function getAddress(string memory _contractName) external view returns (address contract_);

    function checkIfContractExists(string memory _contractName) external view returns (bool contractExists);
}

File 6 of 6 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_contractName","type":"string"}],"name":"InvalidAddressForContractName","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_contractName","type":"string"},{"indexed":false,"internalType":"address","name":"_address","type":"address"}],"name":"NewContractInAddressBook","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isPaused","type":"bool"}],"name":"PauseChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_safeBox","type":"address"},{"indexed":false,"internalType":"address","name":"_referrals","type":"address"},{"indexed":false,"internalType":"address","name":"_stakingThales","type":"address"},{"indexed":false,"internalType":"address","name":"_multiCollateralOnOffRamp","type":"address"},{"indexed":false,"internalType":"address","name":"_pyth","type":"address"},{"indexed":false,"internalType":"address","name":"_speedMarketsAMM","type":"address"}],"name":"SetAddresses","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"addressBook","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_contractName","type":"string"}],"name":"checkIfContractExists","outputs":[{"internalType":"bool","name":"contractExists","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_contractName","type":"string"}],"name":"getAddress","outputs":[{"internalType":"address","name":"contract_","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAddresses","outputs":[{"components":[{"internalType":"address","name":"safeBox","type":"address"},{"internalType":"address","name":"referrals","type":"address"},{"internalType":"address","name":"stakingThales","type":"address"},{"internalType":"address","name":"multiCollateralOnOffRamp","type":"address"},{"internalType":"address","name":"pyth","type":"address"},{"internalType":"address","name":"speedMarketsAMM","type":"address"}],"internalType":"struct IAddressManager.Addresses","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string[]","name":"_contractNames","type":"string[]"}],"name":"getAddresses","outputs":[{"internalType":"address[]","name":"contracts","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_safeBox","type":"address"},{"internalType":"address","name":"_referrals","type":"address"},{"internalType":"address","name":"_stakingThales","type":"address"},{"internalType":"address","name":"_multiCollateralOnOffRamp","type":"address"},{"internalType":"address","name":"_pyth","type":"address"},{"internalType":"address","name":"_speedMarketsAMM","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastPauseTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"multiCollateralOnOffRamp","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pyth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"referrals","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_contractName","type":"string"}],"name":"resetAddressForContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"safeBox","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_contractName","type":"string"},{"internalType":"address","name":"_address","type":"address"}],"name":"setAddressInAddressBook","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_safeBox","type":"address"},{"internalType":"address","name":"_referrals","type":"address"},{"internalType":"address","name":"_stakingThales","type":"address"},{"internalType":"address","name":"_multiCollateralOnOffRamp","type":"address"},{"internalType":"address","name":"_pyth","type":"address"},{"internalType":"address","name":"_speedMarketsAMM","type":"address"}],"name":"setAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"speedMarketsAMM","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingThales","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"proxyAddress","type":"address"}],"name":"transferOwnershipAtInit","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50611438806100206000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c806391b4ded9116100c3578063d3dc75391161007c578063d3dc7539146103a5578063d9a10e94146103b8578063e51866ed146103cb578063eef41173146103de578063f98d06f014610412578063fd8a8cc61461042557600080fd5b806391b4ded91461026a5780639a618c0f14610281578063a39fac1214610294578063bf40fac11461035f578063c3b83f5f14610372578063cffe244a1461038557600080fd5b806353a47bb71161011557806353a47bb7146102035780635c975abb146102165780636cfb6bf914610223578063791f6e111461023657806379ba5097146102495780638da5cb5b1461025157600080fd5b8063117d9c1c1461015d57806313af4035146101855780631627540c1461019a57806316c38b3c146101ad57806335876476146101c057806348663e95146101d3575b600080fd5b61017061016b36600461117b565b610438565b60405190151581526020015b60405180910390f35b610198610193366004610fd2565b610478565b005b6101986101a8366004610fd2565b6105b8565b6101986101bb36600461115b565b61060e565b6101986101ce366004611066565b610681565b6003546101eb9061010090046001600160a01b031681565b6040516001600160a01b03909116815260200161017c565b6001546101eb906001600160a01b031681565b6003546101709060ff1681565b610198610231366004610ff3565b6107bd565b6101986102443660046111d6565b61089c565b610198610987565b6000546101eb906201000090046001600160a01b031681565b61027360025481565b60405190815260200161017c565b6006546101eb906001600160a01b031681565b6040805160c08082018352600080835260208084018290528385018290526060808501839052608080860184905260a0958601939093528551808501875260035461010090046001600160a01b0390811680835260045482168386019081526005548316848b0190815260065484168587019081526007548516868a019081526008548616968c019687528c5194855292518516978401979097525183169982019990995293518116928401929092529551811692820192909252935116918301919091520161017c565b6101eb61036d36600461117b565b610a84565b610198610380366004610fd2565b610b10565b6103986103933660046110eb565b610c29565b60405161017c9190611289565b6004546101eb906001600160a01b031681565b6008546101eb906001600160a01b031681565b6101986103d9366004611211565b610dea565b6101eb6103ec3660046111d6565b80516020818301810180516009825292820191909301209152546001600160a01b031681565b6007546101eb906001600160a01b031681565b6005546101eb906001600160a01b031681565b6000806001600160a01b03166009848460405161045692919061125d565b908152604051908190036020019020546001600160a01b031614159392505050565b6001600160a01b0381166104d35760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f7420626520300000000000000060448201526064015b60405180910390fd5b600154600160a01b900460ff161561053f5760405162461bcd60e51b815260206004820152602960248201527f416c726561647920696e697469616c697a65642c20757365206e6f6d696e617460448201526832a732bba7bbb732b960b91b60648201526084016104ca565b6001805460ff60a01b1916600160a01b179055600080546001600160a01b03831662010000810262010000600160b01b03199092169190911782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91015b60405180910390a150565b6105c0610eb5565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22906020016105ad565b610616610eb5565b60035460ff161515811515141561062a5750565b6003805460ff191682151590811790915560ff161561064857426002555b60035460405160ff909116151581527f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec5906020016105ad565b600054610100900460ff1661069c5760005460ff16156106a0565b303b155b6107035760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016104ca565b600054610100900460ff16158015610725576000805461ffff19166101011790555b61072e88610478565b60038054610100600160a81b0319166101006001600160a01b038a81169190910291909117909155600480546001600160a01b0319908116898416179091556005805482168884161790556006805482168784161790556007805482168684161790556008805490911691841691909117905580156107b3576000805461ff00191690555b5050505050505050565b6107c5610eb5565b60038054610100600160a81b0319166101006001600160a01b0389811691820292909217909255600480546001600160a01b031990811689841690811790925560058054821689851690811790915560068054831689861690811790915560078054841689871690811790915560088054909416958816958617909355604080519687526020870194909452928501526060840191909152608083015260a08201527f7f485b89e8ccb7bb502b1770a53f16efecde9341e8c9fb4b47011d15f7820e569060c00160405180910390a1505050505050565b6108a4610eb5565b60006001600160a01b03166009826040516108bf919061126d565b908152604051908190036020019020546001600160a01b031614156109155760405162461bcd60e51b815260206004820152600c60248201526b105b1c9958591e54995cd95d60a21b60448201526064016104ca565b6000600982604051610927919061126d565b90815260405190819003602001812080546001600160a01b03939093166001600160a01b0319909316929092179091557f0b04b83848f0f3b7c7442d482d8448fc91f86794add1430c18bf62f5b6326abf906105ad908390600090611305565b6001546001600160a01b031633146109ff5760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b60648201526084016104ca565b60005460015460408051620100009093046001600160a01b03908116845290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a1600180546000805462010000600160b01b0319166001600160a01b03831662010000021790556001600160a01b0319169055565b6000806001600160a01b031660098484604051610aa292919061125d565b908152604051908190036020019020546001600160a01b03161415610ade5782826040516313debf9560e21b81526004016104ca9291906112d6565b60098383604051610af092919061125d565b908152604051908190036020019020546001600160a01b03169392505050565b610b18610eb5565b6001600160a01b038116610b605760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064016104ca565b600154600160a81b900460ff1615610bb05760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481d1c985b9cd9995c9c9959606a1b60448201526064016104ca565b600080546001600160a01b038381166201000081810262010000600160b01b031990941693909317938490556001805460ff60a81b1916600160a81b1790556040805193909404909116825260208201527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91016105ad565b60608167ffffffffffffffff811115610c5257634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610c7b578160200160208202803683370190505b50905060005b82811015610de35760006009858584818110610cad57634e487b7160e01b600052603260045260246000fd5b9050602002810190610cbf9190611349565b604051610ccd92919061125d565b908152604051908190036020019020546001600160a01b03161415610d3957838382818110610d0c57634e487b7160e01b600052603260045260246000fd5b9050602002810190610d1e9190611349565b6040516313debf9560e21b81526004016104ca9291906112d6565b6009848483818110610d5b57634e487b7160e01b600052603260045260246000fd5b9050602002810190610d6d9190611349565b604051610d7b92919061125d565b9081526040519081900360200190205482516001600160a01b0390911690839083908110610db957634e487b7160e01b600052603260045260246000fd5b6001600160a01b039092166020928302919091019091015280610ddb816113c5565b915050610c81565b5092915050565b610df2610eb5565b6001600160a01b038116610e395760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69644164647265737360901b60448201526064016104ca565b80600983604051610e4a919061126d565b90815260405190819003602001812080546001600160a01b03939093166001600160a01b0319909316929092179091557f0b04b83848f0f3b7c7442d482d8448fc91f86794add1430c18bf62f5b6326abf90610ea99084908490611305565b60405180910390a15050565b6000546201000090046001600160a01b03163314610f2d5760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b60648201526084016104ca565b565b80356001600160a01b0381168114610f4657600080fd5b919050565b600082601f830112610f5b578081fd5b813567ffffffffffffffff80821115610f7657610f766113ec565b604051601f8301601f19908116603f01168101908282118183101715610f9e57610f9e6113ec565b81604052838152866020858801011115610fb6578485fd5b8360208701602083013792830160200193909352509392505050565b600060208284031215610fe3578081fd5b610fec82610f2f565b9392505050565b60008060008060008060c0878903121561100b578182fd5b61101487610f2f565b955061102260208801610f2f565b945061103060408801610f2f565b935061103e60608801610f2f565b925061104c60808801610f2f565b915061105a60a08801610f2f565b90509295509295509295565b600080600080600080600060e0888a031215611080578081fd5b61108988610f2f565b965061109760208901610f2f565b95506110a560408901610f2f565b94506110b360608901610f2f565b93506110c160808901610f2f565b92506110cf60a08901610f2f565b91506110dd60c08901610f2f565b905092959891949750929550565b600080602083850312156110fd578182fd5b823567ffffffffffffffff80821115611114578384fd5b818501915085601f830112611127578384fd5b813581811115611135578485fd5b8660208260051b8501011115611149578485fd5b60209290920196919550909350505050565b60006020828403121561116c578081fd5b81358015158114610fec578182fd5b6000806020838503121561118d578182fd5b823567ffffffffffffffff808211156111a4578384fd5b818501915085601f8301126111b7578384fd5b8135818111156111c5578485fd5b866020828501011115611149578485fd5b6000602082840312156111e7578081fd5b813567ffffffffffffffff8111156111fd578182fd5b61120984828501610f4b565b949350505050565b60008060408385031215611223578182fd5b823567ffffffffffffffff811115611239578283fd5b61124585828601610f4b565b92505061125460208401610f2f565b90509250929050565b8183823760009101908152919050565b6000825161127f818460208701611395565b9190910192915050565b6020808252825182820181905260009190848201906040850190845b818110156112ca5783516001600160a01b0316835292840192918401916001016112a5565b50909695505050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b6040815260008351806040840152611324816060850160208801611395565b6001600160a01b0393909316602083015250601f91909101601f191601606001919050565b6000808335601e1984360301811261135f578283fd5b83018035915067ffffffffffffffff821115611379578283fd5b60200191503681900382131561138e57600080fd5b9250929050565b60005b838110156113b0578181015183820152602001611398565b838111156113bf576000848401525b50505050565b60006000198214156113e557634e487b7160e01b81526011600452602481fd5b5060010190565b634e487b7160e01b600052604160045260246000fdfea26469706673582212209ce5e1042bef64a96875c0cf8660b294f58756c12e5b72246b3828561dd8d51464736f6c63430008040033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101585760003560e01c806391b4ded9116100c3578063d3dc75391161007c578063d3dc7539146103a5578063d9a10e94146103b8578063e51866ed146103cb578063eef41173146103de578063f98d06f014610412578063fd8a8cc61461042557600080fd5b806391b4ded91461026a5780639a618c0f14610281578063a39fac1214610294578063bf40fac11461035f578063c3b83f5f14610372578063cffe244a1461038557600080fd5b806353a47bb71161011557806353a47bb7146102035780635c975abb146102165780636cfb6bf914610223578063791f6e111461023657806379ba5097146102495780638da5cb5b1461025157600080fd5b8063117d9c1c1461015d57806313af4035146101855780631627540c1461019a57806316c38b3c146101ad57806335876476146101c057806348663e95146101d3575b600080fd5b61017061016b36600461117b565b610438565b60405190151581526020015b60405180910390f35b610198610193366004610fd2565b610478565b005b6101986101a8366004610fd2565b6105b8565b6101986101bb36600461115b565b61060e565b6101986101ce366004611066565b610681565b6003546101eb9061010090046001600160a01b031681565b6040516001600160a01b03909116815260200161017c565b6001546101eb906001600160a01b031681565b6003546101709060ff1681565b610198610231366004610ff3565b6107bd565b6101986102443660046111d6565b61089c565b610198610987565b6000546101eb906201000090046001600160a01b031681565b61027360025481565b60405190815260200161017c565b6006546101eb906001600160a01b031681565b6040805160c08082018352600080835260208084018290528385018290526060808501839052608080860184905260a0958601939093528551808501875260035461010090046001600160a01b0390811680835260045482168386019081526005548316848b0190815260065484168587019081526007548516868a019081526008548616968c019687528c5194855292518516978401979097525183169982019990995293518116928401929092529551811692820192909252935116918301919091520161017c565b6101eb61036d36600461117b565b610a84565b610198610380366004610fd2565b610b10565b6103986103933660046110eb565b610c29565b60405161017c9190611289565b6004546101eb906001600160a01b031681565b6008546101eb906001600160a01b031681565b6101986103d9366004611211565b610dea565b6101eb6103ec3660046111d6565b80516020818301810180516009825292820191909301209152546001600160a01b031681565b6007546101eb906001600160a01b031681565b6005546101eb906001600160a01b031681565b6000806001600160a01b03166009848460405161045692919061125d565b908152604051908190036020019020546001600160a01b031614159392505050565b6001600160a01b0381166104d35760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f7420626520300000000000000060448201526064015b60405180910390fd5b600154600160a01b900460ff161561053f5760405162461bcd60e51b815260206004820152602960248201527f416c726561647920696e697469616c697a65642c20757365206e6f6d696e617460448201526832a732bba7bbb732b960b91b60648201526084016104ca565b6001805460ff60a01b1916600160a01b179055600080546001600160a01b03831662010000810262010000600160b01b03199092169190911782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91015b60405180910390a150565b6105c0610eb5565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22906020016105ad565b610616610eb5565b60035460ff161515811515141561062a5750565b6003805460ff191682151590811790915560ff161561064857426002555b60035460405160ff909116151581527f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec5906020016105ad565b600054610100900460ff1661069c5760005460ff16156106a0565b303b155b6107035760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016104ca565b600054610100900460ff16158015610725576000805461ffff19166101011790555b61072e88610478565b60038054610100600160a81b0319166101006001600160a01b038a81169190910291909117909155600480546001600160a01b0319908116898416179091556005805482168884161790556006805482168784161790556007805482168684161790556008805490911691841691909117905580156107b3576000805461ff00191690555b5050505050505050565b6107c5610eb5565b60038054610100600160a81b0319166101006001600160a01b0389811691820292909217909255600480546001600160a01b031990811689841690811790925560058054821689851690811790915560068054831689861690811790915560078054841689871690811790915560088054909416958816958617909355604080519687526020870194909452928501526060840191909152608083015260a08201527f7f485b89e8ccb7bb502b1770a53f16efecde9341e8c9fb4b47011d15f7820e569060c00160405180910390a1505050505050565b6108a4610eb5565b60006001600160a01b03166009826040516108bf919061126d565b908152604051908190036020019020546001600160a01b031614156109155760405162461bcd60e51b815260206004820152600c60248201526b105b1c9958591e54995cd95d60a21b60448201526064016104ca565b6000600982604051610927919061126d565b90815260405190819003602001812080546001600160a01b03939093166001600160a01b0319909316929092179091557f0b04b83848f0f3b7c7442d482d8448fc91f86794add1430c18bf62f5b6326abf906105ad908390600090611305565b6001546001600160a01b031633146109ff5760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b60648201526084016104ca565b60005460015460408051620100009093046001600160a01b03908116845290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a1600180546000805462010000600160b01b0319166001600160a01b03831662010000021790556001600160a01b0319169055565b6000806001600160a01b031660098484604051610aa292919061125d565b908152604051908190036020019020546001600160a01b03161415610ade5782826040516313debf9560e21b81526004016104ca9291906112d6565b60098383604051610af092919061125d565b908152604051908190036020019020546001600160a01b03169392505050565b610b18610eb5565b6001600160a01b038116610b605760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064016104ca565b600154600160a81b900460ff1615610bb05760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481d1c985b9cd9995c9c9959606a1b60448201526064016104ca565b600080546001600160a01b038381166201000081810262010000600160b01b031990941693909317938490556001805460ff60a81b1916600160a81b1790556040805193909404909116825260208201527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91016105ad565b60608167ffffffffffffffff811115610c5257634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610c7b578160200160208202803683370190505b50905060005b82811015610de35760006009858584818110610cad57634e487b7160e01b600052603260045260246000fd5b9050602002810190610cbf9190611349565b604051610ccd92919061125d565b908152604051908190036020019020546001600160a01b03161415610d3957838382818110610d0c57634e487b7160e01b600052603260045260246000fd5b9050602002810190610d1e9190611349565b6040516313debf9560e21b81526004016104ca9291906112d6565b6009848483818110610d5b57634e487b7160e01b600052603260045260246000fd5b9050602002810190610d6d9190611349565b604051610d7b92919061125d565b9081526040519081900360200190205482516001600160a01b0390911690839083908110610db957634e487b7160e01b600052603260045260246000fd5b6001600160a01b039092166020928302919091019091015280610ddb816113c5565b915050610c81565b5092915050565b610df2610eb5565b6001600160a01b038116610e395760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69644164647265737360901b60448201526064016104ca565b80600983604051610e4a919061126d565b90815260405190819003602001812080546001600160a01b03939093166001600160a01b0319909316929092179091557f0b04b83848f0f3b7c7442d482d8448fc91f86794add1430c18bf62f5b6326abf90610ea99084908490611305565b60405180910390a15050565b6000546201000090046001600160a01b03163314610f2d5760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b60648201526084016104ca565b565b80356001600160a01b0381168114610f4657600080fd5b919050565b600082601f830112610f5b578081fd5b813567ffffffffffffffff80821115610f7657610f766113ec565b604051601f8301601f19908116603f01168101908282118183101715610f9e57610f9e6113ec565b81604052838152866020858801011115610fb6578485fd5b8360208701602083013792830160200193909352509392505050565b600060208284031215610fe3578081fd5b610fec82610f2f565b9392505050565b60008060008060008060c0878903121561100b578182fd5b61101487610f2f565b955061102260208801610f2f565b945061103060408801610f2f565b935061103e60608801610f2f565b925061104c60808801610f2f565b915061105a60a08801610f2f565b90509295509295509295565b600080600080600080600060e0888a031215611080578081fd5b61108988610f2f565b965061109760208901610f2f565b95506110a560408901610f2f565b94506110b360608901610f2f565b93506110c160808901610f2f565b92506110cf60a08901610f2f565b91506110dd60c08901610f2f565b905092959891949750929550565b600080602083850312156110fd578182fd5b823567ffffffffffffffff80821115611114578384fd5b818501915085601f830112611127578384fd5b813581811115611135578485fd5b8660208260051b8501011115611149578485fd5b60209290920196919550909350505050565b60006020828403121561116c578081fd5b81358015158114610fec578182fd5b6000806020838503121561118d578182fd5b823567ffffffffffffffff808211156111a4578384fd5b818501915085601f8301126111b7578384fd5b8135818111156111c5578485fd5b866020828501011115611149578485fd5b6000602082840312156111e7578081fd5b813567ffffffffffffffff8111156111fd578182fd5b61120984828501610f4b565b949350505050565b60008060408385031215611223578182fd5b823567ffffffffffffffff811115611239578283fd5b61124585828601610f4b565b92505061125460208401610f2f565b90509250929050565b8183823760009101908152919050565b6000825161127f818460208701611395565b9190910192915050565b6020808252825182820181905260009190848201906040850190845b818110156112ca5783516001600160a01b0316835292840192918401916001016112a5565b50909695505050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b6040815260008351806040840152611324816060850160208801611395565b6001600160a01b0393909316602083015250601f91909101601f191601606001919050565b6000808335601e1984360301811261135f578283fd5b83018035915067ffffffffffffffff821115611379578283fd5b60200191503681900382131561138e57600080fd5b9250929050565b60005b838110156113b0578181015183820152602001611398565b838111156113bf576000848401525b50505050565b60006000198214156113e557634e487b7160e01b81526011600452602481fd5b5060010190565b634e487b7160e01b600052604160045260246000fdfea26469706673582212209ce5e1042bef64a96875c0cf8660b294f58756c12e5b72246b3828561dd8d51464736f6c63430008040033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.