S Price: $0.427368 (+4.10%)

Contract

0x34A02EFC91dFA24b883ba6F12613325A5Fa48BCa

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer Ownersh...31350652025-01-09 16:08:3631 days ago1736438916IN
0x34A02EFC...A5Fa48BCa
0 S0.00017536.05

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PoolOwner

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
berlin EvmVersion, None license
File 1 of 5 : PoolOwner.sol
// SPDX-License-Identifier: LicenseRef-Gyro-1.0
// for information on licensing please see the README in the GitHub repository <https://github.com/gyrostable/concentrated-lps>.
pragma solidity 0.7.6;

import "contracts/access/Ownable.sol";
import "contracts/utils/Address.sol";
import "contracts/utils/EnumerableSet.sol";

contract PoolOwner is Ownable {
    using Address for address;
    using EnumerableSet for EnumerableSet.AddressSet;

    event FeeManagerAdded(address indexed manager);
    event FeeManagerRemoved(address indexed manager);

    bytes4 internal constant _SET_SWAP_FEE_SELECTOR = bytes4(keccak256("setSwapFeePercentage(uint256)"));

    EnumerableSet.AddressSet internal _feeManagers;

    function addSwapFeeManager(address _manager) external onlyOwner {
        _feeManagers.add(_manager);
        emit FeeManagerAdded(_manager);
    }

    function removeSwapFeeManager(address _manager) external onlyOwner {
        _feeManagers.remove(_manager);
        emit FeeManagerRemoved(_manager);
    }

    function listFeeManagers() external view returns (address[] memory) {
        uint256 length = _feeManagers.length();
        address[] memory managers = new address[](length);
        for (uint256 i = 0; i < length; i++) {
            managers[i] = _feeManagers.at(i);
        }
        return managers;
    }

    function executeAction(address target, bytes calldata data) external returns (bytes memory) {
        bytes4 selector = _getSelector(data);
        if (selector == _SET_SWAP_FEE_SELECTOR) {
            require(msg.sender == owner() || _feeManagers.contains(msg.sender), "PoolOwner: not owner or fee manager");
        } else {
            require(msg.sender == owner(), "PoolOwner: not owner");
        }
        return target.functionCall(data);
    }

    function _getSelector(bytes memory _calldata) internal pure returns (bytes4 out) {
        assembly {
            out := and(mload(add(_calldata, 32)), 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000)
        }
    }
}

File 2 of 5 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "contracts/utils/Context.sol";
/**
 * @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.
 */
abstract 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 virtual 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 3 of 5 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.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 4 of 5 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @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;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"manager","type":"address"}],"name":"FeeManagerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"manager","type":"address"}],"name":"FeeManagerRemoved","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":[{"internalType":"address","name":"_manager","type":"address"}],"name":"addSwapFeeManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"executeAction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"listFeeManagers","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_manager","type":"address"}],"name":"removeSwapFeeManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50600061001b61006a565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006e565b3390565b610ce28061007d6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063715018a61161005b578063715018a6146101285780638da5cb5b146101305780638f39d13a14610154578063f2fde38b146102495761007d565b8063070a47e614610082578063625f7810146100aa5780636f893b3d14610102575b600080fd5b6100a86004803603602081101561009857600080fd5b50356001600160a01b031661026f565b005b6100b2610314565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156100ee5781810151838201526020016100d6565b505050509050019250505060405180910390f35b6100a86004803603602081101561011857600080fd5b50356001600160a01b03166103b3565b6100a8610458565b610138610504565b604080516001600160a01b039092168252519081900360200190f35b6101d46004803603604081101561016a57600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561019557600080fd5b8201836020820111156101a757600080fd5b803590602001918460018302840111640100000000831117156101c957600080fd5b509092509050610513565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561020e5781810151838201526020016101f6565b50505050905090810190601f16801561023b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6100a86004803603602081101561025f57600080fd5b50356001600160a01b0316610697565b610277610799565b6001600160a01b0316610288610504565b6001600160a01b0316146102d1576040805162461bcd60e51b81526020600482018190526024820152600080516020610c8d833981519152604482015290519081900360640190fd5b6102dc60018261079d565b506040516001600160a01b038216907f5716bc0af5555420c83e970485353a24dc96f23e0738dc42e71f091feec5353490600090a250565b6060600061032260016107bb565b905060008167ffffffffffffffff8111801561033d57600080fd5b50604051908082528060200260200182016040528015610367578160200160208202803683370190505b50905060005b828110156103ac576103806001826107c6565b82828151811061038c57fe5b6001600160a01b039092166020928302919091019091015260010161036d565b5091505090565b6103bb610799565b6001600160a01b03166103cc610504565b6001600160a01b031614610415576040805162461bcd60e51b81526020600482018190526024820152600080516020610c8d833981519152604482015290519081900360640190fd5b6104206001826107d2565b506040516001600160a01b038216907fc504b68859e849248ade75526558241afc96c48cddbae13b2ae85ff21d13392590600090a250565b610460610799565b6001600160a01b0316610471610504565b6001600160a01b0316146104ba576040805162461bcd60e51b81526020600482018190526024820152600080516020610c8d833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6060600061055684848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506107e792505050565b90506001600160e01b03198116631c74c91760e11b14156105de57610579610504565b6001600160a01b0316336001600160a01b0316148061059e575061059e6001336107f8565b6105d95760405162461bcd60e51b8152600401808060200182810382526023815260200180610c1e6023913960400191505060405180910390fd5b610642565b6105e6610504565b6001600160a01b0316336001600160a01b031614610642576040805162461bcd60e51b81526020600482015260146024820152732837b7b627bbb732b91d103737ba1037bbb732b960611b604482015290519081900360640190fd5b61068c84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506001600160a01b0389169291505061080d565b9150505b9392505050565b61069f610799565b6001600160a01b03166106b0610504565b6001600160a01b0316146106f9576040805162461bcd60e51b81526020600482018190526024820152600080516020610c8d833981519152604482015290519081900360640190fd5b6001600160a01b03811661073e5760405162461bcd60e51b8152600401808060200182810382526026815260200180610c416026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b60006107b2836001600160a01b03841661084f565b90505b92915050565b60006107b582610899565b60006107b2838361089d565b60006107b2836001600160a01b038416610901565b602001516001600160e01b03191690565b60006107b2836001600160a01b0384166109c7565b60606107b283836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c656400008152506109df565b600061085b83836109c7565b610891575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556107b5565b5060006107b5565b5490565b815460009082106108df5760405162461bcd60e51b8152600401808060200182810382526022815260200180610bfc6022913960400191505060405180910390fd5b8260000182815481106108ee57fe5b9060005260206000200154905092915050565b600081815260018301602052604081205480156109bd578354600019808301919081019060009087908390811061093457fe5b906000526020600020015490508087600001848154811061095157fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061098157fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506107b5565b60009150506107b5565b60009081526001919091016020526040902054151590565b60606109ee84846000856109f6565b949350505050565b606082471015610a375760405162461bcd60e51b8152600401808060200182810382526026815260200180610c676026913960400191505060405180910390fd5b610a4085610b51565b610a91576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310610acf5780518252601f199092019160209182019101610ab0565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610b31576040519150601f19603f3d011682016040523d82523d6000602084013e610b36565b606091505b5091509150610b46828286610b57565b979650505050505050565b3b151590565b60608315610b66575081610690565b825115610b765782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610bc0578181015183820152602001610ba8565b50505050905090810190601f168015610bed5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473506f6f6c4f776e65723a206e6f74206f776e6572206f7220666565206d616e616765724f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212206c6e24c10c171c9696725f33547eb137f5c27246d9bcd6c40b5b4abff8d0717064736f6c63430007060033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061007d5760003560e01c8063715018a61161005b578063715018a6146101285780638da5cb5b146101305780638f39d13a14610154578063f2fde38b146102495761007d565b8063070a47e614610082578063625f7810146100aa5780636f893b3d14610102575b600080fd5b6100a86004803603602081101561009857600080fd5b50356001600160a01b031661026f565b005b6100b2610314565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156100ee5781810151838201526020016100d6565b505050509050019250505060405180910390f35b6100a86004803603602081101561011857600080fd5b50356001600160a01b03166103b3565b6100a8610458565b610138610504565b604080516001600160a01b039092168252519081900360200190f35b6101d46004803603604081101561016a57600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561019557600080fd5b8201836020820111156101a757600080fd5b803590602001918460018302840111640100000000831117156101c957600080fd5b509092509050610513565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561020e5781810151838201526020016101f6565b50505050905090810190601f16801561023b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6100a86004803603602081101561025f57600080fd5b50356001600160a01b0316610697565b610277610799565b6001600160a01b0316610288610504565b6001600160a01b0316146102d1576040805162461bcd60e51b81526020600482018190526024820152600080516020610c8d833981519152604482015290519081900360640190fd5b6102dc60018261079d565b506040516001600160a01b038216907f5716bc0af5555420c83e970485353a24dc96f23e0738dc42e71f091feec5353490600090a250565b6060600061032260016107bb565b905060008167ffffffffffffffff8111801561033d57600080fd5b50604051908082528060200260200182016040528015610367578160200160208202803683370190505b50905060005b828110156103ac576103806001826107c6565b82828151811061038c57fe5b6001600160a01b039092166020928302919091019091015260010161036d565b5091505090565b6103bb610799565b6001600160a01b03166103cc610504565b6001600160a01b031614610415576040805162461bcd60e51b81526020600482018190526024820152600080516020610c8d833981519152604482015290519081900360640190fd5b6104206001826107d2565b506040516001600160a01b038216907fc504b68859e849248ade75526558241afc96c48cddbae13b2ae85ff21d13392590600090a250565b610460610799565b6001600160a01b0316610471610504565b6001600160a01b0316146104ba576040805162461bcd60e51b81526020600482018190526024820152600080516020610c8d833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6060600061055684848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506107e792505050565b90506001600160e01b03198116631c74c91760e11b14156105de57610579610504565b6001600160a01b0316336001600160a01b0316148061059e575061059e6001336107f8565b6105d95760405162461bcd60e51b8152600401808060200182810382526023815260200180610c1e6023913960400191505060405180910390fd5b610642565b6105e6610504565b6001600160a01b0316336001600160a01b031614610642576040805162461bcd60e51b81526020600482015260146024820152732837b7b627bbb732b91d103737ba1037bbb732b960611b604482015290519081900360640190fd5b61068c84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506001600160a01b0389169291505061080d565b9150505b9392505050565b61069f610799565b6001600160a01b03166106b0610504565b6001600160a01b0316146106f9576040805162461bcd60e51b81526020600482018190526024820152600080516020610c8d833981519152604482015290519081900360640190fd5b6001600160a01b03811661073e5760405162461bcd60e51b8152600401808060200182810382526026815260200180610c416026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b60006107b2836001600160a01b03841661084f565b90505b92915050565b60006107b582610899565b60006107b2838361089d565b60006107b2836001600160a01b038416610901565b602001516001600160e01b03191690565b60006107b2836001600160a01b0384166109c7565b60606107b283836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c656400008152506109df565b600061085b83836109c7565b610891575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556107b5565b5060006107b5565b5490565b815460009082106108df5760405162461bcd60e51b8152600401808060200182810382526022815260200180610bfc6022913960400191505060405180910390fd5b8260000182815481106108ee57fe5b9060005260206000200154905092915050565b600081815260018301602052604081205480156109bd578354600019808301919081019060009087908390811061093457fe5b906000526020600020015490508087600001848154811061095157fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061098157fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506107b5565b60009150506107b5565b60009081526001919091016020526040902054151590565b60606109ee84846000856109f6565b949350505050565b606082471015610a375760405162461bcd60e51b8152600401808060200182810382526026815260200180610c676026913960400191505060405180910390fd5b610a4085610b51565b610a91576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310610acf5780518252601f199092019160209182019101610ab0565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610b31576040519150601f19603f3d011682016040523d82523d6000602084013e610b36565b606091505b5091509150610b46828286610b57565b979650505050505050565b3b151590565b60608315610b66575081610690565b825115610b765782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610bc0578181015183820152602001610ba8565b50505050905090810190601f168015610bed5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473506f6f6c4f776e65723a206e6f74206f776e6572206f7220666565206d616e616765724f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212206c6e24c10c171c9696725f33547eb137f5c27246d9bcd6c40b5b4abff8d0717064736f6c63430007060033

Block Transaction 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.