POL Price: $0.655609 (+14.47%)
 

Overview

POL Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 POL

POL Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Get Coin333679092022-09-21 3:16:00813 days ago1663730160IN
0xcaeDA516...0317B0d1b
0 POL0.1127071230.00000001
Get Coin333265682022-09-20 2:36:08814 days ago1663641368IN
0xcaeDA516...0317B0d1b
0 POL0.1157481130.85747414
Get Coin333044512022-09-19 13:53:45814 days ago1663595625IN
0xcaeDA516...0317B0d1b
0 POL0.1127071230.00000035
Get Coin332968022022-09-19 9:28:22814 days ago1663579702IN
0xcaeDA516...0317B0d1b
0 POL0.1127071230.00000001
Get Coin329702572022-09-11 12:37:07822 days ago1662899827IN
0xcaeDA516...0317B0d1b
0 POL0.1147524630.00000003
Get Coin329011442022-09-09 20:25:30824 days ago1662755130IN
0xcaeDA516...0317B0d1b
0 POL0.1255283633.01331301
Get Coin327033172022-09-05 1:56:39829 days ago1662342999IN
0xcaeDA516...0317B0d1b
0 POL0.1218876932.59200001
Get Coin326699102022-09-04 6:42:31830 days ago1662273751IN
0xcaeDA516...0317B0d1b
0 POL0.1348354836
Get Coin326621532022-09-04 2:13:30830 days ago1662257610IN
0xcaeDA516...0317B0d1b
0 POL0.1484869939.7044859
Set Treated Toke...326621162022-09-04 2:12:12830 days ago1662257532IN
0xcaeDA516...0317B0d1b
0 POL0.009113430.00000001
Get Coin326414012022-09-03 14:19:45830 days ago1662214785IN
0xcaeDA516...0317B0d1b
0 POL0.113388930.00000002
Get Coin325186512022-08-31 13:49:06833 days ago1661953746IN
0xcaeDA516...0317B0d1b
0 POL1.01109006267.11273132
Get Coin325052372022-08-31 4:16:17834 days ago1661919377IN
0xcaeDA516...0317B0d1b
0 POL0.1188431430.00000013
Get Coin324839832022-08-30 13:38:02834 days ago1661866682IN
0xcaeDA516...0317B0d1b
0 POL0.3655316894.9973827
Get Coin324746022022-08-30 7:49:03834 days ago1661845743IN
0xcaeDA516...0317B0d1b
0 POL0.1258422631.76681325
Get Coin322242352022-08-23 9:32:01841 days ago1661247121IN
0xcaeDA516...0317B0d1b
0 POL0.1157035830.06999999
Get Coin321920502022-08-22 12:57:16842 days ago1661173036IN
0xcaeDA516...0317B0d1b
0 POL0.1272553533.87240018
Get Coin321481712022-08-21 10:23:04843 days ago1661077384IN
0xcaeDA516...0317B0d1b
0 POL0.1264244532.856228
Get Coin321319682022-08-21 0:55:03844 days ago1661043303IN
0xcaeDA516...0317B0d1b
0 POL0.1283184433.95000101
Get Coin320959672022-08-20 3:08:39845 days ago1660964919IN
0xcaeDA516...0317B0d1b
0 POL0.1166384331
Get Coin319329532022-08-15 21:20:51849 days ago1660598451IN
0xcaeDA516...0317B0d1b
0 POL0.112875930.00000001
Get Coin318827482022-08-14 13:32:31850 days ago1660483951IN
0xcaeDA516...0317B0d1b
0 POL0.1121941230.00000001
Get Coin318616402022-08-14 0:33:31851 days ago1660437211IN
0xcaeDA516...0317B0d1b
0 POL0.1134552630.01755945
Get Coin318611902022-08-14 0:15:44851 days ago1660436144IN
0xcaeDA516...0317B0d1b
0 POL0.1299667334.43735903

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GetEggDragonCoin

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at polygonscan.com on 2022-08-11
*/

// File: @openzeppelin/contracts/security/ReentrancyGuard.sol


// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

// File: @openzeppelin/contracts/utils/Context.sol


// 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: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.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.
 *
 * 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: contracts/GetEggDragonCoin.sol





pragma solidity ^0.8.15;

interface IEDC {
    function mint(address to_, uint256 amount_) external;
}

interface IFED {
    function totalSupply() external view returns (uint256);
    function balanceOf(address owner_) external view returns (uint256);
    function ownerOf(uint256 tokenId_) external view returns (address);
}


contract GetEggDragonCoin is ReentrancyGuard,Ownable {
    IEDC public coinAddress;
    IFED public NFTAddress;

    uint256 private constant NUMBER_FALSE = 1;
    uint256 private constant NUMBER_TRUE = 2;

    mapping(uint256 => uint256) public treatedTokenIds;

    constructor(address _coinAddress,address _NFTAddress) {
        coinAddress = IEDC(_coinAddress);
        NFTAddress = IFED(_NFTAddress);
    }

//main function
    function getCoin() public nonReentrant payable {
        uint256[] memory _tokenIds = walletOfOwner(msg.sender);
        uint256 numberOfToken;

        require(_tokenIds.length != 0,"Bad joke!!!(not have NFT)");
        for (uint256 i = 0; i < _tokenIds.length; i++) {
            if(treatedTokenIds[_tokenIds[i]] != NUMBER_FALSE){
                numberOfToken++;
            }
            treatedTokenIds[_tokenIds[i]] = NUMBER_FALSE;
        }
        require(numberOfToken != 0,"Too greedy!!!(nothing to get)");
        coinAddress.mint(msg.sender, numberOfToken);
    }


//get function
    function walletOfOwner(address _owner) 
        public
        view
        returns (uint256[] memory) 
    {
        uint256 ts = NFTAddress.totalSupply();
        uint256 tokenCount = NFTAddress.balanceOf(_owner);
        uint256[] memory tokenIds = new uint256[](tokenCount);
        uint256 _index;
        for (uint256 i = 1; i < ts + 1; i++) {
            address _ownerOf = NFTAddress.ownerOf(i);
            if(_ownerOf == _owner) {
                tokenIds[_index++] = i;
            }
        }

        return tokenIds; 
    }


    function numberOfGetCoin(address _owner) public view returns(uint256){
        uint256[] memory _tokenIds = walletOfOwner(_owner);
        uint256 _numberOfToken;
        for (uint256 i = 0; i < _tokenIds.length; i++) {
            if(treatedTokenIds[_tokenIds[i]] != NUMBER_FALSE){
                _numberOfToken++;
            }
        }
        return _numberOfToken;
    }

//set function
    function setCoinAddress(address newCoinAddress) external onlyOwner {
        coinAddress = IEDC(newCoinAddress);
    }

    function settokenIDs(address newNFTAddress) external onlyOwner {
        NFTAddress = IFED(newNFTAddress);
    }

    function setTreatedTokenIds(uint256[] memory tokenIds_) external onlyOwner {
        for (uint256 i = 0; i < tokenIds_.length; i++) {
            treatedTokenIds[tokenIds_[i]] = NUMBER_TRUE;
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_coinAddress","type":"address"},{"internalType":"address","name":"_NFTAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"NFTAddress","outputs":[{"internalType":"contract IFED","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"coinAddress","outputs":[{"internalType":"contract IEDC","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCoin","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"numberOfGetCoin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"newCoinAddress","type":"address"}],"name":"setCoinAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds_","type":"uint256[]"}],"name":"setTreatedTokenIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newNFTAddress","type":"address"}],"name":"settokenIDs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"treatedTokenIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50604051610c2e380380610c2e83398101604081905261002f916100dc565b600160005561003d3361006e565b600280546001600160a01b039384166001600160a01b0319918216179091556003805492909316911617905561010f565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516001600160a01b03811681146100d757600080fd5b919050565b600080604083850312156100ef57600080fd5b6100f8836100c0565b9150610106602084016100c0565b90509250929050565b610b108061011e6000396000f3fe6080604052600436106100a75760003560e01c8063715018a611610064578063715018a61461019b5780638da5cb5b146101b0578063b0bdacc6146101ce578063f067cd8a146101ee578063f2fde38b1461020e578063fdc61dd11461022e57600080fd5b80632590e65d146100ac5780632762efb5146100ce578063310c87cc146100d6578063376e7a3014610113578063438b63001461014e578063455f65571461017b575b600080fd5b3480156100b857600080fd5b506100cc6100c73660046108f3565b61024e565b005b6100cc6102ab565b3480156100e257600080fd5b506003546100f6906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561011f57600080fd5b5061014061012e3660046109b1565b60046020526000908152604090205481565b60405190815260200161010a565b34801561015a57600080fd5b5061016e6101693660046109df565b6104b8565b60405161010a9190610a03565b34801561018757600080fd5b506100cc6101963660046109df565b6106d9565b3480156101a757600080fd5b506100cc610703565b3480156101bc57600080fd5b506001546001600160a01b03166100f6565b3480156101da57600080fd5b506100cc6101e93660046109df565b610717565b3480156101fa57600080fd5b506101406102093660046109df565b610741565b34801561021a57600080fd5b506100cc6102293660046109df565b6107b8565b34801561023a57600080fd5b506002546100f6906001600160a01b031681565b610256610831565b60005b81518110156102a75760026004600084848151811061027a5761027a610a47565b6020026020010151815260200190815260200160002081905550808061029f90610a73565b915050610259565b5050565b6002600054036103025760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026000908155610312336104b8565b9050600081516000036103675760405162461bcd60e51b815260206004820152601960248201527f426164206a6f6b65212121286e6f742068617665204e4654290000000000000060448201526064016102f9565b60005b82518110156103fa5760016004600085848151811061038b5761038b610a47565b6020026020010151815260200190815260200160002054146103b557816103b181610a73565b9250505b6001600460008584815181106103cd576103cd610a47565b602002602001015181526020019081526020016000208190555080806103f290610a73565b91505061036a565b508060000361044b5760405162461bcd60e51b815260206004820152601d60248201527f546f6f20677265656479212121286e6f7468696e6720746f206765742900000060448201526064016102f9565b6002546040516340c10f1960e01b8152336004820152602481018390526001600160a01b03909116906340c10f1990604401600060405180830381600087803b15801561049757600080fd5b505af11580156104ab573d6000803e3d6000fd5b5050600160005550505050565b60606000600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561050f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105339190610a8c565b6003546040516370a0823160e01b81526001600160a01b038681166004830152929350600092909116906370a0823190602401602060405180830381865afa158015610583573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a79190610a8c565b905060008167ffffffffffffffff8111156105c4576105c46108dd565b6040519080825280602002602001820160405280156105ed578160200160208202803683370190505b509050600060015b610600856001610aa5565b8110156106ce576003546040516331a9108f60e11b8152600481018390526000916001600160a01b031690636352211e90602401602060405180830381865afa158015610651573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106759190610abd565b9050876001600160a01b0316816001600160a01b0316036106bb5781848461069c81610a73565b9550815181106106ae576106ae610a47565b6020026020010181815250505b50806106c681610a73565b9150506105f5565b509095945050505050565b6106e1610831565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b61070b610831565b610715600061088b565b565b61071f610831565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60008061074d836104b8565b90506000805b82518110156107b05760016004600085848151811061077457610774610a47565b60200260200101518152602001908152602001600020541461079e578161079a81610a73565b9250505b806107a881610a73565b915050610753565b509392505050565b6107c0610831565b6001600160a01b0381166108255760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102f9565b61082e8161088b565b50565b6001546001600160a01b031633146107155760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102f9565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b6000602080838503121561090657600080fd5b823567ffffffffffffffff8082111561091e57600080fd5b818501915085601f83011261093257600080fd5b813581811115610944576109446108dd565b8060051b604051601f19603f83011681018181108582111715610969576109696108dd565b60405291825284820192508381018501918883111561098757600080fd5b938501935b828510156109a55784358452938501939285019261098c565b98975050505050505050565b6000602082840312156109c357600080fd5b5035919050565b6001600160a01b038116811461082e57600080fd5b6000602082840312156109f157600080fd5b81356109fc816109ca565b9392505050565b6020808252825182820181905260009190848201906040850190845b81811015610a3b57835183529284019291840191600101610a1f565b50909695505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201610a8557610a85610a5d565b5060010190565b600060208284031215610a9e57600080fd5b5051919050565b60008219821115610ab857610ab8610a5d565b500190565b600060208284031215610acf57600080fd5b81516109fc816109ca56fea2646970667358221220369702ec37cc8f5670e09ced40993b16a9b7d05dad6e35906aa7d7952aaa6c5164736f6c634300080f0033000000000000000000000000419ac8c44e345d6e2ea9956176a7ac3f663c1557000000000000000000000000b405f48f67a06916a366c77bcf42992903ef0619

Deployed Bytecode

0x6080604052600436106100a75760003560e01c8063715018a611610064578063715018a61461019b5780638da5cb5b146101b0578063b0bdacc6146101ce578063f067cd8a146101ee578063f2fde38b1461020e578063fdc61dd11461022e57600080fd5b80632590e65d146100ac5780632762efb5146100ce578063310c87cc146100d6578063376e7a3014610113578063438b63001461014e578063455f65571461017b575b600080fd5b3480156100b857600080fd5b506100cc6100c73660046108f3565b61024e565b005b6100cc6102ab565b3480156100e257600080fd5b506003546100f6906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561011f57600080fd5b5061014061012e3660046109b1565b60046020526000908152604090205481565b60405190815260200161010a565b34801561015a57600080fd5b5061016e6101693660046109df565b6104b8565b60405161010a9190610a03565b34801561018757600080fd5b506100cc6101963660046109df565b6106d9565b3480156101a757600080fd5b506100cc610703565b3480156101bc57600080fd5b506001546001600160a01b03166100f6565b3480156101da57600080fd5b506100cc6101e93660046109df565b610717565b3480156101fa57600080fd5b506101406102093660046109df565b610741565b34801561021a57600080fd5b506100cc6102293660046109df565b6107b8565b34801561023a57600080fd5b506002546100f6906001600160a01b031681565b610256610831565b60005b81518110156102a75760026004600084848151811061027a5761027a610a47565b6020026020010151815260200190815260200160002081905550808061029f90610a73565b915050610259565b5050565b6002600054036103025760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026000908155610312336104b8565b9050600081516000036103675760405162461bcd60e51b815260206004820152601960248201527f426164206a6f6b65212121286e6f742068617665204e4654290000000000000060448201526064016102f9565b60005b82518110156103fa5760016004600085848151811061038b5761038b610a47565b6020026020010151815260200190815260200160002054146103b557816103b181610a73565b9250505b6001600460008584815181106103cd576103cd610a47565b602002602001015181526020019081526020016000208190555080806103f290610a73565b91505061036a565b508060000361044b5760405162461bcd60e51b815260206004820152601d60248201527f546f6f20677265656479212121286e6f7468696e6720746f206765742900000060448201526064016102f9565b6002546040516340c10f1960e01b8152336004820152602481018390526001600160a01b03909116906340c10f1990604401600060405180830381600087803b15801561049757600080fd5b505af11580156104ab573d6000803e3d6000fd5b5050600160005550505050565b60606000600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561050f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105339190610a8c565b6003546040516370a0823160e01b81526001600160a01b038681166004830152929350600092909116906370a0823190602401602060405180830381865afa158015610583573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a79190610a8c565b905060008167ffffffffffffffff8111156105c4576105c46108dd565b6040519080825280602002602001820160405280156105ed578160200160208202803683370190505b509050600060015b610600856001610aa5565b8110156106ce576003546040516331a9108f60e11b8152600481018390526000916001600160a01b031690636352211e90602401602060405180830381865afa158015610651573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106759190610abd565b9050876001600160a01b0316816001600160a01b0316036106bb5781848461069c81610a73565b9550815181106106ae576106ae610a47565b6020026020010181815250505b50806106c681610a73565b9150506105f5565b509095945050505050565b6106e1610831565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b61070b610831565b610715600061088b565b565b61071f610831565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60008061074d836104b8565b90506000805b82518110156107b05760016004600085848151811061077457610774610a47565b60200260200101518152602001908152602001600020541461079e578161079a81610a73565b9250505b806107a881610a73565b915050610753565b509392505050565b6107c0610831565b6001600160a01b0381166108255760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102f9565b61082e8161088b565b50565b6001546001600160a01b031633146107155760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102f9565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b6000602080838503121561090657600080fd5b823567ffffffffffffffff8082111561091e57600080fd5b818501915085601f83011261093257600080fd5b813581811115610944576109446108dd565b8060051b604051601f19603f83011681018181108582111715610969576109696108dd565b60405291825284820192508381018501918883111561098757600080fd5b938501935b828510156109a55784358452938501939285019261098c565b98975050505050505050565b6000602082840312156109c357600080fd5b5035919050565b6001600160a01b038116811461082e57600080fd5b6000602082840312156109f157600080fd5b81356109fc816109ca565b9392505050565b6020808252825182820181905260009190848201906040850190845b81811015610a3b57835183529284019291840191600101610a1f565b50909695505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201610a8557610a85610a5d565b5060010190565b600060208284031215610a9e57600080fd5b5051919050565b60008219821115610ab857610ab8610a5d565b500190565b600060208284031215610acf57600080fd5b81516109fc816109ca56fea2646970667358221220369702ec37cc8f5670e09ced40993b16a9b7d05dad6e35906aa7d7952aaa6c5164736f6c634300080f0033

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

000000000000000000000000419ac8c44e345d6e2ea9956176a7ac3f663c1557000000000000000000000000b405f48f67a06916a366c77bcf42992903ef0619

-----Decoded View---------------
Arg [0] : _coinAddress (address): 0x419ac8C44E345D6E2eA9956176A7Ac3F663c1557
Arg [1] : _NFTAddress (address): 0xb405f48F67a06916A366c77bCF42992903ef0619

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000419ac8c44e345d6e2ea9956176a7ac3f663c1557
Arg [1] : 000000000000000000000000b405f48f67a06916a366c77bcf42992903ef0619


Deployed Bytecode Sourcemap

6745:2499:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9031:210;;;;;;;;;;-1:-1:-1;9031:210:0;;;;;:::i;:::-;;:::i;:::-;;7193:588;;;:::i;6835:22::-;;;;;;;;;;-1:-1:-1;6835:22:0;;;;-1:-1:-1;;;;;6835:22:0;;;;;;-1:-1:-1;;;;;1442:32:1;;;1424:51;;1412:2;1397:18;6835:22:0;;;;;;;;6963:50;;;;;;;;;;-1:-1:-1;6963:50:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;1817:25:1;;;1805:2;1790:18;6963:50:0;1671:177:1;7807:554:0;;;;;;;;;;-1:-1:-1;7807:554:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;8909:114::-;;;;;;;;;;-1:-1:-1;8909:114:0;;;;;:::i;:::-;;:::i;5535:103::-;;;;;;;;;;;;;:::i;4887:87::-;;;;;;;;;;-1:-1:-1;4960:6:0;;-1:-1:-1;;;;;4960:6:0;4887:87;;8781:120;;;;;;;;;;-1:-1:-1;8781:120:0;;;;;:::i;:::-;;:::i;8371:386::-;;;;;;;;;;-1:-1:-1;8371:386:0;;;;;:::i;:::-;;:::i;5793:201::-;;;;;;;;;;-1:-1:-1;5793:201:0;;;;;:::i;:::-;;:::i;6805:23::-;;;;;;;;;;-1:-1:-1;6805:23:0;;;;-1:-1:-1;;;;;6805:23:0;;;9031:210;4773:13;:11;:13::i;:::-;9122:9:::1;9117:117;9141:9;:16;9137:1;:20;9117:117;;;6953:1;9179:15;:29;9195:9;9205:1;9195:12;;;;;;;;:::i;:::-;;;;;;;9179:29;;;;;;;;;;;:43;;;;9159:3;;;;;:::i;:::-;;;;9117:117;;;;9031:210:::0;:::o;7193:588::-;1812:1;2410:7;;:19;2402:63;;;;-1:-1:-1;;;2402:63:0;;3912:2:1;2402:63:0;;;3894:21:1;3951:2;3931:18;;;3924:30;3990:33;3970:18;;;3963:61;4041:18;;2402:63:0;;;;;;;;;1812:1;2543:7;:18;;;7280:25:::1;7294:10;7280:13;:25::i;:::-;7251:54;;7316:21;7358:9;:16;7378:1;7358:21:::0;7350:58:::1;;;::::0;-1:-1:-1;;;7350:58:0;;4272:2:1;7350:58:0::1;::::0;::::1;4254:21:1::0;4311:2;4291:18;;;4284:30;4350:27;4330:18;;;4323:55;4395:18;;7350:58:0::1;4070:349:1::0;7350:58:0::1;7424:9;7419:231;7443:9;:16;7439:1;:20;7419:231;;;6906:1;7484:15;:29;7500:9;7510:1;7500:12;;;;;;;;:::i;:::-;;;;;;;7484:29;;;;;;;;;;;;:45;7481:99;;7549:15:::0;::::1;::::0;::::1;:::i;:::-;;;;7481:99;6906:1;7594:15;:29;7610:9;7620:1;7610:12;;;;;;;;:::i;:::-;;;;;;;7594:29;;;;;;;;;;;:44;;;;7461:3;;;;;:::i;:::-;;;;7419:231;;;;7668:13;7685:1;7668:18:::0;7660:59:::1;;;::::0;-1:-1:-1;;;7660:59:0;;4626:2:1;7660:59:0::1;::::0;::::1;4608:21:1::0;4665:2;4645:18;;;4638:30;4704:31;4684:18;;;4677:59;4753:18;;7660:59:0::1;4424:353:1::0;7660:59:0::1;7730:11;::::0;:43:::1;::::0;-1:-1:-1;;;7730:43:0;;7747:10:::1;7730:43;::::0;::::1;4956:51:1::0;5023:18;;;5016:34;;;-1:-1:-1;;;;;7730:11:0;;::::1;::::0;:16:::1;::::0;4929:18:1;;7730:43:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;1768:1:0;2722:7;:22;-1:-1:-1;;;;7193:588:0:o;7807:554::-;7895:16;7930:10;7943;;;;;;;;;-1:-1:-1;;;;;7943:10:0;-1:-1:-1;;;;;7943:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;7999:10;;:28;;-1:-1:-1;;;7999:28:0;;-1:-1:-1;;;;;1442:32:1;;;7999:28:0;;;1424:51:1;7930:37:0;;-1:-1:-1;7978:18:0;;7999:10;;;;:20;;1397:18:1;;7999:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;7978:49;;8038:25;8080:10;8066:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;8066:25:0;-1:-1:-1;8038:53:0;-1:-1:-1;8102:14:0;8144:1;8127:198;8151:6;:2;8156:1;8151:6;:::i;:::-;8147:1;:10;8127:198;;;8198:10;;:21;;-1:-1:-1;;;8198:21:0;;;;;1817:25:1;;;8179:16:0;;-1:-1:-1;;;;;8198:10:0;;:18;;1790::1;;8198:21:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;8179:40;;8249:6;-1:-1:-1;;;;;8237:18:0;:8;-1:-1:-1;;;;;8237:18:0;;8234:80;;8297:1;8276:8;8285;;;;:::i;:::-;;;8276:18;;;;;;;;:::i;:::-;;;;;;:22;;;;;8234:80;-1:-1:-1;8159:3:0;;;;:::i;:::-;;;;8127:198;;;-1:-1:-1;8344:8:0;;7807:554;-1:-1:-1;;;;;7807:554:0:o;8909:114::-;4773:13;:11;:13::i;:::-;8983:10:::1;:32:::0;;-1:-1:-1;;;;;;8983:32:0::1;-1:-1:-1::0;;;;;8983:32:0;;;::::1;::::0;;;::::1;::::0;;8909:114::o;5535:103::-;4773:13;:11;:13::i;:::-;5600:30:::1;5627:1;5600:18;:30::i;:::-;5535:103::o:0;8781:120::-;4773:13;:11;:13::i;:::-;8859:11:::1;:34:::0;;-1:-1:-1;;;;;;8859:34:0::1;-1:-1:-1::0;;;;;8859:34:0;;;::::1;::::0;;;::::1;::::0;;8781:120::o;8371:386::-;8432:7;8451:26;8480:21;8494:6;8480:13;:21::i;:::-;8451:50;-1:-1:-1;8512:22:0;;8545:173;8569:9;:16;8565:1;:20;8545:173;;;6906:1;8610:15;:29;8626:9;8636:1;8626:12;;;;;;;;:::i;:::-;;;;;;;8610:29;;;;;;;;;;;;:45;8607:100;;8675:16;;;;:::i;:::-;;;;8607:100;8587:3;;;;:::i;:::-;;;;8545:173;;;-1:-1:-1;8735:14:0;8371:386;-1:-1:-1;;;8371:386:0:o;5793:201::-;4773:13;:11;:13::i;:::-;-1:-1:-1;;;;;5882:22:0;::::1;5874:73;;;::::0;-1:-1:-1;;;5874:73:0;;5841:2:1;5874:73:0::1;::::0;::::1;5823:21:1::0;5880:2;5860:18;;;5853:30;5919:34;5899:18;;;5892:62;-1:-1:-1;;;5970:18:1;;;5963:36;6016:19;;5874:73:0::1;5639:402:1::0;5874:73:0::1;5958:28;5977:8;5958:18;:28::i;:::-;5793:201:::0;:::o;5052:132::-;4960:6;;-1:-1:-1;;;;;4960:6:0;3518:10;5116:23;5108:68;;;;-1:-1:-1;;;5108:68:0;;6248:2:1;5108:68:0;;;6230:21:1;;;6267:18;;;6260:30;6326:34;6306:18;;;6299:62;6378:18;;5108:68:0;6046:356:1;6154:191:0;6247:6;;;-1:-1:-1;;;;;6264:17:0;;;-1:-1:-1;;;;;;6264:17:0;;;;;;;6297:40;;6247:6;;;6264:17;6247:6;;6297:40;;6228:16;;6297:40;6217:128;6154:191;:::o;14:127:1:-;75:10;70:3;66:20;63:1;56:31;106:4;103:1;96:15;130:4;127:1;120:15;146:1115;230:6;261:2;304;292:9;283:7;279:23;275:32;272:52;;;320:1;317;310:12;272:52;360:9;347:23;389:18;430:2;422:6;419:14;416:34;;;446:1;443;436:12;416:34;484:6;473:9;469:22;459:32;;529:7;522:4;518:2;514:13;510:27;500:55;;551:1;548;541:12;500:55;587:2;574:16;609:2;605;602:10;599:36;;;615:18;;:::i;:::-;661:2;658:1;654:10;693:2;687:9;756:2;752:7;747:2;743;739:11;735:25;727:6;723:38;811:6;799:10;796:22;791:2;779:10;776:18;773:46;770:72;;;822:18;;:::i;:::-;858:2;851:22;908:18;;;942:15;;;;-1:-1:-1;984:11:1;;;980:20;;;1012:19;;;1009:39;;;1044:1;1041;1034:12;1009:39;1068:11;;;;1088:142;1104:6;1099:3;1096:15;1088:142;;;1170:17;;1158:30;;1121:12;;;;1208;;;;1088:142;;;1249:6;146:1115;-1:-1:-1;;;;;;;;146:1115:1:o;1486:180::-;1545:6;1598:2;1586:9;1577:7;1573:23;1569:32;1566:52;;;1614:1;1611;1604:12;1566:52;-1:-1:-1;1637:23:1;;1486:180;-1:-1:-1;1486:180:1:o;1853:131::-;-1:-1:-1;;;;;1928:31:1;;1918:42;;1908:70;;1974:1;1971;1964:12;1989:247;2048:6;2101:2;2089:9;2080:7;2076:23;2072:32;2069:52;;;2117:1;2114;2107:12;2069:52;2156:9;2143:23;2175:31;2200:5;2175:31;:::i;:::-;2225:5;1989:247;-1:-1:-1;;;1989:247:1:o;2241:632::-;2412:2;2464:21;;;2534:13;;2437:18;;;2556:22;;;2383:4;;2412:2;2635:15;;;;2609:2;2594:18;;;2383:4;2678:169;2692:6;2689:1;2686:13;2678:169;;;2753:13;;2741:26;;2822:15;;;;2787:12;;;;2714:1;2707:9;2678:169;;;-1:-1:-1;2864:3:1;;2241:632;-1:-1:-1;;;;;;2241:632:1:o;3306:127::-;3367:10;3362:3;3358:20;3355:1;3348:31;3398:4;3395:1;3388:15;3422:4;3419:1;3412:15;3438:127;3499:10;3494:3;3490:20;3487:1;3480:31;3530:4;3527:1;3520:15;3554:4;3551:1;3544:15;3570:135;3609:3;3630:17;;;3627:43;;3650:18;;:::i;:::-;-1:-1:-1;3697:1:1;3686:13;;3570:135::o;5061:184::-;5131:6;5184:2;5172:9;5163:7;5159:23;5155:32;5152:52;;;5200:1;5197;5190:12;5152:52;-1:-1:-1;5223:16:1;;5061:184;-1:-1:-1;5061:184:1:o;5250:128::-;5290:3;5321:1;5317:6;5314:1;5311:13;5308:39;;;5327:18;;:::i;:::-;-1:-1:-1;5363:9:1;;5250:128::o;5383:251::-;5453:6;5506:2;5494:9;5485:7;5481:23;5477:32;5474:52;;;5522:1;5519;5512:12;5474:52;5554:9;5548:16;5573:31;5598:5;5573:31;:::i

Swarm Source

ipfs://369702ec37cc8f5670e09ced40993b16a9b7d05dad6e35906aa7d7952aaa6c51

Block Transaction 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
[ 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.