ETH Price: $2,477.13 (+1.54%)

Token

Fungify NFT (FUNGNFT)
 

Overview

Max Total Supply

64 FUNGNFT

Holders

27

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
7 FUNGNFT
0xC19df7371AD9D31bc903CB651AFe7E29a2C708a1
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
FungifyNFTProxy

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2024-03-05
*/

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

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

/**
 * @dev Contract module which provides access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is specified at deployment time in the constructor for `Ownable`. This
 * can later be changed with {transferOwnership} and {acceptOwnership}.
 *
 * This module is used through inheritance. It will make available all functions
 * from parent (Ownable).
 */
abstract contract Ownable2Step is Ownable {
    address private _pendingOwner;

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

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

    /**
     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual override onlyOwner {
        _pendingOwner = newOwner;
        emit OwnershipTransferStarted(owner(), newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual override {
        delete _pendingOwner;
        super._transferOwnership(newOwner);
    }

    /**
     * @dev The new owner accepts the ownership transfer.
     */
    function acceptOwnership() public virtual {
        address sender = _msgSender();
        if (pendingOwner() != sender) {
            revert OwnableUnauthorizedAccount(sender);
        }
        _transferOwnership(sender);
    }
}

event ReplaceImplementationStarted(address indexed previousImplementation, address indexed newImplementation);
event ReplaceImplementation(address indexed previousImplementation, address indexed newImplementation);
error Unauthorized();

contract Upgradeable2Step is Ownable2Step {
    address public pendingImplementation;
    address public implementation;

    constructor() Ownable(msg.sender) {}

    // called on an inheriting proxy contract
    function replaceImplementation(address impl_) public onlyOwner {
        pendingImplementation = impl_;
        emit ReplaceImplementationStarted(implementation, impl_);
    }

    // called from an inheriting implementation contract
    function acceptImplementation() public {
        if (msg.sender != pendingImplementation) {
            revert OwnableUnauthorizedAccount(msg.sender);
        }
        emit ReplaceImplementation(implementation, msg.sender);
        delete pendingImplementation;
        implementation = msg.sender;
    }

    // called on an inheriting implementation contract
    function becomeImplementation(Upgradeable2Step proxy) public {
        if (msg.sender != proxy.owner()) {
            revert Unauthorized();
        }
        proxy.acceptImplementation();
    }
}

contract Proxy2Step is Upgradeable2Step {

    constructor(address impl_) {
        implementation = 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()) }
        }
    }
}

contract FungifyNFTProxy is Proxy2Step {
    constructor(address impl_) Proxy2Step(impl_) {
        impl_;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"impl_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousImplementation","type":"address"},{"indexed":true,"internalType":"address","name":"newImplementation","type":"address"}],"name":"ReplaceImplementation","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousImplementation","type":"address"},{"indexed":true,"internalType":"address","name":"newImplementation","type":"address"}],"name":"ReplaceImplementationStarted","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"acceptImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract Upgradeable2Step","name":"proxy","type":"address"}],"name":"becomeImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"impl_","type":"address"}],"name":"replaceImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561000f575f80fd5b506040516106a73803806106a783398101604081905261002e916100ef565b80338061005457604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b61005d81610084565b50600380546001600160a01b0319166001600160a01b03929092169190911790555061011c565b600180546001600160a01b031916905561009d816100a0565b50565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f602082840312156100ff575f80fd5b81516001600160a01b0381168114610115575f80fd5b9392505050565b61057e806101295f395ff3fe608060405260043610610090575f3560e01c80638da5cb5b116100585780638da5cb5b14610148578063d69efdc514610164578063e30c397814610183578063eaac8c32146101a0578063f2fde38b146101bf57610090565b806315ba56e5146100b2578063396f7b23146100c65780635c60da1b14610101578063715018a61461012057806379ba509714610134575b365f80375f80365f6003545af43d5f803e8080156100ac573d5ff35b3d5ffd5b005b3480156100bd575f80fd5b506100b06101de565b3480156100d1575f80fd5b506002546100e5906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b34801561010c575f80fd5b506003546100e5906001600160a01b031681565b34801561012b575f80fd5b506100b0610267565b34801561013f575f80fd5b506100b061027a565b348015610153575f80fd5b505f546001600160a01b03166100e5565b34801561016f575f80fd5b506100b061017e36600461050b565b6102be565b34801561018e575f80fd5b506001546001600160a01b03166100e5565b3480156101ab575f80fd5b506100b06101ba36600461050b565b610317565b3480156101ca575f80fd5b506100b06101d936600461050b565b6103f8565b6002546001600160a01b031633146102105760405163118cdaa760e01b81523360048201526024015b60405180910390fd5b60035460405133916001600160a01b0316907feb7a7d62743daf8cf4055aea544d0a89e2011279ed4105567d010759e6fa4de2905f90a3600280546001600160a01b03199081169091556003805490911633179055565b61026f610468565b6102785f610494565b565b60015433906001600160a01b031681146102b25760405163118cdaa760e01b81526001600160a01b0382166004820152602401610207565b6102bb81610494565b50565b6102c6610468565b600280546001600160a01b0319166001600160a01b03838116918217909255600354604051919216907f67f679e13fe9dca16f3079221965ec41838cb8881cbc0f440bc13507c6b214c2905f90a350565b806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610353573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610377919061052d565b6001600160a01b0316336001600160a01b0316146103a7576040516282b42960e81b815260040160405180910390fd5b806001600160a01b03166315ba56e56040518163ffffffff1660e01b81526004015f604051808303815f87803b1580156103df575f80fd5b505af11580156103f1573d5f803e3d5ffd5b5050505050565b610400610468565b600180546001600160a01b0383166001600160a01b031990911681179091556104305f546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b5f546001600160a01b031633146102785760405163118cdaa760e01b8152336004820152602401610207565b600180546001600160a01b03191690556102bb815f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146102bb575f80fd5b5f6020828403121561051b575f80fd5b8135610526816104f7565b9392505050565b5f6020828403121561053d575f80fd5b8151610526816104f756fea2646970667358221220b8f3b69dc7d45427fbc1b3f2f001812cf15c090e45f5eb6c5c5f6d157ed0654164736f6c6343000817003300000000000000000000000097f6e513f2399bbe18870aebdf1d2041fd165795

Deployed Bytecode

0x608060405260043610610090575f3560e01c80638da5cb5b116100585780638da5cb5b14610148578063d69efdc514610164578063e30c397814610183578063eaac8c32146101a0578063f2fde38b146101bf57610090565b806315ba56e5146100b2578063396f7b23146100c65780635c60da1b14610101578063715018a61461012057806379ba509714610134575b365f80375f80365f6003545af43d5f803e8080156100ac573d5ff35b3d5ffd5b005b3480156100bd575f80fd5b506100b06101de565b3480156100d1575f80fd5b506002546100e5906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b34801561010c575f80fd5b506003546100e5906001600160a01b031681565b34801561012b575f80fd5b506100b0610267565b34801561013f575f80fd5b506100b061027a565b348015610153575f80fd5b505f546001600160a01b03166100e5565b34801561016f575f80fd5b506100b061017e36600461050b565b6102be565b34801561018e575f80fd5b506001546001600160a01b03166100e5565b3480156101ab575f80fd5b506100b06101ba36600461050b565b610317565b3480156101ca575f80fd5b506100b06101d936600461050b565b6103f8565b6002546001600160a01b031633146102105760405163118cdaa760e01b81523360048201526024015b60405180910390fd5b60035460405133916001600160a01b0316907feb7a7d62743daf8cf4055aea544d0a89e2011279ed4105567d010759e6fa4de2905f90a3600280546001600160a01b03199081169091556003805490911633179055565b61026f610468565b6102785f610494565b565b60015433906001600160a01b031681146102b25760405163118cdaa760e01b81526001600160a01b0382166004820152602401610207565b6102bb81610494565b50565b6102c6610468565b600280546001600160a01b0319166001600160a01b03838116918217909255600354604051919216907f67f679e13fe9dca16f3079221965ec41838cb8881cbc0f440bc13507c6b214c2905f90a350565b806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610353573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610377919061052d565b6001600160a01b0316336001600160a01b0316146103a7576040516282b42960e81b815260040160405180910390fd5b806001600160a01b03166315ba56e56040518163ffffffff1660e01b81526004015f604051808303815f87803b1580156103df575f80fd5b505af11580156103f1573d5f803e3d5ffd5b5050505050565b610400610468565b600180546001600160a01b0383166001600160a01b031990911681179091556104305f546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b5f546001600160a01b031633146102785760405163118cdaa760e01b8152336004820152602401610207565b600180546001600160a01b03191690556102bb815f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146102bb575f80fd5b5f6020828403121561051b575f80fd5b8135610526816104f7565b9392505050565b5f6020828403121561053d575f80fd5b8151610526816104f756fea2646970667358221220b8f3b69dc7d45427fbc1b3f2f001812cf15c090e45f5eb6c5c5f6d157ed0654164736f6c63430008170033

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

00000000000000000000000097f6e513f2399bbe18870aebdf1d2041fd165795

-----Decoded View---------------
Arg [0] : impl_ (address): 0x97F6e513f2399Bbe18870AeBDF1D2041Fd165795

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000097f6e513f2399bbe18870aebdf1d2041fd165795


Deployed Bytecode Sourcemap

7644:118:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7320:14;7317:1;7314;7301:34;7433:1;7430;7414:14;7411:1;7389:19;7383:26;7376:5;7363:72;7470:16;7467:1;7464;7449:38;7508:6;7528:38;;;;7600:16;7597:1;7590:27;7528:38;7547:16;7544:1;7537:27;7501:118;;6531:312;;;;;;;;;;;;;:::i;6115:36::-;;;;;;;;;;-1:-1:-1;6115:36:0;;;;-1:-1:-1;;;;;6115:36:0;;;;;;-1:-1:-1;;;;;178:32:1;;;160:51;;148:2;133:18;6115:36:0;;;;;;;6158:29;;;;;;;;;;-1:-1:-1;6158:29:0;;;;-1:-1:-1;;;;;6158:29:0;;;3114:103;;;;;;;;;;;;;:::i;5582:235::-;;;;;;;;;;;;;:::i;2439:87::-;;;;;;;;;;-1:-1:-1;2485:7:0;2512:6;-1:-1:-1;;;;;2512:6:0;2439:87;;6287:178;;;;;;;;;;-1:-1:-1;6287:178:0;;;;;:::i;:::-;;:::i;4670:101::-;;;;;;;;;;-1:-1:-1;4750:13:0;;-1:-1:-1;;;;;4750:13:0;4670:101;;6907:199;;;;;;;;;;-1:-1:-1;6907:199:0;;;;;:::i;:::-;;:::i;4970:181::-;;;;;;;;;;-1:-1:-1;4970:181:0;;;;;:::i;:::-;;:::i;6531:312::-;6599:21;;-1:-1:-1;;;;;6599:21:0;6585:10;:35;6581:113;;6644:38;;-1:-1:-1;;;6644:38:0;;6671:10;6644:38;;;160:51:1;133:18;;6644:38:0;;;;;;;;6581:113;6731:14;;6709:49;;6747:10;;-1:-1:-1;;;;;6731:14:0;;6709:49;;6731:14;;6709:49;6776:21;6769:28;;-1:-1:-1;;;;;;6769:28:0;;;;;;6808:14;:27;;;;;6825:10;6808:27;;;6531:312::o;3114:103::-;2325:13;:11;:13::i;:::-;3179:30:::1;3206:1;3179:18;:30::i;:::-;3114:103::o:0;5582:235::-;4750:13;;687:10;;-1:-1:-1;;;;;4750:13:0;5679:24;;5675:98;;5727:34;;-1:-1:-1;;;5727:34:0;;-1:-1:-1;;;;;178:32:1;;5727:34:0;;;160:51:1;133:18;;5727:34:0;14:203:1;5675:98:0;5783:26;5802:6;5783:18;:26::i;:::-;5624:193;5582:235::o;6287:178::-;2325:13;:11;:13::i;:::-;6361:21:::1;:29:::0;;-1:-1:-1;;;;;;6361:29:0::1;-1:-1:-1::0;;;;;6361:29:0;;::::1;::::0;;::::1;::::0;;;6435:14:::1;::::0;6406:51:::1;::::0;6361:29;;6435:14:::1;::::0;6406:51:::1;::::0;-1:-1:-1;;6406:51:0::1;6287:178:::0;:::o;6907:199::-;6997:5;-1:-1:-1;;;;;6997:11:0;;:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;6983:27:0;:10;-1:-1:-1;;;;;6983:27:0;;6979:81;;7034:14;;-1:-1:-1;;;7034:14:0;;;;;;;;;;;6979:81;7070:5;-1:-1:-1;;;;;7070:26:0;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6907:199;:::o;4970:181::-;2325:13;:11;:13::i;:::-;5060::::1;:24:::0;;-1:-1:-1;;;;;5060:24:0;::::1;-1:-1:-1::0;;;;;;5060:24:0;;::::1;::::0;::::1;::::0;;;5125:7:::1;2485::::0;2512:6;-1:-1:-1;;;;;2512:6:0;;2439:87;5125:7:::1;-1:-1:-1::0;;;;;5100:43:0::1;;;;;;;;;;;4970:181:::0;:::o;2604:166::-;2485:7;2512:6;-1:-1:-1;;;;;2512:6:0;687:10;2664:23;2660:103;;2711:40;;-1:-1:-1;;;2711:40:0;;687:10;2711:40;;;160:51:1;133:18;;2711:40:0;14:203:1;5341:156:0;5431:13;5424:20;;-1:-1:-1;;;;;;5424:20:0;;;5455:34;5480:8;3826:16;3845:6;;-1:-1:-1;;;;;3862:17:0;;;-1:-1:-1;;;;;;3862:17:0;;;;;;3895:40;;3845:6;;;;;;;3895:40;;3826:16;3895:40;3815:128;3752:191;:::o;222:131:1:-;-1:-1:-1;;;;;297:31:1;;287:42;;277:70;;343:1;340;333:12;358:247;417:6;470:2;458:9;449:7;445:23;441:32;438:52;;;486:1;483;476:12;438:52;525:9;512:23;544:31;569:5;544:31;:::i;:::-;594:5;358:247;-1:-1:-1;;;358:247:1:o;886:251::-;956:6;1009:2;997:9;988:7;984:23;980:32;977:52;;;1025:1;1022;1015:12;977:52;1057:9;1051:16;1076:31;1101:5;1076:31;:::i

Swarm Source

ipfs://b8f3b69dc7d45427fbc1b3f2f001812cf15c090e45f5eb6c5c5f6d157ed06541
Loading...
Loading
Loading...
Loading
[ 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.