POL Price: $0.730269 (+6.50%)
 

Overview

POL Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 POL

POL Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Metadata623225472024-09-27 2:44:4068 days ago1727405080IN
0x7Daab816...3b739c164
0 POL0.0053965791
Metadata623222112024-09-27 2:32:4668 days ago1727404366IN
0x7Daab816...3b739c164
0 POL0.0021570738
Metadata552872192024-03-31 12:27:46248 days ago1711888066IN
0x7Daab816...3b739c164
0 POL0.0035037161.47614852
Metadata524026612024-01-16 18:58:16322 days ago1705431496IN
0x7Daab816...3b739c164
0 POL0.001936733.96000115
Metadata446706792023-07-04 11:33:57519 days ago1688470437IN
0x7Daab816...3b739c164
0 POL0.00804016147
Transfer Control438754542023-06-13 19:38:30539 days ago1686685110IN
0x7Daab816...3b739c164
0 POL0.00547862178.66641306
Transfer Ownersh...438753892023-06-13 19:36:11539 days ago1686684971IN
0x7Daab816...3b739c164
0 POL0.00497201173.59767875

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

Contract Source Code Verified (Exact Match)

Contract Name:
PoolMetadata

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 7 : PoolMetadata.sol
/*
PoolMetadata

https://github.com/gysr-io/aux

SPDX-License-Identifier: MIT
*/

pragma solidity 0.8.18;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@gysr/core/contracts/interfaces/IPoolFactory.sol";
import "@gysr/core/contracts/OwnerController.sol";

/**
 * @title PoolMetadata
 *
 * @notice this contract manages metadata definition for GYSR pools. It allows
 * the pool controller to set metadata for that pool, which is then emitted as
 * an event and indexed by the GYSR subgraph.
 */
contract PoolMetadata is OwnerController {
    using SafeERC20 for IERC20;

    // events
    event Metadata(address indexed pool, string data);
    event FeeUpdated(uint256 previous, uint256 updated);
    event TreasuryUpdated(address previous, address updated);
    event FactoryUpdated(address factory, bool added);
    event Banned(address indexed pool, bool banned);

    // fields
    IERC20 private immutable _gysr;
    address public treasury;
    uint256 public fee;
    mapping(address => bool) public banned;
    address[] public factories;

    /**
     * @param factories_ addresses for initial pool factories
     * @param gysr_ address of GYSR token
     * @param treasury_ initial address of treasury
     */
    constructor(
        address[] memory factories_,
        address gysr_,
        address treasury_
    ) {
        for (uint256 i; i < factories_.length; ++i) {
            factories.push(factories_[i]);
            emit FactoryUpdated(factories_[i], true);
        }
        _gysr = IERC20(gysr_);
        treasury = treasury_;
        fee = 0;
    }

    /**
     * @notice define Pool metadata and emit associated event
     * @param pool address of Pool contract
     * @param data encoded metadata
     */
    function metadata(address pool, string calldata data) external {
        // check banned
        require(!banned[pool], "Pool is banned");

        // check each pool factory
        OwnerController p = OwnerController(pool);
        bool ok;
        for (uint256 i; i < factories.length; ++i) {
            // verify pool address created by factory
            if (!IPoolFactory(factories[i]).map(pool)) continue;

            // verify sender access
            try p.controller() returns (address c) {
                require(msg.sender == c, "Sender is not controller");
            } catch {
                // v1 did not have controller role
                require(msg.sender == p.owner(), "Sender is not owner");
            }
            ok = true;
            break;
        }
        require(ok, "Pool address is invalid");

        // pay fee
        if (fee > 0) {
            _gysr.safeTransferFrom(msg.sender, treasury, fee);
        }

        // emit event
        emit Metadata(pool, data);
    }

    /**
     * @notice privileged method to clear pool metadata
     * @param pool address of Pool contract
     */
    function clear(address pool) external {
        requireController();
        emit Metadata(pool, "{}");
    }

    /**
     * @notice privileged method to ban pool from submitting metadata.
     * This does NOT affect the ability to manage the core Pool contract.
     * @param pool address of pool to ban
     */
    function ban(address pool) external {
        requireController();
        banned[pool] = true;
        emit Banned(pool, true);
    }

    /**
     * @notice privileged method to unban pool and allow them to submit metadata
     * @param pool address of pool to unban
     */
    function unban(address pool) external {
        requireController();
        banned[pool] = false;
        emit Banned(pool, false);
    }

    /**
     * @notice add new pool factory address for pool verification
     * @param factory address of new pool factory
     */
    function addFactory(address factory) external {
        requireController();
        for (uint256 i; i < factories.length; ++i)
            require(factory != factories[i], "Pool factory already registered");
        factories.push(factory);
        emit FactoryUpdated(factory, true);
    }

    /**
     * @notice remove pool factory address
     * @param index list index of pool factory to remove
     */
    function removeFactory(uint256 index) external {
        requireController();
        require(index < factories.length, "Pool factory index out of bounds");
        address factory = factories[index];
        if (index < factories.length - 1)
            factories[index] = factories[factories.length - 1];
        factories.pop();
        emit FactoryUpdated(factory, false);
    }

    /**
     * @notice get count of factories registered for pool verification
     */
    function factoryCount() external view returns (uint256) {
        return factories.length;
    }

    /**
     * @notice update the treasury address to receive fees
     * @param treasury_ new value for treasury address
     */
    function setTreasury(address treasury_) external {
        requireController();
        emit TreasuryUpdated(treasury, treasury_);
        treasury = treasury_;
    }

    /**
     * @notice update the GYSR fee to submit Pool metadata
     * @param fee_ new value for fee
     */
    function setFee(uint256 fee_) external {
        requireController();
        emit FeeUpdated(fee, fee_);
        fee = fee_;
    }
}

File 2 of 7 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^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;
        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 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");

        (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

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

File 3 of 7 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 4 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 5 of 7 : IPoolFactory.sol
/*
IPoolFactory

https://github.com/gysr-io/core

SPDX-License-Identifier: MIT
*/

pragma solidity 0.8.18;

/**
 * @title Pool factory interface
 *
 * @notice this defines the Pool factory interface, primarily intended for
 * the Pool contract to interact with
 */
interface IPoolFactory {
    /**
     * @notice create a new Pool
     * @param staking address of factory that will be used to create staking module
     * @param reward address of factory that will be used to create reward module
     * @param stakingdata construction data for staking module factory
     * @param rewarddata construction data for reward module factory
     * @return address of newly created Pool
     */
    function create(
        address staking,
        address reward,
        bytes calldata stakingdata,
        bytes calldata rewarddata
    ) external returns (address);

    /**
     * @return true if address is a pool created by the factory
     */
    function map(address) external view returns (bool);

    /**
     * @return address of the nth pool created by the factory
     */
    function list(uint256) external view returns (address);
}

File 6 of 7 : IOwnerController.sol
/*
IOwnerController

https://github.com/gysr-io/core

SPDX-License-Identifier: MIT
*/

pragma solidity 0.8.18;

/**
 * @title Owner controller interface
 *
 * @notice this defines the interface for any contracts that use the
 * owner controller access pattern
 */
interface IOwnerController {
    /**
     * @dev Returns the address of the current owner.
     */
    function owner() external view returns (address);

    /**
     * @dev Returns the address of the current controller.
     */
    function controller() external view returns (address);

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`). This can
     * include renouncing ownership by transferring to the zero address.
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) external;

    /**
     * @dev Transfers control of the contract to a new account (`newController`).
     * Can only be called by the owner.
     */
    function transferControl(address newController) external;
}

File 7 of 7 : OwnerController.sol
/*
OwnerController

https://github.com/gysr-io/core

SPDX-License-Identifier: MIT
*/

pragma solidity 0.8.18;

import "./interfaces/IOwnerController.sol";

/**
 * @title Owner controller
 *
 * @notice this base contract implements an owner-controller access model.
 *
 * @dev the contract is an adapted version of the OpenZeppelin Ownable contract.
 * It allows the owner to designate an additional account as the controller to
 * perform restricted operations.
 *
 * Other changes include supporting role verification with a require method
 * in addition to the modifier option, and removing some unneeded functionality.
 *
 * Original contract here:
 * https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol
 */
contract OwnerController is IOwnerController {
    address private _owner;
    address private _controller;

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

    event ControlTransferred(
        address indexed previousController,
        address indexed newController
    );

    constructor() {
        _owner = msg.sender;
        _controller = msg.sender;
        emit OwnershipTransferred(address(0), _owner);
        emit ControlTransferred(address(0), _owner);
    }

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

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

    /**
     * @dev Modifier that throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == msg.sender, "oc1");
        _;
    }

    /**
     * @dev Modifier that throws if called by any account other than the controller.
     */
    modifier onlyController() {
        require(_controller == msg.sender, "oc2");
        _;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    function requireOwner() internal view {
        require(_owner == msg.sender, "oc1");
    }

    /**
     * @dev Throws if called by any account other than the controller.
     */
    function requireController() internal view {
        require(_controller == msg.sender, "oc2");
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`). This can
     * include renouncing ownership by transferring to the zero address.
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual override {
        requireOwner();
        require(newOwner != address(0), "oc3");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }

    /**
     * @dev Transfers control of the contract to a new account (`newController`).
     * Can only be called by the owner.
     */
    function transferControl(address newController) public virtual override {
        requireOwner();
        require(newController != address(0), "oc4");
        emit ControlTransferred(_controller, newController);
        _controller = newController;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"factories_","type":"address[]"},{"internalType":"address","name":"gysr_","type":"address"},{"internalType":"address","name":"treasury_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pool","type":"address"},{"indexed":false,"internalType":"bool","name":"banned","type":"bool"}],"name":"Banned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousController","type":"address"},{"indexed":true,"internalType":"address","name":"newController","type":"address"}],"name":"ControlTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"factory","type":"address"},{"indexed":false,"internalType":"bool","name":"added","type":"bool"}],"name":"FactoryUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"previous","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"updated","type":"uint256"}],"name":"FeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pool","type":"address"},{"indexed":false,"internalType":"string","name":"data","type":"string"}],"name":"Metadata","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previous","type":"address"},{"indexed":false,"internalType":"address","name":"updated","type":"address"}],"name":"TreasuryUpdated","type":"event"},{"inputs":[{"internalType":"address","name":"factory","type":"address"}],"name":"addFactory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"}],"name":"ban","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"banned","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"}],"name":"clear","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"controller","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"factories","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factoryCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"},{"internalType":"string","name":"data","type":"string"}],"name":"metadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"removeFactory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee_","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"treasury_","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newController","type":"address"}],"name":"transferControl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"}],"name":"unban","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b506040516200196d3803806200196d8339810160408190526200003491620001fe565b60008054336001600160a01b0319918216811783556001805490921681179091556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3600080546040516001600160a01b0390911691907fa06677f7b64342b4bcbde423684dbdb5356acfe41ad0285b6ecbe6dc4bf427f2908290a360005b83518110156200019b576005848281518110620000dd57620000dd620002f6565b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b0390921691909117905583517f309e49506b5bfa680b6edfbee91c1314f386b28cfb0cb8d2980bab7af0ef492790859083908110620001515762000151620002f6565b60200260200101516001604051620001809291906001600160a01b039290921682521515602082015260400190565b60405180910390a162000193816200030c565b9050620000bc565b506001600160a01b03918216608052600280546001600160a01b0319169190921617905550600060035562000334565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b0381168114620001f957600080fd5b919050565b6000806000606084860312156200021457600080fd5b83516001600160401b03808211156200022c57600080fd5b818601915086601f8301126200024157600080fd5b8151602082821115620002585762000258620001cb565b8160051b604051601f19603f83011681018181108682111715620002805762000280620001cb565b60405292835281830193508481018201928a8411156200029f57600080fd5b948201945b83861015620002c857620002b886620001e1565b85529482019493820193620002a4565b9750620002d99050888201620001e1565b955050505050620002ed60408501620001e1565b90509250925092565b634e487b7160e01b600052603260045260246000fd5b6000600182016200032d57634e487b7160e01b600052601160045260246000fd5b5060010190565b60805161161d620003506000396000610674015261161d6000f3fe608060405234801561001057600080fd5b506004361061011b5760003560e01c80638da5cb5b116100b2578063cc805afa11610081578063f0f4426011610066578063f0f4426014610283578063f2fde38b14610296578063f77c4791146102a957600080fd5b8063cc805afa14610268578063ddca3f431461027a57600080fd5b80638da5cb5b146101f157806397c3ccd81461020f5780639c8d83bb14610222578063b9f145571461025557600080fd5b806361d027b3116100ee57806361d027b31461016e578063672383c4146101b857806369fe0e2d146101cb5780636d16fa41146101de57600080fd5b806321ca02dc1461012057806329ce1ec5146101355780633d0a406114610148578063577387b51461015b575b600080fd5b61013361012e366004611331565b6102c7565b005b6101336101433660046113b6565b6106f9565b6101336101563660046113b6565b610857565b6101336101693660046113d3565b6108e0565b60025461018e9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b61018e6101c63660046113d3565b610aec565b6101336101d93660046113d3565b610b23565b6101336101ec3660046113b6565b610b6c565b60005473ffffffffffffffffffffffffffffffffffffffff1661018e565b61013361021d3660046113b6565b610c65565b6102456102303660046113b6565b60046020526000908152604090205460ff1681565b60405190151581526020016101af565b6101336102633660046113b6565b610cef565b6005545b6040519081526020016101af565b61026c60035481565b6101336102913660046113b6565b610d71565b6101336102a43660046113b6565b610e14565b60015473ffffffffffffffffffffffffffffffffffffffff1661018e565b73ffffffffffffffffffffffffffffffffffffffff831660009081526004602052604090205460ff16156103425760405162461bcd60e51b815260206004820152600e60248201527f506f6f6c2069732062616e6e656400000000000000000000000000000000000060448201526064015b60405180910390fd5b826000805b6005548110156105fd5760058181548110610364576103646113ec565b6000918252602090912001546040517fb721ef6e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff88811660048301529091169063b721ef6e90602401602060405180830381865afa1580156103dd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610401919061141b565b156105ed578273ffffffffffffffffffffffffffffffffffffffff1663f77c47916040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561048b575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526104889181019061143d565b60015b61057d578273ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104fe919061143d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146105785760405162461bcd60e51b815260206004820152601360248201527f53656e646572206973206e6f74206f776e6572000000000000000000000000006044820152606401610339565b6105e4565b3373ffffffffffffffffffffffffffffffffffffffff8216146105e25760405162461bcd60e51b815260206004820152601860248201527f53656e646572206973206e6f7420636f6e74726f6c6c657200000000000000006044820152606401610339565b505b600191506105fd565b6105f681611489565b9050610347565b508061064b5760405162461bcd60e51b815260206004820152601760248201527f506f6f6c206164647265737320697320696e76616c69640000000000000000006044820152606401610339565b600354156106a2576002546003546106a29173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081169233929190911690610f0c565b8473ffffffffffffffffffffffffffffffffffffffff167fdd2aaf9a13ded8b39880682243d9727492dc0ac1e5e5020830a9199be8c1317185856040516106ea9291906114c1565b60405180910390a25050505050565b610701610fa7565b60005b6005548110156107a55760058181548110610721576107216113ec565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff908116908316036107955760405162461bcd60e51b815260206004820152601f60248201527f506f6f6c20666163746f727920616c72656164792072656769737465726564006044820152606401610339565b61079e81611489565b9050610704565b5060058054600180820183556000929092527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091556040805191825260208201929092527f309e49506b5bfa680b6edfbee91c1314f386b28cfb0cb8d2980bab7af0ef4927910160405180910390a150565b61085f610fa7565b8073ffffffffffffffffffffffffffffffffffffffff167fdd2aaf9a13ded8b39880682243d9727492dc0ac1e5e5020830a9199be8c131716040516108d59060208082526002908201527f7b7d000000000000000000000000000000000000000000000000000000000000604082015260600190565b60405180910390a250565b6108e8610fa7565b60055481106109395760405162461bcd60e51b815260206004820181905260248201527f506f6f6c20666163746f727920696e646578206f7574206f6620626f756e64736044820152606401610339565b60006005828154811061094e5761094e6113ec565b60009182526020909120015460055473ffffffffffffffffffffffffffffffffffffffff90911691506109839060019061150e565b821015610a2c576005805461099a9060019061150e565b815481106109aa576109aa6113ec565b6000918252602090912001546005805473ffffffffffffffffffffffffffffffffffffffff90921691849081106109e3576109e36113ec565b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b6005805480610a3d57610a3d611527565b600082815260208082207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff908401810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690559092019092556040805173ffffffffffffffffffffffffffffffffffffffff85168152918201929092527f309e49506b5bfa680b6edfbee91c1314f386b28cfb0cb8d2980bab7af0ef4927910160405180910390a15050565b60058181548110610afc57600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b610b2b610fa7565b60035460408051918252602082018390527f528d9479e9f9889a87a3c30c7f7ba537e5e59c4c85a37733b16e57c62df61302910160405180910390a1600355565b610b74611010565b73ffffffffffffffffffffffffffffffffffffffff8116610bd75760405162461bcd60e51b815260206004820152600360248201527f6f633400000000000000000000000000000000000000000000000000000000006044820152606401610339565b60015460405173ffffffffffffffffffffffffffffffffffffffff8084169216907fa06677f7b64342b4bcbde423684dbdb5356acfe41ad0285b6ecbe6dc4bf427f290600090a3600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b610c6d610fa7565b73ffffffffffffffffffffffffffffffffffffffff811660008181526004602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600190811790915591519182527fbe490a041de95d684835a21f3975102b719d9ede8cf410d4b6b06440bf83950991016108d5565b610cf7610fa7565b73ffffffffffffffffffffffffffffffffffffffff8116600081815260046020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055519182527fbe490a041de95d684835a21f3975102b719d9ede8cf410d4b6b06440bf83950991016108d5565b610d79610fa7565b6002546040805173ffffffffffffffffffffffffffffffffffffffff928316815291831660208301527f4ab5be82436d353e61ca18726e984e561f5c1cc7c6d38b29d2553c790434705a910160405180910390a1600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b610e1c611010565b73ffffffffffffffffffffffffffffffffffffffff8116610e7f5760405162461bcd60e51b815260206004820152600360248201527f6f633300000000000000000000000000000000000000000000000000000000006044820152606401610339565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610fa1908590611077565b50505050565b60015473ffffffffffffffffffffffffffffffffffffffff16331461100e5760405162461bcd60e51b815260206004820152600360248201527f6f633200000000000000000000000000000000000000000000000000000000006044820152606401610339565b565b60005473ffffffffffffffffffffffffffffffffffffffff16331461100e5760405162461bcd60e51b815260206004820152600360248201527f6f633100000000000000000000000000000000000000000000000000000000006044820152606401610339565b60006110d9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661116e9092919063ffffffff16565b80519091501561116957808060200190518101906110f7919061141b565b6111695760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610339565b505050565b606061117d8484600085611187565b90505b9392505050565b6060824710156111ff5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610339565b843b61124d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610339565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611276919061157a565b60006040518083038185875af1925050503d80600081146112b3576040519150601f19603f3d011682016040523d82523d6000602084013e6112b8565b606091505b50915091506112c88282866112d3565b979650505050505050565b606083156112e2575081611180565b8251156112f25782518084602001fd5b8160405162461bcd60e51b81526004016103399190611596565b73ffffffffffffffffffffffffffffffffffffffff8116811461132e57600080fd5b50565b60008060006040848603121561134657600080fd5b83356113518161130c565b9250602084013567ffffffffffffffff8082111561136e57600080fd5b818601915086601f83011261138257600080fd5b81358181111561139157600080fd5b8760208285010111156113a357600080fd5b6020830194508093505050509250925092565b6000602082840312156113c857600080fd5b81356111808161130c565b6000602082840312156113e557600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561142d57600080fd5b8151801515811461118057600080fd5b60006020828403121561144f57600080fd5b81516111808161130c565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036114ba576114ba61145a565b5060010190565b60208152816020820152818360408301376000818301604090810191909152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160101919050565b818103818111156115215761152161145a565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60005b83811015611571578181015183820152602001611559565b50506000910152565b6000825161158c818460208701611556565b9190910192915050565b60208152600082518060208401526115b5816040850160208701611556565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220445c551243449902d513870441c7557171fba1241b928a09ad4caa083a487a3464736f6c634300081200330000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c48f61a288a08f1b80c2edd74652e1276b6a168c000000000000000000000000a80481e3f9098602954b2e5cf306e6dee053ef3e00000000000000000000000000000000000000000000000000000000000000020000000000000000000000003cf6920b8fcbea07700ce4a7c2f009bb785b07420000000000000000000000002f2e7b4e12f8a7949919c833f1a49bcb012081d1

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061011b5760003560e01c80638da5cb5b116100b2578063cc805afa11610081578063f0f4426011610066578063f0f4426014610283578063f2fde38b14610296578063f77c4791146102a957600080fd5b8063cc805afa14610268578063ddca3f431461027a57600080fd5b80638da5cb5b146101f157806397c3ccd81461020f5780639c8d83bb14610222578063b9f145571461025557600080fd5b806361d027b3116100ee57806361d027b31461016e578063672383c4146101b857806369fe0e2d146101cb5780636d16fa41146101de57600080fd5b806321ca02dc1461012057806329ce1ec5146101355780633d0a406114610148578063577387b51461015b575b600080fd5b61013361012e366004611331565b6102c7565b005b6101336101433660046113b6565b6106f9565b6101336101563660046113b6565b610857565b6101336101693660046113d3565b6108e0565b60025461018e9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b61018e6101c63660046113d3565b610aec565b6101336101d93660046113d3565b610b23565b6101336101ec3660046113b6565b610b6c565b60005473ffffffffffffffffffffffffffffffffffffffff1661018e565b61013361021d3660046113b6565b610c65565b6102456102303660046113b6565b60046020526000908152604090205460ff1681565b60405190151581526020016101af565b6101336102633660046113b6565b610cef565b6005545b6040519081526020016101af565b61026c60035481565b6101336102913660046113b6565b610d71565b6101336102a43660046113b6565b610e14565b60015473ffffffffffffffffffffffffffffffffffffffff1661018e565b73ffffffffffffffffffffffffffffffffffffffff831660009081526004602052604090205460ff16156103425760405162461bcd60e51b815260206004820152600e60248201527f506f6f6c2069732062616e6e656400000000000000000000000000000000000060448201526064015b60405180910390fd5b826000805b6005548110156105fd5760058181548110610364576103646113ec565b6000918252602090912001546040517fb721ef6e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff88811660048301529091169063b721ef6e90602401602060405180830381865afa1580156103dd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610401919061141b565b156105ed578273ffffffffffffffffffffffffffffffffffffffff1663f77c47916040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561048b575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526104889181019061143d565b60015b61057d578273ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104fe919061143d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146105785760405162461bcd60e51b815260206004820152601360248201527f53656e646572206973206e6f74206f776e6572000000000000000000000000006044820152606401610339565b6105e4565b3373ffffffffffffffffffffffffffffffffffffffff8216146105e25760405162461bcd60e51b815260206004820152601860248201527f53656e646572206973206e6f7420636f6e74726f6c6c657200000000000000006044820152606401610339565b505b600191506105fd565b6105f681611489565b9050610347565b508061064b5760405162461bcd60e51b815260206004820152601760248201527f506f6f6c206164647265737320697320696e76616c69640000000000000000006044820152606401610339565b600354156106a2576002546003546106a29173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000c48f61a288a08f1b80c2edd74652e1276b6a168c81169233929190911690610f0c565b8473ffffffffffffffffffffffffffffffffffffffff167fdd2aaf9a13ded8b39880682243d9727492dc0ac1e5e5020830a9199be8c1317185856040516106ea9291906114c1565b60405180910390a25050505050565b610701610fa7565b60005b6005548110156107a55760058181548110610721576107216113ec565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff908116908316036107955760405162461bcd60e51b815260206004820152601f60248201527f506f6f6c20666163746f727920616c72656164792072656769737465726564006044820152606401610339565b61079e81611489565b9050610704565b5060058054600180820183556000929092527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091556040805191825260208201929092527f309e49506b5bfa680b6edfbee91c1314f386b28cfb0cb8d2980bab7af0ef4927910160405180910390a150565b61085f610fa7565b8073ffffffffffffffffffffffffffffffffffffffff167fdd2aaf9a13ded8b39880682243d9727492dc0ac1e5e5020830a9199be8c131716040516108d59060208082526002908201527f7b7d000000000000000000000000000000000000000000000000000000000000604082015260600190565b60405180910390a250565b6108e8610fa7565b60055481106109395760405162461bcd60e51b815260206004820181905260248201527f506f6f6c20666163746f727920696e646578206f7574206f6620626f756e64736044820152606401610339565b60006005828154811061094e5761094e6113ec565b60009182526020909120015460055473ffffffffffffffffffffffffffffffffffffffff90911691506109839060019061150e565b821015610a2c576005805461099a9060019061150e565b815481106109aa576109aa6113ec565b6000918252602090912001546005805473ffffffffffffffffffffffffffffffffffffffff90921691849081106109e3576109e36113ec565b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b6005805480610a3d57610a3d611527565b600082815260208082207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff908401810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690559092019092556040805173ffffffffffffffffffffffffffffffffffffffff85168152918201929092527f309e49506b5bfa680b6edfbee91c1314f386b28cfb0cb8d2980bab7af0ef4927910160405180910390a15050565b60058181548110610afc57600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b610b2b610fa7565b60035460408051918252602082018390527f528d9479e9f9889a87a3c30c7f7ba537e5e59c4c85a37733b16e57c62df61302910160405180910390a1600355565b610b74611010565b73ffffffffffffffffffffffffffffffffffffffff8116610bd75760405162461bcd60e51b815260206004820152600360248201527f6f633400000000000000000000000000000000000000000000000000000000006044820152606401610339565b60015460405173ffffffffffffffffffffffffffffffffffffffff8084169216907fa06677f7b64342b4bcbde423684dbdb5356acfe41ad0285b6ecbe6dc4bf427f290600090a3600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b610c6d610fa7565b73ffffffffffffffffffffffffffffffffffffffff811660008181526004602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600190811790915591519182527fbe490a041de95d684835a21f3975102b719d9ede8cf410d4b6b06440bf83950991016108d5565b610cf7610fa7565b73ffffffffffffffffffffffffffffffffffffffff8116600081815260046020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055519182527fbe490a041de95d684835a21f3975102b719d9ede8cf410d4b6b06440bf83950991016108d5565b610d79610fa7565b6002546040805173ffffffffffffffffffffffffffffffffffffffff928316815291831660208301527f4ab5be82436d353e61ca18726e984e561f5c1cc7c6d38b29d2553c790434705a910160405180910390a1600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b610e1c611010565b73ffffffffffffffffffffffffffffffffffffffff8116610e7f5760405162461bcd60e51b815260206004820152600360248201527f6f633300000000000000000000000000000000000000000000000000000000006044820152606401610339565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610fa1908590611077565b50505050565b60015473ffffffffffffffffffffffffffffffffffffffff16331461100e5760405162461bcd60e51b815260206004820152600360248201527f6f633200000000000000000000000000000000000000000000000000000000006044820152606401610339565b565b60005473ffffffffffffffffffffffffffffffffffffffff16331461100e5760405162461bcd60e51b815260206004820152600360248201527f6f633100000000000000000000000000000000000000000000000000000000006044820152606401610339565b60006110d9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661116e9092919063ffffffff16565b80519091501561116957808060200190518101906110f7919061141b565b6111695760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610339565b505050565b606061117d8484600085611187565b90505b9392505050565b6060824710156111ff5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610339565b843b61124d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610339565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611276919061157a565b60006040518083038185875af1925050503d80600081146112b3576040519150601f19603f3d011682016040523d82523d6000602084013e6112b8565b606091505b50915091506112c88282866112d3565b979650505050505050565b606083156112e2575081611180565b8251156112f25782518084602001fd5b8160405162461bcd60e51b81526004016103399190611596565b73ffffffffffffffffffffffffffffffffffffffff8116811461132e57600080fd5b50565b60008060006040848603121561134657600080fd5b83356113518161130c565b9250602084013567ffffffffffffffff8082111561136e57600080fd5b818601915086601f83011261138257600080fd5b81358181111561139157600080fd5b8760208285010111156113a357600080fd5b6020830194508093505050509250925092565b6000602082840312156113c857600080fd5b81356111808161130c565b6000602082840312156113e557600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561142d57600080fd5b8151801515811461118057600080fd5b60006020828403121561144f57600080fd5b81516111808161130c565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036114ba576114ba61145a565b5060010190565b60208152816020820152818360408301376000818301604090810191909152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160101919050565b818103818111156115215761152161145a565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60005b83811015611571578181015183820152602001611559565b50506000910152565b6000825161158c818460208701611556565b9190910192915050565b60208152600082518060208401526115b5816040850160208701611556565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220445c551243449902d513870441c7557171fba1241b928a09ad4caa083a487a3464736f6c63430008120033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c48f61a288a08f1b80c2edd74652e1276b6a168c000000000000000000000000a80481e3f9098602954b2e5cf306e6dee053ef3e00000000000000000000000000000000000000000000000000000000000000020000000000000000000000003cf6920b8fcbea07700ce4a7c2f009bb785b07420000000000000000000000002f2e7b4e12f8a7949919c833f1a49bcb012081d1

-----Decoded View---------------
Arg [0] : factories_ (address[]): 0x3cF6920b8FCBeA07700CE4A7C2F009Bb785B0742,0x2f2e7b4e12F8A7949919c833F1a49bcb012081D1
Arg [1] : gysr_ (address): 0xc48F61a288A08F1B80c2edd74652e1276B6A168c
Arg [2] : treasury_ (address): 0xA80481E3f9098602954B2E5cf306e6dEE053EF3E

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 000000000000000000000000c48f61a288a08f1b80c2edd74652e1276b6a168c
Arg [2] : 000000000000000000000000a80481e3f9098602954b2e5cf306e6dee053ef3e
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [4] : 0000000000000000000000003cf6920b8fcbea07700ce4a7c2f009bb785b0742
Arg [5] : 0000000000000000000000002f2e7b4e12f8a7949919c833f1a49bcb012081d1


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.