Token Frenpet NFT

 

Overview [ERC-721]

Max Total Supply:
0 Frenpet

Holders:
8,994
Balance
5 Frenpet
0x510cf2d6116c88b1eab51d84f71eebfbf071e5ef
Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
FrenpetNFT

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 3 : FrenpetNFT.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.13;

import {Owned} from "solmate/auth/Owned.sol";
import {ERC721} from "solmate/tokens/ERC721.sol";

interface IRenderer {
    function tokenURI(uint256 id) external view returns (string memory);
}

// ERC721,
contract FrenpetNFT is Owned, ERC721 {
    IRenderer public renderer;
    uint256 public _tokenIds;
    mapping(address => bool) public isMinter;

    constructor() Owned(msg.sender) ERC721("Frenpet NFT", "Frenpet") {}

    /*//////////////////////////////////////////////////////////////
                        Game Actions
    //////////////////////////////////////////////////////////////*/

    function mint(address to) public {
        require(isMinter[msg.sender], "Unauthorized");

        // mint NFT
        _mint(to, _tokenIds);
        _tokenIds++;
    }

    function burnInGame(uint256 id) external {
        require(isMinter[msg.sender], "Unauthorized");

        _burn(id);
    }

    /*//////////////////////////////////////////////////////////////
                        Metadata
    //////////////////////////////////////////////////////////////*/

    function tokenURI(uint256 id) public view override returns (string memory) {
        return renderer.tokenURI(id);
    }

    /*//////////////////////////////////////////////////////////////
                        admin
    //////////////////////////////////////////////////////////////*/

    function setRenderer(IRenderer _renderer) external onlyOwner {
        renderer = _renderer;
    }

    function setMinter(address _minter, bool _isAllowed) external onlyOwner {
        isMinter[_minter] = _isAllowed;
    }
}

File 2 of 3 : Owned.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Simple single owner authorization mixin.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/auth/Owned.sol)
abstract contract Owned {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

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

    /*//////////////////////////////////////////////////////////////
                            OWNERSHIP STORAGE
    //////////////////////////////////////////////////////////////*/

    address public owner;

    modifier onlyOwner() virtual {
        require(msg.sender == owner, "UNAUTHORIZED");

        _;
    }

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

    constructor(address _owner) {
        owner = _owner;

        emit OwnershipTransferred(address(0), _owner);
    }

    /*//////////////////////////////////////////////////////////////
                             OWNERSHIP LOGIC
    //////////////////////////////////////////////////////////////*/

    function transferOwnership(address newOwner) public virtual onlyOwner {
        owner = newOwner;

        emit OwnershipTransferred(msg.sender, newOwner);
    }
}

File 3 of 3 : ERC721.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern, minimalist, and gas efficient ERC-721 implementation.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol)
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 BALANCE/OWNER STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) internal _ownerOf;

    mapping(address => uint256) internal _balanceOf;

    function ownerOf(uint256 id) public view virtual returns (address owner) {
        require((owner = _ownerOf[id]) != address(0), "NOT_MINTED");
    }

    function balanceOf(address owner) public view virtual returns (uint256) {
        require(owner != address(0), "ZERO_ADDRESS");

        return _balanceOf[owner];
    }

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

    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 calldata 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/transmissions11/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721TokenReceiver {
    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC721TokenReceiver.onERC721Received.selector;
    }
}

Settings
{
  "remappings": [
    "openzeppelin/=lib/openzeppelin-contracts/contracts/",
    "solmate/=lib/solmate/src/",
    "prb-math/=lib/prb-math/src/",
    "@openzeppelin/=lib/openzeppelin-contracts/",
    "@chainlink/=lib/chainlink/",
    "@prb/test/=lib/prb-math/lib/prb-test/src/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "prb-test/=lib/prb-math/lib/prb-test/src/",
    "solidity-stringutils/=lib/solidity-stringutils/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":true,"internalType":"address","name":"user","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":[],"name":"_tokenIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"burnInGame","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":[{"internalType":"address","name":"","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renderer","outputs":[{"internalType":"contract IRenderer","name":"","type":"address"}],"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":[{"internalType":"address","name":"_minter","type":"address"},{"internalType":"bool","name":"_isAllowed","type":"bool"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IRenderer","name":"_renderer","type":"address"}],"name":"setRenderer","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":"view","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"}]

60806040523480156200001157600080fd5b50604080518082018252600b81526a119c995b9c195d0813919560aa1b602080830191909152825180840184526007815266119c995b9c195d60ca1b91810191909152600080546001600160a01b0319163390811782559351929391928291907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001620000a5838262000162565b506002620000b4828262000162565b5050506200022e565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620000e857607f821691505b6020821081036200010957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200015d57600081815260208120601f850160051c81016020861015620001385750805b601f850160051c820191505b81811015620001595782815560010162000144565b5050505b505050565b81516001600160401b038111156200017e576200017e620000bd565b62000196816200018f8454620000d3565b846200010f565b602080601f831160018114620001ce5760008415620001b55750858301515b600019600386901b1c1916600185901b17855562000159565b600085815260208120601f198616915b82811015620001ff57888601518255948401946001909101908401620001de565b50858210156200021e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611266806200023e6000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c80638ada6b0f116100b8578063aa46a4001161007c578063aa46a400146102d1578063b88d4fde146102da578063c87b56dd146102ed578063cf456ae714610300578063e985e9c514610313578063f2fde38b1461034157600080fd5b80638ada6b0f1461026d5780638da5cb5b1461028057806395d89b4114610293578063a22cb4651461029b578063aa271e1a146102ae57600080fd5b806323b872dd1161010a57806323b872dd146101ed57806342842e0e1461020057806356d3163d146102135780636352211e146102265780636a6278421461023957806370a082311461024c57600080fd5b806301ffc9a71461014757806306fdde031461016f57806307200d0014610184578063081812fc14610199578063095ea7b3146101da575b600080fd5b61015a610155366004610e37565b610354565b60405190151581526020015b60405180910390f35b6101776103a6565b6040516101669190610e7f565b610197610192366004610eb2565b610434565b005b6101c26101a7366004610eb2565b6005602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610166565b6101976101e8366004610ee0565b610493565b6101976101fb366004610f0c565b610575565b61019761020e366004610f0c565b61073c565b610197610221366004610f4d565b610834565b6101c2610234366004610eb2565b610880565b610197610247366004610f4d565b6108d7565b61025f61025a366004610f4d565b610949565b604051908152602001610166565b6007546101c2906001600160a01b031681565b6000546101c2906001600160a01b031681565b6101776109ac565b6101976102a9366004610f6a565b6109b9565b61015a6102bc366004610f4d565b60096020526000908152604090205460ff1681565b61025f60085481565b6101976102e8366004610fa8565b610a25565b6101776102fb366004610eb2565b610b0d565b61019761030e366004610f6a565b610b7f565b61015a610321366004611047565b600660209081526000928352604080842090915290825290205460ff1681565b61019761034f366004610f4d565b610bd4565b60006301ffc9a760e01b6001600160e01b03198316148061038557506380ac58cd60e01b6001600160e01b03198316145b806103a05750635b5e139f60e01b6001600160e01b03198316145b92915050565b600180546103b390611075565b80601f01602080910402602001604051908101604052809291908181526020018280546103df90611075565b801561042c5780601f106104015761010080835404028352916020019161042c565b820191906000526020600020905b81548152906001019060200180831161040f57829003601f168201915b505050505081565b3360009081526009602052604090205460ff166104875760405162461bcd60e51b815260206004820152600c60248201526b155b985d5d1a1bdc9a5e995960a21b60448201526064015b60405180910390fd5b61049081610c49565b50565b6000818152600360205260409020546001600160a01b0316338114806104dc57506001600160a01b038116600090815260066020908152604080832033845290915290205460ff165b6105195760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b604482015260640161047e565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600360205260409020546001600160a01b038481169116146105cb5760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b604482015260640161047e565b6001600160a01b0382166106155760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b604482015260640161047e565b336001600160a01b038416148061064f57506001600160a01b038316600090815260066020908152604080832033845290915290205460ff165b8061067057506000818152600560205260409020546001600160a01b031633145b6106ad5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b604482015260640161047e565b6001600160a01b0380841660008181526004602090815260408083208054600019019055938616808352848320805460010190558583526003825284832080546001600160a01b03199081168317909155600590925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610747838383610575565b6001600160a01b0382163b15806107f05750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af11580156107c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e491906110af565b6001600160e01b031916145b61082f5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b604482015260640161047e565b505050565b6000546001600160a01b0316331461085e5760405162461bcd60e51b815260040161047e906110cc565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600360205260409020546001600160a01b0316806108d25760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b604482015260640161047e565b919050565b3360009081526009602052604090205460ff166109255760405162461bcd60e51b815260206004820152600c60248201526b155b985d5d1a1bdc9a5e995960a21b604482015260640161047e565b61093181600854610d16565b60088054906000610941836110f2565b919050555050565b60006001600160a01b0382166109905760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b604482015260640161047e565b506001600160a01b031660009081526004602052604090205490565b600280546103b390611075565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610a30858585610575565b6001600160a01b0384163b1580610ac75750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610a789033908a90899089908990600401611119565b6020604051808303816000875af1158015610a97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abb91906110af565b6001600160e01b031916145b610b065760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b604482015260640161047e565b5050505050565b60075460405163c87b56dd60e01b8152600481018390526060916001600160a01b03169063c87b56dd90602401600060405180830381865afa158015610b57573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103a09190810190611183565b6000546001600160a01b03163314610ba95760405162461bcd60e51b815260040161047e906110cc565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b6000546001600160a01b03163314610bfe5760405162461bcd60e51b815260040161047e906110cc565b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b6000818152600360205260409020546001600160a01b031680610c9b5760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b604482015260640161047e565b6001600160a01b038116600081815260046020908152604080832080546000190190558583526003825280832080546001600160a01b031990811690915560059092528083208054909216909155518492907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b038216610d605760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b604482015260640161047e565b6000818152600360205260409020546001600160a01b031615610db65760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b604482015260640161047e565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b03198116811461049057600080fd5b600060208284031215610e4957600080fd5b8135610e5481610e21565b9392505050565b60005b83811015610e76578181015183820152602001610e5e565b50506000910152565b6020815260008251806020840152610e9e816040850160208701610e5b565b601f01601f19169190910160400192915050565b600060208284031215610ec457600080fd5b5035919050565b6001600160a01b038116811461049057600080fd5b60008060408385031215610ef357600080fd5b8235610efe81610ecb565b946020939093013593505050565b600080600060608486031215610f2157600080fd5b8335610f2c81610ecb565b92506020840135610f3c81610ecb565b929592945050506040919091013590565b600060208284031215610f5f57600080fd5b8135610e5481610ecb565b60008060408385031215610f7d57600080fd5b8235610f8881610ecb565b915060208301358015158114610f9d57600080fd5b809150509250929050565b600080600080600060808688031215610fc057600080fd5b8535610fcb81610ecb565b94506020860135610fdb81610ecb565b935060408601359250606086013567ffffffffffffffff80821115610fff57600080fd5b818801915088601f83011261101357600080fd5b81358181111561102257600080fd5b89602082850101111561103457600080fd5b9699959850939650602001949392505050565b6000806040838503121561105a57600080fd5b823561106581610ecb565b91506020830135610f9d81610ecb565b600181811c9082168061108957607f821691505b6020821081036110a957634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156110c157600080fd5b8151610e5481610e21565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b60006001820161111257634e487b7160e01b600052601160045260246000fd5b5060010190565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561119557600080fd5b815167ffffffffffffffff808211156111ad57600080fd5b818401915084601f8301126111c157600080fd5b8151818111156111d3576111d361116d565b604051601f8201601f19908116603f011681019083821181831017156111fb576111fb61116d565b8160405282815287602084870101111561121457600080fd5b611225836020830160208801610e5b565b97965050505050505056fea264697066735822122017fa6643e452b37ca16bc792605a9c2e8598a54b50acbee8a79c127541f6ee2b64736f6c63430008130033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101425760003560e01c80638ada6b0f116100b8578063aa46a4001161007c578063aa46a400146102d1578063b88d4fde146102da578063c87b56dd146102ed578063cf456ae714610300578063e985e9c514610313578063f2fde38b1461034157600080fd5b80638ada6b0f1461026d5780638da5cb5b1461028057806395d89b4114610293578063a22cb4651461029b578063aa271e1a146102ae57600080fd5b806323b872dd1161010a57806323b872dd146101ed57806342842e0e1461020057806356d3163d146102135780636352211e146102265780636a6278421461023957806370a082311461024c57600080fd5b806301ffc9a71461014757806306fdde031461016f57806307200d0014610184578063081812fc14610199578063095ea7b3146101da575b600080fd5b61015a610155366004610e37565b610354565b60405190151581526020015b60405180910390f35b6101776103a6565b6040516101669190610e7f565b610197610192366004610eb2565b610434565b005b6101c26101a7366004610eb2565b6005602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610166565b6101976101e8366004610ee0565b610493565b6101976101fb366004610f0c565b610575565b61019761020e366004610f0c565b61073c565b610197610221366004610f4d565b610834565b6101c2610234366004610eb2565b610880565b610197610247366004610f4d565b6108d7565b61025f61025a366004610f4d565b610949565b604051908152602001610166565b6007546101c2906001600160a01b031681565b6000546101c2906001600160a01b031681565b6101776109ac565b6101976102a9366004610f6a565b6109b9565b61015a6102bc366004610f4d565b60096020526000908152604090205460ff1681565b61025f60085481565b6101976102e8366004610fa8565b610a25565b6101776102fb366004610eb2565b610b0d565b61019761030e366004610f6a565b610b7f565b61015a610321366004611047565b600660209081526000928352604080842090915290825290205460ff1681565b61019761034f366004610f4d565b610bd4565b60006301ffc9a760e01b6001600160e01b03198316148061038557506380ac58cd60e01b6001600160e01b03198316145b806103a05750635b5e139f60e01b6001600160e01b03198316145b92915050565b600180546103b390611075565b80601f01602080910402602001604051908101604052809291908181526020018280546103df90611075565b801561042c5780601f106104015761010080835404028352916020019161042c565b820191906000526020600020905b81548152906001019060200180831161040f57829003601f168201915b505050505081565b3360009081526009602052604090205460ff166104875760405162461bcd60e51b815260206004820152600c60248201526b155b985d5d1a1bdc9a5e995960a21b60448201526064015b60405180910390fd5b61049081610c49565b50565b6000818152600360205260409020546001600160a01b0316338114806104dc57506001600160a01b038116600090815260066020908152604080832033845290915290205460ff165b6105195760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b604482015260640161047e565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600360205260409020546001600160a01b038481169116146105cb5760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b604482015260640161047e565b6001600160a01b0382166106155760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b604482015260640161047e565b336001600160a01b038416148061064f57506001600160a01b038316600090815260066020908152604080832033845290915290205460ff165b8061067057506000818152600560205260409020546001600160a01b031633145b6106ad5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b604482015260640161047e565b6001600160a01b0380841660008181526004602090815260408083208054600019019055938616808352848320805460010190558583526003825284832080546001600160a01b03199081168317909155600590925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610747838383610575565b6001600160a01b0382163b15806107f05750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af11580156107c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e491906110af565b6001600160e01b031916145b61082f5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b604482015260640161047e565b505050565b6000546001600160a01b0316331461085e5760405162461bcd60e51b815260040161047e906110cc565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600360205260409020546001600160a01b0316806108d25760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b604482015260640161047e565b919050565b3360009081526009602052604090205460ff166109255760405162461bcd60e51b815260206004820152600c60248201526b155b985d5d1a1bdc9a5e995960a21b604482015260640161047e565b61093181600854610d16565b60088054906000610941836110f2565b919050555050565b60006001600160a01b0382166109905760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b604482015260640161047e565b506001600160a01b031660009081526004602052604090205490565b600280546103b390611075565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610a30858585610575565b6001600160a01b0384163b1580610ac75750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610a789033908a90899089908990600401611119565b6020604051808303816000875af1158015610a97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abb91906110af565b6001600160e01b031916145b610b065760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b604482015260640161047e565b5050505050565b60075460405163c87b56dd60e01b8152600481018390526060916001600160a01b03169063c87b56dd90602401600060405180830381865afa158015610b57573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103a09190810190611183565b6000546001600160a01b03163314610ba95760405162461bcd60e51b815260040161047e906110cc565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b6000546001600160a01b03163314610bfe5760405162461bcd60e51b815260040161047e906110cc565b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b6000818152600360205260409020546001600160a01b031680610c9b5760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b604482015260640161047e565b6001600160a01b038116600081815260046020908152604080832080546000190190558583526003825280832080546001600160a01b031990811690915560059092528083208054909216909155518492907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b038216610d605760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b604482015260640161047e565b6000818152600360205260409020546001600160a01b031615610db65760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b604482015260640161047e565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b03198116811461049057600080fd5b600060208284031215610e4957600080fd5b8135610e5481610e21565b9392505050565b60005b83811015610e76578181015183820152602001610e5e565b50506000910152565b6020815260008251806020840152610e9e816040850160208701610e5b565b601f01601f19169190910160400192915050565b600060208284031215610ec457600080fd5b5035919050565b6001600160a01b038116811461049057600080fd5b60008060408385031215610ef357600080fd5b8235610efe81610ecb565b946020939093013593505050565b600080600060608486031215610f2157600080fd5b8335610f2c81610ecb565b92506020840135610f3c81610ecb565b929592945050506040919091013590565b600060208284031215610f5f57600080fd5b8135610e5481610ecb565b60008060408385031215610f7d57600080fd5b8235610f8881610ecb565b915060208301358015158114610f9d57600080fd5b809150509250929050565b600080600080600060808688031215610fc057600080fd5b8535610fcb81610ecb565b94506020860135610fdb81610ecb565b935060408601359250606086013567ffffffffffffffff80821115610fff57600080fd5b818801915088601f83011261101357600080fd5b81358181111561102257600080fd5b89602082850101111561103457600080fd5b9699959850939650602001949392505050565b6000806040838503121561105a57600080fd5b823561106581610ecb565b91506020830135610f9d81610ecb565b600181811c9082168061108957607f821691505b6020821081036110a957634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156110c157600080fd5b8151610e5481610e21565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b60006001820161111257634e487b7160e01b600052601160045260246000fd5b5060010190565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561119557600080fd5b815167ffffffffffffffff808211156111ad57600080fd5b818401915084601f8301126111c157600080fd5b8151818111156111d3576111d361116d565b604051601f8201601f19908116603f011681019083821181831017156111fb576111fb61116d565b8160405282815287602084870101111561121457600080fd5b611225836020830160208801610e5b565b97965050505050505056fea264697066735822122017fa6643e452b37ca16bc792605a9c2e8598a54b50acbee8a79c127541f6ee2b64736f6c63430008130033

Loading