false
false
0
The new Blockscout UI is now open source! Learn how to deploy it here

Contract Address Details

0x5Acd50C83ab74c35F3F9240299eCb03A326b2328

Token
Wrapped sxETH (wsxETH)
Creator
0xe95ccd–f85413 at 0x8262cf–79c283
Implementation
BridgedWSxETH | 0x47f7860e36ecc16ad8acb1dc8c0e9f5097627f1f
Balance
0 ETH
Tokens
Fetching tokens...
Transactions
1,108 Transactions
Transfers
1 Transfers
Gas Used
53,416,272
Last Balance Update
1065630
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
InitializeGovernedUpgradeabilityProxy




Optimization enabled
true
Compiler version
v0.8.20+commit.a1b79de6




Optimization runs
10000000
EVM Version
default




Verified at
2024-04-25T17:33:09.977648Z

contracts/proxies/InitializeGovernedUpgradeabilityProxy.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import { Address } from "@openzeppelin/contracts/utils/Address.sol";

import { Governable } from "../governance/Governable.sol";

/**
 * @title BaseGovernedUpgradeabilityProxy
 * @dev This contract combines an upgradeability proxy with our governor system.
 * It is based on an older version of OpenZeppelins BaseUpgradeabilityProxy
 * with Solidity ^0.8.0.
 */
contract InitializeGovernedUpgradeabilityProxy is Governable {
    /**
     * @dev Emitted when the implementation is upgraded.
     * @param implementation Address of the new implementation.
     */
    event Upgraded(address indexed implementation);

    /**
     * @dev Contract initializer with Governor enforcement
     * @param _logic Address of the initial implementation.
     * @param _initGovernor Address of the initial Governor.
     * @param _data Data to send as msg.data to the implementation to initialize
     * the proxied contract.
     * It should include the signature and the parameters of the function to be
     * called, as described in
     * https://solidity.readthedocs.io/en/v0.4.24/abi-spec.html#function-selector-and-argument-encoding.
     * This parameter is optional, if no data is given the initialization call
     * to proxied contract will be skipped.
     */
    function initialize(
        address _logic,
        address _initGovernor,
        bytes calldata _data
    ) public payable onlyGovernor {
        require(_implementation() == address(0));
        assert(
            IMPLEMENTATION_SLOT ==
                bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1)
        );
        _setImplementation(_logic);
        if (_data.length > 0) {
            (bool success, ) = _logic.delegatecall(_data);
            require(success);
        }
        _changeGovernor(_initGovernor);
    }

    /**
     * @return The address of the proxy admin/it's also the governor.
     */
    function admin() external view returns (address) {
        return _governor();
    }

    /**
     * @return The address of the implementation.
     */
    function implementation() external view returns (address) {
        return _implementation();
    }

    /**
     * @dev Upgrade the backing implementation of the proxy.
     * Only the admin can call this function.
     * @param newImplementation Address of the new implementation.
     */
    function upgradeTo(address newImplementation) external onlyGovernor {
        _upgradeTo(newImplementation);
    }

    /**
     * @dev Upgrade the backing implementation of the proxy and call a function
     * on the new implementation.
     * This is useful to initialize the proxied contract.
     * @param newImplementation Address of the new implementation.
     * @param data Data to send as msg.data in the low level call.
     * It should include the signature and the parameters of the function to be called, as described in
     * https://solidity.readthedocs.io/en/v0.4.24/abi-spec.html#function-selector-and-argument-encoding.
     */
    function upgradeToAndCall(
        address newImplementation,
        bytes calldata data
    ) external payable onlyGovernor {
        _upgradeTo(newImplementation);
        (bool success, ) = newImplementation.delegatecall(data);
        require(success);
    }

    /**
     * @dev Fallback function.
     * Implemented entirely in `_fallback`.
     */
    fallback() external payable {
        _fallback();
    }

    /**
     * @dev Delegates execution to an implementation contract.
     * This is a low level function that doesn't return to its internal call site.
     * It will return to the external caller whatever the implementation returns.
     * @param _impl Address to delegate.
     */
    function _delegate(address _impl) internal {
        // solhint-disable-next-line no-inline-assembly
        assembly {
            // Copy msg.data. We take full control of memory in this inline assembly
            // block because it will not return to Solidity code. We overwrite the
            // Solidity scratch pad at memory position 0.
            calldatacopy(0, 0, calldatasize())

            // Call the implementation.
            // out and outsize are 0 because we don't know the size yet.
            let result := delegatecall(gas(), _impl, 0, calldatasize(), 0, 0)

            // Copy the returned data.
            returndatacopy(0, 0, returndatasize())

            switch result
            // delegatecall returns 0 on error.
            case 0 {
                revert(0, returndatasize())
            }
            default {
                return(0, returndatasize())
            }
        }
    }

    /**
     * @dev Function that is run as the first thing in the fallback function.
     * Can be redefined in derived contracts to add functionality.
     * Redefinitions must call super._willFallback().
     */
    function _willFallback() internal {}

    /**
     * @dev fallback implementation.
     * Extracted to enable manual triggering.
     */
    function _fallback() internal {
        _willFallback();
        _delegate(_implementation());
    }

    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant IMPLEMENTATION_SLOT =
        0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Returns the current implementation.
     * @return impl Address of the current implementation
     */
    function _implementation() internal view returns (address impl) {
        bytes32 slot = IMPLEMENTATION_SLOT;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            impl := sload(slot)
        }
    }

    /**
     * @dev Upgrades the proxy to a new implementation.
     * @param newImplementation Address of the new implementation.
     */
    function _upgradeTo(address newImplementation) internal {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    /**
     * @dev Sets the implementation address of the proxy.
     * @param newImplementation Address of the new implementation.
     */
    function _setImplementation(address newImplementation) internal {
        require(
            Address.isContract(newImplementation),
            "Cannot set a proxy implementation to a non-contract address"
        );

        bytes32 slot = IMPLEMENTATION_SLOT;

        // solhint-disable-next-line no-inline-assembly
        assembly {
            sstore(slot, newImplementation)
        }
    }
}
        

contracts/proxies/Proxies.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import { InitializeGovernedUpgradeabilityProxy } from "./InitializeGovernedUpgradeabilityProxy.sol";

/**
 * @notice SxETHProxy delegates calls to an sxETH implementation
 */
contract SxETHProxy is InitializeGovernedUpgradeabilityProxy {

}

/**
 * @notice WSxETHProxy delegates calls to a WSxETH implementation
 */
contract WSxETHProxy is InitializeGovernedUpgradeabilityProxy {

}

/**
 * @notice SxETHVaultProxy delegates calls to a Vault implementation
 */
contract SxETHVaultProxy is InitializeGovernedUpgradeabilityProxy {

}

/**
 * @notice ExchangeRateProxy delegates calls to a ExchangeRate implementation
 */
contract ExchangeRateProxy is InitializeGovernedUpgradeabilityProxy {

}

/**
 * @notice CompoundStrategyProxy delegates calls to a CompoundStrategy implementation
 */
contract CompoundStrategyProxy is InitializeGovernedUpgradeabilityProxy {

}

/**
 * @notice ThreePoolStrategyProxy delegates calls to a ThreePoolStrategy implementation
 */
contract ThreePoolStrategyProxy is InitializeGovernedUpgradeabilityProxy {

}

/**
 * @notice ConvexStrategyProxy delegates calls to a ConvexStrategy implementation
 */
contract ConvexStrategyProxy is InitializeGovernedUpgradeabilityProxy {

}

/**
 * @notice MorphoCompoundStrategyProxy delegates calls to a MorphoCompoundStrategy implementation
 */
contract MorphoCompoundStrategyProxy is InitializeGovernedUpgradeabilityProxy {

}

/**
 * @notice MorphoAaveStrategyProxy delegates calls to a MorphoCompoundStrategy implementation
 */
contract MorphoAaveStrategyProxy is InitializeGovernedUpgradeabilityProxy {

}

/**
 * @notice SxETHDripperProxy delegates calls to a OETHDripper implementation
 */
contract SxETHDripperProxy is InitializeGovernedUpgradeabilityProxy {

}

/**
 * @notice SxETHHarvesterProxy delegates calls to a Harvester implementation
 */
contract SxETHHarvesterProxy is InitializeGovernedUpgradeabilityProxy {

}

/**
 * @notice FraxETHStrategyProxy delegates calls to a FraxETHStrategy implementation
 */
contract FraxETHStrategyProxy is InitializeGovernedUpgradeabilityProxy {

}

/**
 * @notice CurveEthStrategyProxy delegates calls to a CurveEthStrategy implementation
 */
contract ConvexEthMetaStrategyProxy is InitializeGovernedUpgradeabilityProxy {

}

/**
 * @notice BuybackProxy delegates calls to Buyback implementation
 */
contract BuybackProxy is InitializeGovernedUpgradeabilityProxy {

}

/**
 * @notice SxETHMorphoAaveStrategyProxy delegates calls to a MorphoAaveStrategy implementation
 */
contract SxETHMorphoAaveStrategyProxy is InitializeGovernedUpgradeabilityProxy {

}

/**
 * @notice SxETHBalancerMetaPoolrEthStrategyProxy delegates calls to a BalancerMetaPoolStrategy implementation
 */
contract SxETHBalancerMetaPoolrEthStrategyProxy is
    InitializeGovernedUpgradeabilityProxy
{

}

/**
 * @notice SxETHBalancerMetaPoolwstEthStrategyProxy delegates calls to a BalancerMetaPoolStrategy implementation
 */
contract SxETHBalancerMetaPoolwstEthStrategyProxy is
    InitializeGovernedUpgradeabilityProxy
{

}

/**
 * @notice FluxStrategyProxy delegates calls to a CompoundStrategy implementation
 */
contract FluxStrategyProxy is InitializeGovernedUpgradeabilityProxy {

}

/**
 * @notice MakerDsrStrategyProxy delegates calls to a Generalized4626Strategy implementation
 */
contract MakerDsrStrategyProxy is InitializeGovernedUpgradeabilityProxy {

}

/**
 * @notice SxETHBuybackProxy delegates calls to Buyback implementation
 */
contract SxETHBuybackProxy is InitializeGovernedUpgradeabilityProxy {

}

/**
 * @notice BridgedWSxETHProxy delegates calls to BridgedWSxETH implementation
 */
contract BridgedWSxETHProxy is InitializeGovernedUpgradeabilityProxy {

}

/**
 * @notice WSxETHBridgeMainnetProxy delegates calls to BridgedWSxETH implementation
 */
contract WSxETHBridgeMainnetProxy is InitializeGovernedUpgradeabilityProxy {

}

/**
 * @notice WSxETHBridgeProxy delegates calls to BridgedWSxETH implementation
 */
contract WSxETHBridgeProxy is InitializeGovernedUpgradeabilityProxy {

}

/**
 * @notice WSxETHL2DepositPoolProxy delegates calls to a Vault implementation
 */
contract WSxETHL2DepositPoolProxy is InitializeGovernedUpgradeabilityProxy {

}

/**
 * @notice WSxETHL2OracleProxy delegates calls to a Vault implementation
 */
contract WSxETHL2OracleProxy is InitializeGovernedUpgradeabilityProxy {

}
          

@openzeppelin/contracts/utils/Address.sol

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

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library 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);
    }

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

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

contracts/governance/Governable.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

/**
 * @title Base for contracts that are managed by the Origin Protocol's Governor.
 * @dev Copy of the openzeppelin Ownable.sol contract with nomenclature change
 *      from owner to governor and renounce methods removed. Does not use
 *      Context.sol like Ownable.sol does for simplification.
 */
contract Governable {
    // Storage position of the owner and pendingOwner of the contract
    // keccak256("EASE.governor");
    bytes32 private constant governorPosition =
        0xc232501c7029f9750c88e82f620bc3f6b6f947017928916333387ff7ffec4d3d;

    // keccak256("EASE.pending.governor");
    bytes32 private constant pendingGovernorPosition =
        0x62e5c7bc94de5ea5e81a993833d7bcc33b7809cca20e86d7b445afc340367afa;

    // keccak256("EASE.reentry.status");
    bytes32 private constant reentryStatusPosition =
        0xb628d6c2acbe202c25175e5f49ca0511ce8465f44ca3ebcc1d8aa4fe5e0798c0;

    // See OpenZeppelin ReentrancyGuard implementation
    uint256 constant _NOT_ENTERED = 1;
    uint256 constant _ENTERED = 2;

    event PendingGovernorshipTransfer(
        address indexed previousGovernor,
        address indexed newGovernor
    );

    event GovernorshipTransferred(
        address indexed previousGovernor,
        address indexed newGovernor
    );

    /**
     * @dev Initializes the contract setting the deployer as the initial Governor.
     */
    constructor() {
        _setGovernor(msg.sender);
        emit GovernorshipTransferred(address(0), _governor());
    }

    /**
     * @notice Returns the address of the current Governor.
     */
    function governor() public view returns (address) {
        return _governor();
    }

    /**
     * @dev Returns the address of the current Governor.
     */
    function _governor() internal view returns (address governorOut) {
        bytes32 position = governorPosition;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            governorOut := sload(position)
        }
    }

    /**
     * @dev Returns the address of the pending Governor.
     */
    function _pendingGovernor()
        internal
        view
        returns (address pendingGovernor)
    {
        bytes32 position = pendingGovernorPosition;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            pendingGovernor := sload(position)
        }
    }

    /**
     * @dev Throws if called by any account other than the Governor.
     */
    modifier onlyGovernor() {
        require(isGovernor(), "Caller is not the Governor");
        _;
    }

    /**
     * @notice Returns true if the caller is the current Governor.
     */
    function isGovernor() public view returns (bool) {
        return msg.sender == _governor();
    }

    function _setGovernor(address newGovernor) internal {
        bytes32 position = governorPosition;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            sstore(position, newGovernor)
        }
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        bytes32 position = reentryStatusPosition;
        uint256 _reentry_status;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            _reentry_status := sload(position)
        }

        // On the first call to nonReentrant, _notEntered will be true
        require(_reentry_status != _ENTERED, "Reentrant call");

        // Any calls to nonReentrant after this point will fail
        // solhint-disable-next-line no-inline-assembly
        assembly {
            sstore(position, _ENTERED)
        }

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        // solhint-disable-next-line no-inline-assembly
        assembly {
            sstore(position, _NOT_ENTERED)
        }
    }

    function _setPendingGovernor(address newGovernor) internal {
        bytes32 position = pendingGovernorPosition;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            sstore(position, newGovernor)
        }
    }

    /**
     * @notice Transfers Governance of the contract to a new account (`newGovernor`).
     * Can only be called by the current Governor. Must be claimed for this to complete
     * @param _newGovernor Address of the new Governor
     */
    function transferGovernance(address _newGovernor) external onlyGovernor {
        _setPendingGovernor(_newGovernor);
        emit PendingGovernorshipTransfer(_governor(), _newGovernor);
    }

    /**
     * @notice Claim Governance of the contract to a new account (`newGovernor`).
     * Can only be called by the new Governor.
     */
    function claimGovernance() external {
        require(
            msg.sender == _pendingGovernor(),
            "Only the pending Governor can complete the claim"
        );
        _changeGovernor(msg.sender);
    }

    /**
     * @dev Change Governance of the contract to a new account (`newGovernor`).
     * @param _newGovernor Address of the new Governor
     */
    function _changeGovernor(address _newGovernor) internal {
        require(_newGovernor != address(0), "New Governor is address(0)");
        emit GovernorshipTransferred(_governor(), _newGovernor);
        _setGovernor(_newGovernor);
    }
}
          

Compiler Settings

{"outputSelection":{"*":{"*":["*"],"":["*"]}},"optimizer":{"runs":10000000,"enabled":true},"metadata":{"useLiteralContent":true},"libraries":{}}
              

Contract ABI

[{"type":"event","name":"GovernorshipTransferred","inputs":[{"type":"address","name":"previousGovernor","internalType":"address","indexed":true},{"type":"address","name":"newGovernor","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"PendingGovernorshipTransfer","inputs":[{"type":"address","name":"previousGovernor","internalType":"address","indexed":true},{"type":"address","name":"newGovernor","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Upgraded","inputs":[{"type":"address","name":"implementation","internalType":"address","indexed":true}],"anonymous":false},{"type":"fallback","stateMutability":"payable"},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"admin","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claimGovernance","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"governor","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"implementation","inputs":[]},{"type":"function","stateMutability":"payable","outputs":[],"name":"initialize","inputs":[{"type":"address","name":"_logic","internalType":"address"},{"type":"address","name":"_initGovernor","internalType":"address"},{"type":"bytes","name":"_data","internalType":"bytes"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isGovernor","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferGovernance","inputs":[{"type":"address","name":"_newGovernor","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"upgradeTo","inputs":[{"type":"address","name":"newImplementation","internalType":"address"}]},{"type":"function","stateMutability":"payable","outputs":[],"name":"upgradeToAndCall","inputs":[{"type":"address","name":"newImplementation","internalType":"address"},{"type":"bytes","name":"data","internalType":"bytes"}]}]
              

Contract Creation Code

Verify & Publish
0x608060405234801561000f575f80fd5b50610025335f80516020610c1c83398151915255565b5f80516020610c1c833981519152546040516001600160a01b03909116905f907fc7c0c772add429241571afb3805861fb3cfa2af374534088b76cdb4325a87e9a908290a3610ba5806100775f395ff3fe608060405260043610610095575f3560e01c80635d36b19011610068578063cf7a1d771161004d578063cf7a1d771461015b578063d38bfff41461016e578063f851a4401461009f57610095565b80635d36b19014610123578063c7af33521461013757610095565b80630c340a241461009f5780633659cfe6146100dd5780634f1ef286146100fc5780635c60da1b1461010f575b61009d61018d565b005b3480156100aa575f80fd5b506100b36101bf565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b3480156100e8575f80fd5b5061009d6100f73660046109e4565b6101ed565b61009d61010a366004610a49565b61026c565b34801561011a575f80fd5b506100b361035b565b34801561012e575f80fd5b5061009d610384565b348015610142575f80fd5b5061014b610469565b60405190151581526020016100d4565b61009d610169366004610a98565b6104c5565b348015610179575f80fd5b5061009d6101883660046109e4565b610660565b6101bd6101b87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b61077a565b565b5f6101e87fc232501c7029f9750c88e82f620bc3f6b6f947017928916333387ff7ffec4d3d5490565b905090565b6101f5610469565b610260576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f43616c6c6572206973206e6f742074686520476f7665726e6f7200000000000060448201526064015b60405180910390fd5b61026981610798565b50565b610274610469565b6102da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f43616c6c6572206973206e6f742074686520476f7665726e6f720000000000006044820152606401610257565b6102e383610798565b5f8373ffffffffffffffffffffffffffffffffffffffff16838360405161030b929190610af5565b5f60405180830381855af49150503d805f8114610343576040519150601f19603f3d011682016040523d82523d5f602084013e610348565b606091505b5050905080610355575f80fd5b50505050565b5f6101e87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b7f62e5c7bc94de5ea5e81a993833d7bcc33b7809cca20e86d7b445afc340367afa5473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610460576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f4f6e6c79207468652070656e64696e6720476f7665726e6f722063616e20636f60448201527f6d706c6574652074686520636c61696d000000000000000000000000000000006064820152608401610257565b6101bd336107e4565b5f6104927fc232501c7029f9750c88e82f620bc3f6b6f947017928916333387ff7ffec4d3d5490565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b6104cd610469565b610533576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f43616c6c6572206973206e6f742074686520476f7665726e6f720000000000006044820152606401610257565b5f61055c7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b73ffffffffffffffffffffffffffffffffffffffff161461057b575f80fd5b6105a660017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd610b04565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc146105d4576105d4610b42565b6105dd8461090a565b8015610657575f8473ffffffffffffffffffffffffffffffffffffffff16838360405161060b929190610af5565b5f60405180830381855af49150503d805f8114610643576040519150601f19603f3d011682016040523d82523d5f602084013e610648565b606091505b5050905080610655575f80fd5b505b610355836107e4565b610668610469565b6106ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f43616c6c6572206973206e6f742074686520476f7665726e6f720000000000006044820152606401610257565b6106f6817f62e5c7bc94de5ea5e81a993833d7bcc33b7809cca20e86d7b445afc340367afa55565b8073ffffffffffffffffffffffffffffffffffffffff166107357fc232501c7029f9750c88e82f620bc3f6b6f947017928916333387ff7ffec4d3d5490565b73ffffffffffffffffffffffffffffffffffffffff167fa39cc5eb22d0f34d8beaefee8a3f17cc229c1a1d1ef87a5ad47313487b1c4f0d60405160405180910390a350565b365f80375f80365f845af43d5f803e808015610794573d5ff35b3d5ffd5b6107a18161090a565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a250565b73ffffffffffffffffffffffffffffffffffffffff8116610861576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4e657720476f7665726e6f7220697320616464726573732830290000000000006044820152606401610257565b8073ffffffffffffffffffffffffffffffffffffffff166108a07fc232501c7029f9750c88e82f620bc3f6b6f947017928916333387ff7ffec4d3d5490565b73ffffffffffffffffffffffffffffffffffffffff167fc7c0c772add429241571afb3805861fb3cfa2af374534088b76cdb4325a87e9a60405160405180910390a3610269817fc232501c7029f9750c88e82f620bc3f6b6f947017928916333387ff7ffec4d3d55565b803b610998576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603b60248201527f43616e6e6f742073657420612070726f787920696d706c656d656e746174696f60448201527f6e20746f2061206e6f6e2d636f6e7472616374206164647265737300000000006064820152608401610257565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b803573ffffffffffffffffffffffffffffffffffffffff811681146109df575f80fd5b919050565b5f602082840312156109f4575f80fd5b6109fd826109bc565b9392505050565b5f8083601f840112610a14575f80fd5b50813567ffffffffffffffff811115610a2b575f80fd5b602083019150836020828501011115610a42575f80fd5b9250929050565b5f805f60408486031215610a5b575f80fd5b610a64846109bc565b9250602084013567ffffffffffffffff811115610a7f575f80fd5b610a8b86828701610a04565b9497909650939450505050565b5f805f8060608587031215610aab575f80fd5b610ab4856109bc565b9350610ac2602086016109bc565b9250604085013567ffffffffffffffff811115610add575f80fd5b610ae987828801610a04565b95989497509550505050565b818382375f9101908152919050565b81810381811115610b3c577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52600160045260245ffdfea264697066735822122066bb104c9107d98fda19faa2e0fc8e54cffd371ed7546161451c2178829e291664736f6c63430008140033c232501c7029f9750c88e82f620bc3f6b6f947017928916333387ff7ffec4d3d

Deployed ByteCode

0x608060405260043610610095575f3560e01c80635d36b19011610068578063cf7a1d771161004d578063cf7a1d771461015b578063d38bfff41461016e578063f851a4401461009f57610095565b80635d36b19014610123578063c7af33521461013757610095565b80630c340a241461009f5780633659cfe6146100dd5780634f1ef286146100fc5780635c60da1b1461010f575b61009d61018d565b005b3480156100aa575f80fd5b506100b36101bf565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b3480156100e8575f80fd5b5061009d6100f73660046109e4565b6101ed565b61009d61010a366004610a49565b61026c565b34801561011a575f80fd5b506100b361035b565b34801561012e575f80fd5b5061009d610384565b348015610142575f80fd5b5061014b610469565b60405190151581526020016100d4565b61009d610169366004610a98565b6104c5565b348015610179575f80fd5b5061009d6101883660046109e4565b610660565b6101bd6101b87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b61077a565b565b5f6101e87fc232501c7029f9750c88e82f620bc3f6b6f947017928916333387ff7ffec4d3d5490565b905090565b6101f5610469565b610260576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f43616c6c6572206973206e6f742074686520476f7665726e6f7200000000000060448201526064015b60405180910390fd5b61026981610798565b50565b610274610469565b6102da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f43616c6c6572206973206e6f742074686520476f7665726e6f720000000000006044820152606401610257565b6102e383610798565b5f8373ffffffffffffffffffffffffffffffffffffffff16838360405161030b929190610af5565b5f60405180830381855af49150503d805f8114610343576040519150601f19603f3d011682016040523d82523d5f602084013e610348565b606091505b5050905080610355575f80fd5b50505050565b5f6101e87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b7f62e5c7bc94de5ea5e81a993833d7bcc33b7809cca20e86d7b445afc340367afa5473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610460576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f4f6e6c79207468652070656e64696e6720476f7665726e6f722063616e20636f60448201527f6d706c6574652074686520636c61696d000000000000000000000000000000006064820152608401610257565b6101bd336107e4565b5f6104927fc232501c7029f9750c88e82f620bc3f6b6f947017928916333387ff7ffec4d3d5490565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b6104cd610469565b610533576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f43616c6c6572206973206e6f742074686520476f7665726e6f720000000000006044820152606401610257565b5f61055c7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b73ffffffffffffffffffffffffffffffffffffffff161461057b575f80fd5b6105a660017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd610b04565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc146105d4576105d4610b42565b6105dd8461090a565b8015610657575f8473ffffffffffffffffffffffffffffffffffffffff16838360405161060b929190610af5565b5f60405180830381855af49150503d805f8114610643576040519150601f19603f3d011682016040523d82523d5f602084013e610648565b606091505b5050905080610655575f80fd5b505b610355836107e4565b610668610469565b6106ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f43616c6c6572206973206e6f742074686520476f7665726e6f720000000000006044820152606401610257565b6106f6817f62e5c7bc94de5ea5e81a993833d7bcc33b7809cca20e86d7b445afc340367afa55565b8073ffffffffffffffffffffffffffffffffffffffff166107357fc232501c7029f9750c88e82f620bc3f6b6f947017928916333387ff7ffec4d3d5490565b73ffffffffffffffffffffffffffffffffffffffff167fa39cc5eb22d0f34d8beaefee8a3f17cc229c1a1d1ef87a5ad47313487b1c4f0d60405160405180910390a350565b365f80375f80365f845af43d5f803e808015610794573d5ff35b3d5ffd5b6107a18161090a565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a250565b73ffffffffffffffffffffffffffffffffffffffff8116610861576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4e657720476f7665726e6f7220697320616464726573732830290000000000006044820152606401610257565b8073ffffffffffffffffffffffffffffffffffffffff166108a07fc232501c7029f9750c88e82f620bc3f6b6f947017928916333387ff7ffec4d3d5490565b73ffffffffffffffffffffffffffffffffffffffff167fc7c0c772add429241571afb3805861fb3cfa2af374534088b76cdb4325a87e9a60405160405180910390a3610269817fc232501c7029f9750c88e82f620bc3f6b6f947017928916333387ff7ffec4d3d55565b803b610998576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603b60248201527f43616e6e6f742073657420612070726f787920696d706c656d656e746174696f60448201527f6e20746f2061206e6f6e2d636f6e7472616374206164647265737300000000006064820152608401610257565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b803573ffffffffffffffffffffffffffffffffffffffff811681146109df575f80fd5b919050565b5f602082840312156109f4575f80fd5b6109fd826109bc565b9392505050565b5f8083601f840112610a14575f80fd5b50813567ffffffffffffffff811115610a2b575f80fd5b602083019150836020828501011115610a42575f80fd5b9250929050565b5f805f60408486031215610a5b575f80fd5b610a64846109bc565b9250602084013567ffffffffffffffff811115610a7f575f80fd5b610a8b86828701610a04565b9497909650939450505050565b5f805f8060608587031215610aab575f80fd5b610ab4856109bc565b9350610ac2602086016109bc565b9250604085013567ffffffffffffffff811115610add575f80fd5b610ae987828801610a04565b95989497509550505050565b818382375f9101908152919050565b81810381811115610b3c577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52600160045260245ffdfea264697066735822122066bb104c9107d98fda19faa2e0fc8e54cffd371ed7546161451c2178829e291664736f6c63430008140033