Contract 0xA920464B46548930bEfECcA5467860B2b4C2B5b9

 

Contract Overview

Balance:
0 MATIC

MATIC Value:
$0.00

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x56f08f5f1d6c74bf13788518dc5d3101dab773dfaa1f86a5df166ed928586e8aDelegate337592912022-09-30 15:32:1169 days 1 hr ago0x4444ad20879051b696a1c14ccf6e3b0459466666 IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.001474261611 30.166389304
0x87136323311eea2c583471a367858383dc0ff51fb05265c61e6961d3c9a1d352Delegate333425962022-09-20 12:00:1779 days 4 hrs ago0xf1e3398e86a4aafc141f3dbcdbebfcd49bff304c IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.00146955097 30.070000002
0x6430aebc810e16ce815989d62a8769c4caaa997151342d51d09a89a6ac3796a9Set Vestor311991762022-07-27 14:03:07134 days 2 hrs ago0x258c28aba4f894da9d5131f2a6cb67d60be2c3ba IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.000920040003 30.000000108
0xa2e8adc62ddd39122513dcec7109438a3946c24430855364b7187a3e7324e441Delegate311192442022-07-25 10:35:30136 days 6 hrs ago0xdff33f1d17db3df7ef625bf4b60dfa59c95bb176 IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.001466145478 30.000316717
0x6f7eaf5570146095223db8446f520cacc382641ff987619827b34609832851e0Delegate310990362022-07-24 21:07:19136 days 19 hrs ago0x7bda037dfdf9cd9ad261d27f489924aebbce71ac IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.001222346956 42.195000043
0xc83e3965a8e12c58d5357a9bb6f61c0d1fd6a48a105395f90b8e5422c2dbd4eeDelegate310989672022-07-24 21:04:57136 days 19 hrs ago0xc4cd57b06c9f735abd6240a2683026e308f716c7 IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.001659170449 33.949999999
0xf6e96be6acc82fa8b190ce65e864e07947d9937f0983108f030004fe6022c13dDelegate302520102022-07-02 12:46:35159 days 4 hrs ago0x7bda037dfdf9cd9ad261d27f489924aebbce71ac IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.00346145299 30.079451067
0x7685bba3eb2849914561cf7ebf7c2db7063a30d3949f3e64530f9bc0e4bf94eeTransfer From298304392022-06-21 13:53:08170 days 2 hrs ago0x6bbc75dd773d9f5c83aa154b1145cd271fd584e8 IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.232668632079 73.095370771
0x9df423689e07cfd564df75bf774366038aabf26c07a97d877e16664b784dcb84Delegate297423002022-06-19 5:39:10172 days 11 hrs ago0x014169558ba0ed96c399617c5646bdde3d66562e IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.00092768181 32.010000025
0x363081ca528454594e390baad6de05963e47b3026737755408dcf937c7e34f03Delegate297422612022-06-19 5:37:48172 days 11 hrs ago0x014169558ba0ed96c399617c5646bdde3d66562e IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.001565782858 32.039100051
0x88458bc9c2a84ec466a9d557576c1556d9ae5e4c7461b97c94fb48264112f366Delegate296292852022-06-16 7:31:43175 days 9 hrs ago0x52bbcd3ebfd6183852ee91b39efd5a07caa0d500 IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.001805682067 36.95700009
0xe445a76dfe27eb358518e3658ca721394878097358045eb38c034430f46cd84eDelegate294995862022-06-13 2:11:19178 days 14 hrs ago0x1c2c4c9053c4913bebb198e43b8b4467f0f60f2b IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.00273037859 94.212711457
0xc05cc731059cb19a59f7b8fc5514e3ca9be1690e490353eab7fa1e099cf4fc50Delegate294994282022-06-13 2:05:50178 days 14 hrs ago0x1c2c4c9053c4913bebb198e43b8b4467f0f60f2b IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.008602595374 176.026587851
0x801fbb20abbf2df15e24517f38b321132852746d6dd54b6765e6afadca1b30a4Delegate294350582022-06-11 12:01:09180 days 4 hrs ago0xa72945c86efeb5f357663a21bb1979a0934809ac IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.000642960157 30.000007361
0xea5342823f8e6c17835ba201d2e50d03cb00508ce5cc1f232ab9e1eb62269a24Delegate294350302022-06-11 12:00:13180 days 4 hrs ago0xa72945c86efeb5f357663a21bb1979a0934809ac IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.001466130014 30.000000295
0x264ce6b6f0cc44afe7cdfda2893434dae89b1fe28badb24029e4326dd3582c0bDelegate294299492022-06-11 9:05:14180 days 7 hrs ago0xd3ce8c5ef43afebab7e35bcca6b7f363ba14a10b IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.249434479638 5,103.936478453
0x9dc1fdb377ca0693db717976d3b93abcb38a908814c506d9f13c648cb2134a6bSetreserve Durat...293248252022-06-08 18:06:33182 days 22 hrs ago0x258c28aba4f894da9d5131f2a6cb67d60be2c3ba IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.00093528402 31.020000015
0xdd221ba8b2436d75044b52e5fd91fd17ed968a8f85d2f5ede3c9a047a716c3e7Delegate292441972022-06-06 17:51:53184 days 22 hrs ago0xed3ca6df7794dddc3fdb4328994496ef3df95c4d IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.002684234873 54.924901753
0x790b01d68a186fc5e46bbac98ac90688b4328c89e2ae0642b11a784b7cf879a8Setreserve Durat...292375502022-06-06 13:39:55185 days 3 hrs ago0x258c28aba4f894da9d5131f2a6cb67d60be2c3ba IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.000904890004 30.000000153
0xb1e4fadf40247246b9c55ee1e4aa2e59fd69af1bfaf51986f5b247213c799e33Set Approval For...284295882022-05-17 12:48:54205 days 3 hrs ago0x2a0660e203c9fd5ba5a9e77e9b7517741f54e2aa IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.00144024647 31.04983229
0x20ed59368e5641e017ec0e48d53b91279bac361d657afbba752fe77509cce27eSet Approval For...284286232022-05-17 12:11:28205 days 4 hrs ago0x9184af032e435ef9715740f305662c4153e479c0 IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.001425122176 30.723772264
0xabdfbdf95544c30021c6f521ec85008f6da72f3bf862fec27400725e8b0b1417Set Approval For...284285972022-05-17 12:10:32205 days 4 hrs ago0x9cfc7a1e35d4264f2c0fe9892ff2e075abfb5ac0 IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.0014397904 31.04
0xf89bfa1191e5b2532c2f5f36278d3500c1646703947600b498095f9a50cae319Set Approval For...284283722022-05-17 12:02:50205 days 4 hrs ago0x8726924fb2498d2738e973faf8396c685119a853 IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.001418930784 30.590293937
0x32735a4b7c6bc43f33ea5793c1efcf50ac19ee77f7e53bb8e494a36e2f32b13fSet Approval For...284283332022-05-17 12:01:28205 days 4 hrs ago0x5671e7a5fec6b939be8a96ebbf67c201b0712301 IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.001441903949 31.085565365
0xe6aadafb133a3379ddbc4694f1d91ee4f448eda755f8ce5e354b0ed753bb745fSet Approval For...284282602022-05-17 11:58:58205 days 4 hrs ago0x7224941ae4d0f22f286d89dcba02f04a67e82d54 IN  0xa920464b46548930befecca5467860b2b4c2b5b90 MATIC0.00141306587 30.463854054
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
Dog

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 18 : Dog.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import './Streamonomics.sol';
import { ERC721 } from './base/ERC721.sol';
import './base/ERC721Enumerable.sol';
import { ERC721Checkpointable } from './base/ERC721Checkpointable.sol';
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

interface ITokenVestor {
    function deposit(IERC20 token, uint256 amount) external;
    function flowTokenBalance() external returns (uint256);
    function getNetFlow() external returns (int96);
    function registerFlow(address adr, int96 flowRate, bool isPermanent, uint256 cliffEnd, uint256 vestingDuration, uint256 cliffAmount, bytes32 ref) external;
    function redirectStreams(address oldRecipient, address newRecipient, bytes32 ref) external;
}

interface IDAOSuperApp {
    function deposit(address tokenAddress, uint _amount, address beneficiary) external;
}

interface IIdleToken {
    function token() external view returns (address underlying);
    function mintIdleToken(uint256 _amount, bool _skipWholeRebalance, address _referral) external returns (uint256 mintedTokens);
    function tokenPrice() external view returns (uint256 price);
    function approve(address, uint256) external returns (bool);
    function transfer(address, uint256) external returns (bool);
    function balanceOf(address) external returns (uint256);
}

contract Dog is ERC721, ERC721Checkpointable, Ownable, Streamonomics {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // @dev The dogMaster address (founders)
    address public dogMaster;

    address private idleWETH;
    address private weth;

    // @dev Token Vesting contract
    ITokenVestor private vestor;

    // @dev An address who has permissions to mint Dogs
    address public minter;

    address public treasury;

    IDAOSuperApp public donationDAO;
    uint256 public donationPercentage = 10;

    mapping(uint256 => uint256) public winningBid;

    mapping(uint256 => string) public tokenURIs;
    
    uint256 public lastId;

    // @dev default to 4 weeks
    uint256 public reserveDuration = 60*60*24*28;

    // @dev optional delay to starting streams, requiring a separate txn to launch them
    uint256 public flowDelay;

    // @dev IPFS content hash of contract-level metadata
    string private _contractURIHash = "QmYuKfPPTT14eTHsiaprGrTpuSU5Gzyq7EjMwwoPZvaB6o";
    string public metadataBaseURI;

    event TreasuryUpdated(
        address oldAddress,
        address newAddress
    );

    event VaultUpdated(
        address oldAddress,
        address newAddress
    );

    event VestorUpdated(
        address oldAddress,
        address newAddress
    );

    event MinterUpdated(
        address oldAddress,
        address newAddress
    );

    event DonationPercentageUpdated(
        uint256 oldPercentage,
        uint256 newPercentage
    );

    event ReserveDurationUpdated(
        uint256 oldDuration,
        uint256 newDuration
    );

    event BaseURIUpdated(
        string oldURI,
        string newURI
    );

    event DogMasterUpdated(
        address dogMaster
    );

    event DogCreated(
        uint256 tokenId
    );

    event NFTIssued(
        uint256 indexed tokenId, 
        address indexed owner
    );

    event PermanentURI(
        string _value, 
        uint256 indexed _id
    );

    modifier onlyMinter() {
        require(msg.sender == minter, '!m');
        _;
    }
    modifier onlyMinterOrOwner() {
        require( (msg.sender == minter) || (msg.sender == owner()), '!m||o');
        _;
    }

    /**
     * @notice Require that the sender is the dogMaster.
     */
    modifier onlyDogMaster() {
        require(msg.sender == dogMaster, '!dM');
        _;
    }

    constructor(
        address _tokenVestor, 
        address _donationDAO, 
        address _weth, 
        address _idletoken, 
        address _dogMaster,
        string memory _name, 
        string memory _symbol,
        string memory _metadataBaseURI
        ) 
        ERC721(_name, _symbol) {

        vestor = ITokenVestor(_tokenVestor);
        donationDAO = IDAOSuperApp(_donationDAO);
        weth = _weth;
        idleWETH = _idletoken;
        dogMaster = _dogMaster;
        metadataBaseURI = _metadataBaseURI;

        // @dev default streamonomics -- can be replaced with setStreamonomics
        streamonomics.push(Streamonomic(10,1,1,1));
        streamonomics.push(Streamonomic(30,1,5,20));
        streamonomics.push(Streamonomic(10,10,1,1));
    }

    function setVestor(address _vestor) external onlyOwner {
        emit VestorUpdated(address(vestor), _vestor);
        vestor = ITokenVestor(_vestor);
    }

    function _targetReserves() internal returns(uint256 targetReserves) {
        int96 totalFlowRate = vestor.getNetFlow() * -1;
        targetReserves = uint256(uint96(totalFlowRate)).mul(reserveDuration);
    }
    function setreserveDuration(uint256 _duration) external onlyOwner {
        require(_duration > 0, "!0");
        emit ReserveDurationUpdated(reserveDuration, _duration);
        reserveDuration = _duration;
    }
    function _targetReserveForAmount(uint256 amt) internal view returns(uint256 reserve) {
        uint256 pct;
        for(uint i = 0; i < streamonomics.length; i++) {
            pct += streamonomics[i].percentage;
        }
        reserve = amt.mul(pct).div(100).div(31536000).mul(reserveDuration);
    }

    function setTreasury(address _treasury) external onlyOwner {
        emit TreasuryUpdated(treasury, _treasury);
        treasury = _treasury;
    }

    // @dev for emergency use only, in the event that idleWETH changes or stops functioning
    function setVault(address _vault) external onlyOwner {
        emit VaultUpdated(idleWETH, _vault);
        idleWETH = _vault;
    }

    function setDonationPercentage(uint256 _pct) external onlyOwner {
        emit DonationPercentageUpdated(donationPercentage, _pct);
        uint256 streamPct;
        for(uint i = 0; i < streamonomics.length; i++) {
            streamPct += streamonomics[i].percentage;
        }
        require(_pct <= (100 - streamPct), "!>100");
        donationPercentage = _pct;
    }

    function setFlowDelay(uint256 _seconds) external onlyOwner {
        flowDelay = _seconds;
    }

    function _baseURI() internal view virtual override returns (string memory) {
        return metadataBaseURI;
    }
    function setBaseURI(string calldata _uri) external onlyOwner {
        emit BaseURIUpdated(metadataBaseURI, _uri);
        metadataBaseURI = _uri;
    }

    function _getTreasury() internal view returns(address) {
        if ( treasury != address(0) ) {
            return treasury;
        } else {
            return address(this);
        }
    }

    function _idle(uint256 tokens) internal returns (uint256) {
        IERC20 underlying = IERC20(weth);
        IIdleToken iToken = IIdleToken(idleWETH);
        uint256 _numTokensBefore = iToken.balanceOf(address(this));
        uint256 _numTokensToSupply = tokens;
        underlying.approve(idleWETH, _numTokensToSupply);
        iToken.mintIdleToken(_numTokensToSupply, true, _getTreasury());
        uint256 _numTokensAfter = iToken.balanceOf(address(this));
        uint256 iTokens = _numTokensAfter.sub(_numTokensBefore);
        return iTokens;
    }

    function _defi(uint256 amount, address newOwner, uint256 tokenId) internal returns(uint256) {
        IERC20 token = IERC20(weth);
        IIdleToken iToken = IIdleToken(idleWETH);
        uint256 beforeBalance = token.balanceOf(address(this));
        token.safeTransferFrom(msg.sender, address(this), amount);
        uint256 afterBalance = token.balanceOf(address(this));
        require(beforeBalance.add(amount) == afterBalance, "!amt");
        
        uint256 toIdleAmount = amount;
        if ( address(donationDAO) != address(0) ) {
            if (donationPercentage > 0) {
                uint256 donationAmount = amount.mul(donationPercentage).div(100);
                if (tokenId == 1) {
                    // @dev 100% donation for Dog#1: Ukraine Dog
                    donationAmount = amount;
                }
                token.approve(address(donationDAO), donationAmount);
                donationDAO.deposit(weth, donationAmount, newOwner);
                toIdleAmount -= donationAmount;
            }
        }
        
        if (toIdleAmount == 0) {
            return 0;
        } else {
            _idle(toIdleAmount);
            uint256 price = iToken.tokenPrice();
            uint256 estTokens = amount.mul(10**18).div(price);

            uint256 vestorBalance = vestor.flowTokenBalance();
            uint256 target = _targetReserves().add(_targetReserveForAmount(estTokens));
            if ( target > vestorBalance ) {
                uint256 depAmount = target.sub(vestorBalance);
                iToken.approve(address(vestor), depAmount);
                vestor.deposit(IERC20(idleWETH), depAmount);
            }
            uint256 iBalance = iToken.balanceOf(address(this));
            if ( treasury != address(0) ) {
                iToken.transfer(treasury, iBalance);
            }
            return estTokens;
        }
    }

    function withdrawToken(address _tokenContract) external onlyOwner {
        IERC20 tokenContract = IERC20(_tokenContract);
        tokenContract.transfer(msg.sender, tokenContract.balanceOf(address(this)) );
    }
    function withdrawETH() external payable onlyOwner {
        payable(msg.sender).transfer(address(this).balance);
    }
    
    /**
     * @notice Mint a Dog, along with a possible dogMaster reward
     * Dog. Dogmaster reward Dogs are minted every 11 Dogs, starting at 0,
     * until 420 Dogs have been minted (~1 year).
     * @dev Call _mint with the to address(es).
     */
    function mint() external onlyMinterOrOwner returns (uint256) {
        if (lastId <= 420 && lastId % 11 == 0) {
            _mint(owner(), dogMaster, lastId);
            emit DogCreated(lastId);
            lastId++;
        }
        _mint(owner(), address(this), lastId);
        emit DogCreated(lastId);
        lastId++;
        return lastId - 1;
    }
    
    // @dev issues the NFT, transferring it to a new owner, and starting the streams
    function issue(address newOwner, uint256 tokenId, uint256 amount) external onlyMinterOrOwner {
        require(newOwner != address(this), "!me");
        require(ownerOf(tokenId) == address(this), "done");
        uint256 iTokensAmount;
        if (amount > 0) {
            iTokensAmount = _defi(amount, newOwner, tokenId);
        } else {
            newOwner = _getTreasury();
        }
        if (newOwner != address(this) ) {
            winningBid[tokenId] = iTokensAmount;
            emit NFTIssued(tokenId, newOwner);
            this.safeTransferFrom(address(this), newOwner, tokenId);
        }
    }

    function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory) {
        if ( bytes(tokenURIs[tokenId]).length > 0 ) {
            return tokenURIs[tokenId];
        } else {
            return super.tokenURI(tokenId);
        }
    }

    function _beforeTokenTransfer(
        address oldReceiver,
        address newReceiver,
        uint256 tokenId
    ) internal override(ERC721, ERC721Checkpointable) {
        super._beforeTokenTransfer(oldReceiver, newReceiver, tokenId);
        require(newReceiver != address(0), "!0x");

        if ( oldReceiver == address(this) ) {
            uint256 _amount = winningBid[tokenId];

            if (_amount > 0) {

                // @dev loop through streamonomics rules
                for(uint i = 0; i < streamonomics.length; i++) {
                    Streamonomic memory rule = streamonomics[i];
                    // @dev skip the rule if we are too early for it to apply
                    if ( rule.start <= tokenId ) {
                        uint256 pieces = rule.limit;
                        if ( tokenId.sub(rule.start) < rule.step.mul(rule.limit) ) {
                            // @dev share with < rule.limit tokens
                            pieces = tokenId.sub(rule.start).div(rule.step) + 1;
                        }
                        uint256 share = _amount.mul(rule.percentage).div(pieces).div(100);
                        int96 flowRate = int96(uint96(share.div(31536000)));
                        uint256 latest = tokenId - rule.start;
                        uint256 count;
                        // @dev start from current tokenId and move backwards based on `start` and `step` increments
                        for(uint256 j = latest; j >= 0; j -= rule.step) {
                            count++;
                            address receiver = ownerOf(j);
                            if ( receiver != address(this) ) {
                                bytes32 ref = keccak256(abi.encode(address(this), j));
                                vestor.registerFlow(receiver, flowRate, false, block.timestamp.sub(1).add(flowDelay), 31536000, 0, ref);
                            }
                            // @dev check if next j iteration takes us below zero
                            if ( rule.step > j ) {
                                break;
                            }
                            // @dev check limit
                            if ( count == rule.limit ) {
                                break;
                            }
                        }
                    }
                }

            }

        } else {
            if ( (newReceiver != address(this)) && (oldReceiver != address(0)) ) {
                // @dev being transferred to new owner - redirect the flow
                vestor.redirectStreams(oldReceiver, newReceiver, keccak256(abi.encode(address(this), tokenId)));
            }
        }
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC721Enumerable) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    function setMinter(address _minter) external onlyOwner {
        emit MinterUpdated(minter, _minter);
        minter = _minter;
    }

    /**
     * @notice The IPFS URI of contract-level metadata.
     */
    function contractURI() external view returns (string memory) {
        return string(abi.encodePacked('ipfs://', _contractURIHash));
    }

    /**
     * @notice Set the _contractURIHash.
     * @dev Only callable by the owner.
     */
    function setContractURIHash(string memory newContractURIHash) external onlyOwner {
        _contractURIHash = newContractURIHash;
    }

    /**
     * @notice Set the dogMaster address.
     * @dev Only callable by the dogMaster.
     */
    function setDogMaster(address _dogMaster) external onlyDogMaster {
        dogMaster = _dogMaster;
        emit DogMasterUpdated(_dogMaster);
    }

    /**
     * @notice Sets and freezes explict tokenURI for {_id}
     * @dev Future use, to optionally freeze metadata to decentralized storage
     */
    function freezeTokenURI(string calldata _uri, uint256 _id) external onlyOwner {
        require(bytes(tokenURIs[_id]).length == 0, "fzn");
        tokenURIs[_id] = _uri;
        emit PermanentURI(_uri, _id);
    }

    receive() external payable {}
}

File 2 of 18 : Streamonomics.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";

contract Streamonomics is Ownable {

    struct Streamonomic {
        uint256 percentage;
        uint256 start;
        uint256 step;
        uint256 limit;
    }
    Streamonomic[] public streamonomics;

    event StreamonomicAdded(
        uint256 percentage,
        uint256 start,
        uint256 step,
        uint256 limit
    );

    event StreamonomicsDeleted(
        uint256 length
    );

    function setStreamonomics(uint256[] calldata percentage, uint256[] calldata start, uint256[] calldata step, uint256[] calldata limit) external onlyOwner {
        require(percentage.length == start.length, "!len");
        require(start.length == step.length, "!len");
        require(step.length == limit.length, "!len");
        emit StreamonomicsDeleted(streamonomics.length);
        delete streamonomics;
        uint256 total;
        for(uint i = 0; i < percentage.length; i++) {
            streamonomics.push(Streamonomic(percentage[i], start[i], step[i], limit[i]));
            emit StreamonomicAdded(percentage[i], start[i], step[i], limit[i]);
            total += percentage[i];
        }
        require(total <= 100, "!>100");
    }

    function getStreamonomics() external view returns(Streamonomic[] memory) {
        return streamonomics;
    }

}

File 3 of 18 : ERC721.sol
// SPDX-License-Identifier: MIT

/// @title ERC721 Token Implementation

/*********************************
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░██░░░████░░██░░░████░░░ *
 * ░░██████░░░████████░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 *********************************/

// LICENSE
// ERC721.sol modifies OpenZeppelin's ERC721.sol:
// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/6618f9f18424ade44116d0221719f4c93be6a078/contracts/token/ERC721/ERC721.sol
//
// ERC721.sol source code copyright OpenZeppelin licensed under the MIT License.
// With modifications by Nounders DAO.
//
//
// MODIFICATIONS:
// `_safeMint` and `_mint` contain an additional `creator` argument and
// emit two `Transfer` logs, rather than one. The first log displays the
// transfer (mint) from `address(0)` to the `creator`. The second displays the
// transfer from the `creator` to the `to` address. This enables correct
// attribution on various NFT marketplaces.

pragma solidity ^0.8.0;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/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: !0');
        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: !0');
        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: !id');

        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: !self');

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            'ERC721: !all'
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), 'ERC721: !exists');

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), 'ERC721: !caller');

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_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: !owner');

        _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: !owner');
        _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: !receiver');
    }

    /**
     * @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: !token');
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId`, transfers it to `to`, and emits two log events -
     * 1. Credits the `minter` with the mint.
     * 2. Shows transfer from the `minter` 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 creator,
        address to,
        uint256 tokenId
    ) internal virtual {
        _safeMint(creator, 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 creator,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(creator, to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            'ERC721: !implementer'
        );
    }

    /**
     * @dev Mints `tokenId`, transfers it to `to`, and emits two log events -
     * 1. Credits the `creator` with the mint.
     * 2. Shows transfer from the `creator` 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 creator,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(to != address(0), 'ERC721: !0');
        require(!_exists(tokenId), 'ERC721: exists');

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

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

        emit Transfer(address(0), creator, tokenId);
        emit Transfer(creator, 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);
    }

    /**
     * @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: !own');
        require(to != address(0), 'ERC721: !0');

        _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);
    }

    /**
     * @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 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(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert('ERC721: !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 {}
}

File 4 of 18 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

/// @title ERC721 Enumerable Extension

/*********************************
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░██░░░████░░██░░░████░░░ *
 * ░░██████░░░████████░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 *********************************/

// LICENSE
// ERC721.sol modifies OpenZeppelin's ERC721Enumerable.sol:
// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/6618f9f18424ade44116d0221719f4c93be6a078/contracts/token/ERC721/extensions/ERC721Enumerable.sol
//
// ERC721Enumerable.sol source code copyright OpenZeppelin licensed under the MIT License.
// With modifications by Nounders DAO.
//
// MODIFICATIONS:
// Consumes modified `ERC721` contract. See notes in `ERC721.sol`.

pragma solidity ^0.8.0;

import './ERC721.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/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 18 : ERC721Checkpointable.sol
// SPDX-License-Identifier: BSD-3-Clause

/// @title Vote checkpointing for an ERC-721 token

/*********************************
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░██░░░████░░██░░░████░░░ *
 * ░░██████░░░████████░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 *********************************/

// LICENSE
// ERC721Checkpointable.sol uses and modifies part of Compound Lab's Comp.sol:
// https://github.com/compound-finance/compound-protocol/blob/ae4388e780a8d596d97619d9704a931a2752c2bc/contracts/Governance/Comp.sol
//
// Comp.sol source code Copyright 2020 Compound Labs, Inc. licensed under the BSD-3-Clause license.
// With modifications by Nounders DAO.
//
// Additional conditions of BSD-3-Clause can be found here: https://opensource.org/licenses/BSD-3-Clause
//
// MODIFICATIONS
// Checkpointing logic from Comp.sol has been used with the following modifications:
// - `delegates` is renamed to `_delegates` and is set to private
// - `delegates` is a public function that uses the `_delegates` mapping look-up, but unlike
//   Comp.sol, returns the delegator's own address if there is no delegate.
//   This avoids the delegator needing to "delegate to self" with an additional transaction
// - `_transferTokens()` is renamed `_beforeTokenTransfer()` and adapted to hook into OpenZeppelin's ERC721 hooks.

pragma solidity ^0.8.0;

import './ERC721Enumerable.sol';

abstract contract ERC721Checkpointable is ERC721Enumerable {
    /// @notice Defines decimals as per ERC-20 convention to make integrations with 3rd party governance platforms easier
    uint8 public constant decimals = 0;

    mapping(address => address) private _delegates;

    /// @notice A checkpoint for marking number of votes from a given block
    struct Checkpoint {
        uint32 fromBlock;
        uint96 votes;
    }

    /// @notice A record of votes checkpoints for each account, by index
    mapping(address => mapping(uint32 => Checkpoint)) public checkpoints;

    /// @notice The number of checkpoints for each account
    mapping(address => uint32) public numCheckpoints;

    /// @notice The EIP-712 typehash for the contract's domain
    bytes32 public constant DOMAIN_TYPEHASH =
        keccak256('EIP712Domain(string name,uint256 chainId,address verifyingContract)');

    /// @notice The EIP-712 typehash for the delegation struct used by the contract
    bytes32 public constant DELEGATION_TYPEHASH =
        keccak256('Delegation(address delegatee,uint256 nonce,uint256 expiry)');

    /// @notice A record of states for signing / validating signatures
    mapping(address => uint256) public nonces;

    /// @notice An event thats emitted when an account changes its delegate
    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);

    /// @notice An event thats emitted when a delegate account's vote balance changes
    event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance);

    /**
     * @notice The votes a delegator can delegate, which is the current balance of the delegator.
     * @dev Used when calling `_delegate()`
     */
    function votesToDelegate(address delegator) public view returns (uint96) {
        return safe96(balanceOf(delegator), 'ERC721Checkpointable::votesToDelegate: amount exceeds 96 bits');
    }

    /**
     * @notice Overrides the standard `Comp.sol` delegates mapping to return
     * the delegator's own address if they haven't delegated.
     * This avoids having to delegate to oneself.
     */
    function delegates(address delegator) public view returns (address) {
        address current = _delegates[delegator];
        return current == address(0) ? delegator : current;
    }

    /**
     * @notice Adapted from `_transferTokens()` in `Comp.sol` to update delegate votes.
     * @dev hooks into OpenZeppelin's `ERC721._transfer`
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override virtual {
        super._beforeTokenTransfer(from, to, tokenId);

        /// @notice Differs from `_transferTokens()` to use `delegates` override method to simulate auto-delegation
        _moveDelegates(delegates(from), delegates(to), 1);
    }

    /**
     * @notice Delegate votes from `msg.sender` to `delegatee`
     * @param delegatee The address to delegate votes to
     */
    function delegate(address delegatee) public {
        if (delegatee == address(0)) delegatee = msg.sender;
        return _delegate(msg.sender, delegatee);
    }

    /**
     * @notice Delegates votes from signatory to `delegatee`
     * @param delegatee The address to delegate votes to
     * @param nonce The contract state required to match the signature
     * @param expiry The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function delegateBySig(
        address delegatee,
        uint256 nonce,
        uint256 expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public {
        bytes32 domainSeparator = keccak256(
            abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name())), getChainId(), address(this))
        );
        bytes32 structHash = keccak256(abi.encode(DELEGATION_TYPEHASH, delegatee, nonce, expiry));
        bytes32 digest = keccak256(abi.encodePacked('\x19\x01', domainSeparator, structHash));
        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), 'ERC721Checkpointable::delegateBySig: invalid signature');
        require(nonce == nonces[signatory]++, 'ERC721Checkpointable::delegateBySig: invalid nonce');
        require(block.timestamp <= expiry, 'ERC721Checkpointable::delegateBySig: signature expired');
        return _delegate(signatory, delegatee);
    }

    /**
     * @notice Gets the current votes balance for `account`
     * @param account The address to get votes balance
     * @return The number of current votes for `account`
     */
    function getCurrentVotes(address account) external view returns (uint96) {
        uint32 nCheckpoints = numCheckpoints[account];
        return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
    }

    /**
     * @notice Determine the prior number of votes for an account as of a block number
     * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
     * @param account The address of the account to check
     * @param blockNumber The block number to get the vote balance at
     * @return The number of votes the account had as of the given block
     */
    function getPriorVotes(address account, uint256 blockNumber) public view returns (uint96) {
        require(blockNumber < block.number, 'ERC721Checkpointable::getPriorVotes: not yet determined');

        uint32 nCheckpoints = numCheckpoints[account];
        if (nCheckpoints == 0) {
            return 0;
        }

        // First check most recent balance
        if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
            return checkpoints[account][nCheckpoints - 1].votes;
        }

        // Next check implicit zero balance
        if (checkpoints[account][0].fromBlock > blockNumber) {
            return 0;
        }

        uint32 lower = 0;
        uint32 upper = nCheckpoints - 1;
        while (upper > lower) {
            uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
            Checkpoint memory cp = checkpoints[account][center];
            if (cp.fromBlock == blockNumber) {
                return cp.votes;
            } else if (cp.fromBlock < blockNumber) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return checkpoints[account][lower].votes;
    }

    function _delegate(address delegator, address delegatee) internal {

        address currentDelegate = delegates(delegator);

        _delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        uint96 amount = votesToDelegate(delegator);

        _moveDelegates(currentDelegate, delegatee, amount);
    }

    function _moveDelegates(
        address srcRep,
        address dstRep,
        uint96 amount
    ) internal {
        if (srcRep != dstRep && amount > 0) {
            if (srcRep != address(0)) {
                uint32 srcRepNum = numCheckpoints[srcRep];
                uint96 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
                uint96 srcRepNew = sub96(srcRepOld, amount, 'ERC721Checkpointable::_moveDelegates: amount underflows');
                _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
            }

            if (dstRep != address(0)) {
                uint32 dstRepNum = numCheckpoints[dstRep];
                uint96 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
                uint96 dstRepNew = add96(dstRepOld, amount, 'ERC721Checkpointable::_moveDelegates: amount overflows');
                _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
            }
        }
    }

    function _writeCheckpoint(
        address delegatee,
        uint32 nCheckpoints,
        uint96 oldVotes,
        uint96 newVotes
    ) internal {
        uint32 blockNumber = safe32(
            block.number,
            'ERC721Checkpointable::_writeCheckpoint: block number exceeds 32 bits'
        );

        if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
            checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
        } else {
            checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
            numCheckpoints[delegatee] = nCheckpoints + 1;
        }

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

    function safe32(uint256 n, string memory errorMessage) internal pure returns (uint32) {
        require(n < 2**32, errorMessage);
        return uint32(n);
    }

    function safe96(uint256 n, string memory errorMessage) internal pure returns (uint96) {
        require(n < 2**96, errorMessage);
        return uint96(n);
    }

    function add96(
        uint96 a,
        uint96 b,
        string memory errorMessage
    ) internal pure returns (uint96) {
        uint96 c = a + b;
        require(c >= a, errorMessage);
        return c;
    }

    function sub96(
        uint96 a,
        uint96 b,
        string memory errorMessage
    ) internal pure returns (uint96) {
        require(b <= a, errorMessage);
        return a - b;
    }

    function getChainId() internal view returns (uint256) {
        uint256 chainId;
        assembly {
            chainId := chainid()
        }
        return chainId;
    }
}

File 6 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 7 of 18 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 8 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT

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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        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 9 of 18 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 10 of 18 : Context.sol
// SPDX-License-Identifier: MIT

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 11 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT

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 12 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

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 13 of 18 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

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 14 of 18 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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 15 of 18 : Strings.sol
// SPDX-License-Identifier: MIT

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 18 : ERC165.sol
// SPDX-License-Identifier: MIT

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 18 : IERC165.sol
// SPDX-License-Identifier: MIT

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 18 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

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 tokenId);

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_tokenVestor","type":"address"},{"internalType":"address","name":"_donationDAO","type":"address"},{"internalType":"address","name":"_weth","type":"address"},{"internalType":"address","name":"_idletoken","type":"address"},{"internalType":"address","name":"_dogMaster","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_metadataBaseURI","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":false,"internalType":"string","name":"oldURI","type":"string"},{"indexed":false,"internalType":"string","name":"newURI","type":"string"}],"name":"BaseURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"DogCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"dogMaster","type":"address"}],"name":"DogMasterUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldPercentage","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newPercentage","type":"uint256"}],"name":"DonationPercentageUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"MinterUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"NFTIssued","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":"string","name":"_value","type":"string"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"PermanentURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldDuration","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"ReserveDurationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"percentage","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"start","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"step","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"limit","type":"uint256"}],"name":"StreamonomicAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"length","type":"uint256"}],"name":"StreamonomicsDeleted","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":"oldAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"TreasuryUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"VaultUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"VestorUpdated","type":"event"},{"inputs":[],"name":"DELEGATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"checkpoints","outputs":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint96","name":"votes","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegator","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dogMaster","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"donationDAO","outputs":[{"internalType":"contract IDAOSuperApp","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"donationPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flowDelay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"freezeTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getCurrentVotes","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPriorVotes","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStreamonomics","outputs":[{"components":[{"internalType":"uint256","name":"percentage","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"step","type":"uint256"},{"internalType":"uint256","name":"limit","type":"uint256"}],"internalType":"struct Streamonomics.Streamonomic[]","name":"","type":"tuple[]"}],"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":"address","name":"newOwner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"issue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveDuration","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":"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":"string","name":"newContractURIHash","type":"string"}],"name":"setContractURIHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_dogMaster","type":"address"}],"name":"setDogMaster","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pct","type":"uint256"}],"name":"setDonationPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_seconds","type":"uint256"}],"name":"setFlowDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"percentage","type":"uint256[]"},{"internalType":"uint256[]","name":"start","type":"uint256[]"},{"internalType":"uint256[]","name":"step","type":"uint256[]"},{"internalType":"uint256[]","name":"limit","type":"uint256[]"}],"name":"setStreamonomics","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"}],"name":"setVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vestor","type":"address"}],"name":"setVestor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"setreserveDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"streamonomics","outputs":[{"internalType":"uint256","name":"percentage","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"step","type":"uint256"},{"internalType":"uint256","name":"limit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenURIs","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":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"delegator","type":"address"}],"name":"votesToDelegate","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"winningBid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenContract","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

600a6017556224ea00601b5560e0604052602e608081815290620063ff60a03980516200003591601d91602090910190620002f0565b503480156200004357600080fd5b506040516200642d3803806200642d83398101604081905262000066916200045e565b8251839083906200007f906000906020850190620002f0565b50805162000095906001906020840190620002f0565b505050620000b2620000ac6200029a60201b60201c565b6200029e565b601380546001600160a01b03199081166001600160a01b038b8116919091179092556016805482168a84161790556012805482168984161790556011805482168884161790556010805490911691861691909117905580516200011d90601e906020840190620002f0565b50600f6040518060800160405280600a8152602001600181526020016001815260200160018152509080600181540180825580915050600190039060005260206000209060040201600090919091909150600082015181600001556020820151816001015560408201518160020155606082015181600301555050600f6040518060800160405280601e8152602001600181526020016005815260200160148152509080600181540180825580915050600190039060005260206000209060040201600090919091909150600082015181600001556020820151816001015560408201518160020155606082015181600301555050600f6040518060800160405280600a8152602001600a8152602001600181526020016001815250908060018154018082558091505060019003906000526020600020906004020160009091909190915060008201518160000155602082015181600101556040820151816002015560608201518160030155505050505050505050506200059d565b3390565b600e80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620002fe906200054a565b90600052602060002090601f0160209004810192826200032257600085556200036d565b82601f106200033d57805160ff19168380011785556200036d565b828001600101855582156200036d579182015b828111156200036d57825182559160200191906001019062000350565b506200037b9291506200037f565b5090565b5b808211156200037b576000815560010162000380565b80516001600160a01b0381168114620003ae57600080fd5b919050565b600082601f830112620003c4578081fd5b81516001600160401b0380821115620003e157620003e162000587565b6040516020601f8401601f191682018101838111838210171562000409576200040962000587565b604052838252858401810187101562000420578485fd5b8492505b8383101562000443578583018101518284018201529182019162000424565b838311156200045457848185840101525b5095945050505050565b600080600080600080600080610100898b0312156200047b578384fd5b620004868962000396565b97506200049660208a0162000396565b9650620004a660408a0162000396565b9550620004b660608a0162000396565b9450620004c660808a0162000396565b60a08a01519094506001600160401b0380821115620004e3578485fd5b620004f18c838d01620003b3565b945060c08b015191508082111562000507578384fd5b620005158c838d01620003b3565b935060e08b01519150808211156200052b578283fd5b506200053a8b828c01620003b3565b9150509295985092959890939650565b6002810460018216806200055f57607f821691505b602082108114156200058157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b615e5280620005ad6000396000f3fe6080604052600436106103a65760003560e01c80637ecebe00116101e7578063c87b56dd1161010d578063e8a3d485116100a0578063f0f442601161006f578063f0f4426014610a61578063f1127ed814610a81578063f2fde38b14610aaf578063fca3b5aa14610acf576103ad565b8063e8a3d485146109ec578063e9580e9114610a01578063e985e9c514610a21578063ec00a02114610a41576103ad565b8063e086e5ec116100dc578063e086e5ec1461098f578063e133b65f14610997578063e3a7db41146109b7578063e7a324dc146109d7576103ad565b8063c87b56dd1461090d578063d4ac9b8c1461092d578063ddb60b311461094d578063dfe5ef481461096f576103ad565b8063a22cb46511610185578063baedc1c411610154578063baedc1c4146108a3578063c1292cc3146108c3578063c16cc810146108d8578063c3cda520146108ed576103ad565b8063a22cb46514610823578063b459bc9714610843578063b4b5ea5714610863578063b88d4fde14610883576103ad565b80638da5cb5b116101c15780638da5cb5b146107cf57806395d89b41146107e45780639d57078c146107f95780639f3d1a2a1461080e576103ad565b80637ecebe001461076f57806380b8e9061461078f57806389476069146107af576103ad565b80634f6ccce7116102cc578063640b2fa31161026a57806370a082311161023957806370a08231146106f8578063715018a61461071857806373c42aa41461072d578063782d6fe114610742576103ad565b8063640b2fa31461065b5780636817031b1461068b5780636c8b703f146106ab5780636fcfff45146106cb576103ad565b80635c19a95c116102a65780635c19a95c146105f15780635f5402c21461061157806361d027b3146106265780636352211e1461063b576103ad565b80634f6ccce71461059157806355f804b3146105b1578063587cde1e146105d1576103ad565b806318160ddd116103445780632da0fd22116103135780632da0fd221461050f5780632f745c591461052f578063313ce5671461054f57806342842e0e14610571576103ad565b806318160ddd146104b057806320606b70146104c557806323b872dd146104da57806323e0208d146104fa576103ad565b80630754617211610380578063075461721461042c578063081812fc1461044e578063095ea7b31461046e5780631249c58b1461048e576103ad565b806301ffc9a7146103b257806306fdde03146103e85780630723d8381461040a576103ad565b366103ad57005b600080fd5b3480156103be57600080fd5b506103d26103cd366004614c05565b610aef565b6040516103df919061503e565b60405180910390f35b3480156103f457600080fd5b506103fd610b02565b6040516103df91906150cc565b34801561041657600080fd5b5061042a610425366004614908565b610b95565b005b34801561043857600080fd5b50610441610c46565b6040516103df9190614ed2565b34801561045a57600080fd5b50610441610469366004614d2e565b610c55565b34801561047a57600080fd5b5061042a610489366004614a3e565b610c98565b34801561049a57600080fd5b506104a3610d30565b6040516103df9190615049565b3480156104bc57600080fd5b506104a3610e8c565b3480156104d157600080fd5b506104a3610e92565b3480156104e657600080fd5b5061042a6104f5366004614954565b610eb6565b34801561050657600080fd5b50610441610eee565b34801561051b57600080fd5b5061042a61052a366004614908565b610efd565b34801561053b57600080fd5b506104a361054a366004614a3e565b610f7d565b34801561055b57600080fd5b50610564610fd2565b6040516103df9190615a50565b34801561057d57600080fd5b5061042a61058c366004614954565b610fd7565b34801561059d57600080fd5b506104a36105ac366004614d2e565b610ff2565b3480156105bd57600080fd5b5061042a6105cc366004614c5e565b61104d565b3480156105dd57600080fd5b506104416105ec366004614908565b6110d4565b3480156105fd57600080fd5b5061042a61060c366004614908565b611106565b34801561061d57600080fd5b506104a3611124565b34801561063257600080fd5b5061044161112a565b34801561064757600080fd5b50610441610656366004614d2e565b611139565b34801561066757600080fd5b5061067b610676366004614d2e565b61116e565b6040516103df9493929190615a05565b34801561069757600080fd5b5061042a6106a6366004614908565b6111a8565b3480156106b757600080fd5b506103fd6106c6366004614d2e565b611250565b3480156106d757600080fd5b506106eb6106e6366004614908565b6112ea565b6040516103df9190615a20565b34801561070457600080fd5b506104a3610713366004614908565b611302565b34801561072457600080fd5b5061042a611346565b34801561073957600080fd5b506104a3611391565b34801561074e57600080fd5b5061076261075d366004614a3e565b611397565b6040516103df9190615a5e565b34801561077b57600080fd5b506104a361078a366004614908565b6115e1565b34801561079b57600080fd5b5061042a6107aa366004614d2e565b6115f3565b3480156107bb57600080fd5b5061042a6107ca366004614908565b611692565b3480156107db57600080fd5b506104416117c8565b3480156107f057600080fd5b506103fd6117d7565b34801561080557600080fd5b506104416117e6565b34801561081a57600080fd5b506103fd6117f5565b34801561082f57600080fd5b5061042a61083e366004614a08565b611802565b34801561084f57600080fd5b5061042a61085e366004614d2e565b6118d0565b34801561086f57600080fd5b5061076261087e366004614908565b6119db565b34801561088f57600080fd5b5061042a61089e36600461498f565b611a59565b3480156108af57600080fd5b5061042a6108be366004614ce8565b611a98565b3480156108cf57600080fd5b506104a3611aee565b3480156108e457600080fd5b506104a3611af4565b3480156108f957600080fd5b5061042a610908366004614a99565b611afa565b34801561091957600080fd5b506103fd610928366004614d2e565b611cd5565b34801561093957600080fd5b506104a3610948366004614d2e565b611da9565b34801561095957600080fd5b50610962611dbb565b6040516103df9190614fda565b34801561097b57600080fd5b5061042a61098a366004614a67565b611e42565b61042a611fd9565b3480156109a357600080fd5b5061042a6109b2366004614c9e565b612044565b3480156109c357600080fd5b5061042a6109d2366004614d2e565b612114565b3480156109e357600080fd5b506104a3612158565b3480156109f857600080fd5b506103fd61217c565b348015610a0d57600080fd5b50610762610a1c366004614908565b6121a4565b348015610a2d57600080fd5b506103d2610a3c366004614922565b6121d0565b348015610a4d57600080fd5b5061042a610a5c366004614b2a565b6121fe565b348015610a6d57600080fd5b5061042a610a7c366004614908565b61252e565b348015610a8d57600080fd5b50610aa1610a9c366004614af7565b6125d6565b6040516103df929190615a31565b348015610abb57600080fd5b5061042a610aca366004614908565b61260c565b348015610adb57600080fd5b5061042a610aea366004614908565b61267a565b6000610afa82612722565b90505b919050565b606060008054610b1190615c5e565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3d90615c5e565b8015610b8a5780601f10610b5f57610100808354040283529160200191610b8a565b820191906000526020600020905b815481529060010190602001808311610b6d57829003601f168201915b505050505090505b90565b610b9d612760565b6001600160a01b0316610bae6117c8565b6001600160a01b031614610bdd5760405162461bcd60e51b8152600401610bd490615666565b60405180910390fd5b6013546040517f1247d277cceefc687916d077694b4b0e6b2a40d5997d7188beb502b7e0f363f491610c1c916001600160a01b03909116908490614ee6565b60405180910390a1601380546001600160a01b0319166001600160a01b0392909216919091179055565b6014546001600160a01b031681565b6000610c6082612764565b610c7c5760405162461bcd60e51b8152600401610bd49061552d565b506000908152600460205260409020546001600160a01b031690565b6000610ca382611139565b9050806001600160a01b0316836001600160a01b03161415610cd75760405162461bcd60e51b8152600401610bd490615740565b806001600160a01b0316610ce9612760565b6001600160a01b03161480610d055750610d0581610a3c612760565b610d215760405162461bcd60e51b8152600401610bd490615462565b610d2b8383612781565b505050565b6014546000906001600160a01b0316331480610d645750610d4f6117c8565b6001600160a01b0316336001600160a01b0316145b610d805760405162461bcd60e51b8152600401610bd4906155f8565b6101a4601a5411158015610da05750600b601a54610d9e9190615cb4565b155b15610e1657610dc7610db06117c8565b601054601a546001600160a01b03909116906127ef565b7f07b394785c191f0f3994a6638e3e83a80d2f925e22f2e277b583dcd89618cc6d601a54604051610df89190615049565b60405180910390a1601a8054906000610e1083615c99565b91905055505b610e2a610e216117c8565b30601a546127ef565b7f07b394785c191f0f3994a6638e3e83a80d2f925e22f2e277b583dcd89618cc6d601a54604051610e5b9190615049565b60405180910390a1601a8054906000610e7383615c99565b91905055506001601a54610e879190615bd6565b905090565b60085490565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b610ec7610ec1612760565b82612916565b610ee35760405162461bcd60e51b8152600401610bd4906159a1565b610d2b83838361299b565b6016546001600160a01b031681565b6010546001600160a01b03163314610f275760405162461bcd60e51b8152600401610bd4906156d2565b601080546001600160a01b0319166001600160a01b0383161790556040517f016ef8c4de07beb390d2331bafa9d6224be6656a2b687a98144de15cc02e0ea790610f72908390614ed2565b60405180910390a150565b6000610f8883611302565b8210610fa65760405162461bcd60e51b8152600401610bd490615238565b506001600160a01b03821660009081526006602090815260408083208484529091529020545b92915050565b600081565b610d2b83838360405180602001604052806000815250611a59565b6000610ffc610e8c565b821061101a5760405162461bcd60e51b8152600401610bd490615842565b6008828154811061103b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b611055612760565b6001600160a01b03166110666117c8565b6001600160a01b03161461108c5760405162461bcd60e51b8152600401610bd490615666565b7f309b29ded109b9e28fb9885757b3e0096eb75c51d23aa4635d68bcd569f6adc1601e83836040516110c0939291906150df565b60405180910390a1610d2b601e83836146a1565b6001600160a01b038082166000908152600a602052604081205490911680156110fd57806110ff565b825b9392505050565b6001600160a01b0381166111175750335b6111213382612ac8565b50565b601b5481565b6015546001600160a01b031681565b6000818152600260205260408120546001600160a01b031680610afa5760405162461bcd60e51b8152600401610bd490615295565b600f818154811061117e57600080fd5b60009182526020909120600490910201805460018201546002830154600390930154919350919084565b6111b0612760565b6001600160a01b03166111c16117c8565b6001600160a01b0316146111e75760405162461bcd60e51b8152600401610bd490615666565b6011546040517f483bdedaaf23706a9800ac1af0d852b34927780d79f9d6ba60a80c7cad75ea3991611226916001600160a01b03909116908490614ee6565b60405180910390a1601180546001600160a01b0319166001600160a01b0392909216919091179055565b6019602052600090815260409020805461126990615c5e565b80601f016020809104026020016040519081016040528092919081815260200182805461129590615c5e565b80156112e25780601f106112b7576101008083540402835291602001916112e2565b820191906000526020600020905b8154815290600101906020018083116112c557829003601f168201915b505050505081565b600c6020526000908152604090205463ffffffff1681565b60006001600160a01b03821661132a5760405162461bcd60e51b8152600401610bd490615295565b506001600160a01b031660009081526003602052604090205490565b61134e612760565b6001600160a01b031661135f6117c8565b6001600160a01b0316146113855760405162461bcd60e51b8152600401610bd490615666565b61138f6000612b48565b565b601c5481565b60004382106113b85760405162461bcd60e51b8152600401610bd4906157ae565b6001600160a01b0383166000908152600c602052604090205463ffffffff16806113e6576000915050610fcc565b6001600160a01b0384166000908152600b60205260408120849161140b600185615bed565b63ffffffff9081168252602082019290925260400160002054161161147f576001600160a01b0384166000908152600b602052604081209061144e600184615bed565b63ffffffff16815260208101919091526040016000205464010000000090046001600160601b03169150610fcc9050565b6001600160a01b0384166000908152600b6020908152604080832083805290915290205463ffffffff168310156114ba576000915050610fcc565b6000806114c8600184615bed565b90505b8163ffffffff168163ffffffff16111561159b57600060026114ed8484615bed565b6114f79190615af9565b6115019083615bed565b6001600160a01b0388166000908152600b6020908152604080832063ffffffff8581168552908352928190208151808301909252549283168082526401000000009093046001600160601b03169181019190915291925087141561156f57602001519450610fcc9350505050565b805163ffffffff1687111561158657819350611594565b611591600183615bed565b92505b50506114cb565b506001600160a01b0385166000908152600b6020908152604080832063ffffffff909416835292905220546001600160601b036401000000009091041691505092915050565b600d6020526000908152604090205481565b6115fb612760565b6001600160a01b031661160c6117c8565b6001600160a01b0316146116325760405162461bcd60e51b8152600401610bd490615666565b600081116116525760405162461bcd60e51b8152600401610bd49061589f565b7f36afdcfdf958515f9a6b5e1cc75df70df63cfbf9249be1740689b3d4e208b084601b54826040516116859291906159f7565b60405180910390a1601b55565b61169a612760565b6001600160a01b03166116ab6117c8565b6001600160a01b0316146116d15760405162461bcd60e51b8152600401610bd490615666565b6040516370a0823160e01b815281906001600160a01b0382169063a9059cbb90339083906370a0823190611709903090600401614ed2565b60206040518083038186803b15801561172157600080fd5b505afa158015611735573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117599190614d46565b6040518363ffffffff1660e01b8152600401611776929190614f9e565b602060405180830381600087803b15801561179057600080fd5b505af11580156117a4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2b9190614be9565b600e546001600160a01b031690565b606060018054610b1190615c5e565b6010546001600160a01b031681565b601e805461126990615c5e565b61180a612760565b6001600160a01b0316826001600160a01b0316141561183b5760405162461bcd60e51b8152600401610bd490615709565b8060056000611848612760565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561188c612760565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118c4919061503e565b60405180910390a35050565b6118d8612760565b6001600160a01b03166118e96117c8565b6001600160a01b03161461190f5760405162461bcd60e51b8152600401610bd490615666565b7f2973f78b57d3c577e42ddde822014a23f3aa9a0ff4cf635020ee1bcec3fba157601754826040516119429291906159f7565b60405180910390a16000805b600f548110156119aa57600f818154811061197957634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160000154826119969190615a8c565b9150806119a281615c99565b91505061194e565b506119b6816064615bd6565b8211156119d55760405162461bcd60e51b8152600401610bd4906151a4565b50601755565b6001600160a01b0381166000908152600c602052604081205463ffffffff1680611a065760006110ff565b6001600160a01b0383166000908152600b6020526040812090611a2a600184615bed565b63ffffffff16815260208101919091526040016000205464010000000090046001600160601b03169392505050565b611a6a611a64612760565b83612916565b611a865760405162461bcd60e51b8152600401610bd4906159a1565b611a9284848484612b9a565b50505050565b611aa0612760565b6001600160a01b0316611ab16117c8565b6001600160a01b031614611ad75760405162461bcd60e51b8152600401610bd490615666565b8051611aea90601d906020840190614725565b5050565b601a5481565b60175481565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866611b25610b02565b80519060200120611b34612bcd565b30604051602001611b489493929190615076565b60405160208183030381529060405280519060200120905060007fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf888888604051602001611b999493929190615052565b60405160208183030381529060405280519060200120905060008282604051602001611bc6929190614dff565b604051602081830303815290604052805190602001209050600060018288888860405160008152602001604052604051611c03949392919061509a565b6020604051602081039080840390855afa158015611c25573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611c585760405162461bcd60e51b8152600401610bd4906154d0565b6001600160a01b0381166000908152600d60205260408120805491611c7c83615c99565b919050558914611c9e5760405162461bcd60e51b8152600401610bd490615360565b87421115611cbe5760405162461bcd60e51b8152600401610bd4906151db565b611cc8818b612ac8565b505050505b505050505050565b600081815260196020526040812080546060929190611cf390615c5e565b90501115611d995760008281526019602052604090208054611d1490615c5e565b80601f0160208091040260200160405190810160405280929190818152602001828054611d4090615c5e565b8015611d8d5780601f10611d6257610100808354040283529160200191611d8d565b820191906000526020600020905b815481529060010190602001808311611d7057829003601f168201915b50505050509050610afd565b611da282612bd1565b9050610afd565b60186020526000908152604090205481565b6060600f805480602002602001604051908101604052809291908181526020016000905b82821015611e39578382906000526020600020906004020160405180608001604052908160008201548152602001600182015481526020016002820154815260200160038201548152505081526020019060010190611ddf565b50505050905090565b6014546001600160a01b0316331480611e735750611e5e6117c8565b6001600160a01b0316336001600160a01b0316145b611e8f5760405162461bcd60e51b8152600401610bd4906155f8565b6001600160a01b038316301415611eb85760405162461bcd60e51b8152600401610bd49061569b565b30611ec283611139565b6001600160a01b031614611ee85760405162461bcd60e51b8152600401610bd490615329565b60008115611f0257611efb828585612c54565b9050611f0d565b611f0a6132c2565b93505b6001600160a01b0384163014611a9257600083815260186020526040808220839055516001600160a01b0386169185917fa3bdf6020d8dccb60b422ce46ef094ee1a9a378820862c3b233636af4bbfab979190a36040517f42842e0e00000000000000000000000000000000000000000000000000000000815230906342842e0e90611fa190839088908890600401614f00565b600060405180830381600087803b158015611fbb57600080fd5b505af1158015611fcf573d6000803e3d6000fd5b5050505050505050565b611fe1612760565b6001600160a01b0316611ff26117c8565b6001600160a01b0316146120185760405162461bcd60e51b8152600401610bd490615666565b60405133904780156108fc02916000818181858888f19350505050158015611121573d6000803e3d6000fd5b61204c612760565b6001600160a01b031661205d6117c8565b6001600160a01b0316146120835760405162461bcd60e51b8152600401610bd490615666565b6000818152601960205260409020805461209c90615c5e565b1590506120bb5760405162461bcd60e51b8152600401610bd49061516d565b60008181526019602052604090206120d49084846146a1565b50807fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b5565720784846040516121079291906150b8565b60405180910390a2505050565b61211c612760565b6001600160a01b031661212d6117c8565b6001600160a01b0316146121535760405162461bcd60e51b8152600401610bd490615666565b601c55565b7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b6060601d6040516020016121909190614e35565b604051602081830303815290604052905090565b6000610afa6121b283611302565b6040518060600160405280603d8152602001615da9603d91396132ef565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b612206612760565b6001600160a01b03166122176117c8565b6001600160a01b03161461223d5760405162461bcd60e51b8152600401610bd490615666565b86851461225c5760405162461bcd60e51b8152600401610bd49061542b565b84831461227b5760405162461bcd60e51b8152600401610bd49061542b565b82811461229a5760405162461bcd60e51b8152600401610bd49061542b565b600f546040517f01c1d40e5a1ef6e3f7c4c18016de9945c24ceae7d78288cbe5ed540f02137dd6916122cb91615049565b60405180910390a16122df600f6000614799565b6000805b8881101561250157600f60405180608001604052808c8c8581811061231857634e487b7160e01b600052603260045260246000fd5b9050602002013581526020018a8a8581811061234457634e487b7160e01b600052603260045260246000fd5b90506020020135815260200188888581811061237057634e487b7160e01b600052603260045260246000fd5b90506020020135815260200186868581811061239c57634e487b7160e01b600052603260045260246000fd5b60209081029290920135909252835460018181018655600095865294829020845160049092020190815590830151938101939093555060408101516002830155606001516003909101557fc04b227cffa6e35de0b13a881c305a0bcd0e469773c45aa2097ebbafcd5564d18a8a8381811061242757634e487b7160e01b600052603260045260246000fd5b9050602002013589898481811061244e57634e487b7160e01b600052603260045260246000fd5b9050602002013588888581811061247557634e487b7160e01b600052603260045260246000fd5b9050602002013587878681811061249c57634e487b7160e01b600052603260045260246000fd5b905060200201356040516124b39493929190615a05565b60405180910390a18989828181106124db57634e487b7160e01b600052603260045260246000fd5b90506020020135826124ed9190615a8c565b9150806124f981615c99565b9150506122e3565b5060648111156125235760405162461bcd60e51b8152600401610bd4906151a4565b505050505050505050565b612536612760565b6001600160a01b03166125476117c8565b6001600160a01b03161461256d5760405162461bcd60e51b8152600401610bd490615666565b6015546040517f4ab5be82436d353e61ca18726e984e561f5c1cc7c6d38b29d2553c790434705a916125ac916001600160a01b03909116908490614ee6565b60405180910390a1601580546001600160a01b0319166001600160a01b0392909216919091179055565b600b60209081526000928352604080842090915290825290205463ffffffff81169064010000000090046001600160601b031682565b612614612760565b6001600160a01b03166126256117c8565b6001600160a01b03161461264b5760405162461bcd60e51b8152600401610bd490615666565b6001600160a01b0381166126715760405162461bcd60e51b8152600401610bd4906152cc565b61112181612b48565b612682612760565b6001600160a01b03166126936117c8565b6001600160a01b0316146126b95760405162461bcd60e51b8152600401610bd490615666565b6014546040517f1cf2de25c5bf439ac0287061c3a0fa69b3b02867d0ccfd2ded34e42577050b73916126f8916001600160a01b03909116908490614ee6565b60405180910390a1601480546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610afa5750610afa82613327565b3390565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906127b682611139565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b0382166128155760405162461bcd60e51b8152600401610bd490615295565b61281e81612764565b1561283b5760405162461bcd60e51b8152600401610bd490615499565b61284760008383613399565b6001600160a01b0382166000908152600360205260408120805460019290612870908490615a8c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03868116919091179091559051839291861691907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061292182612764565b61293d5760405162461bcd60e51b8152600401610bd4906153f4565b600061294883611139565b9050806001600160a01b0316846001600160a01b031614806129835750836001600160a01b031661297884610c55565b6001600160a01b0316145b80612993575061299381856121d0565b949350505050565b826001600160a01b03166129ae82611139565b6001600160a01b0316146129d45760405162461bcd60e51b8152600401610bd4906153bd565b6001600160a01b0382166129fa5760405162461bcd60e51b8152600401610bd490615295565b612a05838383613399565b612a10600082612781565b6001600160a01b0383166000908152600360205260408120805460019290612a39908490615bd6565b90915550506001600160a01b0382166000908152600360205260408120805460019290612a67908490615a8c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000612ad3836110d4565b6001600160a01b038481166000818152600a602052604080822080546001600160a01b031916888616908117909155905194955093928516927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a46000612b3b846121a4565b9050611a92828483613711565b600e80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612ba584848461299b565b612bb1848484846138bf565b611a925760405162461bcd60e51b8152600401610bd49061590d565b4690565b6060612bdc82612764565b612bf85760405162461bcd60e51b8152600401610bd4906158d6565b6000612c026139f3565b90506000815111612c2257604051806020016040528060008152506110ff565b80612c2c84613a02565b604051602001612c3d929190614dd0565b604051602081830303815290604052915050919050565b6012546011546040516370a0823160e01b81526000926001600160a01b03908116921690839083906370a0823190612c90903090600401614ed2565b60206040518083038186803b158015612ca857600080fd5b505afa158015612cbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ce09190614d46565b9050612cf76001600160a01b03841633308a613b51565b6040516370a0823160e01b81526000906001600160a01b038516906370a0823190612d26903090600401614ed2565b60206040518083038186803b158015612d3e57600080fd5b505afa158015612d52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d769190614d46565b905080612d83838a613bbe565b14612da05760405162461bcd60e51b8152600401610bd490615777565b60165488906001600160a01b031615612f055760175415612f05576000612ddd6064612dd76017548d613bca90919063ffffffff16565b90613bd6565b90508760011415612deb5750885b60165460405163095ea7b360e01b81526001600160a01b038881169263095ea7b392612e1f92909116908590600401614f9e565b602060405180830381600087803b158015612e3957600080fd5b505af1158015612e4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e719190614be9565b506016546012546040517ff45346dc0000000000000000000000000000000000000000000000000000000081526001600160a01b039283169263f45346dc92612ec39291169085908e90600401614fb7565b600060405180830381600087803b158015612edd57600080fd5b505af1158015612ef1573d6000803e3d6000fd5b505050508082612f019190615bd6565b9150505b80612f18576000955050505050506110ff565b612f2181613be2565b506000846001600160a01b0316637ff9b5966040518163ffffffff1660e01b815260040160206040518083038186803b158015612f5d57600080fd5b505afa158015612f71573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f959190614d46565b90506000612faf82612dd78d670de0b6b3a7640000613bca565b90506000601360009054906101000a90046001600160a01b03166001600160a01b0316636f85ca1d6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561300357600080fd5b505af1158015613017573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061303b9190614d46565b9050600061305961304b84613e22565b613053613ea7565b90613bbe565b90508181111561317a57600061306f8284613f64565b60135460405163095ea7b360e01b81529192506001600160a01b03808c169263095ea7b3926130a49216908590600401614f9e565b602060405180830381600087803b1580156130be57600080fd5b505af11580156130d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130f69190614be9565b506013546011546040517f47e7ef240000000000000000000000000000000000000000000000000000000081526001600160a01b03928316926347e7ef2492613146929116908590600401614f9e565b600060405180830381600087803b15801561316057600080fd5b505af1158015613174573d6000803e3d6000fd5b50505050505b6040516370a0823160e01b81526000906001600160a01b038a16906370a08231906131a9903090600401614ed2565b602060405180830381600087803b1580156131c357600080fd5b505af11580156131d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131fb9190614d46565b6015549091506001600160a01b0316156132b0576015546040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038b81169263a9059cbb9261325c92909116908590600401614f9e565b602060405180830381600087803b15801561327657600080fd5b505af115801561328a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132ae9190614be9565b505b50919c9b505050505050505050505050565b6015546000906001600160a01b0316156132e857506015546001600160a01b0316610b92565b5030610b92565b6000816c01000000000000000000000000841061331f5760405162461bcd60e51b8152600401610bd491906150cc565b509192915050565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061338a57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610afa5750610afa82613f70565b6133a4838383613fa2565b6001600160a01b0382166133ca5760405162461bcd60e51b8152600401610bd4906155c1565b6001600160a01b03831630141561365457600081815260186020526040902054801561364e5760005b600f5481101561364c576000600f828154811061342057634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160405180608001604052908160008201548152602001600182015481526020016002820154815260200160038201548152505090508381602001511161363957606081015160408201516134829082613bca565b6020830151613492908790613f64565b10156134c5576134b78260400151612dd7846020015188613f6490919063ffffffff16565b6134c2906001615a8c565b90505b60006134e76064612dd784612dd787600001518a613bca90919063ffffffff16565b905060006134f9826301e13380613bd6565b9050600084602001518861350d9190615bd6565b90506000815b8161351d81615c99565b925050600061352b82611139565b90506001600160a01b03811630146135f75760003083604051602001613552929190614f9e565b60408051601f198184030181529190528051602090910120601354601c549192506001600160a01b031690632fb1632e908490899060009061359990613053426001613f64565b6301e133806000886040518863ffffffff1660e01b81526004016135c39796959493929190614f60565b600060405180830381600087803b1580156135dd57600080fd5b505af11580156135f1573d6000803e3d6000fd5b50505050505b81886040015111156136095750613632565b876060015183141561361b5750613632565b50604087015161362b9082615bd6565b9050613513565b5050505050505b508061364481615c99565b9150506133f3565b505b50610d2b565b6001600160a01b038216301480159061367557506001600160a01b03831615155b15610d2b576013546040516001600160a01b0390911690634636d23e90859085906136a69030908790602001614f9e565b604051602081830303815290604052805190602001206040518463ffffffff1660e01b81526004016136da93929190614f00565b600060405180830381600087803b1580156136f457600080fd5b505af1158015613708573d6000803e3d6000fd5b50505050505050565b816001600160a01b0316836001600160a01b03161415801561373c57506000816001600160601b0316115b15610d2b576001600160a01b03831615613802576001600160a01b0383166000908152600c602052604081205463ffffffff16908161377c5760006137c9565b6001600160a01b0385166000908152600b60205260408120906137a0600185615bed565b63ffffffff16815260208101919091526040016000205464010000000090046001600160601b03165b905060006137f08285604051806060016040528060378152602001615de660379139613fc9565b90506137fe8684848461400b565b5050505b6001600160a01b03821615610d2b576001600160a01b0382166000908152600c602052604081205463ffffffff16908161383d57600061388a565b6001600160a01b0384166000908152600b6020526040812090613861600185615bed565b63ffffffff16815260208101919091526040016000205464010000000090046001600160601b03165b905060006138b18285604051806060016040528060368152602001615d2f60369139614208565b9050611ccd8584848461400b565b60006138d3846001600160a01b0316614255565b156139e857836001600160a01b031663150b7a026138ef612760565b8786866040518563ffffffff1660e01b81526004016139119493929190614f24565b602060405180830381600087803b15801561392b57600080fd5b505af192505050801561395b575060408051601f3d908101601f1916820190925261395891810190614c21565b60015b6139b5573d808015613989576040519150601f19603f3d011682016040523d82523d6000602084013e61398e565b606091505b5080516139ad5760405162461bcd60e51b8152600401610bd49061562f565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050612993565b506001949350505050565b6060601e8054610b1190615c5e565b606081613a43575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610afd565b8160005b8115613a6d5780613a5781615c99565b9150613a669050600a83615ae5565b9150613a47565b60008167ffffffffffffffff811115613a9657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613ac0576020820181803683370190505b5090505b841561299357613ad5600183615bd6565b9150613ae2600a86615cb4565b613aed906030615a8c565b60f81b818381518110613b1057634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613b4a600a86615ae5565b9450613ac4565b611a92846323b872dd60e01b858585604051602401613b7293929190614f00565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199093169290921790915261425b565b60006110ff8284615a8c565b60006110ff8284615bb7565b60006110ff8284615ae5565b6012546011546040516370a0823160e01b81526000926001600160a01b03908116921690839082906370a0823190613c1e903090600401614ed2565b602060405180830381600087803b158015613c3857600080fd5b505af1158015613c4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c709190614d46565b60115460405163095ea7b360e01b815291925086916001600160a01b038681169263095ea7b392613ca992909116908590600401614f9e565b602060405180830381600087803b158015613cc357600080fd5b505af1158015613cd7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613cfb9190614be9565b50826001600160a01b0316632befabbf826001613d166132c2565b6040518463ffffffff1660e01b8152600401613d34939291906159d8565b602060405180830381600087803b158015613d4e57600080fd5b505af1158015613d62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d869190614d46565b506040516370a0823160e01b81526000906001600160a01b038516906370a0823190613db6903090600401614ed2565b602060405180830381600087803b158015613dd057600080fd5b505af1158015613de4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e089190614d46565b90506000613e168285613f64565b98975050505050505050565b60008060005b600f54811015613e8457600f8181548110613e5357634e487b7160e01b600052603260045260246000fd5b90600052602060002090600402016000015482613e709190615a8c565b915080613e7c81615c99565b915050613e28565b50601b546110ff90613ea16301e13380612dd76064818988613bca565b90613bca565b600080601360009054906101000a90046001600160a01b03166001600160a01b031663e6b4b9c76040518163ffffffff1660e01b8152600401602060405180830381600087803b158015613efa57600080fd5b505af1158015613f0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f329190614c3d565b613f3e90600019615b1c565b9050613f5e601b54826001600160601b0316613bca90919063ffffffff16565b91505090565b60006110ff8284615bd6565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b613fad8383836142ea565b610d2b613fb9846110d4565b613fc2846110d4565b6001613711565b6000836001600160601b0316836001600160601b0316111582906140005760405162461bcd60e51b8152600401610bd491906150cc565b506129938385615c12565b600061402f43604051806080016040528060448152602001615d6560449139614373565b905060008463ffffffff1611801561408957506001600160a01b0385166000908152600b6020526040812063ffffffff83169161406d600188615bed565b63ffffffff908116825260208201929092526040016000205416145b156140fe576001600160a01b0385166000908152600b6020526040812083916140b3600188615bed565b63ffffffff168152602081019190915260400160002080546001600160601b0392909216640100000000026fffffffffffffffffffffffff00000000199092169190911790556141be565b60408051808201825263ffffffff83811682526001600160601b0385811660208085019182526001600160a01b038b166000908152600b82528681208b861682529091529490942092518354945163ffffffff199095169216919091176fffffffffffffffffffffffff000000001916640100000000939091169290920291909117905561418d846001615aa4565b6001600160a01b0386166000908152600c60205260409020805463ffffffff191663ffffffff929092169190911790555b846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a72484846040516141f9929190615a72565b60405180910390a25050505050565b6000806142158486615ac3565b9050846001600160601b0316816001600160601b03161015839061424c5760405162461bcd60e51b8152600401610bd491906150cc565b50949350505050565b3b151590565b60006142b0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661439b9092919063ffffffff16565b805190915015610d2b57808060200190518101906142ce9190614be9565b610d2b5760405162461bcd60e51b8152600401610bd490615944565b6142f5838383610d2b565b6001600160a01b0383166143115761430c816143aa565b614334565b816001600160a01b0316836001600160a01b0316146143345761433483826143ee565b6001600160a01b0382166143505761434b8161448b565b610d2b565b826001600160a01b0316826001600160a01b031614610d2b57610d2b8282614564565b600081640100000000841061331f5760405162461bcd60e51b8152600401610bd491906150cc565b606061299384846000856145a8565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b600060016143fb84611302565b6144059190615bd6565b600083815260076020526040902054909150808214614458576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061449d90600190615bd6565b600083815260096020526040812054600880549394509092849081106144d357634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061450257634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061454857634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061456f83611302565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6060824710156145ca5760405162461bcd60e51b8152600401610bd490615564565b6145d385614255565b6145ef5760405162461bcd60e51b8152600401610bd49061580b565b600080866001600160a01b0316858760405161460b9190614db4565b60006040518083038185875af1925050503d8060008114614648576040519150601f19603f3d011682016040523d82523d6000602084013e61464d565b606091505b509150915061465d828286614668565b979650505050505050565b606083156146775750816110ff565b8251156146875782518084602001fd5b8160405162461bcd60e51b8152600401610bd491906150cc565b8280546146ad90615c5e565b90600052602060002090601f0160209004810192826146cf5760008555614715565b82601f106146e85782800160ff19823516178555614715565b82800160010185558215614715579182015b828111156147155782358255916020019190600101906146fa565b506147219291506147ba565b5090565b82805461473190615c5e565b90600052602060002090601f0160209004810192826147535760008555614715565b82601f1061476c57805160ff1916838001178555614715565b82800160010185558215614715579182015b8281111561471557825182559160200191906001019061477e565b508054600082556004029060005260206000209081019061112191906147cf565b5b8082111561472157600081556001016147bb565b5b80821115614721576000808255600182018190556002820181905560038201556004016147d0565b600067ffffffffffffffff8084111561481357614813615cf4565b604051601f8501601f19168101602001828111828210171561483757614837615cf4565b60405284815291508183850186101561484f57600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b0381168114610afd57600080fd5b60008083601f840112614890578081fd5b50813567ffffffffffffffff8111156148a7578182fd5b60208301915083602080830285010111156148c157600080fd5b9250929050565b60008083601f8401126148d9578182fd5b50813567ffffffffffffffff8111156148f0578182fd5b6020830191508360208285010111156148c157600080fd5b600060208284031215614919578081fd5b6110ff82614868565b60008060408385031215614934578081fd5b61493d83614868565b915061494b60208401614868565b90509250929050565b600080600060608486031215614968578081fd5b61497184614868565b925061497f60208501614868565b9150604084013590509250925092565b600080600080608085870312156149a4578081fd5b6149ad85614868565b93506149bb60208601614868565b925060408501359150606085013567ffffffffffffffff8111156149dd578182fd5b8501601f810187136149ed578182fd5b6149fc878235602084016147f8565b91505092959194509250565b60008060408385031215614a1a578182fd5b614a2383614868565b91506020830135614a3381615d0a565b809150509250929050565b60008060408385031215614a50578182fd5b614a5983614868565b946020939093013593505050565b600080600060608486031215614a7b578283fd5b614a8484614868565b95602085013595506040909401359392505050565b60008060008060008060c08789031215614ab1578182fd5b614aba87614868565b95506020870135945060408701359350606087013560ff81168114614add578283fd5b9598949750929560808101359460a0909101359350915050565b60008060408385031215614b09578182fd5b614b1283614868565b9150602083013563ffffffff81168114614a33578182fd5b6000806000806000806000806080898b031215614b45578586fd5b883567ffffffffffffffff80821115614b5c578788fd5b614b688c838d0161487f565b909a50985060208b0135915080821115614b80578788fd5b614b8c8c838d0161487f565b909850965060408b0135915080821115614ba4578384fd5b614bb08c838d0161487f565b909650945060608b0135915080821115614bc8578384fd5b50614bd58b828c0161487f565b999c989b5096995094979396929594505050565b600060208284031215614bfa578081fd5b81516110ff81615d0a565b600060208284031215614c16578081fd5b81356110ff81615d18565b600060208284031215614c32578081fd5b81516110ff81615d18565b600060208284031215614c4e578081fd5b815180600b0b81146110ff578182fd5b60008060208385031215614c70578182fd5b823567ffffffffffffffff811115614c86578283fd5b614c92858286016148c8565b90969095509350505050565b600080600060408486031215614cb2578081fd5b833567ffffffffffffffff811115614cc8578182fd5b614cd4868287016148c8565b909790965060209590950135949350505050565b600060208284031215614cf9578081fd5b813567ffffffffffffffff811115614d0f578182fd5b8201601f81018413614d1f578182fd5b612993848235602084016147f8565b600060208284031215614d3f578081fd5b5035919050565b600060208284031215614d57578081fd5b5051919050565b60008151808452614d76816020860160208601615c32565b601f01601f19169290920160200192915050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b60008251614dc6818460208701615c32565b9190910192915050565b60008351614de2818460208801615c32565b835190830190614df6818360208801615c32565b01949350505050565b7f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b60007f697066733a2f2f0000000000000000000000000000000000000000000000000082526007818454614e6881615c5e565b60018281168015614e805760018114614e9557614ec5565b60ff1984168887015282880186019450614ec5565b8887526020808820885b85811015614eba5781548b82018a0152908401908201614e9f565b505050858389010194505b5092979650505050505050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60006001600160a01b03808716835280861660208401525083604083015260806060830152614f566080830184614d5e565b9695505050505050565b6001600160a01b03979097168752600b9590950b602087015292151560408601526060850191909152608084015260a083015260c082015260e00190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0393841681526020810192909252909116604082015260600190565b602080825282518282018190526000919060409081850190868401855b8281101561503157815180518552868101518786015285810151868601526060908101519085015260809093019290850190600101614ff7565b5091979650505050505050565b901515815260200190565b90815260200190565b9384526001600160a01b039290921660208401526040830152606082015260800190565b938452602084019290925260408301526001600160a01b0316606082015260800190565b93845260ff9290921660208401526040830152606082015260800190565b600060208252612993602083018486614d8a565b6000602082526110ff6020830184614d5e565b6000604082528085546150f181615c5e565b8060408601526060600180841660008114615113576001811461512757615155565b60ff19851688840152608088019550615155565b8a87526020808820885b8681101561514c5781548b8201870152908401908201615131565b8a018501975050505b50505050508281036020840152614f56818587614d8a565b60208082526003908201527f667a6e0000000000000000000000000000000000000000000000000000000000604082015260600190565b60208082526005908201527f213e313030000000000000000000000000000000000000000000000000000000604082015260600190565b60208082526036908201527f455243373231436865636b706f696e7461626c653a3a64656c6567617465427960408201527f5369673a207369676e6174757265206578706972656400000000000000000000606082015260800190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201527f74206f6620626f756e6473000000000000000000000000000000000000000000606082015260800190565b6020808252600a908201527f4552433732313a20213000000000000000000000000000000000000000000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526004908201527f646f6e6500000000000000000000000000000000000000000000000000000000604082015260600190565b60208082526032908201527f455243373231436865636b706f696e7461626c653a3a64656c6567617465427960408201527f5369673a20696e76616c6964206e6f6e63650000000000000000000000000000606082015260800190565b6020808252600c908201527f4552433732313a20216f776e0000000000000000000000000000000000000000604082015260600190565b6020808252600e908201527f4552433732313a2021746f6b656e000000000000000000000000000000000000604082015260600190565b60208082526004908201527f216c656e00000000000000000000000000000000000000000000000000000000604082015260600190565b6020808252600c908201527f4552433732313a2021616c6c0000000000000000000000000000000000000000604082015260600190565b6020808252600e908201527f4552433732313a20657869737473000000000000000000000000000000000000604082015260600190565b60208082526036908201527f455243373231436865636b706f696e7461626c653a3a64656c6567617465427960408201527f5369673a20696e76616c6964207369676e617475726500000000000000000000606082015260800190565b6020808252600f908201527f4552433732313a20216578697374730000000000000000000000000000000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60408201527f722063616c6c0000000000000000000000000000000000000000000000000000606082015260800190565b60208082526003908201527f2130780000000000000000000000000000000000000000000000000000000000604082015260600190565b60208082526005908201527f216d7c7c6f000000000000000000000000000000000000000000000000000000604082015260600190565b60208082526014908201527f4552433732313a2021696d706c656d656e746572000000000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526003908201527f216d650000000000000000000000000000000000000000000000000000000000604082015260600190565b60208082526003908201527f21644d0000000000000000000000000000000000000000000000000000000000604082015260600190565b6020808252600f908201527f4552433732313a202163616c6c65720000000000000000000000000000000000604082015260600190565b6020808252600d908201527f4552433732313a202173656c6600000000000000000000000000000000000000604082015260600190565b60208082526004908201527f21616d7400000000000000000000000000000000000000000000000000000000604082015260600190565b60208082526037908201527f455243373231436865636b706f696e7461626c653a3a6765745072696f72566f60408201527f7465733a206e6f74207965742064657465726d696e6564000000000000000000606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201527f7574206f6620626f756e64730000000000000000000000000000000000000000606082015260800190565b60208082526002908201527f2130000000000000000000000000000000000000000000000000000000000000604082015260600190565b60208082526013908201527f4552433732314d657461646174613a2021696400000000000000000000000000604082015260600190565b60208082526011908201527f4552433732313a20217265636569766572000000000000000000000000000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b6020808252600e908201527f4552433732313a20216f776e6572000000000000000000000000000000000000604082015260600190565b92835290151560208301526001600160a01b0316604082015260600190565b918252602082015260400190565b93845260208401929092526040830152606082015260800190565b63ffffffff91909116815260200190565b63ffffffff9290921682526001600160601b0316602082015260400190565b60ff91909116815260200190565b6001600160601b0391909116815260200190565b6001600160601b0392831681529116602082015260400190565b60008219821115615a9f57615a9f615cc8565b500190565b600063ffffffff808316818516808303821115614df657614df6615cc8565b60006001600160601b03808316818516808303821115614df657614df6615cc8565b600082615af457615af4615cde565b500490565b600063ffffffff80841680615b1057615b10615cde565b92169190910492915050565b600081600b0b83600b0b6b7fffffffffffffffffffffff83821384841383830485118282161615615b4f57615b4f615cc8565b6b7fffffffffffffffffffffff1986851282811687830587121615615b7657615b76615cc8565b878712925085820587128484161615615b9157615b91615cc8565b85850587128184161615615ba757615ba7615cc8565b5050509290910295945050505050565b6000816000190483118215151615615bd157615bd1615cc8565b500290565b600082821015615be857615be8615cc8565b500390565b600063ffffffff83811690831681811015615c0a57615c0a615cc8565b039392505050565b60006001600160601b0383811690831681811015615c0a57615c0a615cc8565b60005b83811015615c4d578181015183820152602001615c35565b83811115611a925750506000910152565b600281046001821680615c7257607f821691505b60208210811415615c9357634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415615cad57615cad615cc8565b5060010190565b600082615cc357615cc3615cde565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461112157600080fd5b6001600160e01b03198116811461112157600080fdfe455243373231436865636b706f696e7461626c653a3a5f6d6f766544656c6567617465733a20616d6f756e74206f766572666c6f7773455243373231436865636b706f696e7461626c653a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473455243373231436865636b706f696e7461626c653a3a766f746573546f44656c65676174653a20616d6f756e7420657863656564732039362062697473455243373231436865636b706f696e7461626c653a3a5f6d6f766544656c6567617465733a20616d6f756e7420756e646572666c6f7773a2646970667358221220dac9f3f88f4911998bd0afd2ce91fd15be73a5d8f23b548066c0ed194fac248f64736f6c63430008000033516d59754b6650505454313465544873696170724772547075535535477a797137456a4d77776f505a766142366f000000000000000000000000e0159f36b6a09e6407df0c7debac433a7751162500000000000000000000000022b5cd016c8d9c6ac5338cc08174a7fa824bc5e40000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f619000000000000000000000000fda25d931258df948ffecb66b5518299df6527c4000000000000000000000000f38776b27a552ec051b121d796154fd5bdc036e7000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000000a446567656e20446f6773000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003444f470000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002068747470733a2f2f6170692e646567656e646f67732e636c75622f6d6574612f

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

000000000000000000000000e0159f36b6a09e6407df0c7debac433a7751162500000000000000000000000022b5cd016c8d9c6ac5338cc08174a7fa824bc5e40000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f619000000000000000000000000fda25d931258df948ffecb66b5518299df6527c4000000000000000000000000f38776b27a552ec051b121d796154fd5bdc036e7000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000000a446567656e20446f6773000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003444f470000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002068747470733a2f2f6170692e646567656e646f67732e636c75622f6d6574612f

-----Decoded View---------------
Arg [0] : _tokenVestor (address): 0xe0159f36b6a09e6407df0c7debac433a77511625
Arg [1] : _donationDAO (address): 0x22b5cd016c8d9c6ac5338cc08174a7fa824bc5e4
Arg [2] : _weth (address): 0x7ceb23fd6bc0add59e62ac25578270cff1b9f619
Arg [3] : _idletoken (address): 0xfda25d931258df948ffecb66b5518299df6527c4
Arg [4] : _dogMaster (address): 0xf38776b27a552ec051b121d796154fd5bdc036e7
Arg [5] : _name (string): Degen Dogs
Arg [6] : _symbol (string): DOG
Arg [7] : _metadataBaseURI (string): https://api.degendogs.club/meta/

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 000000000000000000000000e0159f36b6a09e6407df0c7debac433a77511625
Arg [1] : 00000000000000000000000022b5cd016c8d9c6ac5338cc08174a7fa824bc5e4
Arg [2] : 0000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f619
Arg [3] : 000000000000000000000000fda25d931258df948ffecb66b5518299df6527c4
Arg [4] : 000000000000000000000000f38776b27a552ec051b121d796154fd5bdc036e7
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [9] : 446567656e20446f677300000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [11] : 444f470000000000000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [13] : 68747470733a2f2f6170692e646567656e646f67732e636c75622f6d6574612f


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.