ETH Price: $3,294.85 (-3.43%)
Gas: 21 Gwei

Contract

0x45A9756a6d521F5187401150c059B44E3643a33A
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Unstake Pandas202010502024-06-30 0:53:353 days ago1719708815IN
0x45A9756a...E3643a33A
0 ETH0.000366651.48351705
Unstake Pandas201495332024-06-22 20:09:3510 days ago1719086975IN
0x45A9756a...E3643a33A
0 ETH0.000222622.4255639
Unstake Pandas201422922024-06-21 19:50:1111 days ago1718999411IN
0x45A9756a...E3643a33A
0 ETH0.00036894.01940393
Unstake Pandas201388732024-06-21 8:22:5912 days ago1718958179IN
0x45A9756a...E3643a33A
0 ETH0.000488436.54021443
Stake Pandas201322682024-06-20 10:13:2313 days ago1718878403IN
0x45A9756a...E3643a33A
0 ETH0.001387557.79233556
Unstake Pandas200992872024-06-15 19:29:1117 days ago1718479751IN
0x45A9756a...E3643a33A
0 ETH0.000252323.17458699
Stake Pandas200936802024-06-15 0:38:2318 days ago1718411903IN
0x45A9756a...E3643a33A
0 ETH0.000476173.3887105
Unstake Pandas200870422024-06-14 2:24:2319 days ago1718331863IN
0x45A9756a...E3643a33A
0 ETH0.000676797.37393054
Unstake Pandas200870122024-06-14 2:18:2319 days ago1718331503IN
0x45A9756a...E3643a33A
0 ETH0.000693967.03521303
Unstake Pandas200869982024-06-14 2:15:3519 days ago1718331335IN
0x45A9756a...E3643a33A
0 ETH0.001199696.84384928
Unstake Pandas200869922024-06-14 2:14:2319 days ago1718331263IN
0x45A9756a...E3643a33A
0 ETH0.001136167.27693799
Unstake Pandas200869872024-06-14 2:13:2319 days ago1718331203IN
0x45A9756a...E3643a33A
0 ETH0.000936016.83374167
Unstake Pandas200869172024-06-14 1:59:2319 days ago1718330363IN
0x45A9756a...E3643a33A
0 ETH0.00105637.71196851
Unstake Pandas200869062024-06-14 1:57:1119 days ago1718330231IN
0x45A9756a...E3643a33A
0 ETH0.001386967.91215719
Unstake Pandas200869012024-06-14 1:55:5919 days ago1718330159IN
0x45A9756a...E3643a33A
0 ETH0.0009917.2352259
Unstake Pandas200868862024-06-14 1:52:5919 days ago1718329979IN
0x45A9756a...E3643a33A
0 ETH0.004246397.11425366
Unstake Pandas200441562024-06-08 2:34:2325 days ago1717814063IN
0x45A9756a...E3643a33A
0 ETH0.000858616.60004019
Unstake Pandas200230442024-06-05 3:49:4728 days ago1717559387IN
0x45A9756a...E3643a33A
0 ETH0.000507886.80058005
Unstake Pandas200221662024-06-05 0:53:3528 days ago1717548815IN
0x45A9756a...E3643a33A
0 ETH0.001278186.12085137
Stake Pandas200214352024-06-04 22:26:4728 days ago1717540007IN
0x45A9756a...E3643a33A
0 ETH0.005385913.08189083
Unstake Pandas200157472024-06-04 3:23:3529 days ago1717471415IN
0x45A9756a...E3643a33A
0 ETH0.000431365.77597659
Unstake Pandas200085762024-06-03 3:21:2330 days ago1717384883IN
0x45A9756a...E3643a33A
0 ETH0.0016321612.34904331
Unstake Pandas200036672024-06-02 10:53:5931 days ago1717325639IN
0x45A9756a...E3643a33A
0 ETH0.000475765.98585147
Unstake Pandas200017222024-06-02 4:22:4731 days ago1717302167IN
0x45A9756a...E3643a33A
0 ETH0.000834814.33931067
Stake Pandas199953002024-06-01 6:53:1132 days ago1717224791IN
0x45A9756a...E3643a33A
0 ETH0.000951074.75617299
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NerfedStaking

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 5 : NerfedStaking.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
error NotOwner();
error NotStakedLongEnough();


contract NerfedStaking is Ownable {
    IERC721Minimal private immutable PANDAS;
    struct Ownership {
        address owner;
        uint96 lastUpdatedTimestamp;
    }
    address constant private vault = 0x2B75A4B81a65cbE2910f72945017064626333970;
    
    // uint public constant MAX_SUPPLY = 6666;

    mapping(uint => Ownership) private ownerships;
    mapping(address => uint) private balances;

    uint private minimumLockupPeriod = 0 hours;


    event UpdateStakeStatus(address indexed staker,bool indexed startingStake,uint16[]  tokenIds);
constructor(address _pandas) {
        PANDAS = IERC721Minimal(_pandas);
    }

    function stakePanda(uint tokenId)  internal {
        if (msg.sender != PANDAS.ownerOf(tokenId)) revert NotOwner();
        ownerships[tokenId] = Ownership(msg.sender, uint96(block.timestamp));
        PANDAS.transferFrom(msg.sender, vault, tokenId);
        
    }

    function unstakePanda(uint tokenId) internal {
        Ownership memory ownership = ownerships[tokenId];
        if(
            ownership.lastUpdatedTimestamp + minimumLockupPeriod > block.timestamp
        ) revert NotStakedLongEnough();
        
        if(msg.sender != ownership.owner) revert NotOwner();
        ownerships[tokenId] = Ownership(address(0), 0);
        PANDAS.transferFrom(vault, msg.sender, tokenId);
    }



    function stakePandas(uint16[] calldata tokenIds) external {
        for (uint i; i < tokenIds.length; ) {
            stakePanda(tokenIds[i]);
            unchecked {
                ++i;
            }
        }
        balances[msg.sender] += tokenIds.length;
        emit UpdateStakeStatus(msg.sender,true,tokenIds);
    }

    function unstakePandas(uint16[] calldata tokenIds) external {
        // Staker storage staker = stakers[msg.sender];
        for (uint i; i < tokenIds.length; ) {
            unstakePanda(tokenIds[i]);
            unchecked {
                ++i;
            }
        }
        balances[msg.sender] -= tokenIds.length;
        emit UpdateStakeStatus(msg.sender, false,tokenIds);
    }

    function balanceOf(address account) external view returns(uint) {
        return balances[account];
    }

    function stakeOnBehalfOfOther(address account, uint16[] calldata tokenIds) external {
        for (uint i; i < tokenIds.length; ) {
            stakePanda(tokenIds[i]);
            unchecked {
                ++i;
            }
        }
        balances[account] += tokenIds.length;
        emit UpdateStakeStatus(account, true,tokenIds);
    }


    function tokensOfOwner(
        address account
    ) external view returns (uint[] memory) {
        unchecked {
            uint tokenIdsIdx;
            uint tokenIdsLength = balances[account];
            uint[] memory tokenIds = new uint256[](tokenIdsLength);
            for (uint i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
                address _owner = ownerships[i].owner;
                if (_owner != address(0)) {
                    if (account == _owner) {
                        tokenIds[tokenIdsIdx++] = i;
                    }
                }
            }
            return tokenIds;
        }
    }


    function getOwnershipsOfPandas(uint16[] calldata tokenIds) external view returns (Ownership[] memory) {
        Ownership[] memory ownershipsOfPandas = new Ownership[](tokenIds.length);
        for (uint i; i < tokenIds.length; ) {
            ownershipsOfPandas[i] = ownerships[tokenIds[i]];
            unchecked {
                ++i;
            }
        }
        return ownershipsOfPandas;
    }


    function _startTokenId() internal pure returns (uint) {
        return 1;
    }


    function setMinimumLockupPeriod(uint _minimumLockupPeriod) external onlyOwner {
        minimumLockupPeriod = _minimumLockupPeriod;
    }

}

interface IERC721Minimal {
    function ownerOf(uint tokenId) external view returns (address);

    function transferFrom(address from, address to, uint tokenId) external;
}

interface ITrippieLandMinimal {
    function isMutant(uint tokenId) external view returns (bool);
}

File 2 of 5 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @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 {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

File 3 of 5 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 4 of 5 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with 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;
    }
}

File 5 of 5 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_pandas","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"NotOwner","type":"error"},{"inputs":[],"name":"NotStakedLongEnough","type":"error"},{"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":"staker","type":"address"},{"indexed":true,"internalType":"bool","name":"startingStake","type":"bool"},{"indexed":false,"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"}],"name":"UpdateStakeStatus","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"}],"name":"getOwnershipsOfPandas","outputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint96","name":"lastUpdatedTimestamp","type":"uint96"}],"internalType":"struct NerfedStaking.Ownership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minimumLockupPeriod","type":"uint256"}],"name":"setMinimumLockupPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"}],"name":"stakeOnBehalfOfOther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"}],"name":"stakePandas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"}],"name":"unstakePandas","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a0604052600060035534801561001557600080fd5b50604051610e72380380610e728339810160408190526100349161009e565b61003d3361004e565b6001600160a01b03166080526100ce565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100b057600080fd5b81516001600160a01b03811681146100c757600080fd5b9392505050565b608051610d7b6100f76000396000818161074d015281816108760152610a060152610d7b6000f3fe608060405234801561001057600080fd5b50600436106100be5760003560e01c8063af44935e11610076578063d39ccbe21161005b578063d39ccbe21461018a578063d3fc72cb1461019d578063f2fde38b146101b057600080fd5b8063af44935e14610157578063ce75a7011461016a57600080fd5b80638462151c116100a75780638462151c146101095780638da5cb5b1461012957806397c00d601461014457600080fd5b806370a08231146100c3578063715018a6146100ff575b600080fd5b6100ec6100d1366004610a7d565b6001600160a01b031660009081526002602052604090205490565b6040519081526020015b60405180910390f35b6101076101c3565b005b61011c610117366004610a7d565b6101d7565b6040516100f69190610aa1565b6000546040516001600160a01b0390911681526020016100f6565b610107610152366004610b31565b6102b3565b610107610165366004610b86565b610374565b61017d610178366004610b86565b610404565b6040516100f69190610bc8565b610107610198366004610b86565b610518565b6101076101ab366004610c2e565b6105ba565b6101076101be366004610a7d565b6105c7565b6101cb61065c565b6101d560006106b6565b565b6001600160a01b03811660009081526002602052604081205460609190818167ffffffffffffffff81111561020e5761020e610c47565b604051908082528060200260200182016040528015610237578160200160208202803683370190505b50905060015b8284146102aa576000818152600160205260409020546001600160a01b031680156102a157806001600160a01b0316876001600160a01b0316036102a1578183868060010197508151811061029457610294610c5d565b6020026020010181815250505b5060010161023d565b50949350505050565b60005b818110156102f9576102f18383838181106102d3576102d3610c5d565b90506020020160208101906102e89190610c8a565b61ffff1661071e565b6001016102b6565b506001600160a01b03831660009081526002602052604081208054839290610322908490610cbb565b90915550506040516001906001600160a01b038516907f5690b364d1ff865b3f1997b2b15fdde57f7863184c0fc67fe6731678535da5c1906103679086908690610cce565b60405180910390a3505050565b60005b8181101561039c576103948383838181106102d3576102d3610c5d565b600101610377565b5033600090815260026020526040812080548392906103bc908490610cbb565b909155505060405160019033907f5690b364d1ff865b3f1997b2b15fdde57f7863184c0fc67fe6731678535da5c1906103f89086908690610cce565b60405180910390a35050565b606060008267ffffffffffffffff81111561042157610421610c47565b60405190808252806020026020018201604052801561046657816020015b604080518082019091526000808252602082015281526020019060019003908161043f5790505b50905060005b8381101561050e576001600086868481811061048a5761048a610c5d565b905060200201602081019061049f9190610c8a565b61ffff16815260208082019290925260409081016000208151808301909252546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff169181019190915282518390839081106104fb576104fb610c5d565b602090810291909101015260010161046c565b5090505b92915050565b60005b8181101561055e5761055683838381811061053857610538610c5d565b905060200201602081019061054d9190610c8a565b61ffff166108d5565b60010161051b565b50336000908152600260205260408120805483929061057e908490610d15565b909155505060405160009033907f5690b364d1ff865b3f1997b2b15fdde57f7863184c0fc67fe6731678535da5c1906103f89086908690610cce565b6105c261065c565b600355565b6105cf61065c565b6001600160a01b0381166106505760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610659816106b6565b50565b6000546001600160a01b031633146101d55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610647565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690636352211e90602401602060405180830381865afa15801561079c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c09190610d28565b6001600160a01b0316336001600160a01b0316146107f1576040516330cd747160e01b815260040160405180910390fd5b604080518082018252338082526bffffffffffffffffffffffff42811660208085019182526000878152600190915285902093519051909116600160a01b026001600160a01b039182161790925591516323b872dd60e01b81526004810192909252732b75a4b81a65cbe2910f729450170646263339706024830152604482018390527f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90606401600060405180830381600087803b1580156108ba57600080fd5b505af11580156108ce573d6000803e3d6000fd5b5050505050565b6000818152600160209081526040918290208251808401909352546001600160a01b0381168352600160a01b90046bffffffffffffffffffffffff1690820181905260035442916109269190610cbb565b111561095e576040517f912be99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80516001600160a01b03163314610988576040516330cd747160e01b815260040160405180910390fd5b60408051808201825260008082526020808301828152868352600190915290839020915190516bffffffffffffffffffffffff16600160a01b026001600160a01b039182161790915590516323b872dd60e01b8152732b75a4b81a65cbe2910f729450170646263339706004820152336024820152604481018490527f0000000000000000000000000000000000000000000000000000000000000000909116906323b872dd90606401600060405180830381600087803b158015610a4c57600080fd5b505af1158015610a60573d6000803e3d6000fd5b505050505050565b6001600160a01b038116811461065957600080fd5b600060208284031215610a8f57600080fd5b8135610a9a81610a68565b9392505050565b6020808252825182820181905260009190848201906040850190845b81811015610ad957835183529284019291840191600101610abd565b50909695505050505050565b60008083601f840112610af757600080fd5b50813567ffffffffffffffff811115610b0f57600080fd5b6020830191508360208260051b8501011115610b2a57600080fd5b9250929050565b600080600060408486031215610b4657600080fd5b8335610b5181610a68565b9250602084013567ffffffffffffffff811115610b6d57600080fd5b610b7986828701610ae5565b9497909650939450505050565b60008060208385031215610b9957600080fd5b823567ffffffffffffffff811115610bb057600080fd5b610bbc85828601610ae5565b90969095509350505050565b602080825282518282018190526000919060409081850190868401855b82811015610c2157815180516001600160a01b031685528601516bffffffffffffffffffffffff16868501529284019290850190600101610be5565b5091979650505050505050565b600060208284031215610c4057600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b803561ffff81168114610c8557600080fd5b919050565b600060208284031215610c9c57600080fd5b610a9a82610c73565b634e487b7160e01b600052601160045260246000fd5b8082018082111561051257610512610ca5565b60208082528181018390526000908460408401835b86811015610d0a5761ffff610cf784610c73565b1682529183019190830190600101610ce3565b509695505050505050565b8181038181111561051257610512610ca5565b600060208284031215610d3a57600080fd5b8151610a9a81610a6856fea2646970667358221220c1d129c78035120b6a0f32aee977823aab5818fb52a0a6697be3fc7c47e630d564736f6c634300081100330000000000000000000000003404684960fb687f2217b6e44a547130f4119c59

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100be5760003560e01c8063af44935e11610076578063d39ccbe21161005b578063d39ccbe21461018a578063d3fc72cb1461019d578063f2fde38b146101b057600080fd5b8063af44935e14610157578063ce75a7011461016a57600080fd5b80638462151c116100a75780638462151c146101095780638da5cb5b1461012957806397c00d601461014457600080fd5b806370a08231146100c3578063715018a6146100ff575b600080fd5b6100ec6100d1366004610a7d565b6001600160a01b031660009081526002602052604090205490565b6040519081526020015b60405180910390f35b6101076101c3565b005b61011c610117366004610a7d565b6101d7565b6040516100f69190610aa1565b6000546040516001600160a01b0390911681526020016100f6565b610107610152366004610b31565b6102b3565b610107610165366004610b86565b610374565b61017d610178366004610b86565b610404565b6040516100f69190610bc8565b610107610198366004610b86565b610518565b6101076101ab366004610c2e565b6105ba565b6101076101be366004610a7d565b6105c7565b6101cb61065c565b6101d560006106b6565b565b6001600160a01b03811660009081526002602052604081205460609190818167ffffffffffffffff81111561020e5761020e610c47565b604051908082528060200260200182016040528015610237578160200160208202803683370190505b50905060015b8284146102aa576000818152600160205260409020546001600160a01b031680156102a157806001600160a01b0316876001600160a01b0316036102a1578183868060010197508151811061029457610294610c5d565b6020026020010181815250505b5060010161023d565b50949350505050565b60005b818110156102f9576102f18383838181106102d3576102d3610c5d565b90506020020160208101906102e89190610c8a565b61ffff1661071e565b6001016102b6565b506001600160a01b03831660009081526002602052604081208054839290610322908490610cbb565b90915550506040516001906001600160a01b038516907f5690b364d1ff865b3f1997b2b15fdde57f7863184c0fc67fe6731678535da5c1906103679086908690610cce565b60405180910390a3505050565b60005b8181101561039c576103948383838181106102d3576102d3610c5d565b600101610377565b5033600090815260026020526040812080548392906103bc908490610cbb565b909155505060405160019033907f5690b364d1ff865b3f1997b2b15fdde57f7863184c0fc67fe6731678535da5c1906103f89086908690610cce565b60405180910390a35050565b606060008267ffffffffffffffff81111561042157610421610c47565b60405190808252806020026020018201604052801561046657816020015b604080518082019091526000808252602082015281526020019060019003908161043f5790505b50905060005b8381101561050e576001600086868481811061048a5761048a610c5d565b905060200201602081019061049f9190610c8a565b61ffff16815260208082019290925260409081016000208151808301909252546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff169181019190915282518390839081106104fb576104fb610c5d565b602090810291909101015260010161046c565b5090505b92915050565b60005b8181101561055e5761055683838381811061053857610538610c5d565b905060200201602081019061054d9190610c8a565b61ffff166108d5565b60010161051b565b50336000908152600260205260408120805483929061057e908490610d15565b909155505060405160009033907f5690b364d1ff865b3f1997b2b15fdde57f7863184c0fc67fe6731678535da5c1906103f89086908690610cce565b6105c261065c565b600355565b6105cf61065c565b6001600160a01b0381166106505760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610659816106b6565b50565b6000546001600160a01b031633146101d55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610647565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018290527f0000000000000000000000003404684960fb687f2217b6e44a547130f4119c596001600160a01b031690636352211e90602401602060405180830381865afa15801561079c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c09190610d28565b6001600160a01b0316336001600160a01b0316146107f1576040516330cd747160e01b815260040160405180910390fd5b604080518082018252338082526bffffffffffffffffffffffff42811660208085019182526000878152600190915285902093519051909116600160a01b026001600160a01b039182161790925591516323b872dd60e01b81526004810192909252732b75a4b81a65cbe2910f729450170646263339706024830152604482018390527f0000000000000000000000003404684960fb687f2217b6e44a547130f4119c5916906323b872dd90606401600060405180830381600087803b1580156108ba57600080fd5b505af11580156108ce573d6000803e3d6000fd5b5050505050565b6000818152600160209081526040918290208251808401909352546001600160a01b0381168352600160a01b90046bffffffffffffffffffffffff1690820181905260035442916109269190610cbb565b111561095e576040517f912be99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80516001600160a01b03163314610988576040516330cd747160e01b815260040160405180910390fd5b60408051808201825260008082526020808301828152868352600190915290839020915190516bffffffffffffffffffffffff16600160a01b026001600160a01b039182161790915590516323b872dd60e01b8152732b75a4b81a65cbe2910f729450170646263339706004820152336024820152604481018490527f0000000000000000000000003404684960fb687f2217b6e44a547130f4119c59909116906323b872dd90606401600060405180830381600087803b158015610a4c57600080fd5b505af1158015610a60573d6000803e3d6000fd5b505050505050565b6001600160a01b038116811461065957600080fd5b600060208284031215610a8f57600080fd5b8135610a9a81610a68565b9392505050565b6020808252825182820181905260009190848201906040850190845b81811015610ad957835183529284019291840191600101610abd565b50909695505050505050565b60008083601f840112610af757600080fd5b50813567ffffffffffffffff811115610b0f57600080fd5b6020830191508360208260051b8501011115610b2a57600080fd5b9250929050565b600080600060408486031215610b4657600080fd5b8335610b5181610a68565b9250602084013567ffffffffffffffff811115610b6d57600080fd5b610b7986828701610ae5565b9497909650939450505050565b60008060208385031215610b9957600080fd5b823567ffffffffffffffff811115610bb057600080fd5b610bbc85828601610ae5565b90969095509350505050565b602080825282518282018190526000919060409081850190868401855b82811015610c2157815180516001600160a01b031685528601516bffffffffffffffffffffffff16868501529284019290850190600101610be5565b5091979650505050505050565b600060208284031215610c4057600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b803561ffff81168114610c8557600080fd5b919050565b600060208284031215610c9c57600080fd5b610a9a82610c73565b634e487b7160e01b600052601160045260246000fd5b8082018082111561051257610512610ca5565b60208082528181018390526000908460408401835b86811015610d0a5761ffff610cf784610c73565b1682529183019190830190600101610ce3565b509695505050505050565b8181038181111561051257610512610ca5565b600060208284031215610d3a57600080fd5b8151610a9a81610a6856fea2646970667358221220c1d129c78035120b6a0f32aee977823aab5818fb52a0a6697be3fc7c47e630d564736f6c63430008110033

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

0000000000000000000000003404684960fb687f2217b6e44a547130f4119c59

-----Decoded View---------------
Arg [0] : _pandas (address): 0x3404684960fB687F2217B6e44a547130f4119C59

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000003404684960fb687f2217b6e44a547130f4119c59


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.