ETH Price: $3,269.76 (+4.38%)
Native

Token

USDT (USDT)

Overview

Max Total Supply

119,417.539748 USDT

Holders

1,254

Market

Price

$0.00 @ 0.000000 ETH

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 6 Decimals)

Balance
4.995005 USDT

Value
$0.00
0xc467ecbc6ae4cab851ff5b72f22892430f72235f
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
TransparentUpgradeableProxy

Compiler Version
v0.8.4+commit.c7e474f2

ZkSolc Version
v1.5.7

Optimization Enabled:
Yes with Mode z

Other Settings:
default evmVersion
File 1 of 7 : TransparentUpgradeableProxy.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1967/ERC1967Proxy.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 ERC1967Proxy {
    /**
     * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
     * optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}.
     */
    constructor(
        address _logic,
        address admin_,
        bytes memory _data
    ) payable ERC1967Proxy(_logic, _data) {
        assert(_ADMIN_SLOT == bytes32(uint256(keccak256("eip1967.proxy.admin")) - 1));
        _changeAdmin(admin_);
    }

    /**
     * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.
     */
    modifier ifAdmin() {
        if (msg.sender == _getAdmin()) {
            _;
        } 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_ = _getAdmin();
    }

    /**
     * @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 {
        _changeAdmin(newAdmin);
    }

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

    /**
     * @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 ifAdmin {
        _upgradeToAndCall(newImplementation, data, true);
    }

    /**
     * @dev Returns the current admin.
     */
    function _admin() internal view virtual returns (address) {
        return _getAdmin();
    }

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

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

pragma solidity ^0.8.0;

import "../Proxy.sol";
import "./ERC1967Upgrade.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.
 */
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 3 of 7 : Proxy.sol
// SPDX-License-Identifier: MIT

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 4 of 7 : ERC1967Upgrade.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.2;

import "../beacon/IBeacon.sol";
import "../../utils/Address.sol";
import "../../utils/StorageSlot.sol";

/**
 * @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 5 of 7 : IBeacon.sol
// SPDX-License-Identifier: MIT

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 6 of 7 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

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

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
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "mode": "z"
  },
  "outputSelection": {
    "*": {
      "*": [
        "abi",
        "metadata"
      ],
      "": [
        "ast"
      ]
    }
  },
  "detectMissingLibraries": false,
  "forceEVMLA": false,
  "enableEraVMExtensions": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"admin_","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"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"admin_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"implementation_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

9c4d535b000000000000000000000000000000000000000000000000000000000000000001000115fa47d9c314a3e0e26e29dcb8a7b0fd3123720a26d126572ddd9c258f00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000180000000000000000000000000f7b81229660f13617cf086b302b25edfebad186b000000000000000000000000d6d083163c525e6649285ca8b24d0e608ff52047000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000e41624f6c6000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000455534454000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004555344540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x0004000000000002000c0000000000020000006004100270000000ec0340019700030000003103550002000000010355000000ec0040019d0000000100200190000000200900008a000000670000c13d0000008002000039000000400020043f000000040030008c000001790000413d000000000201043b000000e002200270000001000020009c000000bb0000613d000001010020009c000000c50000613d000001020020009c0000013c0000613d000001030020009c0000014d0000613d000001040020009c000001790000c13d000000240030008c000001560000413d0000000002000416000000000002004b000001560000c13d0000000401100370000000000401043b000000ef0040009c000001560000213d0000000003000415000000fc01000041000000000101041a000000ef011001970000000002000411000000000012004b000001790000c13d000000400200043d000001080020009c000001e20000213d000600000003001d0000002001200039000000400010043f000700000002001d0000000000020435000a00000004001d00000000010004150000000a0110008a0000000501100210000800000004001d03ab037d0000040f000000000001004b000001880000613d000000f201000041000000000201041a000000f3022001970000000805000029000000000252019f000000000021041b000000400100043d000000ec0010009c000000ec0100804100000040011002100000000002000414000000ec0020009c000000ec02008041000000c002200210000000000112019f000000f4011001c70000800d020000390000000203000039000000f50400004103ab038e0000040f00000001002001900000000801000029000001560000613d00000007020000290000000003020433000000000003004b000000630000613d000000400300043d000000f60030009c000001e20000213d0000006004300039000000400040043f0000004004300039000000f70500004100000000005404350000002004300039000000f80500004100000000005404350000002704000039000000000043043503ab02f00000040f000000000100041500000006011000690000000001000002000001dc0000013d0000001f02300039000000ed022001970000008002200039000000400020043f0000001f0430018f000000ee053001980000008002500039000000750000613d0000008006000039000000000701034f000000007807043c0000000006860436000000000026004b000000710000c13d000000000004004b000000820000613d000000000151034f0000000304400210000000000502043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f0000000000120435000000600030008c000001560000413d000000800700043d000000ef0070009c000001560000213d000000a00600043d000000ef0060009c000001560000213d000000c00200043d000000f00020009c000001560000213d0000001f01200039000000000031004b0000000004000019000000f104008041000000f101100197000000000001004b0000000005000019000000f105004041000000f10010009c000000000504c019000000000005004b000001560000c13d00000080012000390000000001010433000000f00010009c000001e20000213d0000001f04100039000000000494016f0000003f04400039000000000494016f000000400800043d0000000004480019000000000084004b00000000050000390000000105004039000000f00040009c000001e20000213d0000000100500190000001e20000c13d0000008003300039000000400040043f0000000009180436000000a0022000390000000004210019000000000034004b000001560000213d000400800000003d0000000003000019000000000013004b0000017a0000813d00000000049300190000000005230019000000000505043300000000005404350000002003300039000000b30000013d0000000001000416000000000001004b000001560000c13d000000fc01000041000000000101041a000000ef011001970000000002000411000000000012004b000001480000613d000001790000013d000000440030008c000001560000413d0000000402100370000000000a02043b000000ef00a0009c000001560000213d0000002402100370000000000402043b000000f00040009c000001560000213d0000002302400039000000000032004b000001560000813d0000000402400039000000000121034f000000000101043b000000f00010009c000001560000213d00000000041400190000002404400039000000000034004b000001560000213d0000000006000415000000fc03000041000000000303041a000000ef033001970000000005000411000000000035004b000001790000c13d0000001f03100039000000000393016f0000003f03300039000000000393016f000000400700043d0000000003370019000000000073004b00000000050000390000000105004039000000f00030009c000001e20000213d0000000100500190000001e20000c13d000000400030043f0000000003170436000000000040007c000001560000213d000700000007001d000600000006001d00000000059101700000001f0610018f000000000453001900000020022000390000000202200367000001010000613d000000000702034f0000000008030019000000007907043c0000000008980436000000000048004b000000fd0000c13d000000000006004b0000010e0000613d000000000252034f0000000305600210000000000604043300000000065601cf000000000656022f000000000202043b0000010005500089000000000252022f00000000025201cf000000000262019f00000000002404350000000001130019000000000001043500090000000a001d0000000001000415000000090110008a000000050110021000080000000a001d03ab037d0000040f000000000001004b000001880000613d000000f201000041000000000201041a000000f3022001970000000805000029000000000252019f000000000021041b000000400100043d000000ec0010009c000000ec0100804100000040011002100000000002000414000000ec0020009c000000ec02008041000000c002200210000000000112019f000000f4011001c70000800d020000390000000203000039000000f50400004103ab038e0000040f000000010020019000000008010000290000000702000029000001560000613d000000400300043d000000f60030009c000001e20000213d0000006004300039000000400040043f0000004004300039000000f70600004100000000006404350000002004300039000000f8060000410000000000640435000000600000013d0000000001000416000000000001004b000001560000c13d000000fc01000041000000000101041a000000ef011001970000000002000411000000000012004b000001790000c13d000000f201000041000000000101041a000000ef01100197000000800010043f00000080010000390000002002000039000000000300001903ab03730000040f000000240030008c000001560000413d0000000002000416000000000002004b000001560000c13d0000000401100370000000000301043b000000ef0030009c000001580000a13d0000000001000019000003ad00010430000000fc01000041000000000101041a000000ef011001970000000002000411000000000012004b000001790000c13d000000800010043f000000a00030043f0000000001000414000000ec0010009c000000ec01008041000000c00110021000000105011001c70000800d02000039000800000003001d0000000103000039000000fe0400004103ab038e0000040f00000008030000290000000100200190000001560000613d000000000003004b000001d70000c13d000000400100043d00000064021000390000010603000041000000000032043500000044021000390000010703000041000000000032043500000024021000390000002603000039000001910000013d03ab02930000040f000700000008001d000600000006001d0000017f0000a13d00000000011900190000000000010435000500000009001d000b00000007001d00000000010004150000000b0110008a0000000501100210000800000007001d03ab037d0000040f000000000001004b000001940000c13d000000400100043d00000064021000390000010903000041000000000032043500000044021000390000010a03000041000000000032043500000024021000390000002d030000390000000000320435000000f9020000410000039d0000013d000000f201000041000000000201041a000000f3022001970000000805000029000000ef03500197000000000232019f000000000021041b000000400100043d000000ec0010009c000000ec0100804100000040011002100000000002000414000000ec0020009c000000ec02008041000000c002200210000000000112019f000000f4011001c70000800d020000390000000203000039000000f50400004103ab038e0000040f0000000100200190000000060200002900000008030000290000000701000029000001560000613d0000000001010433000000000001004b000001df0000c13d000000fc01000041000000000301041a000000ef04200197000000400100043d0000002002100039000800000004001d0000000000420435000700000003001d000000ef023001970000000000210435000000ec0010009c000000ec0100804100000040011002100000000002000414000000ec0020009c000000ec02008041000000c002200210000000000112019f000000fd011001c70000800d020000390000000103000039000000fe0400004103ab038e0000040f0000000100200190000001560000613d0000000802000029000000000002004b0000016f0000613d0000000701000029000000f301100197000000000121019f000000fc02000041000000000012041b000000200100003900000100001004430000012000000443000000ff01000041000003ac0001042e000000fc01000041000000000201041a000000f302200197000000000232019f000000000021041b000000400100043d00000000020000190000014b0000013d000000400400043d000000f60040009c000001e80000a13d0000010b01000041000000000010043f0000004101000039000000040010043f0000010c01000041000003ad000104300000006001400039000000400010043f0000004001400039000000f70200004100000000002104350000002701000039000300000004001d0000000002140436000000f801000041000200000002001d0000000000120435000c00000003001d00000000010004150000000c0110008a000000050110021003ab037d0000040f000000000001004b000002010000c13d000000400100043d0000006402100039000000fa0300004100000000003204350000004402100039000000fb03000041000001750000013d0000000701000029000000000401043300000000010004140000000802000029000000040020008c000002090000c13d00000001010000390000020d0000013d00000005030000290000000005000019000000000600001903ab02560000040f00000001030000320000022b0000c13d0000006002000039000000000001004b000002520000c13d0000000002020433000000000002004b000002540000c13d000000400400043d000800000004001d000000f901000041000000000014043500000004014000390000002002000039000000000021043500000003010000290000000003010433000700000003001d000000240140003900000000003104350000004402400039000000020100002903ab02860000040f00000007010000290000001f01100039000000200200008a000000000121016f0000004402100039000000080100002903ab036b0000040f000000f00030009c000000200600008a000001e20000213d0000001f02300039000000000262016f0000003f02200039000000000462016f000000400200043d0000000004420019000000000024004b00000000050000390000000105004039000000f00040009c000001e20000213d0000000100500190000001e20000c13d000000400040043f000000000732043600000000046301700000001f0530018f000400000007001d00000000034700190000000306000367000002490000613d000000000706034f0000000408000029000000007907043c0000000008980436000000000038004b000002450000c13d000000000005004b000002100000613d000000000446034f00000003055002100000000006030433000102500000003d000003a30000013d0000000000430435000002100000013d0000000602000029000001b10000013d000000040100002903ab036b0000040f0002000000000002000200000006001d000100000005001d000000ec0030009c000000ec030080410000004003300210000000ec0040009c000000ec040080410000006004400210000000000334019f000000ec0010009c000000ec01008041000000c001100210000000000113019f03ab03980000040f00000001090000290000006003100270000000ec03300197000000020030006c000000020400002900000000040340190000001f0540018f000000ee064001980000000004690019000002740000613d000000000701034f000000007807043c0000000009890436000000000049004b000002700000c13d000000010220018f000000000005004b000002820000613d000000000661034f0000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000100000003001f00030000000103550000000001020019000000000001042d0000000004000019000000000034004b0000028f0000813d00000000052400190000000006140019000000000606043300000000006504350000002004400039000002870000013d000002920000a13d00000000012300190000000000010435000000000001042d0001000000000002000000fc01000041000000000101041a000000ef011001970000000002000411000000000012004b000002ae0000c13d000000400100043d00000084021000390000010d03000041000000000032043500000064021000390000010e03000041000000000032043500000044021000390000010f030000410000000000320435000000240210003900000042030000390000000000320435000000f9020000410000000000210435000000040210003900000020030000390000000000320435000000a40200003903ab036b0000040f0000000203000367000000200900008a000000000400003100000000019401700000001f0540018f000000f202000041000000000202041a000002bc0000613d000000000603034f0000000007000019000000006806043c0000000007870436000000000017004b000002b80000c13d000000ef02200197000000000005004b000002ca0000613d000000000313034f0000000305500210000000000601043300000000065601cf000000000656022f000000000303043b0000010005500089000000000353022f00000000035301cf000000000363019f00000000003104350000000001000414000000040020008c0000000003000019000002d60000613d00000000030000190000000005000019000000000600001903ab02560000040f000000200900008a000000000001004b000000000300003900000001030060390000000304000367000000010200003100000000019201700000001f0520018f000002e10000613d000000000604034f0000000007000019000000006806043c0000000007870436000000000017004b000002dd0000c13d000000000005004b000002e90000613d000000000414034f00000003055002100000000006010433000102e80000003d000003a30000013d00000000004104350000000100300190000002ed0000613d000000000100001903ab036b0000040f0000000001000019000000000300001903ab03730000040f0004000000000002000100000003001d000200000002001d000300000001001d000400000001001d0000000001000415000000040110008a000000050110021003ab037d0000040f000000000001004b0000033e0000613d0000000201000029000000003401043400000000010004140000000302000029000000040020008c000003030000c13d0000000101000039000003060000013d0000000005000019000000000600001903ab02560000040f0000000105000032000000200400008a000003330000613d000001100050009c000003380000813d0000001f02500039000000000242016f0000003f02200039000000000342016f000000400200043d0000000003320019000000000023004b00000000060000390000000106004039000000f00030009c000003380000213d0000000100600190000003380000c13d000000400030043f000000000352043600000000064501700000001f0750018f00000000056300190000000308000367000003250000613d000000000908034f000000000a030019000000009b09043c000000000aba043600000000005a004b000003210000c13d000000000007004b000003350000613d000000000668034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f0000000000650435000003350000013d00000060020000390000008003000039000000000001004b0000034a0000613d000000000001042d0000010b01000041000000000010043f0000004101000039000000040010043f0000010c01000041000003ad00010430000000400100043d0000006402100039000000fa0300004100000000003204350000004402100039000000fb030000410000000000320435000000240210003900000026030000390000000000320435000000f9020000410000039d0000013d0000000002020433000000000002004b000003680000c13d000000400100043d000000f9020000410000000000210435000000040210003900000020030000390000000000320435000000240310003900000001020000290000000052020434000000000023043500000044031000390000000006000019000000000026004b000003610000813d00000000073600190000000008650019000000000808043300000000008704350000002006600039000003590000013d000003640000a13d000000000332001900000000000304350000001f02200039000000000242016f000000440220003903ab036b0000040f000000000103001903ab036b0000040f000000000001042f000000ec0010009c000000ec010080410000004001100210000000ec0020009c000000ec020080410000006002200210000000000112019f000003ad00010430000000ec0010009c000000ec010080410000004001100210000000ec0020009c000000ec020080410000006002200210000000000112019f000000e002300210000000000121019f000003ac0001042e000001110200004100000000002004430000000501100270000000000101003100000004001004430000000001000414000000ec0010009c000000ec01008041000000c00110021000000112011001c7000080020200003903ab03930000040f00000001002001900000038d0000613d000000000101043b000000000001042d000000000001042f00000391002104210000000102000039000000000001042d0000000002000019000000000001042d00000396002104230000000102000039000000000001042d0000000002000019000000000001042d0000039b002104250000000102000039000000000001042d0000000002000019000000000001042d0000000000210435000000040210003900000020030000390000000000320435000000840200003903ab036b0000040f00000000065601cf000000000656022f000000000404043b0000010005500089000000000454022f00000000045401cf000000000464019f000000010000013b000003ab00000432000003ac0001042e000003ad000104300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffff00000000000000000000000000000000000000000000000000000001ffffffe000000000000000000000000000000000000000000000000000000000ffffffe0000000000000000000000000ffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000ffffffffffffffff8000000000000000000000000000000000000000000000000000000000000000360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbcffffffffffffffffffffffff00000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000bc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b000000000000000000000000000000000000000000000000ffffffffffffff9f206661696c656400000000000000000000000000000000000000000000000000416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c08c379a0000000000000000000000000000000000000000000000000000000006e74726163740000000000000000000000000000000000000000000000000000416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610302000000000000000000000000000000000000400000000000000000000000007e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f000000020000000000000000000000000000004000000100000000000000000000000000000000000000000000000000000000000000000000000000f851a440000000000000000000000000000000000000000000000000000000004f1ef286000000000000000000000000000000000000000000000000000000005c60da1b000000000000000000000000000000000000000000000000000000008f283970000000000000000000000000000000000000000000000000000000003659cfe602000000000000000000000000000000000000400000008000000000000000006464726573730000000000000000000000000000000000000000000000000000455243313936373a206e65772061646d696e20697320746865207a65726f2061000000000000000000000000000000000000000000000000ffffffffffffffdf6f74206120636f6e747261637400000000000000000000000000000000000000455243313936373a206e657720696d706c656d656e746174696f6e206973206e4e487b710000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000240000000000000000000000006574000000000000000000000000000000000000000000000000000000000000696e2063616e6e6f742066616c6c6261636b20746f2070726f787920746172675472616e73706172656e745570677261646561626c6550726f78793a2061646d00000000000000000000000000000000000000000000000100000000000000001806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b8302000002000000000000000000000000000000240000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bc95c17b292cdeb956fe62475cac39a8563b06008eb03261ed04c53231568ad2

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

000000000000000000000000f7b81229660f13617cf086b302b25edfebad186b000000000000000000000000d6d083163c525e6649285ca8b24d0e608ff52047000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000e41624f6c6000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000455534454000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004555344540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _logic (address): 0xF7B81229660F13617cf086b302b25EDfebAD186B
Arg [1] : admin_ (address): 0xD6d083163c525e6649285Ca8b24d0E608FF52047
Arg [2] : _data (bytes): 0x1624f6c6000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000004555344540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045553445400000000000000000000000000000000000000000000000000000000

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 000000000000000000000000f7b81229660f13617cf086b302b25edfebad186b
Arg [1] : 000000000000000000000000d6d083163c525e6649285ca8b24d0e608ff52047
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000e4
Arg [4] : 1624f6c600000000000000000000000000000000000000000000000000000000
Arg [5] : 0000006000000000000000000000000000000000000000000000000000000000
Arg [6] : 000000a000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000600000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000455534454000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000455534454000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000000


[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.