Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x0e4e7F2AecF408AFF4f82f067677050239bdC58A
Balance 0 ETH
Nonce 1
Code Size 645 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

645 bytes
0x60806040526004361061004a5760003560e01c80635c60da1b14610072578063715018a6146100ae5780638da5cb5b146100c3578063d69efdc5146100e1578063f2fde38b14610101575b36600080376000803660006001545af43d6000803e80801561006b573d6000f35b3d6000fd5b005b34801561007e57600080fd5b50600154610092906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b3480156100ba57600080fd5b50610070610121565b3480156100cf57600080fd5b506000546001600160a01b0316610092565b3480156100ed57600080fd5b506100706100fc36600461021f565b610135565b34801561010d57600080fd5b5061007061011c36600461021f565b61015f565b6101296101a2565b61013360006101cf565b565b61013d6101a2565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6101676101a2565b6001600160a01b03811661019657604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61019f816101cf565b50565b6000546001600160a01b031633146101335760405163118cdaa760e01b815233600482015260240161018d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561023157600080fd5b81356001600160a01b038116811461024857600080fd5b939250505056fea2646970667358221220cbd60be925f0750716b6168dd82ca343d4cb5637742b4c337e67d03ea354ee7064736f6c63430008170033

Verified Source Code Partial Match

Compiler: v0.8.23+commit.f704f362 EVM: istanbul Optimization: Yes (200 runs)
FungTokenProxy.sol 148 lines
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.23;

/**
 * @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 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) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

/**
 * @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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

contract Upgradeable is Ownable {
    address public implementation;

    constructor() Ownable(msg.sender) {}
}

contract Proxy is Upgradeable {

    constructor(address impl_) {
        replaceImplementation(impl_);
    }

    fallback() external payable {
        assembly {
            calldatacopy(0, 0, calldatasize())
            let result := delegatecall(gas(), sload(implementation.slot), 0, calldatasize(), 0, 0)
            returndatacopy(0, 0, returndatasize())
            switch result
            case 0 { revert(0, returndatasize()) }
            default { return(0, returndatasize()) }
        }
    }

    function replaceImplementation(address impl_) public onlyOwner {
        implementation = impl_;
    }
}

contract FungTokenProxy is Proxy {
    constructor(address impl_) Proxy(impl_) {}
}

Read Contract

implementation 0x5c60da1b → address
owner 0x8da5cb5b → address

Write Contract 3 functions

These functions modify contract state and require a wallet transaction to execute.

renounceOwnership 0x715018a6
No parameters
replaceImplementation 0xd69efdc5
address impl_
transferOwnership 0xf2fde38b
address newOwner

Recent Transactions

No transactions found for this address