ETH Price: $3,414.13 (+3.08%)

Token

Just Some Fuckin' Goats (GOATS)
 

Overview

Max Total Supply

0 GOATS

Holders

54

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
Song A Day: Deployer
Balance
3 GOATS
0x3d9456ad6463a77bd77123cb4836e463030bfab4
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:
GOATS

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2022-04-01
*/

// SPDX-License-Identifier: CC-BY-4.0
pragma solidity 0.8.10;

/**
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXOkO0KNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN0KWMMMMMNkc,,;coOWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXo,:dONMMMMNXk:;:,oXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNx,,;cOWMMMMWO::c'lNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWx;:;,dNMMMMWO;::'oWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNd,c:'oNMMMMWd;c;,kMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXc;o:,xWMMMMXl;c,:KMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMO:co;,OWMMMM0c:c'lNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWx;ll,:d0MMMWk:l:,xWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXl:oc'.lNMMMNd:l,:0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMk:lo:',xNKkd;....,dOXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNocdl:'.'.          .c0WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMO;'.                 .kWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMKc                     .o0WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNkddxOKXWMMMMMMMMMMWO,                        .:dOXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMx'''..',:lodxO0KKXXO,    .':okOOxl,        .,ldxdocoKMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM0;.''''''.......'''.   .lKNWMMMMMMNx.     ;kNMMMMMKc:0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMW0:..,;;,;,,,,'....   .xWMMMMMMMMMMWx.   cXMMMMMMWXd,oWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNx;'...'.'';:ldd'   lNMMMMMMMMMMNko'  .kNWWMMMMNkc'dWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN0xolodk0XWMM0'  .kMMMMMMMMMMMXxl.   .',;;::ccc'.;lllooxOXWMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMk.  .dWMMMMMMMMMMMNl                        .lKMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMk.   'OMMMMMMMMMMXl.                          ;KMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMk.    .o0XNWMWN0o'                            .xMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMk.      ..';:;'.                              'OMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMk.                                           ,kWMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMx.                                       ..,kNMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWo                    .;,.;;.'c..;'.;,.'',cckWMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMK;                     .. .. .;looooooddx0KXWMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNl.                            ;KMMWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWXk;                              cNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWXOxl;.                               .dWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMWNWMMMMMMMMMMMMMMMWXOdc,.                                    .OMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMWd,oNMMMMMMMMMMWKxl,.                                         cNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMNc .lXMMMMMMWKd;.                                            .kMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMNl   ,xXWMNk:.                                               lNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMXc     .:c,                                                 ,0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMX:                                                        .kWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMXxlcc;.                                                 .xWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMM0'                                                .dWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMNc                                               .kWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMO'                                             :0WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMWd.                                          'xNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMWKo.                                           ,OWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMWOl.                                              .oXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMWX0Oo,.       .,c,       ...........',;;:'       .'      ,kNMNXXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMM0,.       .'cd0NMK:     .oXXXXXXXXXNNWWWO,     .lKNkc.    .,:,.'kWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMO.    'cdkKNMMMMMMNo.    'OMMMMMMMMMMMM0,    .:0WMMMWKd;.      .OMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMWk,..lXMMMMMMMMMMMMWO,    ,0MMMMMMMMMWK:   'cxNMMMMMMMMW0o'  .;OWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMNKXWMMMMMMMMMMMMMMMXd'   'd0WMMMMM0l.   .kWWMMMMMMMMMMMMKxd0NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWx.    'OWMMMMO;.   .xWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMKdllld0NMMMMMMN0xdxOXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
*/

/// @notice Modern, minimalist, and gas efficient ERC-721 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol)
/// @dev Note that balanceOf does not revert if passed the zero address, in defiance of the ERC.
abstract contract ERC721 {
    /*///////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 indexed id);

    event Approval(address indexed owner, address indexed spender, uint256 indexed id);

    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /*///////////////////////////////////////////////////////////////
                          METADATA STORAGE/LOGIC
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    function tokenURI(uint256 id) public view virtual returns (string memory);

    /*///////////////////////////////////////////////////////////////
                            ERC721 STORAGE                        
    //////////////////////////////////////////////////////////////*/

    mapping(address => uint256) public balanceOf;

    mapping(uint256 => address) public ownerOf;

    mapping(uint256 => address) public getApproved;

    mapping(address => mapping(address => bool)) public isApprovedForAll;

    /*///////////////////////////////////////////////////////////////
                              CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(string memory _name, string memory _symbol) {
        name = _name;
        symbol = _symbol;
    }

    /*///////////////////////////////////////////////////////////////
                              ERC721 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 id) public virtual {
        address owner = ownerOf[id];

        require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED");

        getApproved[id] = spender;

        emit Approval(owner, spender, id);
    }

    function setApprovalForAll(address operator, bool approved) public virtual {
        isApprovedForAll[msg.sender][operator] = approved;

        emit ApprovalForAll(msg.sender, operator, approved);
    }

    function transferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        require(from == ownerOf[id], "WRONG_FROM");

        require(to != address(0), "INVALID_RECIPIENT");

        require(
            msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id],
            "NOT_AUTHORIZED"
        );

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        unchecked {
            balanceOf[from]--;

            balanceOf[to]++;
        }

        ownerOf[id] = to;

        delete getApproved[id];

        emit Transfer(from, to, id);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes memory data
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    /*///////////////////////////////////////////////////////////////
                              ERC165 LOGIC
    //////////////////////////////////////////////////////////////*/

    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata
    }

    /*///////////////////////////////////////////////////////////////
                       INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 id) internal virtual {
        require(to != address(0), "INVALID_RECIPIENT");

        require(ownerOf[id] == address(0), "ALREADY_MINTED");

        // Counter overflow is incredibly unrealistic.
        unchecked {
            balanceOf[to]++;
        }

        ownerOf[id] = to;

        emit Transfer(address(0), to, id);
    }

    function _burn(uint256 id) internal virtual {
        address owner = ownerOf[id];

        require(owner != address(0), "NOT_MINTED");

        // Ownership check above ensures no underflow.
        unchecked {
            balanceOf[owner]--;
        }

        delete ownerOf[id];

        delete getApproved[id];

        emit Transfer(owner, address(0), id);
    }

    /*///////////////////////////////////////////////////////////////
                       INTERNAL SAFE MINT LOGIC
    //////////////////////////////////////////////////////////////*/

    function _safeMint(address to, uint256 id) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function _safeMint(
        address to,
        uint256 id,
        bytes memory data
    ) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }
}

/// @notice A generic interface for a contract which properly accepts ERC721 tokens.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol)
interface ERC721TokenReceiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 id,
        bytes calldata data
    ) external returns (bytes4);
}// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)



// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)



/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)



/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)



// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)



/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * 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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        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);
    }
}
contract GOATS is ERC721, Ownable {
    using Strings for uint256;

    // LAST GOAT 10000 SO ME MAKE PLUS ONE TO SAVE GAS
    // I AM VERY SMART AND EFFICIENT UR WELCOME
    uint256 private constant threshold = 10_001;

    string private constant baseURI =
        "ipfs://QmXfvm5vJQnXEZCbQpYiWRo1HAutUq7qLqQ2HLN9WarDTF/";
    ERC721 public immutable trolls;
    address public immutable beneficiary;
    uint256 public immutable cost;

    uint256 public nextTokenId = 1;

    // NOM
    event GoatEaten(uint256 id);

    // AHHH
    error TooManyGoats();
    error TheGoatsDemandCoin();
    error TooManyGoatsTooManyGoats();

    constructor(
        address _beneficiary,
        uint256 _cost,
        ERC721 _trolls
    ) ERC721("Just Some Fuckin' Goats", "GOATS") {
        beneficiary = _beneficiary;
        cost = _cost;
        trolls = _trolls;
    }

    // YES WE LIKES THE GOATSES
    function herd(uint256 goats) external payable {
        if (goats > 20) revert TooManyGoats();
        if (msg.value != cost * goats) revert TheGoatsDemandCoin();
        if (nextTokenId + goats > threshold) revert TooManyGoatsTooManyGoats();

        for (uint256 i = 0; i < goats; i++) {
            // IF YOU WITH TROLL MAYBE WE EATS A GOATSES HAHA
            uint256 numTrolls = trolls.balanceOf(msg.sender);
            if (numTrolls > 0 && i > 0 && ate(numTrolls)) {
                _mint(address(trolls), nextTokenId);
                emit GoatEaten(nextTokenId);
            } else {
                _mint(msg.sender, nextTokenId);
            }

            // HI T11S
            unchecked {
                ++nextTokenId;
            }
        }
    }

    function tokenURI(uint256 id)
        public
        pure
        virtual
        override
        returns (string memory)
    {
        return string(abi.encodePacked(baseURI, id.toString(), ".json"));
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721)
        returns (bool)
    {
        return
            interfaceId == type(IERC2981).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    // OH YES WE TROLLS GET 5% YES YES
    function royaltyInfo(uint256, uint256 _salePrice)
        external
        view
        virtual
        returns (address, uint256)
    {
        return (beneficiary, (_salePrice * 5) / 100);
    }

    // YOU MAY FLASHBOT THIS CODE
    // BUT THEN DO YOU NOT FEED THE TROLLS?
    function ate(uint256 num) internal view returns (bool) {
        return block.difficulty % 500 < num;
    }

    // MM YES, COIN
    function slurp() external {
        (bool succeeded, ) = beneficiary.call{value: address(this).balance}("");
        require(succeeded);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"},{"internalType":"uint256","name":"_cost","type":"uint256"},{"internalType":"contract ERC721","name":"_trolls","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"TheGoatsDemandCoin","type":"error"},{"inputs":[],"name":"TooManyGoats","type":"error"},{"inputs":[],"name":"TooManyGoatsTooManyGoats","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"GoatEaten","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"goats","type":"uint256"}],"name":"herd","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"slurp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"trolls","outputs":[{"internalType":"contract ERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60e060405260016007553480156200001657600080fd5b506040516200197238038062001972833981016040819052620000399162000201565b604080518082018252601781527f4a75737420536f6d65204675636b696e2720476f617473000000000000000000602080830191825283518085019094526005845264474f41545360d81b9084015281519192916200009b9160009162000142565b508051620000b190600190602084019062000142565b505050620000ce620000c8620000ec60201b60201c565b620000f0565b6001600160a01b0392831660a05260c0919091521660805262000286565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001509062000249565b90600052602060002090601f016020900481019282620001745760008555620001bf565b82601f106200018f57805160ff1916838001178555620001bf565b82800160010185558215620001bf579182015b82811115620001bf578251825591602001919060010190620001a2565b50620001cd929150620001d1565b5090565b5b80821115620001cd5760008155600101620001d2565b6001600160a01b0381168114620001fe57600080fd5b50565b6000806000606084860312156200021757600080fd5b83516200022481620001e8565b6020850151604086015191945092506200023e81620001e8565b809150509250925092565b600181811c908216806200025e57607f821691505b602082108114156200028057634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c051611699620002d96000396000818161021e0152610bed0152600081816102bf015281816108450152610a610152600081816102f301528181610c830152610d2201526116996000f3fe6080604052600436106101405760003560e01c806370a08231116100b6578063af847dc61161006f578063af847dc614610416578063b88d4fde1461042b578063bd13955d1461044b578063c87b56dd1461045e578063e985e9c51461047e578063f2fde38b146104b957600080fd5b806370a082311461036b578063715018a61461039857806375794a3c146103ad5780638da5cb5b146103c357806395d89b41146103e1578063a22cb465146103f657600080fd5b806323b872dd1161010857806323b872dd1461024e5780632a55205a1461026e57806338af3eed146102ad5780633d546fd6146102e157806342842e0e146103155780636352211e1461033557600080fd5b806301ffc9a71461014557806306fdde031461017a578063081812fc1461019c578063095ea7b3146101ea57806313faede61461020c575b600080fd5b34801561015157600080fd5b506101656101603660046111a5565b6104d9565b60405190151581526020015b60405180910390f35b34801561018657600080fd5b5061018f610504565b6040516101719190611221565b3480156101a857600080fd5b506101d26101b7366004611234565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610171565b3480156101f657600080fd5b5061020a610205366004611269565b610592565b005b34801561021857600080fd5b506102407f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610171565b34801561025a57600080fd5b5061020a610269366004611293565b610679565b34801561027a57600080fd5b5061028e6102893660046112cf565b610840565b604080516001600160a01b039093168352602083019190915201610171565b3480156102b957600080fd5b506101d27f000000000000000000000000000000000000000000000000000000000000000081565b3480156102ed57600080fd5b506101d27f000000000000000000000000000000000000000000000000000000000000000081565b34801561032157600080fd5b5061020a610330366004611293565b610886565b34801561034157600080fd5b506101d2610350366004611234565b6003602052600090815260409020546001600160a01b031681565b34801561037757600080fd5b506102406103863660046112f1565b60026020526000908152604090205481565b3480156103a457600080fd5b5061020a61097e565b3480156103b957600080fd5b5061024060075481565b3480156103cf57600080fd5b506006546001600160a01b03166101d2565b3480156103ed57600080fd5b5061018f6109e4565b34801561040257600080fd5b5061020a61041136600461130c565b6109f1565b34801561042257600080fd5b5061020a610a5d565b34801561043757600080fd5b5061020a61044636600461135e565b610ae0565b61020a610459366004611234565b610bc5565b34801561046a57600080fd5b5061018f610479366004611234565b610db5565b34801561048a57600080fd5b5061016561049936600461143a565b600560209081526000928352604080842090915290825290205460ff1681565b3480156104c557600080fd5b5061020a6104d43660046112f1565b610e00565b60006001600160e01b0319821663152a902d60e11b14806104fe57506104fe82610ec8565b92915050565b600080546105119061146d565b80601f016020809104026020016040519081016040528092919081815260200182805461053d9061146d565b801561058a5780601f1061055f5761010080835404028352916020019161058a565b820191906000526020600020905b81548152906001019060200180831161056d57829003601f168201915b505050505081565b6000818152600360205260409020546001600160a01b0316338114806105db57506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b61061d5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600360205260409020546001600160a01b038481169116146106cf5760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b6044820152606401610614565b6001600160a01b0382166107195760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610614565b336001600160a01b038416148061075357506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b8061077457506000818152600460205260409020546001600160a01b031633145b6107b15760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610614565b6001600160a01b0380841660008181526002602090815260408083208054600019019055938616808352848320805460010190558583526003825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000807f000000000000000000000000000000000000000000000000000000000000000060646108718560056114be565b61087b91906114f3565b915091509250929050565b610891838383610679565b6001600160a01b0382163b158061093a5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af115801561090a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092e9190611507565b6001600160e01b031916145b6109795760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610614565b505050565b6006546001600160a01b031633146109d85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b6109e26000610f16565b565b600180546105119061146d565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03164760405160006040518083038185875af1925050503d8060008114610aca576040519150601f19603f3d011682016040523d82523d6000602084013e610acf565b606091505b5050905080610add57600080fd5b50565b610aeb848484610679565b6001600160a01b0383163b1580610b805750604051630a85bd0160e11b808252906001600160a01b0385169063150b7a0290610b31903390899088908890600401611524565b6020604051808303816000875af1158015610b50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b749190611507565b6001600160e01b031916145b610bbf5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610614565b50505050565b6014811115610be75760405163105d675f60e01b815260040160405180910390fd5b610c11817f00000000000000000000000000000000000000000000000000000000000000006114be565b3414610c30576040516314be364b60e01b815260040160405180910390fd5b61271181600754610c419190611561565b1115610c60576040516363332e4f60e11b815260040160405180910390fd5b60005b81811015610db1576040516370a0823160e01b81523360048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610cd2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cf69190611579565b9050600081118015610d085750600082115b8015610d185750610d1881610f68565b15610d8957610d497f0000000000000000000000000000000000000000000000000000000000000000600754610f7e565b7ffaa1ca9f73c0ae40c010f4c3d33b362f3c63ce44b753d30796913f4dd7d141f5600754604051610d7c91815260200190565b60405180910390a1610d95565b610d9533600754610f7e565b5060078054600101905580610da981611592565b915050610c63565b5050565b606060405180606001604052806036815260200161162e60369139610dd983611089565b604051602001610dea9291906115ad565b6040516020818303038152906040529050919050565b6006546001600160a01b03163314610e5a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b6001600160a01b038116610ebf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610614565b610add81610f16565b60006301ffc9a760e01b6001600160e01b031983161480610ef957506380ac58cd60e01b6001600160e01b03198316145b806104fe5750506001600160e01b031916635b5e139f60e01b1490565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600081610f776101f4446115ec565b1092915050565b6001600160a01b038216610fc85760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610614565b6000818152600360205260409020546001600160a01b03161561101e5760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b6044820152606401610614565b6001600160a01b038216600081815260026020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060816110ad5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156110d757806110c181611592565b91506110d09050600a836114f3565b91506110b1565b60008167ffffffffffffffff8111156110f2576110f2611348565b6040519080825280601f01601f19166020018201604052801561111c576020820181803683370190505b5090505b841561118757611131600183611600565b915061113e600a866115ec565b611149906030611561565b60f81b81838151811061115e5761115e611617565b60200101906001600160f81b031916908160001a905350611180600a866114f3565b9450611120565b949350505050565b6001600160e01b031981168114610add57600080fd5b6000602082840312156111b757600080fd5b81356111c28161118f565b9392505050565b60005b838110156111e45781810151838201526020016111cc565b83811115610bbf5750506000910152565b6000815180845261120d8160208601602086016111c9565b601f01601f19169290920160200192915050565b6020815260006111c260208301846111f5565b60006020828403121561124657600080fd5b5035919050565b80356001600160a01b038116811461126457600080fd5b919050565b6000806040838503121561127c57600080fd5b6112858361124d565b946020939093013593505050565b6000806000606084860312156112a857600080fd5b6112b18461124d565b92506112bf6020850161124d565b9150604084013590509250925092565b600080604083850312156112e257600080fd5b50508035926020909101359150565b60006020828403121561130357600080fd5b6111c28261124d565b6000806040838503121561131f57600080fd5b6113288361124d565b91506020830135801515811461133d57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561137457600080fd5b61137d8561124d565b935061138b6020860161124d565b925060408501359150606085013567ffffffffffffffff808211156113af57600080fd5b818701915087601f8301126113c357600080fd5b8135818111156113d5576113d5611348565b604051601f8201601f19908116603f011681019083821181831017156113fd576113fd611348565b816040528281528a602084870101111561141657600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561144d57600080fd5b6114568361124d565b91506114646020840161124d565b90509250929050565b600181811c9082168061148157607f821691505b602082108114156114a257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156114d8576114d86114a8565b500290565b634e487b7160e01b600052601260045260246000fd5b600082611502576115026114dd565b500490565b60006020828403121561151957600080fd5b81516111c28161118f565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611557908301846111f5565b9695505050505050565b60008219821115611574576115746114a8565b500190565b60006020828403121561158b57600080fd5b5051919050565b60006000198214156115a6576115a66114a8565b5060010190565b600083516115bf8184602088016111c9565b8351908301906115d38183602088016111c9565b64173539b7b760d91b9101908152600501949350505050565b6000826115fb576115fb6114dd565b500690565b600082821015611612576116126114a8565b500390565b634e487b7160e01b600052603260045260246000fdfe697066733a2f2f516d5866766d35764a516e58455a43625170596957526f3148417574557137714c715132484c4e395761724454462fa2646970667358221220d5acf63e05a39b45a35ca3ef345f1fd26d1005a8e58da41e53bca69ae95ba78564736f6c634300080a00330000000000000000000000004ca4b07547e43317eb05ec12c885cbd02d02a4c300000000000000000000000000000000000000000000000000184eda8c048800000000000000000000000000240eb6b465f61dfc965053791f963cd0f0e4fdb0

Deployed Bytecode

0x6080604052600436106101405760003560e01c806370a08231116100b6578063af847dc61161006f578063af847dc614610416578063b88d4fde1461042b578063bd13955d1461044b578063c87b56dd1461045e578063e985e9c51461047e578063f2fde38b146104b957600080fd5b806370a082311461036b578063715018a61461039857806375794a3c146103ad5780638da5cb5b146103c357806395d89b41146103e1578063a22cb465146103f657600080fd5b806323b872dd1161010857806323b872dd1461024e5780632a55205a1461026e57806338af3eed146102ad5780633d546fd6146102e157806342842e0e146103155780636352211e1461033557600080fd5b806301ffc9a71461014557806306fdde031461017a578063081812fc1461019c578063095ea7b3146101ea57806313faede61461020c575b600080fd5b34801561015157600080fd5b506101656101603660046111a5565b6104d9565b60405190151581526020015b60405180910390f35b34801561018657600080fd5b5061018f610504565b6040516101719190611221565b3480156101a857600080fd5b506101d26101b7366004611234565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610171565b3480156101f657600080fd5b5061020a610205366004611269565b610592565b005b34801561021857600080fd5b506102407f00000000000000000000000000000000000000000000000000184eda8c04880081565b604051908152602001610171565b34801561025a57600080fd5b5061020a610269366004611293565b610679565b34801561027a57600080fd5b5061028e6102893660046112cf565b610840565b604080516001600160a01b039093168352602083019190915201610171565b3480156102b957600080fd5b506101d27f0000000000000000000000004ca4b07547e43317eb05ec12c885cbd02d02a4c381565b3480156102ed57600080fd5b506101d27f000000000000000000000000240eb6b465f61dfc965053791f963cd0f0e4fdb081565b34801561032157600080fd5b5061020a610330366004611293565b610886565b34801561034157600080fd5b506101d2610350366004611234565b6003602052600090815260409020546001600160a01b031681565b34801561037757600080fd5b506102406103863660046112f1565b60026020526000908152604090205481565b3480156103a457600080fd5b5061020a61097e565b3480156103b957600080fd5b5061024060075481565b3480156103cf57600080fd5b506006546001600160a01b03166101d2565b3480156103ed57600080fd5b5061018f6109e4565b34801561040257600080fd5b5061020a61041136600461130c565b6109f1565b34801561042257600080fd5b5061020a610a5d565b34801561043757600080fd5b5061020a61044636600461135e565b610ae0565b61020a610459366004611234565b610bc5565b34801561046a57600080fd5b5061018f610479366004611234565b610db5565b34801561048a57600080fd5b5061016561049936600461143a565b600560209081526000928352604080842090915290825290205460ff1681565b3480156104c557600080fd5b5061020a6104d43660046112f1565b610e00565b60006001600160e01b0319821663152a902d60e11b14806104fe57506104fe82610ec8565b92915050565b600080546105119061146d565b80601f016020809104026020016040519081016040528092919081815260200182805461053d9061146d565b801561058a5780601f1061055f5761010080835404028352916020019161058a565b820191906000526020600020905b81548152906001019060200180831161056d57829003601f168201915b505050505081565b6000818152600360205260409020546001600160a01b0316338114806105db57506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b61061d5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600360205260409020546001600160a01b038481169116146106cf5760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b6044820152606401610614565b6001600160a01b0382166107195760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610614565b336001600160a01b038416148061075357506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b8061077457506000818152600460205260409020546001600160a01b031633145b6107b15760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610614565b6001600160a01b0380841660008181526002602090815260408083208054600019019055938616808352848320805460010190558583526003825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000807f0000000000000000000000004ca4b07547e43317eb05ec12c885cbd02d02a4c360646108718560056114be565b61087b91906114f3565b915091509250929050565b610891838383610679565b6001600160a01b0382163b158061093a5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af115801561090a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092e9190611507565b6001600160e01b031916145b6109795760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610614565b505050565b6006546001600160a01b031633146109d85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b6109e26000610f16565b565b600180546105119061146d565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60007f0000000000000000000000004ca4b07547e43317eb05ec12c885cbd02d02a4c36001600160a01b03164760405160006040518083038185875af1925050503d8060008114610aca576040519150601f19603f3d011682016040523d82523d6000602084013e610acf565b606091505b5050905080610add57600080fd5b50565b610aeb848484610679565b6001600160a01b0383163b1580610b805750604051630a85bd0160e11b808252906001600160a01b0385169063150b7a0290610b31903390899088908890600401611524565b6020604051808303816000875af1158015610b50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b749190611507565b6001600160e01b031916145b610bbf5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610614565b50505050565b6014811115610be75760405163105d675f60e01b815260040160405180910390fd5b610c11817f00000000000000000000000000000000000000000000000000184eda8c0488006114be565b3414610c30576040516314be364b60e01b815260040160405180910390fd5b61271181600754610c419190611561565b1115610c60576040516363332e4f60e11b815260040160405180910390fd5b60005b81811015610db1576040516370a0823160e01b81523360048201526000907f000000000000000000000000240eb6b465f61dfc965053791f963cd0f0e4fdb06001600160a01b0316906370a0823190602401602060405180830381865afa158015610cd2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cf69190611579565b9050600081118015610d085750600082115b8015610d185750610d1881610f68565b15610d8957610d497f000000000000000000000000240eb6b465f61dfc965053791f963cd0f0e4fdb0600754610f7e565b7ffaa1ca9f73c0ae40c010f4c3d33b362f3c63ce44b753d30796913f4dd7d141f5600754604051610d7c91815260200190565b60405180910390a1610d95565b610d9533600754610f7e565b5060078054600101905580610da981611592565b915050610c63565b5050565b606060405180606001604052806036815260200161162e60369139610dd983611089565b604051602001610dea9291906115ad565b6040516020818303038152906040529050919050565b6006546001600160a01b03163314610e5a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b6001600160a01b038116610ebf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610614565b610add81610f16565b60006301ffc9a760e01b6001600160e01b031983161480610ef957506380ac58cd60e01b6001600160e01b03198316145b806104fe5750506001600160e01b031916635b5e139f60e01b1490565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600081610f776101f4446115ec565b1092915050565b6001600160a01b038216610fc85760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610614565b6000818152600360205260409020546001600160a01b03161561101e5760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b6044820152606401610614565b6001600160a01b038216600081815260026020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060816110ad5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156110d757806110c181611592565b91506110d09050600a836114f3565b91506110b1565b60008167ffffffffffffffff8111156110f2576110f2611348565b6040519080825280601f01601f19166020018201604052801561111c576020820181803683370190505b5090505b841561118757611131600183611600565b915061113e600a866115ec565b611149906030611561565b60f81b81838151811061115e5761115e611617565b60200101906001600160f81b031916908160001a905350611180600a866114f3565b9450611120565b949350505050565b6001600160e01b031981168114610add57600080fd5b6000602082840312156111b757600080fd5b81356111c28161118f565b9392505050565b60005b838110156111e45781810151838201526020016111cc565b83811115610bbf5750506000910152565b6000815180845261120d8160208601602086016111c9565b601f01601f19169290920160200192915050565b6020815260006111c260208301846111f5565b60006020828403121561124657600080fd5b5035919050565b80356001600160a01b038116811461126457600080fd5b919050565b6000806040838503121561127c57600080fd5b6112858361124d565b946020939093013593505050565b6000806000606084860312156112a857600080fd5b6112b18461124d565b92506112bf6020850161124d565b9150604084013590509250925092565b600080604083850312156112e257600080fd5b50508035926020909101359150565b60006020828403121561130357600080fd5b6111c28261124d565b6000806040838503121561131f57600080fd5b6113288361124d565b91506020830135801515811461133d57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561137457600080fd5b61137d8561124d565b935061138b6020860161124d565b925060408501359150606085013567ffffffffffffffff808211156113af57600080fd5b818701915087601f8301126113c357600080fd5b8135818111156113d5576113d5611348565b604051601f8201601f19908116603f011681019083821181831017156113fd576113fd611348565b816040528281528a602084870101111561141657600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561144d57600080fd5b6114568361124d565b91506114646020840161124d565b90509250929050565b600181811c9082168061148157607f821691505b602082108114156114a257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156114d8576114d86114a8565b500290565b634e487b7160e01b600052601260045260246000fd5b600082611502576115026114dd565b500490565b60006020828403121561151957600080fd5b81516111c28161118f565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611557908301846111f5565b9695505050505050565b60008219821115611574576115746114a8565b500190565b60006020828403121561158b57600080fd5b5051919050565b60006000198214156115a6576115a66114a8565b5060010190565b600083516115bf8184602088016111c9565b8351908301906115d38183602088016111c9565b64173539b7b760d91b9101908152600501949350505050565b6000826115fb576115fb6114dd565b500690565b600082821015611612576116126114a8565b500390565b634e487b7160e01b600052603260045260246000fdfe697066733a2f2f516d5866766d35764a516e58455a43625170596957526f3148417574557137714c715132484c4e395761724454462fa2646970667358221220d5acf63e05a39b45a35ca3ef345f1fd26d1005a8e58da41e53bca69ae95ba78564736f6c634300080a0033

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

0000000000000000000000004ca4b07547e43317eb05ec12c885cbd02d02a4c300000000000000000000000000000000000000000000000000184eda8c048800000000000000000000000000240eb6b465f61dfc965053791f963cd0f0e4fdb0

-----Decoded View---------------
Arg [0] : _beneficiary (address): 0x4CA4B07547e43317EB05ec12c885Cbd02D02a4C3
Arg [1] : _cost (uint256): 6842100000000000
Arg [2] : _trolls (address): 0x240eB6b465F61dfC965053791F963cD0f0E4FDB0

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000004ca4b07547e43317eb05ec12c885cbd02d02a4c3
Arg [1] : 00000000000000000000000000000000000000000000000000184eda8c048800
Arg [2] : 000000000000000000000000240eb6b465f61dfc965053791f963cd0f0e4fdb0


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.