Contract 0x15f7a67075c8b0883c355814aa4e6c1e19994af3

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xdeae1fce55309f4a7925cff3064f24cd374e0eee330675602b822a602d6fd3d1Safe Transfer Fr...59499602022-12-10 8:17:181 hr 3 mins ago0x9f4f94b5951a683b3211c07eb2f891957f0dc942 IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.338374496296 4,859.817259056
0x7567fbc6b78f37375dcfe424c0900125d50e828821744ad1768c5660cbefe2c7Set Approval For...59470202022-12-10 3:40:195 hrs 40 mins ago0xf17b7c89d285877796c9d6c2de5e278eeee1e199 IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.2561766281120
0x54aa9e4e2669a38c7c81709aa529878bbd0534cf26463299940d21a8e78af169Set Approval For...59442282022-12-09 23:16:5010 hrs 4 mins ago0x57adfcb90aef6002542c2ad98822a4a4ce9cae30 IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.256262523749 4,860.084276844
0x94a7d31befa29d63d0dcdfb86f72366e6e63d3d08bc751d331a3bde672236934Set Approval For...59411442022-12-09 18:25:5214 hrs 55 mins ago0x76be4664a2f7a72d37dfe67d839a4acf189a01d8 IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.2561909224430
0x2f0eb4439089d6cc05200880d116c273afdbd020b70bd6dc95faa3d319af97fbSafe Transfer Fr...59372082022-12-09 12:15:1021 hrs 5 mins ago0xd4b791a6a04713d25968a777c1190ef5897ae350 IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.338311256040
0x27f8cbf968d4f6da24ea1439675c958ec1f9f18261f489797a624f69f1822596Safe Transfer Fr...59372032022-12-09 12:14:4121 hrs 6 mins ago0xd4b791a6a04713d25968a777c1190ef5897ae350 IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.4112532170710
0x02f9c48783d68c87851fcb6926836e287dc7f215027976d09b565b4f6e6a368eTransfer From59323242022-12-09 4:34:171 day 4 hrs ago0x0b48e9fdaaba5586e15a7888e6ad56302744577e IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.2041760893890
0x3f15060fb0c1f62e15741baad61e799e7dd88fa8f22b07c99cdb58740d95ea67Transfer From59257672022-12-08 18:14:111 day 15 hrs ago0x0b48e9fdaaba5586e15a7888e6ad56302744577e IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.3246785892070
0xfb6c1a2f9aead31ee3622df2224ff405ff369fdbeea77fe6a78fc9a0f59ebbccReclaim59168272022-12-08 4:10:132 days 5 hrs ago0x64ee99355b7495545144aff78032d7f43784b4de IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.327450887283 4,861.351098369
0x587a98d2d3d7062e975ac2c5367128eddc6c508703bf882dedc714ec5a359c95Transfer From59168112022-12-08 4:08:432 days 5 hrs ago0xa4e9deee724a902c457e8fa1e37678495a5d08d9 IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.3976039357820
0x704ccac807cec787e68a47528c17dd5322804bef4a5d1280e046b5ef991d2d5aSafe Transfer Fr...59134102022-12-07 22:48:312 days 10 hrs ago0xb8932caf85c8d5ef925346efe213b5d486f004b2 IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.270795887286 4,861.511028084
0xb2df0201a7d4baff38993f5a8da2faddc886d664b5dc9edaac21365c9107500aSafe Transfer Fr...59130332022-12-07 22:13:002 days 11 hrs ago0xb8932caf85c8d5ef925346efe213b5d486f004b2 IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.411416585379 4,861.528653734
0x3e7af1b49c690a6e7aac076006bc1cc6bb3905b479595a4847340ba4f2d497b4Set Approval For...59037072022-12-07 7:33:493 days 1 hr ago0x971f312729066c8b72a022e2676452dc09cb2ced IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.263419253359 4,995.813483536
0xf6e059c0c363bb801143ce8f085c273fb75d290bc0f63fb705f4424f3b2e5c80Set Approval For...58984862022-12-06 23:21:143 days 9 hrs ago0x43dc8e95f8127727d67b7dca70d1630b14ce68b0 IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.2562951671150
0x4b82b1307906d83594fa7f75a39025757fd66bea9508dda2461ff6b0a8f37b79Set Approval For...58858132022-12-06 3:26:274 days 5 hrs ago0xa02f6cbb9c89c85d9b21fc0478b5de2b1e11df04 IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.2563260116960
0xb1345b70193d34d537ac7457f496c865c0ff9d721216c98a261c449edc22298aSet Approval For...58797722022-12-05 17:57:304 days 15 hrs ago0x3a22684e4762a5b9f3b896005edf59a82e226049 IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.257014328696 4,874.342449858
0xea67fc6c72b8a58c6eb7f5a7a3df0c91589bd1990d66adf1d6cb504d26b11a0dSafe Transfer Fr...58711912022-12-05 4:27:305 days 4 hrs ago0x6d4580525059456a10ccbd13531452532dde2506 IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.255521425561 4,863.461915185
0x012db19a1b8f8893186a4a34acafcfb9bcd55b230436a1446fe7ce8855077e56Safe Transfer Fr...58711842022-12-05 4:26:515 days 4 hrs ago0x6d4580525059456a10ccbd13531452532dde2506 IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.255521443057 4,863.462248195
0xa0834689bbe57df4c14cbb800996945474044336020dc110f2aa7fcbc95644dbSafe Transfer Fr...58711712022-12-05 4:25:375 days 4 hrs ago0x6d4580525059456a10ccbd13531452532dde2506 IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.255521474134 4,863.462839697
0x2effbc6d9882f064d4fbf78f47f51678219eab273102a9364f13b2e5e9a77726Reclaim58632362022-12-04 15:54:595 days 17 hrs ago0x3659eee4a15e303a5279b47745ce340a0f76aad2 IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.327617452477 4,863.823932978
0x79ab4cd05455fca037524e3812abf978d605d0f90208707fd9fb87685eeefb8fSet Approval For...58517092022-12-03 21:49:196 days 11 hrs ago0x3f95a82e656ba263e1fd4444dfd40ec03f3b1915 IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.256487906267 4,864.358713914
0xf80e2e3a9f8798c9ad9d8d64fb424c74b946e7769f923e769b43f4aaad2d0223Reclaim58317662022-12-02 14:19:487 days 19 hrs ago0x7f58def67a413730ec9e4a3bada4b3fa1facce17 IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.327715199748 4,865.275093503
0xa62d2ae154efc6fa7c79f98c7ab9fda775e5ff5043cbbe37a7783d2a6b6f0558Set Approval For...58176912022-12-01 16:07:388 days 17 hrs ago0x5148e8932a8f9e7bedb04303a12187e56446956c IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.2564913794590
0x7b03dafb1b4486f8c37f93d2abce940048c93bb2c6e2bc96dc4ebf9c57ee5a40Reclaim58165132022-12-01 14:15:488 days 19 hrs ago0xb8c4f222c097eaeb4b4d14f2e8ba127822137f22 IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.327728881873 4,865.478218965
0xd078c83c380fdb5cdbab1591492eae068383c0c5dbad76e755f68ba5e0fcf6a9Safe Transfer Fr...58164272022-12-01 14:07:408 days 19 hrs ago0x7d953ec2bb0f5ab2174da29cef7d2306f7719483 IN  0x15f7a67075c8b0883c355814aa4e6c1e19994af30 CRO0.338827308659 4,865.482110014
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0xdeCD85173D9Ed2bb7c8eb9c5BeA720a41c978539

Contract Name:
ERC1967Proxy

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at cronoscan.com on 2022-04-26
*/

// Sources flattened with hardhat v2.8.4 https://hardhat.org

// File @openzeppelin/contracts/proxy/[email protected]

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/Proxy.sol)

pragma solidity ^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 {
        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 @openzeppelin/contracts/proxy/beacon/[email protected]

// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)

pragma solidity ^0.8.0;

/**
 * @dev This is the interface that {BeaconProxy} expects of its beacon.
 */
interface IBeacon {
    /**
     * @dev Must return an address that can be used as a delegate call target.
     *
     * {BeaconProxy} will check that this address is a contract.
     */
    function implementation() external view returns (address);
}

// File @openzeppelin/contracts/utils/[email protected]

// 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);
            }
        }
    }
}

// File @openzeppelin/contracts/utils/[email protected]

// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot)
        internal
        pure
        returns (AddressSlot storage r)
    {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot)
        internal
        pure
        returns (BooleanSlot storage r)
    {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot)
        internal
        pure
        returns (Bytes32Slot storage r)
    {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot)
        internal
        pure
        returns (Uint256Slot storage r)
    {
        assembly {
            r.slot := slot
        }
    }
}

// File @openzeppelin/contracts/proxy/ERC1967/[email protected]

// OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Upgrade.sol)

pragma solidity ^0.8.2;

/**
 * @dev This abstract contract provides getters and event emitting update functions for
 * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
 *
 * _Available since v4.1._
 *
 * @custom:oz-upgrades-unsafe-allow delegatecall
 */
abstract contract ERC1967Upgrade {
    // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
    bytes32 private constant _ROLLBACK_SLOT =
        0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;

    /**
     * @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 Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed implementation);

    /**
     * @dev Returns the current implementation address.
     */
    function _getImplementation() internal view returns (address) {
        return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        require(
            Address.isContract(newImplementation),
            "ERC1967: new implementation is not a contract"
        );
        StorageSlot
            .getAddressSlot(_IMPLEMENTATION_SLOT)
            .value = newImplementation;
    }

    /**
     * @dev Perform implementation upgrade
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeTo(address newImplementation) internal {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    /**
     * @dev Perform implementation upgrade with additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCall(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        _upgradeTo(newImplementation);
        if (data.length > 0 || forceCall) {
            Address.functionDelegateCall(newImplementation, data);
        }
    }

    /**
     * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCallSecure(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        address oldImplementation = _getImplementation();

        // Initial upgrade and setup call
        _setImplementation(newImplementation);
        if (data.length > 0 || forceCall) {
            Address.functionDelegateCall(newImplementation, data);
        }

        // Perform rollback test if not already in progress
        StorageSlot.BooleanSlot storage rollbackTesting = StorageSlot
            .getBooleanSlot(_ROLLBACK_SLOT);
        if (!rollbackTesting.value) {
            // Trigger rollback using upgradeTo from the new implementation
            rollbackTesting.value = true;
            Address.functionDelegateCall(
                newImplementation,
                abi.encodeWithSignature("upgradeTo(address)", oldImplementation)
            );
            rollbackTesting.value = false;
            // Check rollback was effective
            require(
                oldImplementation == _getImplementation(),
                "ERC1967Upgrade: upgrade breaks further upgrades"
            );
            // Finally reset to the new implementation and log the upgrade
            _upgradeTo(newImplementation);
        }
    }

    /**
     * @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 internal constant _ADMIN_SLOT =
        0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

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

    /**
     * @dev Returns the current admin.
     */
    function _getAdmin() internal view returns (address) {
        return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 admin slot.
     */
    function _setAdmin(address newAdmin) private {
        require(
            newAdmin != address(0),
            "ERC1967: new admin is the zero address"
        );
        StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;
    }

    /**
     * @dev Changes the admin of the proxy.
     *
     * Emits an {AdminChanged} event.
     */
    function _changeAdmin(address newAdmin) internal {
        emit AdminChanged(_getAdmin(), newAdmin);
        _setAdmin(newAdmin);
    }

    /**
     * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
     * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.
     */
    bytes32 internal constant _BEACON_SLOT =
        0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;

    /**
     * @dev Emitted when the beacon is upgraded.
     */
    event BeaconUpgraded(address indexed beacon);

    /**
     * @dev Returns the current beacon.
     */
    function _getBeacon() internal view returns (address) {
        return StorageSlot.getAddressSlot(_BEACON_SLOT).value;
    }

    /**
     * @dev Stores a new beacon in the EIP1967 beacon slot.
     */
    function _setBeacon(address newBeacon) private {
        require(
            Address.isContract(newBeacon),
            "ERC1967: new beacon is not a contract"
        );
        require(
            Address.isContract(IBeacon(newBeacon).implementation()),
            "ERC1967: beacon implementation is not a contract"
        );
        StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;
    }

    /**
     * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does
     * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).
     *
     * Emits a {BeaconUpgraded} event.
     */
    function _upgradeBeaconToAndCall(
        address newBeacon,
        bytes memory data,
        bool forceCall
    ) internal {
        _setBeacon(newBeacon);
        emit BeaconUpgraded(newBeacon);
        if (data.length > 0 || forceCall) {
            Address.functionDelegateCall(
                IBeacon(newBeacon).implementation(),
                data
            );
        }
    }
}

// File @openzeppelin/contracts/proxy/ERC1967/[email protected]

// OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Proxy.sol)

pragma solidity ^0.8.0;

/**
 * @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.
 */
contract ERC1967Proxy is Proxy, ERC1967Upgrade {
    /**
     * @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) payable {
        assert(
            _IMPLEMENTATION_SLOT ==
                bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1)
        );
        _upgradeToAndCall(_logic, _data, false);
    }

    /**
     * @dev Returns the current implementation address.
     */
    function _implementation()
        internal
        view
        virtual
        override
        returns (address impl)
    {
        return ERC1967Upgrade._getImplementation();
    }
}

// File contracts/import.sol

pragma solidity >=0.8.4;

contract MockStub {
    function init() public {} // solhint-disable-line
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"stateMutability":"payable","type":"receive"}]

608060405260405161080138038061080183398101604081905261002291610303565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61041b565b6000805160206107ba8339815191521461007757634e487b7160e01b600052600160045260246000fd5b6100838282600061008a565b5050610480565b610093836100c0565b6000825111806100a05750805b156100bb576100b9838361010060201b6100291760201c565b505b505050565b6100c98161012c565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606061012583836040518060600160405280602781526020016107da602791396101ec565b9392505050565b61013f816102c160201b6100551760201c565b6101a65760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b806101cb6000805160206107ba83398151915260001b6102c760201b61005b1760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b6060833b61024b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b606482015260840161019d565b600080856001600160a01b03168560405161026691906103cc565b600060405180830381855af49150503d80600081146102a1576040519150601f19603f3d011682016040523d82523d6000602084013e6102a6565b606091505b5090925090506102b78282866102ca565b9695505050505050565b3b151590565b90565b606083156102d9575081610125565b8251156102e95782518084602001fd5b8160405162461bcd60e51b815260040161019d91906103e8565b60008060408385031215610315578182fd5b82516001600160a01b038116811461032b578283fd5b60208401519092506001600160401b0380821115610347578283fd5b818501915085601f83011261035a578283fd5b81518181111561036c5761036c61046a565b604051601f8201601f19908116603f011681019083821181831017156103945761039461046a565b816040528281528860208487010111156103ac578586fd5b6103bd83602083016020880161043e565b80955050505050509250929050565b600082516103de81846020870161043e565b9190910192915050565b602081526000825180602084015261040781604085016020870161043e565b601f01601f19169190910160400192915050565b60008282101561043957634e487b7160e01b81526011600452602481fd5b500390565b60005b83811015610459578181015183820152602001610441565b838111156100b95750506000910152565b634e487b7160e01b600052604160045260246000fd5b61032b8061048f6000396000f3fe60806040523661001357610011610017565b005b6100115b61002761002261005e565b6100a3565b565b606061004e83836040518060600160405280602781526020016102cf602791396100c7565b9392505050565b3b151590565b90565b600061009e7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e8080156100c2573d6000f35b3d6000fd5b6060833b61015c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e7472616374000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516101849190610231565b600060405180830381855af49150503d80600081146101bf576040519150601f19603f3d011682016040523d82523d6000602084013e6101c4565b606091505b50915091506101d48282866101de565b9695505050505050565b606083156101ed57508161004e565b8251156101fd5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610153919061024d565b6000825161024381846020870161029e565b9190910192915050565b602081526000825180602084015261026c81604085016020870161029e565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60005b838110156102b95781810151838201526020016102a1565b838111156102c8576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209af88003ae70ed20a781a976c8c9c68340646b56b8c9eadffbceee4c87edff2864736f6c63430008040033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564000000000000000000000000cc716898189abe4d46c4aabf9973a681b8411521000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001842994338c0000000000000000000000005c18d42cf88a66424d5b6bedb40ebfbb1038390b5dfacd0a0764eb7c9351dcd36f63cb5e2757014aa2592f976462be5c38ce9ca800000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000f434e532043524f20446f6d61696e7300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007434e532d43524f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002768747470733a2f2f6d657461646174612e63726f6e6f732e646f6d61696e732f63726f6e6f732f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed ByteCode Sourcemap

23109:939:0:-:0;;;;;;3198:11;:9;:11::i;:::-;23109:939;;2967:11;2604:113;2681:28;2691:17;:15;:17::i;:::-;2681:9;:28::i;:::-;2604:113::o;10844:302::-;10945:12;10995:143;11034:6;11059:4;10995:143;;;;;;;;;;;;;;;;;:20;:143::i;:::-;10975:163;10844:302;-1:-1:-1;;;10844:302:0:o;4885:387::-;5208:20;5256:8;;;4885:387::o;14364:183::-;14525:4;14500:40::o;23853:192::-;23965:12;24002:35;16358:66;16719:54;;;;16639:142;24002:35;23995:42;;23853:192;:::o;1077:1035::-;1420:14;1417:1;1414;1401:34;1741:1;1721;1688:14;1668:1;1635:14;1611:5;1580:177;1834:16;1831:1;1828;1813:38;1874:6;1943:68;;;;2062:16;2059:1;2052:27;1943:68;1979:16;1976:1;1969:27;11340:396;11485:12;5208:20;;11510:69;;;;;;;942:2:1;11510:69:0;;;924:21:1;981:2;961:18;;;954:30;1020:34;1000:18;;;993:62;1091:8;1071:18;;;1064:36;1117:19;;11510:69:0;;;;;;;;;11593:12;11607:23;11634:6;:19;;11654:4;11634:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11592:67;;;;11677:51;11694:7;11703:10;11715:12;11677:16;:51::i;:::-;11670:58;11340:396;-1:-1:-1;;;;;;11340:396:0:o;11964:712::-;12114:12;12143:7;12139:530;;;-1:-1:-1;12174:10:0;12167:17;;12139:530;12288:17;;:21;12284:374;;12486:10;12480:17;12547:15;12534:10;12530:2;12526:19;12519:44;12434:148;12629:12;12622:20;;;;;;;;;;;:::i;14:274:1:-;143:3;181:6;175:13;197:53;243:6;238:3;231:4;223:6;219:17;197:53;:::i;:::-;266:16;;;;;151:137;-1:-1:-1;;151:137:1:o;293:442::-;442:2;431:9;424:21;405:4;474:6;468:13;517:6;512:2;501:9;497:18;490:34;533:66;592:6;587:2;576:9;572:18;567:2;559:6;555:15;533:66;:::i;:::-;651:2;639:15;656:66;635:88;620:104;;;;726:2;616:113;;414:321;-1:-1:-1;;414:321:1:o;1147:258::-;1219:1;1229:113;1243:6;1240:1;1237:13;1229:113;;;1319:11;;;1313:18;1300:11;;;1293:39;1265:2;1258:10;1229:113;;;1360:6;1357:1;1354:13;1351:2;;;1395:1;1386:6;1381:3;1377:16;1370:27;1351:2;;1200:205;;;:::o

Swarm Source

ipfs://9af88003ae70ed20a781a976c8c9c68340646b56b8c9eadffbceee4c87edff28
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.