Contract 0xd570ace65c43af47101fc6250fd6fc63d1c22a86

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xefe80801f13381b5ebc9c5f3aade5bb91ac3ac9ebb4ee2906c094145343619a0Transfer Ownersh...75216792022-03-07 16:47:08331 days 22 hrs ago0x6c26d7f792cfec88acdb382fe720bdce7c922776 IN  0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH0.000164094444 ETH
0xe2860ef109d1ea2adc6c559bf6273d9ad474f372d4daabf99f27cbab0700714eUpgrade And Call11647242021-09-17 20:25:05502 days 18 hrs ago0x6c26d7f792cfec88acdb382fe720bdce7c922776 IN  0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH0.0005909772 ETH
0xf1f276d9f48e8eaaba0657446d397dd4b2fd849b735e291180bbbe1215d1e024Upgrade And Call11644522021-09-17 20:18:20502 days 18 hrs ago0x6c26d7f792cfec88acdb382fe720bdce7c922776 IN  0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH0.000592516504 ETH
0x5532159a21afdd36b27c3d633bac432fc1b897879575add279d4f0c75116893eTransfer Ownersh...2282082021-08-31 20:10:12519 days 18 hrs agoArbitrum: Deployer 1 IN  0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH0.000104406344 ETH
0xb93743e64551e69c01dc3f8dc618f6d53bc20030853c387aac961d1676a6d094Transfer Ownersh...2281982021-08-31 20:05:41519 days 18 hrs agoArbitrum: Deployer 1 IN  0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH0.000104199366 ETH
0x9d9cce4650eeb1c697fbf5bbf505731952251027a2b65ccc53190869ed1f0cd9Transfer Ownersh...2281962021-08-31 20:03:12519 days 18 hrs agoArbitrum: Deployer 1 IN  0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH0.000104026885 ETH
0x87a0fbd51446cdc98fe4dd864d892af27f39d36bac20acbbb0441118e5adf1baUpgrade And Call2267862021-08-30 17:48:09520 days 21 hrs agoArbitrum: Deployer 1 IN  0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH0.000704610762 ETH
0xe93a270ee2ec40dfc1f7534cfd6c45af035075293c9c57118d944cafb03c5cd3Upgrade And Call2267852021-08-30 17:48:09520 days 21 hrs agoArbitrum: Deployer 1 IN  0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH0.000707088862 ETH
0xaa2a503ca6469c771da72d0f04e2afcbe342d9491f620c6b0f7a553c972602daUpgrade And Call2267842021-08-30 17:47:17520 days 21 hrs agoArbitrum: Deployer 1 IN  0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH0.000704626003 ETH
0x3ced0ee009785e4b17f388a9da4d27fa77c77059c91e8349e8ddf6ba133ef62eUpgrade And Call2267832021-08-30 17:47:17520 days 21 hrs agoArbitrum: Deployer 1 IN  0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH0.000707102311 ETH
0x6729e8a4103b6074233302df728b2651392cc833939ce1d97611e167241fe667Upgrade And Call2247772021-08-26 16:19:50524 days 22 hrs agoArbitrum: Deployer 1 IN  0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH0.000502191011 ETH
0xcfb27bbd68d6d2cde5cd3f37261633641942be4d9b5af04d47005945965859cbUpgrade And Call2247762021-08-26 16:19:50524 days 22 hrs agoArbitrum: Deployer 1 IN  0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH0.000504963663 ETH
0x4493b489b9d332078d3dc0ead005a04be3be264a4f2bc32949c19529455804c6Upgrade And Call2247752021-08-26 16:19:50524 days 22 hrs agoArbitrum: Deployer 1 IN  0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH0.000503109423 ETH
0x5eac0a26fe108aefb7fe582a4e496463befe69c8fccdb041de9fadbf72190662Upgrade And Call2247742021-08-26 16:19:50524 days 22 hrs agoArbitrum: Deployer 1 IN  0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH0.00050219972 ETH
0x5a435697cadb8ffab0b4e0e9cb0405f4727be3af14c68305a7fb123f7f27bc2fUpgrade387732021-06-28 22:19:37583 days 16 hrs agoArbitrum: Deployer 1 IN  0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH0.000093363545 ETH
0xfa600749327bae93f8d51d46836931d709aab922c6b35f2ea0eb059e8b1fc2f2Upgrade380242021-06-28 17:49:55583 days 21 hrs agoArbitrum: Deployer 1 IN  0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH0.000093178673 ETH
0xb8c4aad3b1752310f0345d507baab468543c5e3a836b9dddaee73ef3a74a4bcdUpgrade379972021-06-28 17:41:16583 days 21 hrs agoArbitrum: Deployer 1 IN  0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH0.000093362745 ETH
0x295bd871d90460c79611e3df98b6485415ec24130c31c6736f3971697fd2f12bUpgrade And Call287552021-06-26 14:01:05586 days 1 hr agoArbitrum: Deployer 1 IN  0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH0.000155860603 ETH
0x4e12ef6c0cb9089632488f4796b6c46818908d29b4547432506dfd28e0e9017bUpgrade And Call287532021-06-26 14:01:05586 days 1 hr agoArbitrum: Deployer 1 IN  0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH0.000155861912 ETH
0x128bb326c1c58976a9b1db19857ffabdd7297b62898ef291c96fdb924288639eUpgrade221592021-06-24 21:03:19587 days 17 hrs agoArbitrum: Deployer 1 IN  0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH0.000129030228 ETH
0xaaac60311dae18f4986c17b15b0cd82557cf2cf9f13d73b8fc1b9b3654164fbeUpgrade221342021-06-24 20:54:39587 days 18 hrs agoArbitrum: Deployer 1 IN  0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH0.000128776018 ETH
0x6b49368bddf6ff1fec94a7541ec81758996c76b222752174d18812947e05b2ba0x6080604021062021-06-15 19:08:25596 days 19 hrs agoArbitrum: Deployer 1 IN  Create: ProxyAdmin0 ETH0.000682879339 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x5ccab3c5a60e27bfccaca69ac86a3b0bfd9315e2c583f08fedf9e355c56ac2ca439517812022-12-06 1:37:0558 days 13 hrs ago 0xd570ace65c43af47101fc6250fd6fc63d1c22a86 Arbitrum One: L2 Custom Gateway0 ETH
0x5ccab3c5a60e27bfccaca69ac86a3b0bfd9315e2c583f08fedf9e355c56ac2ca439517812022-12-06 1:37:0558 days 13 hrs ago 0x98e4db7e07e584f89a2f6043e7b7c89dc27769ed 0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH
0x1608ac4dc927c1b322d906419400226634fbf6e68e3fec72316d2e0a3b76c141197394082022-08-08 17:33:55177 days 21 hrs ago 0xd570ace65c43af47101fc6250fd6fc63d1c22a86 Arbitrum One: L2 WETH Gateway0 ETH
0x1608ac4dc927c1b322d906419400226634fbf6e68e3fec72316d2e0a3b76c141197394082022-08-08 17:33:55177 days 21 hrs ago 0x98e4db7e07e584f89a2f6043e7b7c89dc27769ed 0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH
0x1608ac4dc927c1b322d906419400226634fbf6e68e3fec72316d2e0a3b76c141197394082022-08-08 17:33:55177 days 21 hrs ago 0xd570ace65c43af47101fc6250fd6fc63d1c22a86 Arbitrum One: L2 Custom Gateway0 ETH
0x1608ac4dc927c1b322d906419400226634fbf6e68e3fec72316d2e0a3b76c141197394082022-08-08 17:33:55177 days 21 hrs ago 0x98e4db7e07e584f89a2f6043e7b7c89dc27769ed 0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH
0x1608ac4dc927c1b322d906419400226634fbf6e68e3fec72316d2e0a3b76c141197394082022-08-08 17:33:55177 days 21 hrs ago 0xd570ace65c43af47101fc6250fd6fc63d1c22a86 Arbitrum One: L2 ERC20 Gateway0 ETH
0x1608ac4dc927c1b322d906419400226634fbf6e68e3fec72316d2e0a3b76c141197394082022-08-08 17:33:55177 days 21 hrs ago 0x98e4db7e07e584f89a2f6043e7b7c89dc27769ed 0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH
0x1608ac4dc927c1b322d906419400226634fbf6e68e3fec72316d2e0a3b76c141197394082022-08-08 17:33:55177 days 21 hrs ago 0xd570ace65c43af47101fc6250fd6fc63d1c22a86 Arbitrum One: L2 Gateway Router0 ETH
0x1608ac4dc927c1b322d906419400226634fbf6e68e3fec72316d2e0a3b76c141197394082022-08-08 17:33:55177 days 21 hrs ago 0x98e4db7e07e584f89a2f6043e7b7c89dc27769ed 0xd570ace65c43af47101fc6250fd6fc63d1c22a860 ETH
0xe2860ef109d1ea2adc6c559bf6273d9ad474f372d4daabf99f27cbab0700714e11647242021-09-17 20:25:05502 days 18 hrs ago 0xd570ace65c43af47101fc6250fd6fc63d1c22a86 0xe71d43c9da461d01a0eeeabd253a52a7aeef75380 ETH
0xe2860ef109d1ea2adc6c559bf6273d9ad474f372d4daabf99f27cbab0700714e11647242021-09-17 20:25:05502 days 18 hrs ago 0xd570ace65c43af47101fc6250fd6fc63d1c22a86 Arbitrum One: L2 Custom Gateway0 ETH
0xf1f276d9f48e8eaaba0657446d397dd4b2fd849b735e291180bbbe1215d1e02411644522021-09-17 20:18:20502 days 18 hrs ago 0xd570ace65c43af47101fc6250fd6fc63d1c22a86 0x86b4b312140b4117a7b0d252ec53fa6d0753fe850 ETH
0xf1f276d9f48e8eaaba0657446d397dd4b2fd849b735e291180bbbe1215d1e02411644522021-09-17 20:18:20502 days 18 hrs ago 0xd570ace65c43af47101fc6250fd6fc63d1c22a86 Arbitrum One: L2 Custom Gateway0 ETH
0x87a0fbd51446cdc98fe4dd864d892af27f39d36bac20acbbb0441118e5adf1ba2267862021-08-30 17:48:09520 days 21 hrs ago 0xd570ace65c43af47101fc6250fd6fc63d1c22a86 0x0db4f16c99b0ae9b00fc09bf69b36c7d73c45cbe0 ETH
0x87a0fbd51446cdc98fe4dd864d892af27f39d36bac20acbbb0441118e5adf1ba2267862021-08-30 17:48:09520 days 21 hrs ago 0xd570ace65c43af47101fc6250fd6fc63d1c22a86 Arbitrum One: L2 WETH Gateway0 ETH
0xe93a270ee2ec40dfc1f7534cfd6c45af035075293c9c57118d944cafb03c5cd32267852021-08-30 17:48:09520 days 21 hrs ago 0xd570ace65c43af47101fc6250fd6fc63d1c22a86 0xe71d43c9da461d01a0eeeabd253a52a7aeef75380 ETH
0xe93a270ee2ec40dfc1f7534cfd6c45af035075293c9c57118d944cafb03c5cd32267852021-08-30 17:48:09520 days 21 hrs ago 0xd570ace65c43af47101fc6250fd6fc63d1c22a86 Arbitrum One: L2 Custom Gateway0 ETH
0xaa2a503ca6469c771da72d0f04e2afcbe342d9491f620c6b0f7a553c972602da2267842021-08-30 17:47:17520 days 21 hrs ago 0xd570ace65c43af47101fc6250fd6fc63d1c22a86 0xede95739749bfa021134e41f520d784c99323d6b0 ETH
0xaa2a503ca6469c771da72d0f04e2afcbe342d9491f620c6b0f7a553c972602da2267842021-08-30 17:47:17520 days 21 hrs ago 0xd570ace65c43af47101fc6250fd6fc63d1c22a86 Arbitrum One: L2 ERC20 Gateway0 ETH
0x3ced0ee009785e4b17f388a9da4d27fa77c77059c91e8349e8ddf6ba133ef62e2267832021-08-30 17:47:17520 days 21 hrs ago 0xd570ace65c43af47101fc6250fd6fc63d1c22a86 0x176a9d89d235512ad5cb4b6a0879d704d8315ef80 ETH
0x3ced0ee009785e4b17f388a9da4d27fa77c77059c91e8349e8ddf6ba133ef62e2267832021-08-30 17:47:17520 days 21 hrs ago 0xd570ace65c43af47101fc6250fd6fc63d1c22a86 Arbitrum One: L2 Gateway Router0 ETH
0x6729e8a4103b6074233302df728b2651392cc833939ce1d97611e167241fe6672247772021-08-26 16:19:50524 days 22 hrs ago 0xd570ace65c43af47101fc6250fd6fc63d1c22a86 0xc4940069140142236d4065b866018f7b2bec77fd0 ETH
0x6729e8a4103b6074233302df728b2651392cc833939ce1d97611e167241fe6672247772021-08-26 16:19:50524 days 22 hrs ago 0xd570ace65c43af47101fc6250fd6fc63d1c22a86 Arbitrum One: L2 WETH Gateway0 ETH
0xcfb27bbd68d6d2cde5cd3f37261633641942be4d9b5af04d47005945965859cb2247762021-08-26 16:19:50524 days 22 hrs ago 0xd570ace65c43af47101fc6250fd6fc63d1c22a86 0xb91f4be773f5a1b9b0dc1085663b3535a6ebeee20 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ProxyAdmin

Compiler Version
v0.6.11+commit.5ef660b1

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 7 : ProxyAdmin.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../access/Ownable.sol";
import "./TransparentUpgradeableProxy.sol";

/**
 * @dev This is an auxiliary contract meant to be assigned as the admin of a {TransparentUpgradeableProxy}. For an
 * explanation of why you would want to use this see the documentation for {TransparentUpgradeableProxy}.
 */
contract ProxyAdmin is Ownable {

    /**
     * @dev Returns the current implementation of `proxy`.
     *
     * Requirements:
     *
     * - This contract must be the admin of `proxy`.
     */
    function getProxyImplementation(TransparentUpgradeableProxy proxy) public view virtual returns (address) {
        // We need to manually run the static call since the getter cannot be flagged as view
        // bytes4(keccak256("implementation()")) == 0x5c60da1b
        (bool success, bytes memory returndata) = address(proxy).staticcall(hex"5c60da1b");
        require(success);
        return abi.decode(returndata, (address));
    }

    /**
     * @dev Returns the current admin of `proxy`.
     *
     * Requirements:
     *
     * - This contract must be the admin of `proxy`.
     */
    function getProxyAdmin(TransparentUpgradeableProxy proxy) public view virtual returns (address) {
        // We need to manually run the static call since the getter cannot be flagged as view
        // bytes4(keccak256("admin()")) == 0xf851a440
        (bool success, bytes memory returndata) = address(proxy).staticcall(hex"f851a440");
        require(success);
        return abi.decode(returndata, (address));
    }

    /**
     * @dev Changes the admin of `proxy` to `newAdmin`.
     *
     * Requirements:
     *
     * - This contract must be the current admin of `proxy`.
     */
    function changeProxyAdmin(TransparentUpgradeableProxy proxy, address newAdmin) public virtual onlyOwner {
        proxy.changeAdmin(newAdmin);
    }

    /**
     * @dev Upgrades `proxy` to `implementation`. See {TransparentUpgradeableProxy-upgradeTo}.
     *
     * Requirements:
     *
     * - This contract must be the admin of `proxy`.
     */
    function upgrade(TransparentUpgradeableProxy proxy, address implementation) public virtual onlyOwner {
        proxy.upgradeTo(implementation);
    }

    /**
     * @dev Upgrades `proxy` to `implementation` and calls a function on the new implementation. See
     * {TransparentUpgradeableProxy-upgradeToAndCall}.
     *
     * Requirements:
     *
     * - This contract must be the admin of `proxy`.
     */
    function upgradeAndCall(TransparentUpgradeableProxy proxy, address implementation, bytes memory data) public payable virtual onlyOwner {
        proxy.upgradeToAndCall{value: msg.value}(implementation, data);
    }
}

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

pragma solidity >=0.6.0 <0.8.0;

import "../utils/Context.sol";
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

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

pragma solidity >=0.6.0 <0.8.0;

import "./UpgradeableProxy.sol";

/**
 * @dev This contract implements a proxy that is upgradeable by an admin.
 *
 * To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector
 * clashing], which can potentially be used in an attack, this contract uses the
 * https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two
 * things that go hand in hand:
 *
 * 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if
 * that call matches one of the admin functions exposed by the proxy itself.
 * 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the
 * implementation. If the admin tries to call a function on the implementation it will fail with an error that says
 * "admin cannot fallback to proxy target".
 *
 * These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing
 * the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due
 * to sudden errors when trying to call a function from the proxy implementation.
 *
 * Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way,
 * you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.
 */
contract TransparentUpgradeableProxy is UpgradeableProxy {
    /**
     * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
     * optionally initialized with `_data` as explained in {UpgradeableProxy-constructor}.
     */
    constructor(address _logic, address admin_, bytes memory _data) public payable UpgradeableProxy(_logic, _data) {
        assert(_ADMIN_SLOT == bytes32(uint256(keccak256("eip1967.proxy.admin")) - 1));
        _setAdmin(admin_);
    }

    /**
     * @dev Emitted when the admin account has changed.
     */
    event AdminChanged(address previousAdmin, address newAdmin);

    /**
     * @dev Storage slot with the admin of the contract.
     * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 private constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.
     */
    modifier ifAdmin() {
        if (msg.sender == _admin()) {
            _;
        } else {
            _fallback();
        }
    }

    /**
     * @dev Returns the current admin.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.
     *
     * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
     * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
     * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`
     */
    function admin() external ifAdmin returns (address admin_) {
        admin_ = _admin();
    }

    /**
     * @dev Returns the current implementation.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.
     *
     * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
     * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
     * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`
     */
    function implementation() external ifAdmin returns (address implementation_) {
        implementation_ = _implementation();
    }

    /**
     * @dev Changes the admin of the proxy.
     *
     * Emits an {AdminChanged} event.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.
     */
    function changeAdmin(address newAdmin) external virtual ifAdmin {
        require(newAdmin != address(0), "TransparentUpgradeableProxy: new admin is the zero address");
        emit AdminChanged(_admin(), newAdmin);
        _setAdmin(newAdmin);
    }

    /**
     * @dev Upgrade the implementation of the proxy.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.
     */
    function upgradeTo(address newImplementation) external virtual ifAdmin {
        _upgradeTo(newImplementation);
    }

    /**
     * @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified
     * by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the
     * proxied contract.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}.
     */
    function upgradeToAndCall(address newImplementation, bytes calldata data) external payable virtual ifAdmin {
        _upgradeTo(newImplementation);
        Address.functionDelegateCall(newImplementation, data);
    }

    /**
     * @dev Returns the current admin.
     */
    function _admin() internal view virtual returns (address adm) {
        bytes32 slot = _ADMIN_SLOT;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            adm := sload(slot)
        }
    }

    /**
     * @dev Stores a new address in the EIP1967 admin slot.
     */
    function _setAdmin(address newAdmin) private {
        bytes32 slot = _ADMIN_SLOT;

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

    /**
     * @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.
     */
    function _beforeFallback() internal virtual override {
        require(msg.sender != _admin(), "TransparentUpgradeableProxy: admin cannot fallback to proxy target");
        super._beforeFallback();
    }
}

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

pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

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

pragma solidity >=0.6.0 <0.8.0;

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

/**
 * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an
 * implementation address that can be changed. This address is stored in storage in the location specified by
 * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the
 * implementation behind the proxy.
 *
 * Upgradeability is only provided internally through {_upgradeTo}. For an externally upgradeable proxy see
 * {TransparentUpgradeableProxy}.
 */
contract UpgradeableProxy is Proxy {
    /**
     * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.
     *
     * If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded
     * function call, and allows initializating the storage of the proxy like a Solidity constructor.
     */
    constructor(address _logic, bytes memory _data) public payable {
        assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1));
        _setImplementation(_logic);
        if(_data.length > 0) {
            Address.functionDelegateCall(_logic, _data);
        }
    }

    /**
     * @dev Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed 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 private constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Returns the current implementation address.
     */
    function _implementation() internal view virtual override 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.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeTo(address newImplementation) internal virtual {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    /**
     * @dev Stores a new address in the EIP1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        require(Address.isContract(newImplementation), "UpgradeableProxy: new implementation is not a contract");

        bytes32 slot = _IMPLEMENTATION_SLOT;

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

File 6 of 7 : Proxy.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
 * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
 * be specified by overriding the virtual {_implementation} function.
 *
 * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a
 * different contract through the {_delegate} function.
 *
 * The success and return data of the delegated call will be returned back to the caller of the proxy.
 */
abstract contract Proxy {
    /**
     * @dev Delegates the current call to `implementation`.
     *
     * This function does not return to its internall call site, it will return directly to the external caller.
     */
    function _delegate(address implementation) internal virtual {
        // 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(), implementation, 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 This is a virtual function that should be overriden so it returns the address to which the fallback function
     * and {_fallback} should delegate.
     */
    function _implementation() internal view virtual returns (address);

    /**
     * @dev Delegates the current call to the address returned by `_implementation()`.
     *
     * This function does not return to its internall call site, it will return directly to the external caller.
     */
    function _fallback() internal virtual {
        _beforeFallback();
        _delegate(_implementation());
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
     * function in the contract matches the call data.
     */
    fallback () external payable virtual {
        _fallback();
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
     * is empty.
     */
    receive () external payable virtual {
        _fallback();
    }

    /**
     * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
     * call, or as part of the Solidity `fallback` or `receive` functions.
     *
     * If overriden should call `super._beforeFallback()`.
     */
    function _beforeFallback() internal virtual {
    }
}

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

pragma solidity >=0.6.2 <0.8.0;

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

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

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

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

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

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

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

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

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

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

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

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"contract TransparentUpgradeableProxy","name":"proxy","type":"address"},{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeProxyAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract TransparentUpgradeableProxy","name":"proxy","type":"address"}],"name":"getProxyAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract TransparentUpgradeableProxy","name":"proxy","type":"address"}],"name":"getProxyImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract TransparentUpgradeableProxy","name":"proxy","type":"address"},{"internalType":"address","name":"implementation","type":"address"}],"name":"upgrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract TransparentUpgradeableProxy","name":"proxy","type":"address"},{"internalType":"address","name":"implementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeAndCall","outputs":[],"stateMutability":"payable","type":"function"}]

608060405234801561001057600080fd5b5060006100246001600160e01b0361007316565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350610077565b3390565b610886806100866000396000f3fe60806040526004361061006b5760003560e01c8063204e1c7a14610070578063715018a6146100bf5780637eff275e146100d65780638da5cb5b146101115780639623609d1461012657806399a88ec4146101e5578063f2fde38b14610220578063f3b7dead14610253575b600080fd5b34801561007c57600080fd5b506100a36004803603602081101561009357600080fd5b50356001600160a01b0316610286565b604080516001600160a01b039092168252519081900360200190f35b3480156100cb57600080fd5b506100d4610318565b005b3480156100e257600080fd5b506100d4600480360360408110156100f957600080fd5b506001600160a01b03813581169160200135166103c4565b34801561011d57600080fd5b506100a361049a565b6100d46004803603606081101561013c57600080fd5b6001600160a01b03823581169260208101359091169181019060608101604082013564010000000081111561017057600080fd5b82018360208201111561018257600080fd5b803590602001918460018302840111640100000000831117156101a457600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506104a9945050505050565b3480156101f157600080fd5b506100d46004803603604081101561020857600080fd5b506001600160a01b03813581169160200135166105eb565b34801561022c57600080fd5b506100d46004803603602081101561024357600080fd5b50356001600160a01b03166106a5565b34801561025f57600080fd5b506100a36004803603602081101561027657600080fd5b50356001600160a01b03166107a7565b6000806060836001600160a01b03166040518080635c60da1b60e01b8152506004019050600060405180830381855afa9150503d80600081146102e5576040519150601f19603f3d011682016040523d82523d6000602084013e6102ea565b606091505b5091509150816102f957600080fd5b80806020019051602081101561030e57600080fd5b5051949350505050565b610320610806565b6001600160a01b031661033161049a565b6001600160a01b03161461037a576040805162461bcd60e51b81526020600482018190526024820152600080516020610831833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6103cc610806565b6001600160a01b03166103dd61049a565b6001600160a01b031614610426576040805162461bcd60e51b81526020600482018190526024820152600080516020610831833981519152604482015290519081900360640190fd5b816001600160a01b0316638f283970826040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b15801561047e57600080fd5b505af1158015610492573d6000803e3d6000fd5b505050505050565b6000546001600160a01b031690565b6104b1610806565b6001600160a01b03166104c261049a565b6001600160a01b03161461050b576040805162461bcd60e51b81526020600482018190526024820152600080516020610831833981519152604482015290519081900360640190fd5b826001600160a01b0316634f1ef2863484846040518463ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610581578181015183820152602001610569565b50505050905090810190601f1680156105ae5780820380516001836020036101000a031916815260200191505b5093505050506000604051808303818588803b1580156105cd57600080fd5b505af11580156105e1573d6000803e3d6000fd5b5050505050505050565b6105f3610806565b6001600160a01b031661060461049a565b6001600160a01b03161461064d576040805162461bcd60e51b81526020600482018190526024820152600080516020610831833981519152604482015290519081900360640190fd5b816001600160a01b0316633659cfe6826040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b15801561047e57600080fd5b6106ad610806565b6001600160a01b03166106be61049a565b6001600160a01b031614610707576040805162461bcd60e51b81526020600482018190526024820152600080516020610831833981519152604482015290519081900360640190fd5b6001600160a01b03811661074c5760405162461bcd60e51b815260040180806020018281038252602681526020018061080b6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000806060836001600160a01b031660405180806303e1469160e61b8152506004019050600060405180830381855afa9150503d80600081146102e5576040519150601f19603f3d011682016040523d82523d6000602084013e6102ea565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122005019646333ea388b0c67bda202f0b0f9e694623274a3b0b0cd706bdc2821b5464736f6c634300060b0033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.