ETH Price: $3,966.23 (+1.46%)

Contract

0x2969c8309bA789A8DDBA80F6Bfa74Accc1D4419b
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...171264692023-04-25 23:13:47600 days ago1682464427IN
yield bearing smolting: ybSMOL Token
0 ETH0.001614734.9548186
Safe Transfer Fr...167683862023-03-06 9:19:59651 days ago1678094399IN
yield bearing smolting: ybSMOL Token
0 ETH0.0024729922
Set Approval For...166974872023-02-24 10:04:23661 days ago1677233063IN
yield bearing smolting: ybSMOL Token
0 ETH0.0012912427.95272927
Set Approval For...163949162023-01-13 2:32:59703 days ago1673577179IN
yield bearing smolting: ybSMOL Token
0 ETH0.0006401224.35605113
Set Approval For...163949092023-01-13 2:31:35703 days ago1673577095IN
yield bearing smolting: ybSMOL Token
0 ETH0.0006373726.2488168
Set Approval For...161926362022-12-15 20:59:35731 days ago1671137975IN
yield bearing smolting: ybSMOL Token
0 ETH0.0011746425.42841345
Transfer From158753352022-11-01 13:00:23776 days ago1667307623IN
yield bearing smolting: ybSMOL Token
0 ETH0.0003124910.42747012
Transfer From158753212022-11-01 12:57:35776 days ago1667307455IN
yield bearing smolting: ybSMOL Token
0 ETH0.0003404911.36180493
Safe Transfer Fr...158752712022-11-01 12:47:23776 days ago1667306843IN
yield bearing smolting: ybSMOL Token
0 ETH0.0019220413.64322679
Safe Transfer Fr...158752662022-11-01 12:46:23776 days ago1667306783IN
yield bearing smolting: ybSMOL Token
0 ETH0.0025416714.51681838
Transfer From158746152022-11-01 10:34:59776 days ago1667298899IN
yield bearing smolting: ybSMOL Token
0 ETH0.001829378.93282311
Transfer From158746132022-11-01 10:34:35776 days ago1667298875IN
yield bearing smolting: ybSMOL Token
0 ETH0.001252688.44205979
Set Approval For...156769782022-10-04 19:52:47803 days ago1664913167IN
yield bearing smolting: ybSMOL Token
0 ETH0.0006215313.45498867
Safe Transfer Fr...155372312022-09-15 6:05:06823 days ago1663221906IN
yield bearing smolting: ybSMOL Token
0 ETH0.001365588.52366363
Safe Transfer Fr...155372152022-09-15 6:01:02823 days ago1663221662IN
yield bearing smolting: ybSMOL Token
0 ETH0.00131847.64296024
Safe Transfer Fr...155372052022-09-15 5:58:58823 days ago1663221538IN
yield bearing smolting: ybSMOL Token
0 ETH0.001475418.32105691
Safe Transfer Fr...155371992022-09-15 5:57:45823 days ago1663221465IN
yield bearing smolting: ybSMOL Token
0 ETH0.002016829.71592492
Safe Transfer Fr...155371892022-09-15 5:55:01823 days ago1663221301IN
yield bearing smolting: ybSMOL Token
0 ETH0.001058728.43584805
Set Approval For...155093792022-09-10 14:52:19828 days ago1662821539IN
yield bearing smolting: ybSMOL Token
0 ETH0.0006445113.95245103
Safe Transfer Fr...154935292022-09-08 0:49:00830 days ago1662598140IN
yield bearing smolting: ybSMOL Token
0 ETH0.001566725.91943071
Mint154935152022-09-08 0:46:28830 days ago1662597988IN
yield bearing smolting: ybSMOL Token
0.09 ETH0.002713456.82621101
Mint154781782022-09-05 13:42:54833 days ago1662385374IN
yield bearing smolting: ybSMOL Token
0.09 ETH0.0048129413.20539988
Set Approval For...154651392022-09-03 11:32:32835 days ago1662204752IN
yield bearing smolting: ybSMOL Token
0 ETH0.000254555.51054522
Mint154650872022-09-03 11:19:12835 days ago1662203952IN
yield bearing smolting: ybSMOL Token
0.27 ETH0.004005615.53488975
Mint154647142022-09-03 10:01:04835 days ago1662199264IN
yield bearing smolting: ybSMOL Token
0.09 ETH0.002156227.03005032
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
154935152022-09-08 0:46:28830 days ago1662597988
yield bearing smolting: ybSMOL Token
0.09 ETH
154781782022-09-05 13:42:54833 days ago1662385374
yield bearing smolting: ybSMOL Token
0.09 ETH
154650872022-09-03 11:19:12835 days ago1662203952
yield bearing smolting: ybSMOL Token
0.27 ETH
154647142022-09-03 10:01:04835 days ago1662199264
yield bearing smolting: ybSMOL Token
0.09 ETH
154555182022-09-01 22:33:21836 days ago1662071601
yield bearing smolting: ybSMOL Token
0.09 ETH
154554112022-09-01 22:09:39836 days ago1662070179
yield bearing smolting: ybSMOL Token
0.09 ETH
154410122022-08-30 14:58:34839 days ago1661871514
yield bearing smolting: ybSMOL Token
0.09 ETH
154392412022-08-30 8:05:27839 days ago1661846727
yield bearing smolting: ybSMOL Token
0.27 ETH
154301992022-08-28 21:33:37840 days ago1661722417
yield bearing smolting: ybSMOL Token
0.09 ETH
154300782022-08-28 21:09:17840 days ago1661720957
yield bearing smolting: ybSMOL Token
0.09 ETH
154300532022-08-28 21:02:59840 days ago1661720579
yield bearing smolting: ybSMOL Token
0.09 ETH
154298932022-08-28 20:25:08840 days ago1661718308
yield bearing smolting: ybSMOL Token
0.09 ETH
154229202022-08-27 17:29:07841 days ago1661621347
yield bearing smolting: ybSMOL Token
0.09 ETH
153530922022-08-16 15:13:59853 days ago1660662839
yield bearing smolting: ybSMOL Token
0.09 ETH
152616442022-08-02 7:07:18867 days ago1659424038
yield bearing smolting: ybSMOL Token
0.09 ETH
152587862022-08-01 20:21:23867 days ago1659385283
yield bearing smolting: ybSMOL Token
0.09 ETH
152025402022-07-24 1:59:51876 days ago1658627991
yield bearing smolting: ybSMOL Token
0.09 ETH
152025182022-07-24 1:53:05876 days ago1658627585
yield bearing smolting: ybSMOL Token
0.27 ETH
151965522022-07-23 3:35:57877 days ago1658547357
yield bearing smolting: ybSMOL Token
0.09 ETH
151573932022-07-17 2:07:55883 days ago1658023675
yield bearing smolting: ybSMOL Token
0.09 ETH
151554482022-07-16 18:59:18883 days ago1657997958
yield bearing smolting: ybSMOL Token
0.09 ETH
151554142022-07-16 18:52:06883 days ago1657997526
yield bearing smolting: ybSMOL Token
0.9 ETH
151538772022-07-16 12:55:51884 days ago1657976151
yield bearing smolting: ybSMOL Token
0.09 ETH
151522612022-07-16 7:03:19884 days ago1657954999
yield bearing smolting: ybSMOL Token
0.09 ETH
151517052022-07-16 4:57:58884 days ago1657947478
yield bearing smolting: ybSMOL Token
0.18 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SMOLNft

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 22 : SMOLNft.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/utils/Counters.sol';
import './interfaces/ISmoltingInu.sol';
import './SMOLNftRewards.sol';

/**
 * SMOL yield bearing NFTs
 */
contract SMOLNft is Ownable, ERC721Burnable, ERC721Enumerable, ERC721Pausable {
  using Strings for uint256;
  using Counters for Counters.Counter;

  uint16 public constant PERCENT_DENOMENATOR = 1000;
  uint16 private constant FIVE_MINUTES = 60 * 5;

  Counters.Counter private _tokenIds;

  SMOLNftRewards private _rewards;
  mapping(address => bool) private _isRewardsExcluded;

  // user => timestamp of last mint
  // used for throttling wallets from minting too often
  mapping(address => uint256) public userLastMinted;

  // Base token uri
  string private baseTokenURI; // baseTokenURI can point to IPFS folder like https://ipfs.io/ipfs/{cid}/ while

  address public smol = 0x2bf6267c4997548d8de56087E5d48bDCCb877E77;
  uint256 public nativeCost = 9 ether / 100; // 0.09 ETH
  uint256 public smolCost = 100 * 10**18;
  uint8 public maxPerMint = 10;

  // Payment address
  address public paymentAddress = 0x98c574473313EAC3FC6af9740245949380ec166E;

  // Royalties address
  address public royaltyAddress = 0x98c574473313EAC3FC6af9740245949380ec166E;

  // Royalties basis points (percentage using 2 decimals - 1000 = 100, 500 = 50, 0 = 0)
  uint256 private royaltyBasisPoints = 50; // 5%

  // Token info
  string public constant TOKEN_NAME = 'yield bearing smolting';
  string public constant TOKEN_SYMBOL = 'ybSMOL'; // yield bearing SMOL
  uint256 public constant TOTAL_TOKENS = 4269;

  // Public sale params
  uint256 public publicSaleStartTime;
  bool public publicSaleActive;
  bool public isRevealing;

  mapping(address => bool) public canMintFreeNft;
  mapping(address => uint256) public mintedFreeNftTimestamp;

  mapping(uint256 => uint256) public tokenMintedAt;
  mapping(uint256 => uint256) public tokenLastTransferredAt;

  event PublicSaleStart(uint256 indexed _saleStartTime);
  event PublicSalePaused(uint256 indexed _timeElapsed);
  event PublicSaleActive(bool indexed _publicSaleActive);
  event RoyaltyBasisPoints(uint256 indexed _royaltyBasisPoints);

  // Public sale active modifier
  modifier whenPublicSaleActive() {
    require(publicSaleActive, 'Public sale is not active');
    _;
  }

  // Public sale not active modifier
  modifier whenPublicSaleNotActive() {
    require(
      !publicSaleActive && publicSaleStartTime == 0,
      'Public sale is already active'
    );
    _;
  }

  // Owner or public sale active modifier
  modifier whenOwnerOrPublicSaleActive() {
    require(
      owner() == _msgSender() || publicSaleActive,
      'Public sale is not active'
    );
    _;
  }

  // -- Constructor --//
  constructor(string memory _baseTokenURI) ERC721(TOKEN_NAME, TOKEN_SYMBOL) {
    baseTokenURI = _baseTokenURI;
    _rewards = new SMOLNftRewards(address(this));
    _rewards.transferOwnership(_msgSender());

    _isRewardsExcluded[address(this)] = true;
    _isRewardsExcluded[address(_rewards)] = true;
  }

  // -- External Functions -- //
  // Start public sale
  function startPublicSale() external onlyOwner whenPublicSaleNotActive {
    publicSaleStartTime = block.timestamp;
    publicSaleActive = true;
    emit PublicSaleStart(publicSaleStartTime);
  }

  // Set this value to the block.timestamp you'd like to reset to
  // Created as a way to fast foward in time for tier timing unit tests
  // Can also be used if needing to pause and restart public sale from original start time (returned in startPublicSale() above)
  function setPublicSaleStartTime(uint256 _publicSaleStartTime)
    external
    onlyOwner
  {
    publicSaleStartTime = _publicSaleStartTime;
    emit PublicSaleStart(publicSaleStartTime);
  }

  // Toggle public sale
  function togglePublicSaleActive() external onlyOwner {
    publicSaleActive = !publicSaleActive;
    emit PublicSaleActive(publicSaleActive);
  }

  // Pause public sale
  function pausePublicSale() external onlyOwner whenPublicSaleActive {
    publicSaleActive = false;
    emit PublicSalePaused(getElapsedSaleTime());
  }

  // Support royalty info - See {EIP-2981}: https://eips.ethereum.org/EIPS/eip-2981
  function royaltyInfo(uint256, uint256 _salePrice)
    external
    view
    returns (address receiver, uint256 royaltyAmount)
  {
    return (
      royaltyAddress,
      (_salePrice * royaltyBasisPoints) / PERCENT_DENOMENATOR
    );
  }

  function getElapsedSaleTime() public view returns (uint256) {
    return publicSaleStartTime > 0 ? block.timestamp - publicSaleStartTime : 0;
  }

  function getRewards() external view returns (address) {
    return address(_rewards);
  }

  // Get mints left
  function getMintsLeft() public view returns (uint256) {
    uint256 currentSupply = super.totalSupply();
    return TOTAL_TOKENS - currentSupply;
  }

  // Mint token - requires tier and amount
  function mint(uint256 _amount) public payable whenOwnerOrPublicSaleActive {
    bool _isOwner = owner() == _msgSender();
    require(getElapsedSaleTime() > 0, 'sale not active');
    require(
      _isOwner || block.timestamp > userLastMinted[_msgSender()] + FIVE_MINUTES,
      'can only mint once per 5 minutes'
    );
    require(
      _amount > 0 && (_isOwner || _amount <= maxPerMint),
      'must mint at least one and cannot exceed max amount'
    );
    // Check there enough NFTs left to mint
    require(_amount <= getMintsLeft(), 'minting would exceed max supply');

    userLastMinted[_msgSender()] = block.timestamp;

    // pay for NFTs & handle free NFT mint logic here as well
    if (
      canMintFreeNft[_msgSender()] && mintedFreeNftTimestamp[_msgSender()] == 0
    ) {
      mintedFreeNftTimestamp[_msgSender()] = block.timestamp;
      _payToMint(_amount - 1);
    } else {
      _payToMint(_amount);
    }

    for (uint256 i = 0; i < _amount; i++) {
      _tokenIds.increment();

      // Safe mint
      _safeMint(_msgSender(), _tokenIds.current());

      // Store minted at timestamp by token id
      tokenMintedAt[_tokenIds.current()] = block.timestamp;
    }
    _setRewardsShares(address(0), _msgSender());
  }

  function _payToMint(uint256 _amount) internal whenOwnerOrPublicSaleActive {
    require(_amount > 0, 'must mit at least 1');
    bool isOwner = owner() == _msgSender();
    if (isOwner) {
      if (msg.value > 0) {
        Address.sendValue(payable(_msgSender()), msg.value);
      }
      return;
    }

    ISmoltingInu smolToken = ISmoltingInu(smol);
    uint256 totalNativeCost = nativeCost * _amount;
    uint256 totalSmolCost = smolCost * _amount;

    if (totalNativeCost > 0) {
      require(
        msg.value >= totalNativeCost,
        'not enough native token provided to mint'
      );
      uint256 balanceBefore = address(this).balance;
      Address.sendValue(payable(paymentAddress), totalNativeCost);
      // refund user for any extra native sent
      if (msg.value > totalNativeCost) {
        Address.sendValue(payable(_msgSender()), msg.value - totalNativeCost);
      }
      require(
        address(this).balance >= balanceBefore - msg.value,
        'too much native sent'
      );
    } else if (msg.value > 0) {
      Address.sendValue(payable(_msgSender()), msg.value);
    }

    if (totalSmolCost > 0) {
      require(
        smolToken.balanceOf(_msgSender()) >= totalSmolCost,
        'not enough SMOL balance to mint'
      );
      smolToken.gameBurn(_msgSender(), totalSmolCost);
    }
  }

  function setPaymentAddress(address _address) external onlyOwner {
    paymentAddress = _address;
  }

  // Set royalty wallet address
  function setRoyaltyAddress(address _address) external onlyOwner {
    royaltyAddress = _address;
  }

  function setSmolToken(address _smol) external onlyOwner {
    smol = _smol;
  }

  function setNativeCost(uint256 _wei) external onlyOwner {
    nativeCost = _wei;
  }

  function setSmolCost(uint256 _numTokens) external onlyOwner {
    smolCost = _numTokens;
  }

  // Set royalty basis points
  function setRoyaltyBasisPoints(uint256 _basisPoints) external onlyOwner {
    royaltyBasisPoints = _basisPoints;
    emit RoyaltyBasisPoints(_basisPoints);
  }

  // Set base URI
  function setBaseURI(string memory _uri) external onlyOwner {
    baseTokenURI = _uri;
  }

  function setRewards(address _contract) external onlyOwner {
    _rewards = SMOLNftRewards(_contract);
  }

  function setIsRewardsExcluded(address _wallet, bool _isExcluded)
    public
    onlyOwner
  {
    _isRewardsExcluded[_wallet] = _isExcluded;
    if (_isExcluded) {
      _rewards.setShare(_wallet, 0);
    } else {
      _rewards.setShare(_wallet, balanceOf(_wallet));
    }
  }

  function setMaxPerMint(uint8 _max) external onlyOwner {
    require(maxPerMint > 0, 'have to be able to mint at least 1 NFT');
    maxPerMint = _max;
  }

  function setCanMintFreeNft(address _wallet, bool _canMintFree)
    external
    onlyOwner
  {
    canMintFreeNft[_wallet] = _canMintFree;
  }

  function setCanMintFreeNftBulk(address[] memory _wallets, bool _canMintFree)
    external
    onlyOwner
  {
    for (uint256 i = 0; i < _wallets.length; i++) {
      canMintFreeNft[_wallets[i]] = _canMintFree;
    }
  }

  function isRewardsExcluded(address _wallet) external view returns (bool) {
    return _isRewardsExcluded[_wallet];
  }

  function tokenURI(uint256 _tokenId)
    public
    view
    virtual
    override
    returns (string memory)
  {
    require(_exists(_tokenId), 'Nonexistent token');

    return string(abi.encodePacked(_baseURI(), _tokenId.toString(), '.json'));
  }

  function isMinted(uint256 _tokenId) external view returns (bool) {
    return _exists(_tokenId);
  }

  // Contract metadata URI - Support for OpenSea: https://docs.opensea.io/docs/contract-level-metadata
  function contractURI() public view returns (string memory) {
    return string(abi.encodePacked(_baseURI(), 'contract.json'));
  }

  // Override supportsInterface - See {IERC165-supportsInterface}
  function supportsInterface(bytes4 _interfaceId)
    public
    view
    virtual
    override(ERC721, ERC721Enumerable)
    returns (bool)
  {
    return super.supportsInterface(_interfaceId);
  }

  // Pauses all token transfers - See {ERC721Pausable}
  function pause() public virtual onlyOwner {
    _pause();
  }

  // Unpauses all token transfers - See {ERC721Pausable}
  function unpause() public virtual onlyOwner {
    _unpause();
  }

  function reveal() external onlyOwner {
    require(!isRevealing, 'already revealing');
    isRevealing = true;
  }

  //-- Internal Functions --//

  function _setRewardsShares(address _from, address _to) internal {
    if (!_isRewardsExcluded[_from] && _from != address(0)) {
      _rewards.setShare(_from, balanceOf(_from));
    }
    if (!_isRewardsExcluded[_to] && _to != address(0)) {
      _rewards.setShare(_to, balanceOf(_to));
    }
  }

  // Get base URI
  function _baseURI() internal view override returns (string memory) {
    return baseTokenURI;
  }

  // Before all token transfer
  function _beforeTokenTransfer(
    address _from,
    address _to,
    uint256 _tokenId
  ) internal virtual override(ERC721, ERC721Enumerable, ERC721Pausable) {
    // Store token last transfer timestamp by id
    tokenLastTransferredAt[_tokenId] = block.timestamp;

    _setRewardsShares(_from, _to);

    super._beforeTokenTransfer(_from, _to, _tokenId);
  }
}

File 2 of 22 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 3 of 22 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol)

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

File 4 of 22 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 5 of 22 : ERC721Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Pausable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../../security/Pausable.sol";

/**
 * @dev ERC721 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC721Pausable is ERC721, Pausable {
    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        require(!paused(), "ERC721Pausable: token transfer while paused");
    }
}

File 6 of 22 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 7 of 22 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 8 of 22 : ISmoltingInu.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import '@openzeppelin/contracts/interfaces/IERC20.sol';

/**
 * @dev SmoltingInu token interface
 */

interface ISmoltingInu is IERC20 {
  function gameMint(address _user, uint256 _amount) external;

  function gameBurn(address _user, uint256 _amount) external;

  function addPlayThrough(address _user, uint256 _amountWagered) external;
}

File 9 of 22 : SMOLNftRewards.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import './interfaces/ISMOLNftRewards.sol';
import './interfaces/ISmoltingInu.sol';

contract SMOLNftRewards is ISMOLNftRewards, Ownable {
  struct Reward {
    uint256 totalExcluded; // excluded reward
    uint256 totalRealised;
    uint256 lastClaim; // used for boosting logic
  }

  struct Share {
    uint256 amount;
    uint256 stakedTime;
  }

  IERC721 shareholderNFT;
  ISmoltingInu smol = ISmoltingInu(0x2bf6267c4997548d8de56087E5d48bDCCb877E77);
  uint256 public totalStakedUsers;
  uint256 public totalSharesDeposited; // will only be actual deposited tokens without handling any reflections or otherwise

  // amount of shares a user has
  mapping(address => Share) shares;
  // reward information per user
  mapping(address => Reward) public rewards;

  uint256 public totalRewards;
  uint256 public totalDistributed;
  uint256 public rewardsPerShare;

  uint256 private constant ACC_FACTOR = 10**36;

  event ClaimReward(address user);
  event DistributeReward(address indexed user);
  event DepositRewards(address indexed user, uint256 amountTokens);

  modifier onlyToken() {
    require(msg.sender == address(shareholderNFT), 'must be token contract');
    _;
  }

  constructor(address _shareholderNFT) {
    shareholderNFT = IERC721(_shareholderNFT);
  }

  function setShare(address shareholder, uint256 newBalance)
    external
    onlyToken
  {
    // _addShares and _removeShares takes the amount to add or remove respectively,
    // so we should handle the diff from the new balance when passing in the amounts
    // to these functions
    if (shares[shareholder].amount > newBalance) {
      _removeShares(shareholder, shares[shareholder].amount - newBalance);
    } else if (shares[shareholder].amount < newBalance) {
      _addShares(shareholder, newBalance - shares[shareholder].amount);
    }
  }

  function _addShares(address shareholder, uint256 amount) private {
    if (shares[shareholder].amount > 0) {
      _distributeReward(shareholder);
    }

    uint256 sharesBefore = shares[shareholder].amount;

    totalSharesDeposited += amount;
    shares[shareholder].amount += amount;
    shares[shareholder].stakedTime = block.timestamp;
    if (sharesBefore == 0 && shares[shareholder].amount > 0) {
      totalStakedUsers++;
    }
    rewards[shareholder].totalExcluded = getCumulativeRewards(
      shares[shareholder].amount
    );
  }

  function _removeShares(address shareholder, uint256 amount) private {
    require(
      shares[shareholder].amount > 0 &&
        (amount == 0 || amount <= shares[shareholder].amount),
      'you can only unstake if you have some staked'
    );
    _distributeReward(shareholder);

    uint256 removeAmount = amount == 0 ? shares[shareholder].amount : amount;

    totalSharesDeposited -= removeAmount;
    shares[shareholder].amount -= removeAmount;
    rewards[shareholder].totalExcluded = getCumulativeRewards(
      shares[shareholder].amount
    );
  }

  function depositRewards(uint256 _amount) external override onlyOwner {
    require(
      totalSharesDeposited > 0,
      'must be shares deposited to be rewarded rewards'
    );

    totalRewards += _amount;
    rewardsPerShare += (ACC_FACTOR * _amount) / totalSharesDeposited;
    smol.gameMint(address(this), _amount);
    emit DepositRewards(msg.sender, _amount);
  }

  function _distributeReward(address shareholder) internal {
    if (shares[shareholder].amount == 0) {
      return;
    }

    uint256 amount = getUnpaid(shareholder);

    rewards[shareholder].totalRealised += amount;
    rewards[shareholder].totalExcluded = getCumulativeRewards(
      shares[shareholder].amount
    );
    rewards[shareholder].lastClaim = block.timestamp;

    if (amount > 0) {
      totalDistributed += amount;
      smol.transfer(shareholder, amount);
      emit DistributeReward(shareholder);
    }
  }

  function claimReward() external override {
    _distributeReward(msg.sender);
    emit ClaimReward(msg.sender);
  }

  // returns the unpaid rewards
  function getUnpaid(address shareholder) public view returns (uint256) {
    if (shares[shareholder].amount == 0) {
      return 0;
    }

    uint256 earnedRewards = getCumulativeRewards(shares[shareholder].amount);
    uint256 rewardsExcluded = rewards[shareholder].totalExcluded;
    if (earnedRewards <= rewardsExcluded) {
      return 0;
    }

    return earnedRewards - rewardsExcluded;
  }

  function getCumulativeRewards(uint256 share) internal view returns (uint256) {
    return (share * rewardsPerShare) / ACC_FACTOR;
  }

  function getShares(address user) external view override returns (uint256) {
    return shares[user].amount;
  }

  function getShareholderNFT() external view returns (address) {
    return address(shareholderNFT);
  }

  function getSmolToken() external view returns (address) {
    return address(smol);
  }

  function setShareholderNFT(address _nft) external onlyOwner {
    shareholderNFT = IERC721(_nft);
  }

  function setSmolToken(address _token) external onlyOwner {
    smol = ISmoltingInu(_token);
  }
}

File 10 of 22 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 11 of 22 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 12 of 22 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 13 of 22 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

File 15 of 22 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

File 16 of 22 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 17 of 22 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 18 of 22 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 19 of 22 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 20 of 22 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/IERC20.sol";

File 21 of 22 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 22 of 22 : ISMOLNftRewards.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface ISMOLNftRewards {
  function claimReward() external;

  function depositRewards(uint256 _amount) external;

  function getShares(address wallet) external view returns (uint256);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"_publicSaleActive","type":"bool"}],"name":"PublicSaleActive","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_timeElapsed","type":"uint256"}],"name":"PublicSalePaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_saleStartTime","type":"uint256"}],"name":"PublicSaleStart","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_royaltyBasisPoints","type":"uint256"}],"name":"RoyaltyBasisPoints","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":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"PERCENT_DENOMENATOR","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_NAME","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_SYMBOL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","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":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"canMintFreeNft","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getElapsedSaleTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintsLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealing","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"isRewardsExcluded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerMint","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedFreeNftTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nativeCost","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":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pausePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paymentAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","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":"tokenId","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":"string","name":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"bool","name":"_canMintFree","type":"bool"}],"name":"setCanMintFreeNft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_wallets","type":"address[]"},{"internalType":"bool","name":"_canMintFree","type":"bool"}],"name":"setCanMintFreeNftBulk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"bool","name":"_isExcluded","type":"bool"}],"name":"setIsRewardsExcluded","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_max","type":"uint8"}],"name":"setMaxPerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_wei","type":"uint256"}],"name":"setNativeCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setPaymentAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicSaleStartTime","type":"uint256"}],"name":"setPublicSaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"setRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setRoyaltyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_basisPoints","type":"uint256"}],"name":"setRoyaltyBasisPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numTokens","type":"uint256"}],"name":"setSmolCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_smol","type":"address"}],"name":"setSmolToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"smol","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"smolCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startPublicSale","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":[],"name":"togglePublicSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenLastTransferredAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenMintedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"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":"tokenId","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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userLastMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

6080604052601180546001600160a01b0319908116732bf6267c4997548d8de56087e5d48bdccb877e771790915567013fbe85edc9000060125568056bc75e2d63100000601355601480547498c574473313eac3fc6af9740245949380ec166e0a6001600160a81b0319909116179055601580549091167398c574473313eac3fc6af9740245949380ec166e1790556032601655348015620000a057600080fd5b5060405162004c2038038062004c20833981016040819052620000c391620003a5565b6040518060400160405280601681526020017f7969656c642062656172696e6720736d6f6c74696e6700000000000000000000815250604051806040016040528060068152602001651e5894d353d360d21b815250620001326200012c6200028760201b60201c565b6200028b565b815162000147906001906020850190620002db565b5080516200015d906002906020840190620002db565b5050600b805460ff191690555080516200017f906010906020840190620002db565b50306040516200018f906200036a565b6001600160a01b039091168152602001604051809103906000f080158015620001bc573d6000803e3d6000fd5b50600d80546001600160a01b0319166001600160a01b0392909216918217905563f2fde38b620001e93390565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b1580156200022b57600080fd5b505af115801562000240573d6000803e3d6000fd5b5050306000908152600e60205260408082208054600160ff199182168117909255600d546001600160a01b03168452919092208054909116909117905550620004be915050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620002e99062000481565b90600052602060002090601f0160209004810192826200030d576000855562000358565b82601f106200032857805160ff191683800117855562000358565b8280016001018555821562000358579182015b82811115620003585782518255916020019190600101906200033b565b506200036692915062000378565b5090565b610e428062003dde83390190565b5b8082111562000366576000815560010162000379565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215620003b957600080fd5b82516001600160401b0380821115620003d157600080fd5b818501915085601f830112620003e657600080fd5b815181811115620003fb57620003fb6200038f565b604051601f8201601f19908116603f011681019083821181831017156200042657620004266200038f565b8160405282815288868487010111156200043f57600080fd5b600093505b8284101562000463578484018601518185018701529285019262000444565b82841115620004755760008684830101525b98975050505050505050565b600181811c908216806200049657607f821691505b60208210811415620004b857634e487b7160e01b600052602260045260246000fd5b50919050565b61391080620004ce6000396000f3fe6080604052600436106103d95760003560e01c80635e1e1004116101fd578063a07fd2a411610118578063c87b56dd116100ab578063ec38a8621161007a578063ec38a86214610bd8578063f2fde38b14610bf8578063f39e640014610c18578063f9a907c514610c41578063ffedec0c14610c6057600080fd5b8063c87b56dd14610b3a578063d51c24d814610b5a578063e8a3d48514610b7a578063e985e9c514610b8f57600080fd5b8063b6b81940116100e7578063b6b8194014610aca578063b88d4fde14610aea578063baa9607314610b0a578063bc8893b414610b2057600080fd5b8063a07fd2a414610a55578063a22cb46514610a75578063a475b5dd14610a95578063ad2f852a14610aaa57600080fd5b80637d259887116101905780638da5cb5b1161015f5780638da5cb5b146109fa5780638e70e30a14610a1857806395d89b4114610a2d578063a0712d6814610a4257600080fd5b80637d259887146109785780637f1343d2146109a55780638456cb59146109c55780638ca3fcb2146109da57600080fd5b80636d5d40c6116101cc5780636d5d40c6146108f657806370a0823114610916578063715018a61461093657806376772cf81461094b57600080fd5b80635e1e10041461087b578063633423be1461089b5780636352211e146108c05780636bb7b1d9146108e057600080fd5b806318821400116102f857806342842e0e1161028b5780634f6ccce71161025a5780634f6ccce7146107d7578063507e094f146107f757806355f804b3146108235780635b00cfcb146108435780635c975abb1461086357600080fd5b806342842e0e1461075457806342966c68146107745780634369f4e5146107945780634e261486146107c157600080fd5b80632a905318116102c75780632a905318146106cd5780632f745c59146106ff57806333c41a901461071f5780633f4ba83a1461073f57600080fd5b806318821400146105fc5780631d1817221461063e57806323b872dd1461066e5780632a55205a1461068e57600080fd5b80630c1c972a11610370578063105adc4a1161033f578063105adc4a1461056157806310ef4eb31461059a57806317f632ad146105c757806318160ddd146105e757600080fd5b80630c1c972a1461050d5780630c3a92d3146105225780630c41f497146105375780630c894cfe1461054c57600080fd5b8063081812fc116103ac578063081812fc14610489578063095ea7b3146104a95780630a9855fe146104c95780630b7abf77146104e957600080fd5b806301ffc9a7146103de5780630572b0cc1461041357806306d254da1461044557806306fdde0314610467575b600080fd5b3480156103ea57600080fd5b506103fe6103f93660046131d3565b610c80565b60405190151581526020015b60405180910390f35b34801561041f57600080fd5b50600d546001600160a01b03165b6040516001600160a01b03909116815260200161040a565b34801561045157600080fd5b50610465610460366004613213565b610c91565b005b34801561047357600080fd5b5061047c610ce6565b60405161040a9190613286565b34801561049557600080fd5b5061042d6104a4366004613299565b610d78565b3480156104b557600080fd5b506104656104c43660046132b2565b610e0d565b3480156104d557600080fd5b5060115461042d906001600160a01b031681565b3480156104f557600080fd5b506104ff6110ad81565b60405190815260200161040a565b34801561051957600080fd5b50610465610f23565b34801561052e57600080fd5b506104ff610fea565b34801561054357600080fd5b5061046561100a565b34801561055857600080fd5b50610465611093565b34801561056d57600080fd5b506103fe61057c366004613213565b6001600160a01b03166000908152600e602052604090205460ff1690565b3480156105a657600080fd5b506104ff6105b5366004613213565b600f6020526000908152604090205481565b3480156105d357600080fd5b506104656105e2366004613299565b611102565b3480156105f357600080fd5b506009546104ff565b34801561060857600080fd5b5061047c604051806040016040528060168152602001757969656c642062656172696e6720736d6f6c74696e6760501b81525081565b34801561064a57600080fd5b506103fe610659366004613213565b60196020526000908152604090205460ff1681565b34801561067a57600080fd5b506104656106893660046132dc565b611131565b34801561069a57600080fd5b506106ae6106a9366004613318565b611163565b604080516001600160a01b03909316835260208301919091520161040a565b3480156106d957600080fd5b5061047c604051806040016040528060068152602001651e5894d353d360d21b81525081565b34801561070b57600080fd5b506104ff61071a3660046132b2565b61119d565b34801561072b57600080fd5b506103fe61073a366004613299565b611233565b34801561074b57600080fd5b50610465611252565b34801561076057600080fd5b5061046561076f3660046132dc565b611286565b34801561078057600080fd5b5061046561078f366004613299565b6112a1565b3480156107a057600080fd5b506104ff6107af366004613299565b601c6020526000908152604090205481565b3480156107cd57600080fd5b506104ff60135481565b3480156107e357600080fd5b506104ff6107f2366004613299565b61131b565b34801561080357600080fd5b506014546108119060ff1681565b60405160ff909116815260200161040a565b34801561082f57600080fd5b5061046561083e3660046133d9565b6113ae565b34801561084f57600080fd5b5061046561085e366004613213565b6113ef565b34801561086f57600080fd5b50600b5460ff166103fe565b34801561088757600080fd5b50610465610896366004613213565b61143b565b3480156108a757600080fd5b5060145461042d9061010090046001600160a01b031681565b3480156108cc57600080fd5b5061042d6108db366004613299565b61148d565b3480156108ec57600080fd5b506104ff60175481565b34801561090257600080fd5b50610465610911366004613299565b611504565b34801561092257600080fd5b506104ff610931366004613213565b611561565b34801561094257600080fd5b506104656115e8565b34801561095757600080fd5b506104ff610966366004613299565b601b6020526000908152604090205481565b34801561098457600080fd5b506104ff610993366004613213565b601a6020526000908152604090205481565b3480156109b157600080fd5b506104656109c0366004613432565b61161c565b3480156109d157600080fd5b50610465611671565b3480156109e657600080fd5b506104656109f5366004613465565b6116a3565b348015610a0657600080fd5b506000546001600160a01b031661042d565b348015610a2457600080fd5b506104ff611734565b348015610a3957600080fd5b5061047c611757565b610465610a50366004613299565b611766565b348015610a6157600080fd5b50610465610a70366004613299565b611a15565b348015610a8157600080fd5b50610465610a90366004613432565b611a44565b348015610aa157600080fd5b50610465611a4f565b348015610ab657600080fd5b5060155461042d906001600160a01b031681565b348015610ad657600080fd5b50610465610ae5366004613299565b611ad6565b348015610af657600080fd5b50610465610b05366004613524565b611b33565b348015610b1657600080fd5b506104ff60125481565b348015610b2c57600080fd5b506018546103fe9060ff1681565b348015610b4657600080fd5b5061047c610b55366004613299565b611b6b565b348015610b6657600080fd5b50610465610b75366004613432565b611bfe565b348015610b8657600080fd5b5061047c611d0c565b348015610b9b57600080fd5b506103fe610baa3660046135a0565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610be457600080fd5b50610465610bf3366004613213565b611d3a565b348015610c0457600080fd5b50610465610c13366004613213565b611d86565b348015610c2457600080fd5b50610c2e6103e881565b60405161ffff909116815260200161040a565b348015610c4d57600080fd5b506018546103fe90610100900460ff1681565b348015610c6c57600080fd5b50610465610c7b3660046135ca565b611e1e565b6000610c8b82611ebf565b92915050565b6000546001600160a01b03163314610cc45760405162461bcd60e51b8152600401610cbb906135ed565b60405180910390fd5b601580546001600160a01b0319166001600160a01b0392909216919091179055565b606060018054610cf590613622565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2190613622565b8015610d6e5780601f10610d4357610100808354040283529160200191610d6e565b820191906000526020600020905b815481529060010190602001808311610d5157829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b0316610df15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610cbb565b506000908152600560205260409020546001600160a01b031690565b6000610e188261148d565b9050806001600160a01b0316836001600160a01b03161415610e865760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610cbb565b336001600160a01b0382161480610ea25750610ea28133610baa565b610f145760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610cbb565b610f1e8383611ee4565b505050565b6000546001600160a01b03163314610f4d5760405162461bcd60e51b8152600401610cbb906135ed565b60185460ff16158015610f605750601754155b610fac5760405162461bcd60e51b815260206004820152601d60248201527f5075626c69632073616c6520697320616c7265616479206163746976650000006044820152606401610cbb565b4260178190556018805460ff191660011790556040517fb14aa2dad53a0090fda3c97971fdc6c84331eff6fc43a584628e5d83e131a30990600090a2565b600080610ff660095490565b9050611004816110ad613673565b91505090565b6000546001600160a01b031633146110345760405162461bcd60e51b8152600401610cbb906135ed565b60185460ff166110565760405162461bcd60e51b8152600401610cbb9061368a565b6018805460ff19169055611068611734565b6040517fb94d4ebcdba018821f2c6ae2fb3a03d4023685b1c78faa4fe43dada42890cd2d90600090a2565b6000546001600160a01b031633146110bd5760405162461bcd60e51b8152600401610cbb906135ed565b6018805460ff19811660ff9182161590811790925560405191161515907fafa97d89ca766bd74e787f7998a071ea20f4ddeea353499106df17bc9cf4deb890600090a2565b6000546001600160a01b0316331461112c5760405162461bcd60e51b8152600401610cbb906135ed565b601255565b61113c335b82611f52565b6111585760405162461bcd60e51b8152600401610cbb906136c1565b610f1e838383612049565b60155460165460009182916001600160a01b03909116906103e8906111889086613712565b6111929190613747565b915091509250929050565b60006111a883611561565b821061120a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610cbb565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6000818152600360205260408120546001600160a01b03161515610c8b565b6000546001600160a01b0316331461127c5760405162461bcd60e51b8152600401610cbb906135ed565b6112846121f0565b565b610f1e83838360405180602001604052806000815250611b33565b6112aa33611136565b61130f5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610cbb565b61131881612283565b50565b600061132660095490565b82106113895760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610cbb565b6009828154811061139c5761139c61375b565b90600052602060002001549050919050565b6000546001600160a01b031633146113d85760405162461bcd60e51b8152600401610cbb906135ed565b80516113eb906010906020840190613124565b5050565b6000546001600160a01b031633146114195760405162461bcd60e51b8152600401610cbb906135ed565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146114655760405162461bcd60e51b8152600401610cbb906135ed565b601480546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6000818152600360205260408120546001600160a01b031680610c8b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610cbb565b6000546001600160a01b0316331461152e5760405162461bcd60e51b8152600401610cbb906135ed565b601781905560405181907fb14aa2dad53a0090fda3c97971fdc6c84331eff6fc43a584628e5d83e131a30990600090a250565b60006001600160a01b0382166115cc5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610cbb565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146116125760405162461bcd60e51b8152600401610cbb906135ed565b611284600061232a565b6000546001600160a01b031633146116465760405162461bcd60e51b8152600401610cbb906135ed565b6001600160a01b03919091166000908152601960205260409020805460ff1916911515919091179055565b6000546001600160a01b0316331461169b5760405162461bcd60e51b8152600401610cbb906135ed565b61128461237a565b6000546001600160a01b031633146116cd5760405162461bcd60e51b8152600401610cbb906135ed565b60005b8251811015610f1e5781601960008584815181106116f0576116f061375b565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061172c81613771565b9150506116d0565b600080601754116117455750600090565b6017546117529042613673565b905090565b606060028054610cf590613622565b6000546001600160a01b0316331480611781575060185460ff165b61179d5760405162461bcd60e51b8152600401610cbb9061368a565b600080546001600160a01b03163314906117b5611734565b116117f45760405162461bcd60e51b815260206004820152600f60248201526e73616c65206e6f742061637469766560881b6044820152606401610cbb565b808061181b5750336000908152600f60205260409020546118189061012c9061378c565b42115b6118675760405162461bcd60e51b815260206004820181905260248201527f63616e206f6e6c79206d696e74206f6e6365207065722035206d696e757465736044820152606401610cbb565b60008211801561188357508080611883575060145460ff168211155b6118eb5760405162461bcd60e51b815260206004820152603360248201527f6d757374206d696e74206174206c65617374206f6e6520616e642063616e6e6f6044820152721d08195e18d95959081b585e08185b5bdd5b9d606a1b6064820152608401610cbb565b6118f3610fea565b8211156119425760405162461bcd60e51b815260206004820152601f60248201527f6d696e74696e6720776f756c6420657863656564206d617820737570706c79006044820152606401610cbb565b336000908152600f60209081526040808320429055601990915290205460ff16801561197b5750336000908152601a6020526040902054155b156119aa57336000908152601a602052604090204290556119a56119a0600184613673565b6123f5565b6119b3565b6119b3826123f5565b60005b82811015611a09576119cc600c80546001019055565b6119d833600c54612723565b42601b60006119e6600c5490565b815260208101919091526040016000205580611a0181613771565b9150506119b6565b506113eb60003361273d565b6000546001600160a01b03163314611a3f5760405162461bcd60e51b8152600401610cbb906135ed565b601355565b6113eb33838361283e565b6000546001600160a01b03163314611a795760405162461bcd60e51b8152600401610cbb906135ed565b601854610100900460ff1615611ac55760405162461bcd60e51b8152602060048201526011602482015270616c72656164792072657665616c696e6760781b6044820152606401610cbb565b6018805461ff001916610100179055565b6000546001600160a01b03163314611b005760405162461bcd60e51b8152600401610cbb906135ed565b601681905560405181907fce3498f3236889c7e9256b3643e0f7fae5a1b912f2ac0daa1d89236c70b522c690600090a250565b611b3d3383611f52565b611b595760405162461bcd60e51b8152600401610cbb906136c1565b611b658484848461290d565b50505050565b6000818152600360205260409020546060906001600160a01b0316611bc65760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610cbb565b611bce612940565b611bd78361294f565b604051602001611be89291906137a4565b6040516020818303038152906040529050919050565b6000546001600160a01b03163314611c285760405162461bcd60e51b8152600401610cbb906135ed565b6001600160a01b0382166000908152600e60205260409020805460ff19168215801591909117909155611cc057600d54604051630a5b654b60e11b81526001600160a01b03848116600483015260006024830152909116906314b6ca96906044015b600060405180830381600087803b158015611ca457600080fd5b505af1158015611cb8573d6000803e3d6000fd5b505050505050565b600d546001600160a01b03166314b6ca9683611cdb81611561565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401611c8a565b6060611d16612940565b604051602001611d2691906137e3565b604051602081830303815290604052905090565b6000546001600160a01b03163314611d645760405162461bcd60e51b8152600401610cbb906135ed565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314611db05760405162461bcd60e51b8152600401610cbb906135ed565b6001600160a01b038116611e155760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cbb565b6113188161232a565b6000546001600160a01b03163314611e485760405162461bcd60e51b8152600401610cbb906135ed565b60145460ff16611ea95760405162461bcd60e51b815260206004820152602660248201527f6861766520746f2062652061626c6520746f206d696e74206174206c65617374604482015265080c4813919560d21b6064820152608401610cbb565b6014805460ff191660ff92909216919091179055565b60006001600160e01b0319821663780e9d6360e01b1480610c8b5750610c8b82612a4d565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611f198261148d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b0316611fcb5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610cbb565b6000611fd68361148d565b9050806001600160a01b0316846001600160a01b031614806120115750836001600160a01b031661200684610d78565b6001600160a01b0316145b8061204157506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661205c8261148d565b6001600160a01b0316146120c05760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610cbb565b6001600160a01b0382166121225760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610cbb565b61212d838383612a9d565b612138600082611ee4565b6001600160a01b0383166000908152600460205260408120805460019290612161908490613673565b90915550506001600160a01b038216600090815260046020526040812080546001929061218f90849061378c565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600b5460ff166122395760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610cbb565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600061228e8261148d565b905061229c81600084612a9d565b6122a7600083611ee4565b6001600160a01b03811660009081526004602052604081208054600192906122d0908490613673565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600b5460ff16156123c05760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610cbb565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586122663390565b6000546001600160a01b0316331480612410575060185460ff165b61242c5760405162461bcd60e51b8152600401610cbb9061368a565b600081116124725760405162461bcd60e51b81526020600482015260136024820152726d757374206d6974206174206c65617374203160681b6044820152606401610cbb565b6000546001600160a01b0316331480156124975734156113eb576113eb335b34612ac3565b6011546012546001600160a01b03909116906000906124b7908590613712565b90506000846013546124c99190613712565b905081156125c057813410156125325760405162461bcd60e51b815260206004820152602860248201527f6e6f7420656e6f756768206e617469766520746f6b656e2070726f7669646564604482015267081d1bc81b5a5b9d60c21b6064820152608401610cbb565b601454479061254f9061010090046001600160a01b031684612ac3565b8234111561256a5761256a336125658534613673565b612ac3565b6125743482613673565b4710156125ba5760405162461bcd60e51b81526020600482015260146024820152731d1bdbc81b5d58da081b985d1a5d99481cd95b9d60621b6044820152606401610cbb565b506125cf565b34156125cf576125cf33612491565b801561271c57806001600160a01b0384166370a08231336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561262557600080fd5b505afa158015612639573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061265d9190613814565b10156126ab5760405162461bcd60e51b815260206004820152601f60248201527f6e6f7420656e6f75676820534d4f4c2062616c616e636520746f206d696e74006044820152606401610cbb565b6001600160a01b03831663271292f5336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561270357600080fd5b505af1158015612717573d6000803e3d6000fd5b505050505b5050505050565b6113eb828260405180602001604052806000815250612bdc565b6001600160a01b0382166000908152600e602052604090205460ff1615801561276e57506001600160a01b03821615155b156127ed57600d546001600160a01b03166314b6ca968361278e81611561565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156127d457600080fd5b505af11580156127e8573d6000803e3d6000fd5b505050505b6001600160a01b0381166000908152600e602052604090205460ff1615801561281e57506001600160a01b03811615155b156113eb57600d546001600160a01b03166314b6ca9682611cdb81611561565b816001600160a01b0316836001600160a01b031614156128a05760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610cbb565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612918848484612049565b61292484848484612c0f565b611b655760405162461bcd60e51b8152600401610cbb9061382d565b606060108054610cf590613622565b6060816129735750506040805180820190915260018152600360fc1b602082015290565b8160005b811561299d578061298781613771565b91506129969050600a83613747565b9150612977565b60008167ffffffffffffffff8111156129b8576129b861333a565b6040519080825280601f01601f1916602001820160405280156129e2576020820181803683370190505b5090505b8415612041576129f7600183613673565b9150612a04600a8661387f565b612a0f90603061378c565b60f81b818381518110612a2457612a2461375b565b60200101906001600160f81b031916908160001a905350612a46600a86613747565b94506129e6565b60006001600160e01b031982166380ac58cd60e01b1480612a7e57506001600160e01b03198216635b5e139f60e01b145b80610c8b57506301ffc9a760e01b6001600160e01b0319831614610c8b565b6000818152601c60205260409020429055612ab8838361273d565b610f1e838383612d1c565b80471015612b135760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610cbb565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612b60576040519150601f19603f3d011682016040523d82523d6000602084013e612b65565b606091505b5050905080610f1e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610cbb565b612be68383612d8e565b612bf36000848484612c0f565b610f1e5760405162461bcd60e51b8152600401610cbb9061382d565b60006001600160a01b0384163b15612d1157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612c53903390899088908890600401613893565b602060405180830381600087803b158015612c6d57600080fd5b505af1925050508015612c9d575060408051601f3d908101601f19168201909252612c9a918101906138d0565b60015b612cf7573d808015612ccb576040519150601f19603f3d011682016040523d82523d6000602084013e612cd0565b606091505b508051612cef5760405162461bcd60e51b8152600401610cbb9061382d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612041565b506001949350505050565b612d27838383612edc565b600b5460ff1615610f1e5760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b6064820152608401610cbb565b6001600160a01b038216612de45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610cbb565b6000818152600360205260409020546001600160a01b031615612e495760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610cbb565b612e5560008383612a9d565b6001600160a01b0382166000908152600460205260408120805460019290612e7e90849061378c565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b038316612f3757612f3281600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b612f5a565b816001600160a01b0316836001600160a01b031614612f5a57612f5a8382612f94565b6001600160a01b038216612f7157610f1e81613031565b826001600160a01b0316826001600160a01b031614610f1e57610f1e82826130e0565b60006001612fa184611561565b612fab9190613673565b600083815260086020526040902054909150808214612ffe576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061304390600190613673565b6000838152600a60205260408120546009805493945090928490811061306b5761306b61375b565b90600052602060002001549050806009838154811061308c5761308c61375b565b6000918252602080832090910192909255828152600a909152604080822084905585825281205560098054806130c4576130c46138ed565b6001900381819060005260206000200160009055905550505050565b60006130eb83611561565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b82805461313090613622565b90600052602060002090601f0160209004810192826131525760008555613198565b82601f1061316b57805160ff1916838001178555613198565b82800160010185558215613198579182015b8281111561319857825182559160200191906001019061317d565b506131a49291506131a8565b5090565b5b808211156131a457600081556001016131a9565b6001600160e01b03198116811461131857600080fd5b6000602082840312156131e557600080fd5b81356131f0816131bd565b9392505050565b80356001600160a01b038116811461320e57600080fd5b919050565b60006020828403121561322557600080fd5b6131f0826131f7565b60005b83811015613249578181015183820152602001613231565b83811115611b655750506000910152565b6000815180845261327281602086016020860161322e565b601f01601f19169290920160200192915050565b6020815260006131f0602083018461325a565b6000602082840312156132ab57600080fd5b5035919050565b600080604083850312156132c557600080fd5b6132ce836131f7565b946020939093013593505050565b6000806000606084860312156132f157600080fd5b6132fa846131f7565b9250613308602085016131f7565b9150604084013590509250925092565b6000806040838503121561332b57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156133795761337961333a565b604052919050565b600067ffffffffffffffff83111561339b5761339b61333a565b6133ae601f8401601f1916602001613350565b90508281528383830111156133c257600080fd5b828260208301376000602084830101529392505050565b6000602082840312156133eb57600080fd5b813567ffffffffffffffff81111561340257600080fd5b8201601f8101841361341357600080fd5b61204184823560208401613381565b8035801515811461320e57600080fd5b6000806040838503121561344557600080fd5b61344e836131f7565b915061345c60208401613422565b90509250929050565b6000806040838503121561347857600080fd5b823567ffffffffffffffff8082111561349057600080fd5b818501915085601f8301126134a457600080fd5b81356020828211156134b8576134b861333a565b8160051b92506134c9818401613350565b82815292840181019281810190898511156134e357600080fd5b948201945b84861015613508576134f9866131f7565b825294820194908201906134e8565b96506135179050878201613422565b9450505050509250929050565b6000806000806080858703121561353a57600080fd5b613543856131f7565b9350613551602086016131f7565b925060408501359150606085013567ffffffffffffffff81111561357457600080fd5b8501601f8101871361358557600080fd5b61359487823560208401613381565b91505092959194509250565b600080604083850312156135b357600080fd5b6135bc836131f7565b915061345c602084016131f7565b6000602082840312156135dc57600080fd5b813560ff811681146131f057600080fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061363657607f821691505b6020821081141561365757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156136855761368561365d565b500390565b60208082526019908201527f5075626c69632073616c65206973206e6f742061637469766500000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600081600019048311821515161561372c5761372c61365d565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261375657613756613731565b500490565b634e487b7160e01b600052603260045260246000fd5b60006000198214156137855761378561365d565b5060010190565b6000821982111561379f5761379f61365d565b500190565b600083516137b681846020880161322e565b8351908301906137ca81836020880161322e565b64173539b7b760d91b9101908152600501949350505050565b600082516137f581846020870161322e565b6c31b7b73a3930b1ba173539b7b760991b920191825250600d01919050565b60006020828403121561382657600080fd5b5051919050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261388e5761388e613731565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906138c69083018461325a565b9695505050505050565b6000602082840312156138e257600080fd5b81516131f0816131bd565b634e487b7160e01b600052603160045260246000fdfea164736f6c6343000809000a6080604052600280546001600160a01b031916732bf6267c4997548d8de56087e5d48bdccb877e7717905534801561003657600080fd5b50604051610e42380380610e42833981016040819052610055916100d3565b61005e33610083565b600180546001600160a01b0319166001600160a01b0392909216919091179055610103565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100e557600080fd5b81516001600160a01b03811681146100fc57600080fd5b9392505050565b610d30806101126000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80638bdf67f2116100a2578063e262391811610071578063e262391814610230578063efca2eed14610243578063f04da65b1461024c578063f2fde38b14610275578063f81ca2581461028857600080fd5b80638bdf67f2146101fb5780638da5cb5b1461020e578063b88a802f1461021f578063c7e1d0b11461022757600080fd5b80633c6e6789116100e95780633c6e6789146101bb5780635b00cfcb146101c4578063715018a6146101d757806380bb4055146101df57806389d96917146101e857600080fd5b80630700037d1461011b578063097046041461016a5780630e15561a1461018f57806314b6ca96146101a6575b600080fd5b61014a610129366004610bc6565b60066020526000908152604090208054600182015460029092015490919083565b604080519384526020840192909252908201526060015b60405180910390f35b6001546001600160a01b03165b6040516001600160a01b039091168152602001610161565b61019860075481565b604051908152602001610161565b6101b96101b4366004610be8565b610299565b005b61019860045481565b6101b96101d2366004610bc6565b610392565b6101b96103de565b61019860035481565b6101986101f6366004610bc6565b610414565b6101b9610209366004610c12565b61049a565b6000546001600160a01b0316610177565b6101b961061d565b61019860095481565b6101b961023e366004610bc6565b61065b565b61019860085481565b61019861025a366004610bc6565b6001600160a01b031660009081526005602052604090205490565b6101b9610283366004610bc6565b6106a7565b6002546001600160a01b0316610177565b6001546001600160a01b031633146102f15760405162461bcd60e51b81526020600482015260166024820152751b5d5cdd081899481d1bdad95b8818dbdb9d1c9858dd60521b60448201526064015b60405180910390fd5b6001600160a01b038216600090815260056020526040902054811015610344576001600160a01b03821660009081526005602052604090205461034090839061033b908490610c41565b610742565b5050565b6001600160a01b038216600090815260056020526040902054811115610340576001600160a01b03821660009081526005602052604090205461034090839061038d9084610c41565b6108a4565b6000546001600160a01b031633146103bc5760405162461bcd60e51b81526004016102e890610c58565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146104085760405162461bcd60e51b81526004016102e890610c58565b61041260006109aa565b565b6001600160a01b03811660009081526005602052604081205461043957506000919050565b6001600160a01b03821660009081526005602052604081205461045b906109fa565b6001600160a01b038416600090815260066020526040902054909150808211610488575060009392505050565b6104928183610c41565b949350505050565b6000546001600160a01b031633146104c45760405162461bcd60e51b81526004016102e890610c58565b60006004541161052e5760405162461bcd60e51b815260206004820152602f60248201527f6d75737420626520736861726573206465706f736974656420746f206265207260448201526e65776172646564207265776172647360881b60648201526084016102e8565b80600760008282546105409190610c8d565b9091555050600454610561826ec097ce7bc90715b34b9f1000000000610ca5565b61056b9190610cc4565b6009600082825461057c9190610c8d565b9091555050600254604051634eb9029960e01b8152306004820152602481018390526001600160a01b0390911690634eb9029990604401600060405180830381600087803b1580156105cd57600080fd5b505af11580156105e1573d6000803e3d6000fd5b50506040518381523392507fb9ad861b752f80117b35bea6dec99933d8a5ae360f2839ee8784b750d5613409915060200160405180910390a250565b61062633610a2a565b6040513381527f63e32091e4445d16e29c33a6b264577c2d86694021aa4e6f4dd590048f5792e89060200160405180910390a1565b6000546001600160a01b031633146106855760405162461bcd60e51b81526004016102e890610c58565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146106d15760405162461bcd60e51b81526004016102e890610c58565b6001600160a01b0381166107365760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102e8565b61073f816109aa565b50565b6001600160a01b03821660009081526005602052604090205415801590610789575080158061078957506001600160a01b0382166000908152600560205260409020548111155b6107ea5760405162461bcd60e51b815260206004820152602c60248201527f796f752063616e206f6e6c7920756e7374616b6520696620796f75206861766560448201526b081cdbdb59481cdd185ad95960a21b60648201526084016102e8565b6107f382610a2a565b60008115610801578161081b565b6001600160a01b0383166000908152600560205260409020545b9050806004600082825461082f9190610c41565b90915550506001600160a01b0383166000908152600560205260408120805483929061085c908490610c41565b90915550506001600160a01b038316600090815260056020526040902054610883906109fa565b6001600160a01b039093166000908152600660205260409020929092555050565b6001600160a01b038216600090815260056020526040902054156108cb576108cb82610a2a565b6001600160a01b03821660009081526005602052604081205460048054919284926108f7908490610c8d565b90915550506001600160a01b03831660009081526005602052604081208054849290610924908490610c8d565b90915550506001600160a01b0383166000908152600560205260409020426001909101558015801561096d57506001600160a01b03831660009081526005602052604090205415155b15610988576003805490600061098283610ce6565b91905055505b6001600160a01b038316600090815260056020526040902054610883906109fa565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006ec097ce7bc90715b34b9f100000000060095483610a1a9190610ca5565b610a249190610cc4565b92915050565b6001600160a01b038116600090815260056020526040902054610a4a5750565b6000610a5582610414565b6001600160a01b038316600090815260066020526040812060010180549293508392909190610a85908490610c8d565b90915550506001600160a01b038216600090815260056020526040902054610aac906109fa565b6001600160a01b0383166000908152600660205260409020908155426002909101558015610340578060086000828254610ae69190610c8d565b909155505060025460405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490529091169063a9059cbb90604401602060405180830381600087803b158015610b3957600080fd5b505af1158015610b4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b719190610d01565b506040516001600160a01b038316907f12aec06443e8d0b9713948f69d526f256f435e4d689c9d5215a1387d4230597d90600090a25050565b80356001600160a01b0381168114610bc157600080fd5b919050565b600060208284031215610bd857600080fd5b610be182610baa565b9392505050565b60008060408385031215610bfb57600080fd5b610c0483610baa565b946020939093013593505050565b600060208284031215610c2457600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b600082821015610c5357610c53610c2b565b500390565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115610ca057610ca0610c2b565b500190565b6000816000190483118215151615610cbf57610cbf610c2b565b500290565b600082610ce157634e487b7160e01b600052601260045260246000fd5b500490565b6000600019821415610cfa57610cfa610c2b565b5060010190565b600060208284031215610d1357600080fd5b81518015158114610be157600080fdfea164736f6c6343000809000a0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002968747470733a2f2f6170692e736d6f6c74696e67696e752e636f6d2f6e66742f6d657461646174612f0000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103d95760003560e01c80635e1e1004116101fd578063a07fd2a411610118578063c87b56dd116100ab578063ec38a8621161007a578063ec38a86214610bd8578063f2fde38b14610bf8578063f39e640014610c18578063f9a907c514610c41578063ffedec0c14610c6057600080fd5b8063c87b56dd14610b3a578063d51c24d814610b5a578063e8a3d48514610b7a578063e985e9c514610b8f57600080fd5b8063b6b81940116100e7578063b6b8194014610aca578063b88d4fde14610aea578063baa9607314610b0a578063bc8893b414610b2057600080fd5b8063a07fd2a414610a55578063a22cb46514610a75578063a475b5dd14610a95578063ad2f852a14610aaa57600080fd5b80637d259887116101905780638da5cb5b1161015f5780638da5cb5b146109fa5780638e70e30a14610a1857806395d89b4114610a2d578063a0712d6814610a4257600080fd5b80637d259887146109785780637f1343d2146109a55780638456cb59146109c55780638ca3fcb2146109da57600080fd5b80636d5d40c6116101cc5780636d5d40c6146108f657806370a0823114610916578063715018a61461093657806376772cf81461094b57600080fd5b80635e1e10041461087b578063633423be1461089b5780636352211e146108c05780636bb7b1d9146108e057600080fd5b806318821400116102f857806342842e0e1161028b5780634f6ccce71161025a5780634f6ccce7146107d7578063507e094f146107f757806355f804b3146108235780635b00cfcb146108435780635c975abb1461086357600080fd5b806342842e0e1461075457806342966c68146107745780634369f4e5146107945780634e261486146107c157600080fd5b80632a905318116102c75780632a905318146106cd5780632f745c59146106ff57806333c41a901461071f5780633f4ba83a1461073f57600080fd5b806318821400146105fc5780631d1817221461063e57806323b872dd1461066e5780632a55205a1461068e57600080fd5b80630c1c972a11610370578063105adc4a1161033f578063105adc4a1461056157806310ef4eb31461059a57806317f632ad146105c757806318160ddd146105e757600080fd5b80630c1c972a1461050d5780630c3a92d3146105225780630c41f497146105375780630c894cfe1461054c57600080fd5b8063081812fc116103ac578063081812fc14610489578063095ea7b3146104a95780630a9855fe146104c95780630b7abf77146104e957600080fd5b806301ffc9a7146103de5780630572b0cc1461041357806306d254da1461044557806306fdde0314610467575b600080fd5b3480156103ea57600080fd5b506103fe6103f93660046131d3565b610c80565b60405190151581526020015b60405180910390f35b34801561041f57600080fd5b50600d546001600160a01b03165b6040516001600160a01b03909116815260200161040a565b34801561045157600080fd5b50610465610460366004613213565b610c91565b005b34801561047357600080fd5b5061047c610ce6565b60405161040a9190613286565b34801561049557600080fd5b5061042d6104a4366004613299565b610d78565b3480156104b557600080fd5b506104656104c43660046132b2565b610e0d565b3480156104d557600080fd5b5060115461042d906001600160a01b031681565b3480156104f557600080fd5b506104ff6110ad81565b60405190815260200161040a565b34801561051957600080fd5b50610465610f23565b34801561052e57600080fd5b506104ff610fea565b34801561054357600080fd5b5061046561100a565b34801561055857600080fd5b50610465611093565b34801561056d57600080fd5b506103fe61057c366004613213565b6001600160a01b03166000908152600e602052604090205460ff1690565b3480156105a657600080fd5b506104ff6105b5366004613213565b600f6020526000908152604090205481565b3480156105d357600080fd5b506104656105e2366004613299565b611102565b3480156105f357600080fd5b506009546104ff565b34801561060857600080fd5b5061047c604051806040016040528060168152602001757969656c642062656172696e6720736d6f6c74696e6760501b81525081565b34801561064a57600080fd5b506103fe610659366004613213565b60196020526000908152604090205460ff1681565b34801561067a57600080fd5b506104656106893660046132dc565b611131565b34801561069a57600080fd5b506106ae6106a9366004613318565b611163565b604080516001600160a01b03909316835260208301919091520161040a565b3480156106d957600080fd5b5061047c604051806040016040528060068152602001651e5894d353d360d21b81525081565b34801561070b57600080fd5b506104ff61071a3660046132b2565b61119d565b34801561072b57600080fd5b506103fe61073a366004613299565b611233565b34801561074b57600080fd5b50610465611252565b34801561076057600080fd5b5061046561076f3660046132dc565b611286565b34801561078057600080fd5b5061046561078f366004613299565b6112a1565b3480156107a057600080fd5b506104ff6107af366004613299565b601c6020526000908152604090205481565b3480156107cd57600080fd5b506104ff60135481565b3480156107e357600080fd5b506104ff6107f2366004613299565b61131b565b34801561080357600080fd5b506014546108119060ff1681565b60405160ff909116815260200161040a565b34801561082f57600080fd5b5061046561083e3660046133d9565b6113ae565b34801561084f57600080fd5b5061046561085e366004613213565b6113ef565b34801561086f57600080fd5b50600b5460ff166103fe565b34801561088757600080fd5b50610465610896366004613213565b61143b565b3480156108a757600080fd5b5060145461042d9061010090046001600160a01b031681565b3480156108cc57600080fd5b5061042d6108db366004613299565b61148d565b3480156108ec57600080fd5b506104ff60175481565b34801561090257600080fd5b50610465610911366004613299565b611504565b34801561092257600080fd5b506104ff610931366004613213565b611561565b34801561094257600080fd5b506104656115e8565b34801561095757600080fd5b506104ff610966366004613299565b601b6020526000908152604090205481565b34801561098457600080fd5b506104ff610993366004613213565b601a6020526000908152604090205481565b3480156109b157600080fd5b506104656109c0366004613432565b61161c565b3480156109d157600080fd5b50610465611671565b3480156109e657600080fd5b506104656109f5366004613465565b6116a3565b348015610a0657600080fd5b506000546001600160a01b031661042d565b348015610a2457600080fd5b506104ff611734565b348015610a3957600080fd5b5061047c611757565b610465610a50366004613299565b611766565b348015610a6157600080fd5b50610465610a70366004613299565b611a15565b348015610a8157600080fd5b50610465610a90366004613432565b611a44565b348015610aa157600080fd5b50610465611a4f565b348015610ab657600080fd5b5060155461042d906001600160a01b031681565b348015610ad657600080fd5b50610465610ae5366004613299565b611ad6565b348015610af657600080fd5b50610465610b05366004613524565b611b33565b348015610b1657600080fd5b506104ff60125481565b348015610b2c57600080fd5b506018546103fe9060ff1681565b348015610b4657600080fd5b5061047c610b55366004613299565b611b6b565b348015610b6657600080fd5b50610465610b75366004613432565b611bfe565b348015610b8657600080fd5b5061047c611d0c565b348015610b9b57600080fd5b506103fe610baa3660046135a0565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610be457600080fd5b50610465610bf3366004613213565b611d3a565b348015610c0457600080fd5b50610465610c13366004613213565b611d86565b348015610c2457600080fd5b50610c2e6103e881565b60405161ffff909116815260200161040a565b348015610c4d57600080fd5b506018546103fe90610100900460ff1681565b348015610c6c57600080fd5b50610465610c7b3660046135ca565b611e1e565b6000610c8b82611ebf565b92915050565b6000546001600160a01b03163314610cc45760405162461bcd60e51b8152600401610cbb906135ed565b60405180910390fd5b601580546001600160a01b0319166001600160a01b0392909216919091179055565b606060018054610cf590613622565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2190613622565b8015610d6e5780601f10610d4357610100808354040283529160200191610d6e565b820191906000526020600020905b815481529060010190602001808311610d5157829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b0316610df15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610cbb565b506000908152600560205260409020546001600160a01b031690565b6000610e188261148d565b9050806001600160a01b0316836001600160a01b03161415610e865760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610cbb565b336001600160a01b0382161480610ea25750610ea28133610baa565b610f145760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610cbb565b610f1e8383611ee4565b505050565b6000546001600160a01b03163314610f4d5760405162461bcd60e51b8152600401610cbb906135ed565b60185460ff16158015610f605750601754155b610fac5760405162461bcd60e51b815260206004820152601d60248201527f5075626c69632073616c6520697320616c7265616479206163746976650000006044820152606401610cbb565b4260178190556018805460ff191660011790556040517fb14aa2dad53a0090fda3c97971fdc6c84331eff6fc43a584628e5d83e131a30990600090a2565b600080610ff660095490565b9050611004816110ad613673565b91505090565b6000546001600160a01b031633146110345760405162461bcd60e51b8152600401610cbb906135ed565b60185460ff166110565760405162461bcd60e51b8152600401610cbb9061368a565b6018805460ff19169055611068611734565b6040517fb94d4ebcdba018821f2c6ae2fb3a03d4023685b1c78faa4fe43dada42890cd2d90600090a2565b6000546001600160a01b031633146110bd5760405162461bcd60e51b8152600401610cbb906135ed565b6018805460ff19811660ff9182161590811790925560405191161515907fafa97d89ca766bd74e787f7998a071ea20f4ddeea353499106df17bc9cf4deb890600090a2565b6000546001600160a01b0316331461112c5760405162461bcd60e51b8152600401610cbb906135ed565b601255565b61113c335b82611f52565b6111585760405162461bcd60e51b8152600401610cbb906136c1565b610f1e838383612049565b60155460165460009182916001600160a01b03909116906103e8906111889086613712565b6111929190613747565b915091509250929050565b60006111a883611561565b821061120a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610cbb565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6000818152600360205260408120546001600160a01b03161515610c8b565b6000546001600160a01b0316331461127c5760405162461bcd60e51b8152600401610cbb906135ed565b6112846121f0565b565b610f1e83838360405180602001604052806000815250611b33565b6112aa33611136565b61130f5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610cbb565b61131881612283565b50565b600061132660095490565b82106113895760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610cbb565b6009828154811061139c5761139c61375b565b90600052602060002001549050919050565b6000546001600160a01b031633146113d85760405162461bcd60e51b8152600401610cbb906135ed565b80516113eb906010906020840190613124565b5050565b6000546001600160a01b031633146114195760405162461bcd60e51b8152600401610cbb906135ed565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146114655760405162461bcd60e51b8152600401610cbb906135ed565b601480546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6000818152600360205260408120546001600160a01b031680610c8b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610cbb565b6000546001600160a01b0316331461152e5760405162461bcd60e51b8152600401610cbb906135ed565b601781905560405181907fb14aa2dad53a0090fda3c97971fdc6c84331eff6fc43a584628e5d83e131a30990600090a250565b60006001600160a01b0382166115cc5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610cbb565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146116125760405162461bcd60e51b8152600401610cbb906135ed565b611284600061232a565b6000546001600160a01b031633146116465760405162461bcd60e51b8152600401610cbb906135ed565b6001600160a01b03919091166000908152601960205260409020805460ff1916911515919091179055565b6000546001600160a01b0316331461169b5760405162461bcd60e51b8152600401610cbb906135ed565b61128461237a565b6000546001600160a01b031633146116cd5760405162461bcd60e51b8152600401610cbb906135ed565b60005b8251811015610f1e5781601960008584815181106116f0576116f061375b565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061172c81613771565b9150506116d0565b600080601754116117455750600090565b6017546117529042613673565b905090565b606060028054610cf590613622565b6000546001600160a01b0316331480611781575060185460ff165b61179d5760405162461bcd60e51b8152600401610cbb9061368a565b600080546001600160a01b03163314906117b5611734565b116117f45760405162461bcd60e51b815260206004820152600f60248201526e73616c65206e6f742061637469766560881b6044820152606401610cbb565b808061181b5750336000908152600f60205260409020546118189061012c9061378c565b42115b6118675760405162461bcd60e51b815260206004820181905260248201527f63616e206f6e6c79206d696e74206f6e6365207065722035206d696e757465736044820152606401610cbb565b60008211801561188357508080611883575060145460ff168211155b6118eb5760405162461bcd60e51b815260206004820152603360248201527f6d757374206d696e74206174206c65617374206f6e6520616e642063616e6e6f6044820152721d08195e18d95959081b585e08185b5bdd5b9d606a1b6064820152608401610cbb565b6118f3610fea565b8211156119425760405162461bcd60e51b815260206004820152601f60248201527f6d696e74696e6720776f756c6420657863656564206d617820737570706c79006044820152606401610cbb565b336000908152600f60209081526040808320429055601990915290205460ff16801561197b5750336000908152601a6020526040902054155b156119aa57336000908152601a602052604090204290556119a56119a0600184613673565b6123f5565b6119b3565b6119b3826123f5565b60005b82811015611a09576119cc600c80546001019055565b6119d833600c54612723565b42601b60006119e6600c5490565b815260208101919091526040016000205580611a0181613771565b9150506119b6565b506113eb60003361273d565b6000546001600160a01b03163314611a3f5760405162461bcd60e51b8152600401610cbb906135ed565b601355565b6113eb33838361283e565b6000546001600160a01b03163314611a795760405162461bcd60e51b8152600401610cbb906135ed565b601854610100900460ff1615611ac55760405162461bcd60e51b8152602060048201526011602482015270616c72656164792072657665616c696e6760781b6044820152606401610cbb565b6018805461ff001916610100179055565b6000546001600160a01b03163314611b005760405162461bcd60e51b8152600401610cbb906135ed565b601681905560405181907fce3498f3236889c7e9256b3643e0f7fae5a1b912f2ac0daa1d89236c70b522c690600090a250565b611b3d3383611f52565b611b595760405162461bcd60e51b8152600401610cbb906136c1565b611b658484848461290d565b50505050565b6000818152600360205260409020546060906001600160a01b0316611bc65760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610cbb565b611bce612940565b611bd78361294f565b604051602001611be89291906137a4565b6040516020818303038152906040529050919050565b6000546001600160a01b03163314611c285760405162461bcd60e51b8152600401610cbb906135ed565b6001600160a01b0382166000908152600e60205260409020805460ff19168215801591909117909155611cc057600d54604051630a5b654b60e11b81526001600160a01b03848116600483015260006024830152909116906314b6ca96906044015b600060405180830381600087803b158015611ca457600080fd5b505af1158015611cb8573d6000803e3d6000fd5b505050505050565b600d546001600160a01b03166314b6ca9683611cdb81611561565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401611c8a565b6060611d16612940565b604051602001611d2691906137e3565b604051602081830303815290604052905090565b6000546001600160a01b03163314611d645760405162461bcd60e51b8152600401610cbb906135ed565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314611db05760405162461bcd60e51b8152600401610cbb906135ed565b6001600160a01b038116611e155760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cbb565b6113188161232a565b6000546001600160a01b03163314611e485760405162461bcd60e51b8152600401610cbb906135ed565b60145460ff16611ea95760405162461bcd60e51b815260206004820152602660248201527f6861766520746f2062652061626c6520746f206d696e74206174206c65617374604482015265080c4813919560d21b6064820152608401610cbb565b6014805460ff191660ff92909216919091179055565b60006001600160e01b0319821663780e9d6360e01b1480610c8b5750610c8b82612a4d565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611f198261148d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b0316611fcb5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610cbb565b6000611fd68361148d565b9050806001600160a01b0316846001600160a01b031614806120115750836001600160a01b031661200684610d78565b6001600160a01b0316145b8061204157506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661205c8261148d565b6001600160a01b0316146120c05760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610cbb565b6001600160a01b0382166121225760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610cbb565b61212d838383612a9d565b612138600082611ee4565b6001600160a01b0383166000908152600460205260408120805460019290612161908490613673565b90915550506001600160a01b038216600090815260046020526040812080546001929061218f90849061378c565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600b5460ff166122395760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610cbb565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600061228e8261148d565b905061229c81600084612a9d565b6122a7600083611ee4565b6001600160a01b03811660009081526004602052604081208054600192906122d0908490613673565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600b5460ff16156123c05760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610cbb565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586122663390565b6000546001600160a01b0316331480612410575060185460ff165b61242c5760405162461bcd60e51b8152600401610cbb9061368a565b600081116124725760405162461bcd60e51b81526020600482015260136024820152726d757374206d6974206174206c65617374203160681b6044820152606401610cbb565b6000546001600160a01b0316331480156124975734156113eb576113eb335b34612ac3565b6011546012546001600160a01b03909116906000906124b7908590613712565b90506000846013546124c99190613712565b905081156125c057813410156125325760405162461bcd60e51b815260206004820152602860248201527f6e6f7420656e6f756768206e617469766520746f6b656e2070726f7669646564604482015267081d1bc81b5a5b9d60c21b6064820152608401610cbb565b601454479061254f9061010090046001600160a01b031684612ac3565b8234111561256a5761256a336125658534613673565b612ac3565b6125743482613673565b4710156125ba5760405162461bcd60e51b81526020600482015260146024820152731d1bdbc81b5d58da081b985d1a5d99481cd95b9d60621b6044820152606401610cbb565b506125cf565b34156125cf576125cf33612491565b801561271c57806001600160a01b0384166370a08231336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561262557600080fd5b505afa158015612639573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061265d9190613814565b10156126ab5760405162461bcd60e51b815260206004820152601f60248201527f6e6f7420656e6f75676820534d4f4c2062616c616e636520746f206d696e74006044820152606401610cbb565b6001600160a01b03831663271292f5336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561270357600080fd5b505af1158015612717573d6000803e3d6000fd5b505050505b5050505050565b6113eb828260405180602001604052806000815250612bdc565b6001600160a01b0382166000908152600e602052604090205460ff1615801561276e57506001600160a01b03821615155b156127ed57600d546001600160a01b03166314b6ca968361278e81611561565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156127d457600080fd5b505af11580156127e8573d6000803e3d6000fd5b505050505b6001600160a01b0381166000908152600e602052604090205460ff1615801561281e57506001600160a01b03811615155b156113eb57600d546001600160a01b03166314b6ca9682611cdb81611561565b816001600160a01b0316836001600160a01b031614156128a05760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610cbb565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612918848484612049565b61292484848484612c0f565b611b655760405162461bcd60e51b8152600401610cbb9061382d565b606060108054610cf590613622565b6060816129735750506040805180820190915260018152600360fc1b602082015290565b8160005b811561299d578061298781613771565b91506129969050600a83613747565b9150612977565b60008167ffffffffffffffff8111156129b8576129b861333a565b6040519080825280601f01601f1916602001820160405280156129e2576020820181803683370190505b5090505b8415612041576129f7600183613673565b9150612a04600a8661387f565b612a0f90603061378c565b60f81b818381518110612a2457612a2461375b565b60200101906001600160f81b031916908160001a905350612a46600a86613747565b94506129e6565b60006001600160e01b031982166380ac58cd60e01b1480612a7e57506001600160e01b03198216635b5e139f60e01b145b80610c8b57506301ffc9a760e01b6001600160e01b0319831614610c8b565b6000818152601c60205260409020429055612ab8838361273d565b610f1e838383612d1c565b80471015612b135760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610cbb565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612b60576040519150601f19603f3d011682016040523d82523d6000602084013e612b65565b606091505b5050905080610f1e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610cbb565b612be68383612d8e565b612bf36000848484612c0f565b610f1e5760405162461bcd60e51b8152600401610cbb9061382d565b60006001600160a01b0384163b15612d1157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612c53903390899088908890600401613893565b602060405180830381600087803b158015612c6d57600080fd5b505af1925050508015612c9d575060408051601f3d908101601f19168201909252612c9a918101906138d0565b60015b612cf7573d808015612ccb576040519150601f19603f3d011682016040523d82523d6000602084013e612cd0565b606091505b508051612cef5760405162461bcd60e51b8152600401610cbb9061382d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612041565b506001949350505050565b612d27838383612edc565b600b5460ff1615610f1e5760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b6064820152608401610cbb565b6001600160a01b038216612de45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610cbb565b6000818152600360205260409020546001600160a01b031615612e495760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610cbb565b612e5560008383612a9d565b6001600160a01b0382166000908152600460205260408120805460019290612e7e90849061378c565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b038316612f3757612f3281600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b612f5a565b816001600160a01b0316836001600160a01b031614612f5a57612f5a8382612f94565b6001600160a01b038216612f7157610f1e81613031565b826001600160a01b0316826001600160a01b031614610f1e57610f1e82826130e0565b60006001612fa184611561565b612fab9190613673565b600083815260086020526040902054909150808214612ffe576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061304390600190613673565b6000838152600a60205260408120546009805493945090928490811061306b5761306b61375b565b90600052602060002001549050806009838154811061308c5761308c61375b565b6000918252602080832090910192909255828152600a909152604080822084905585825281205560098054806130c4576130c46138ed565b6001900381819060005260206000200160009055905550505050565b60006130eb83611561565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b82805461313090613622565b90600052602060002090601f0160209004810192826131525760008555613198565b82601f1061316b57805160ff1916838001178555613198565b82800160010185558215613198579182015b8281111561319857825182559160200191906001019061317d565b506131a49291506131a8565b5090565b5b808211156131a457600081556001016131a9565b6001600160e01b03198116811461131857600080fd5b6000602082840312156131e557600080fd5b81356131f0816131bd565b9392505050565b80356001600160a01b038116811461320e57600080fd5b919050565b60006020828403121561322557600080fd5b6131f0826131f7565b60005b83811015613249578181015183820152602001613231565b83811115611b655750506000910152565b6000815180845261327281602086016020860161322e565b601f01601f19169290920160200192915050565b6020815260006131f0602083018461325a565b6000602082840312156132ab57600080fd5b5035919050565b600080604083850312156132c557600080fd5b6132ce836131f7565b946020939093013593505050565b6000806000606084860312156132f157600080fd5b6132fa846131f7565b9250613308602085016131f7565b9150604084013590509250925092565b6000806040838503121561332b57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156133795761337961333a565b604052919050565b600067ffffffffffffffff83111561339b5761339b61333a565b6133ae601f8401601f1916602001613350565b90508281528383830111156133c257600080fd5b828260208301376000602084830101529392505050565b6000602082840312156133eb57600080fd5b813567ffffffffffffffff81111561340257600080fd5b8201601f8101841361341357600080fd5b61204184823560208401613381565b8035801515811461320e57600080fd5b6000806040838503121561344557600080fd5b61344e836131f7565b915061345c60208401613422565b90509250929050565b6000806040838503121561347857600080fd5b823567ffffffffffffffff8082111561349057600080fd5b818501915085601f8301126134a457600080fd5b81356020828211156134b8576134b861333a565b8160051b92506134c9818401613350565b82815292840181019281810190898511156134e357600080fd5b948201945b84861015613508576134f9866131f7565b825294820194908201906134e8565b96506135179050878201613422565b9450505050509250929050565b6000806000806080858703121561353a57600080fd5b613543856131f7565b9350613551602086016131f7565b925060408501359150606085013567ffffffffffffffff81111561357457600080fd5b8501601f8101871361358557600080fd5b61359487823560208401613381565b91505092959194509250565b600080604083850312156135b357600080fd5b6135bc836131f7565b915061345c602084016131f7565b6000602082840312156135dc57600080fd5b813560ff811681146131f057600080fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061363657607f821691505b6020821081141561365757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156136855761368561365d565b500390565b60208082526019908201527f5075626c69632073616c65206973206e6f742061637469766500000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600081600019048311821515161561372c5761372c61365d565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261375657613756613731565b500490565b634e487b7160e01b600052603260045260246000fd5b60006000198214156137855761378561365d565b5060010190565b6000821982111561379f5761379f61365d565b500190565b600083516137b681846020880161322e565b8351908301906137ca81836020880161322e565b64173539b7b760d91b9101908152600501949350505050565b600082516137f581846020870161322e565b6c31b7b73a3930b1ba173539b7b760991b920191825250600d01919050565b60006020828403121561382657600080fd5b5051919050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261388e5761388e613731565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906138c69083018461325a565b9695505050505050565b6000602082840312156138e257600080fd5b81516131f0816131bd565b634e487b7160e01b600052603160045260246000fdfea164736f6c6343000809000a

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002968747470733a2f2f6170692e736d6f6c74696e67696e752e636f6d2f6e66742f6d657461646174612f0000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _baseTokenURI (string): https://api.smoltinginu.com/nft/metadata/

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000029
Arg [2] : 68747470733a2f2f6170692e736d6f6c74696e67696e752e636f6d2f6e66742f
Arg [3] : 6d657461646174612f0000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

Providing meme virality, automated rewards, innovative gamification, and something for every CT enthusiast. We're building something brand new and for the culture to keep the community engaged and everyone coming back for more!

Validator Index Block Amount
View All Withdrawals

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

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