ETH Price: $2,525.17 (+0.08%)

Token

AlgoPool YieldNFT (yNFT)
 

Overview

Max Total Supply

77 yNFT

Holders

50

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
rietsuiker.eth
Balance
1 yNFT
0x6E4D8279F71F417A80F7A951DFa2bBDd2A7A3f2a
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
AlgoPool

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : AlgoPool.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/interfaces/IERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

contract AlgoPool is Ownable, ERC721Enumerable, ReentrancyGuard {
    using Counters for Counters.Counter;
    using SafeMath for uint256;

    // Native NFT -> Every Time you create a token it gives the token an id
    Counters.Counter private _tokenIdTracker;

    address public stablecoin;
    address public avscoin;

    constructor(
        address _stablecoin,
        string memory name,
        string memory symbol,
        address _avscoin
    ) ERC721(name, symbol) {
        stablecoin = _stablecoin;
        avscoin = _avscoin;
    }

    struct PoolInfo {
        uint256 minDeposit;
        uint256 periodInterestRate;
        uint256 noncesToUnlock;
        bool locked;
    }

    struct BondInfo {
        uint256 depositTimestamp;
        uint256 amount;
        uint256 pendingInterest;
        uint256 currentNonce;
        bool withdrawn;
    }

    struct StakeInfo {
        uint256 amount;
        uint256 stakedAt;
    }

    // Info of each pool.
    PoolInfo[] public poolInfo;

    uint256 public inTrading;
    uint256 public noncePeriod = 1 weeks; // 604800

    mapping(uint256 => mapping(uint256 => BondInfo)) public bondInfo;
    mapping(uint256 => uint256) public bondPool;
    mapping(address => StakeInfo) public stakesInfo;
    mapping(address => uint256) public totalDeposit;

    uint256 public rewardAPY = 800;
    uint256 public stakingAmount = 0; // Can be updated by the Owner
    uint256 public rewardAvsCoinBalance = 0;

    function addRewards(uint256 _amount) public onlyOwner {
        IERC20(avscoin).transferFrom(
            address(msg.sender),
            address(this),
            _amount
        );
        rewardAvsCoinBalance = rewardAvsCoinBalance.add(_amount);
    }

    function setStakingAmount(uint256 _stakingAmount) public onlyOwner {
        stakingAmount = _stakingAmount;
    }

    function createPool(
        uint256 _minDeposit,
        uint256 _periodInterestRate,
        uint256 _noncesToUnlock,
        bool _locked
    ) external onlyOwner {
        poolInfo.push(
            PoolInfo({
                minDeposit: _minDeposit,
                periodInterestRate: _periodInterestRate,
                noncesToUnlock: _noncesToUnlock,
                locked: _locked
            })
        );
    }

    function lockPool(uint256 _poolId, bool _lock) public onlyOwner {
        PoolInfo storage pool = poolInfo[_poolId];
        pool.locked = _lock;
    }

    // Calculate how many pools exist.
    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    function depositAvsToken(uint256 _amount) public returns (bool) {
        require(
            _amount > stakingAmount,
            "Amount must be greater than stakingAmount"
        );
        IERC20(avscoin).transferFrom(msg.sender, address(this), _amount);
        StakeInfo storage stakeInfo = stakesInfo[msg.sender];
        stakeInfo.stakedAt = block.timestamp;
        stakeInfo.amount = stakeInfo.amount.add(_amount);
        return true;
    }

    function withdrawAvsToken() public returns (bool) {
        StakeInfo storage stakeInfo = stakesInfo[msg.sender];
        require(stakeInfo.amount > 0, "You have nothing deposited to withdraw");
        require(
            balanceOf(msg.sender) == 0,
            "Cant withdraw you have an active bond"
        );
        uint256 timePassed = block.timestamp.sub(stakeInfo.stakedAt);
        // 31,536,000 -> Seconds in a year
        uint256 rewardsPending = stakeInfo
            .amount
            .mul(rewardAPY)
            .div(10000)
            .mul(timePassed)
            .div(31536000);
        require(
            rewardsPending <= rewardAvsCoinBalance,
            "Pending rewards is greater than available reward balance"
        );

        uint256 withdrawAmount = stakeInfo.amount.add(rewardsPending);
        delete stakesInfo[msg.sender];
        rewardAvsCoinBalance = rewardAvsCoinBalance.sub(rewardsPending);
        IERC20(avscoin).transfer(msg.sender, withdrawAmount);
        return true;
    }

    function depositToPool(uint256 _poolId, uint256 _amount) public {
        StakeInfo storage stakeInfo = stakesInfo[msg.sender];
        require(
            stakeInfo.amount.mul(10) >= totalDeposit[msg.sender].add(_amount),
            "Not enough AVS staked in the pool"
        );
        PoolInfo storage pool = poolInfo[_poolId];
        require(pool.locked == false, "Pool is locked!");
        require(
            pool.minDeposit <= _amount,
            "Amount is less than minimum amount"
        );
        IERC20(stablecoin).transferFrom(msg.sender, address(this), _amount);
        _mint(msg.sender, _tokenIdTracker.current());
        bondPool[_tokenIdTracker.current()] = _poolId;
        BondInfo storage bond = bondInfo[_poolId][_tokenIdTracker.current()];
        bond.depositTimestamp = block.timestamp;
        bond.amount = _amount;
        bond.pendingInterest = _amount.mul(pool.periodInterestRate).div(10000);
        bond.currentNonce = 0;
        totalDeposit[msg.sender] = totalDeposit[msg.sender].add(_amount);
        _tokenIdTracker.increment();
    }

    function withdrawPrinciple(uint256 _bondId) public {
        require(ownerOf(_bondId) == msg.sender, "Not your contract");
        BondInfo storage bond = bondInfo[bondPool[_bondId]][_bondId];
        PoolInfo storage pool = poolInfo[bondPool[_bondId]];
        require(
            bond.currentNonce == pool.noncesToUnlock,
            "Can't withdraw before unlock."
        );
        require(bond.withdrawn == false, "Already Claimed");
        // Mark as Claimed
        bond.withdrawn = true;
        // Send back the principle.
        _burn(_bondId);
        totalDeposit[msg.sender] = totalDeposit[msg.sender].sub(bond.amount);
        IERC20(stablecoin).transfer(msg.sender, bond.amount);
    }

    function claimInterest(uint256 _bondId) public nonReentrant {
        require(ownerOf(_bondId) == msg.sender, "Not your contract");
        BondInfo storage bond = bondInfo[bondPool[_bondId]][_bondId];
        PoolInfo storage pool = poolInfo[bondPool[_bondId]];
        uint256 oldNonce = bond.currentNonce;
        require(oldNonce < pool.noncesToUnlock, "Everything Claimed");

        require(
            block.timestamp >=
                bond.depositTimestamp.add(
                    noncePeriod.mul(bond.currentNonce.add(1))
                ),
            "Wait until next claim."
        );

        uint256 timePassed = block.timestamp.sub(bond.depositTimestamp);
        uint256 noncesToClaim = timePassed.div(noncePeriod);

        if (noncesToClaim > pool.noncesToUnlock) {
            noncesToClaim = pool.noncesToUnlock;
        }

        bond.currentNonce = noncesToClaim;

        IERC20(stablecoin).transfer(
            msg.sender,
            bond.pendingInterest.div(pool.noncesToUnlock).mul(
                bond.currentNonce - oldNonce
            )
        );
    }

    function withdrawToTradingAdmin(uint256 _amount) external onlyOwner {
        inTrading = inTrading.add(_amount);
        IERC20(stablecoin).transfer(msg.sender, _amount);
    }

    function depositAdmin(uint256 _amount) external onlyOwner {
        require(inTrading >= _amount, "Withdraw amount smaller than deposit.");
        inTrading = inTrading.sub(_amount);
        IERC20(stablecoin).transferFrom(msg.sender, address(this), _amount);
    }

    function depositStableCoin(uint256 _amount) external onlyOwner {
        IERC20(stablecoin).transferFrom(msg.sender, address(this), _amount);
    }

    function changeNoncePeriod(uint256 _newPeriod) external onlyOwner {
        noncePeriod = _newPeriod;
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);
        if (from != address(0)) require(to == address(0));
    }
}

File 2 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 3 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 4 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 5 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 6 of 18 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 7 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 8 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 9 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 10 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);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to 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: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @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: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

    /**
     * @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.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

File 15 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 16 of 18 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

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

File 18 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);
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "evmVersion": "istanbul",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_stablecoin","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"_avscoin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"addRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"avscoin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"bondInfo","outputs":[{"internalType":"uint256","name":"depositTimestamp","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"pendingInterest","type":"uint256"},{"internalType":"uint256","name":"currentNonce","type":"uint256"},{"internalType":"bool","name":"withdrawn","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bondPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPeriod","type":"uint256"}],"name":"changeNoncePeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bondId","type":"uint256"}],"name":"claimInterest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minDeposit","type":"uint256"},{"internalType":"uint256","name":"_periodInterestRate","type":"uint256"},{"internalType":"uint256","name":"_noncesToUnlock","type":"uint256"},{"internalType":"bool","name":"_locked","type":"bool"}],"name":"createPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositAvsToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositStableCoin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositToPool","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":[],"name":"inTrading","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"bool","name":"_lock","type":"bool"}],"name":"lockPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"noncePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"uint256","name":"minDeposit","type":"uint256"},{"internalType":"uint256","name":"periodInterestRate","type":"uint256"},{"internalType":"uint256","name":"noncesToUnlock","type":"uint256"},{"internalType":"bool","name":"locked","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardAPY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardAvsCoinBalance","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":"uint256","name":"_stakingAmount","type":"uint256"}],"name":"setStakingAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stablecoin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakesInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"stakedAt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingAmount","outputs":[{"internalType":"uint256","name":"","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":"address","name":"","type":"address"}],"name":"totalDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"withdrawAvsToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bondId","type":"uint256"}],"name":"withdrawPrinciple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawToTradingAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405262093a80601155610320601655600060175560006018553480156200002857600080fd5b5060405162005eea38038062005eea83398181016040528101906200004e91906200033d565b828262000070620000646200013860201b60201c565b6200014060201b60201c565b81600190805190602001906200008892919062000204565b508060029080519060200190620000a192919062000204565b5050506001600b8190555083600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050506200055a565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200021290620004ac565b90600052602060002090601f01602090048101928262000236576000855562000282565b82601f106200025157805160ff191683800117855562000282565b8280016001018555821562000282579182015b828111156200028157825182559160200191906001019062000264565b5b50905062000291919062000295565b5090565b5b80821115620002b057600081600090555060010162000296565b5090565b6000620002cb620002c5846200040f565b620003db565b905082815260208101848484011115620002e457600080fd5b620002f184828562000476565b509392505050565b6000815190506200030a8162000540565b92915050565b600082601f8301126200032257600080fd5b815162000334848260208601620002b4565b91505092915050565b600080600080608085870312156200035457600080fd5b60006200036487828801620002f9565b945050602085015167ffffffffffffffff8111156200038257600080fd5b620003908782880162000310565b935050604085015167ffffffffffffffff811115620003ae57600080fd5b620003bc8782880162000310565b9250506060620003cf87828801620002f9565b91505092959194509250565b6000604051905081810181811067ffffffffffffffff8211171562000405576200040462000511565b5b8060405250919050565b600067ffffffffffffffff8211156200042d576200042c62000511565b5b601f19601f8301169050602081019050919050565b60006200044f8262000456565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b838110156200049657808201518184015260208101905062000479565b83811115620004a6576000848401525b50505050565b60006002820490506001821680620004c557607f821691505b60208210811415620004dc57620004db620004e2565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200054b8162000442565b81146200055757600080fd5b50565b615980806200056a6000396000f3fe608060405234801561001057600080fd5b506004361061027f5760003560e01c80636352211e1161015c578063aeba4c49116100ce578063e985e9c511610087578063e985e9c5146107c2578063e9cbd822146107f2578063eb82055114610810578063f2fde38b1461082c578063f313e70014610848578063f8a2974f1461087c5761027f565b8063aeba4c4914610702578063b7fd178414610720578063b88d4fde1461073e578063bcb7838a1461075a578063beceed3914610776578063c87b56dd146107925761027f565b806371583d4c1161012057806371583d4c14610654578063739a3e02146106705780638da5cb5b1461068e57806395d89b41146106ac57806399b9bd5e146106ca578063a22cb465146106e65761027f565b80636352211e1461059b578063655ea88d146105cb5780636f9f83dd146105fc57806370a082311461061a578063715018a61461064a5761027f565b80631bd8a15a116101f55780632f8a21bf116101b95780632f8a21bf146104dd5780633f230872146104fb57806342842e0e146105175780634f6ccce71461053357806351ee8167146105635780635776d3ad1461057f5761027f565b80631bd8a15a1461043b57806323b872dd1461045757806329bd44e6146104735780632eb375ea146104915780632f745c59146104ad5761027f565b8063095ea7b311610247578063095ea7b3146103505780630c365e611461036c5780631084e8121461039c5780631526fe27146103cc57806318160ddd146103ff5780631859d97a1461041d5761027f565b806301ffc9a71461028457806305e81772146102b457806306fdde03146102e4578063081812fc14610302578063081e3eda14610332575b600080fd5b61029e600480360381019061029991906141be565b610898565b6040516102ab9190614fed565b60405180910390f35b6102ce60048036038101906102c99190614210565b610912565b6040516102db919061542a565b60405180910390f35b6102ec61092a565b6040516102f99190615008565b60405180910390f35b61031c60048036038101906103179190614210565b6109bc565b6040516103299190614f26565b60405180910390f35b61033a610a41565b604051610347919061542a565b60405180910390f35b61036a60048036038101906103659190614159565b610a4e565b005b61038660048036038101906103819190614210565b610b66565b6040516103939190614fed565b60405180910390f35b6103b660048036038101906103b19190613fee565b610cd3565b6040516103c3919061542a565b60405180910390f35b6103e660048036038101906103e19190614210565b610ceb565b6040516103f6949392919061546e565b60405180910390f35b610407610d38565b604051610414919061542a565b60405180910390f35b610425610d45565b604051610432919061542a565b60405180910390f35b61045560048036038101906104509190614239565b610d4b565b005b610471600480360381019061046c9190614053565b610e34565b005b61047b610e94565b604051610488919061542a565b60405180910390f35b6104ab60048036038101906104a69190614210565b610e9a565b005b6104c760048036038101906104c29190614159565b611217565b6040516104d4919061542a565b60405180910390f35b6104e56112bc565b6040516104f2919061542a565b60405180910390f35b61051560048036038101906105109190614210565b6112c2565b005b610531600480360381019061052c9190614053565b611348565b005b61054d60048036038101906105489190614210565b611368565b60405161055a919061542a565b60405180910390f35b61057d600480360381019061057891906142b1565b6113ff565b005b61059960048036038101906105949190614210565b61150f565b005b6105b560048036038101906105b09190614210565b611595565b6040516105c29190614f26565b60405180910390f35b6105e560048036038101906105e09190613fee565b611647565b6040516105f3929190615445565b60405180910390f35b61060461166b565b6040516106119190614f26565b60405180910390f35b610634600480360381019061062f9190613fee565b611691565b604051610641919061542a565b60405180910390f35b610652611749565b005b61066e60048036038101906106699190614210565b6117d1565b005b610678611902565b604051610685919061542a565b60405180910390f35b610696611908565b6040516106a39190614f26565b60405180910390f35b6106b4611931565b6040516106c19190615008565b60405180910390f35b6106e460048036038101906106df9190614210565b6119c3565b005b61070060048036038101906106fb919061411d565b611b0d565b005b61070a611c8e565b6040516107179190614fed565b60405180910390f35b610728611f60565b604051610735919061542a565b60405180910390f35b610758600480360381019061075391906140a2565b611f66565b005b610774600480360381019061076f9190614210565b611fc8565b005b610790600480360381019061078b9190614210565b612159565b005b6107ac60048036038101906107a79190614210565b6122a5565b6040516107b99190615008565b60405180910390f35b6107dc60048036038101906107d79190614017565b61234c565b6040516107e99190614fed565b60405180910390f35b6107fa6123e0565b6040516108079190614f26565b60405180910390f35b61082a60048036038101906108259190614275565b612406565b005b61084660048036038101906108419190613fee565b6127eb565b005b610862600480360381019061085d9190614275565b6128e3565b6040516108739594939291906154b3565b60405180910390f35b61089660048036038101906108919190614210565b612933565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061090b575061090a82612c5d565b5b9050919050565b60136020528060005260406000206000915090505481565b60606001805461093990615775565b80601f016020809104026020016040519081016040528092919081815260200182805461096590615775565b80156109b25780601f10610987576101008083540402835291602001916109b2565b820191906000526020600020905b81548152906001019060200180831161099557829003601f168201915b5050505050905090565b60006109c782612d3f565b610a06576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109fd9061524a565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600f80549050905090565b6000610a5982611595565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610aca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac1906152ca565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ae9612dab565b73ffffffffffffffffffffffffffffffffffffffff161480610b185750610b1781610b12612dab565b61234c565b5b610b57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4e9061518a565b60405180910390fd5b610b618383612db3565b505050565b60006017548211610bac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba3906153aa565b60405180910390fd5b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b8152600401610c0b93929190614f41565b602060405180830381600087803b158015610c2557600080fd5b505af1158015610c39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5d9190614195565b506000601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050428160010181905550610cc1838260000154612e6c90919063ffffffff16565b81600001819055506001915050919050565b60156020528060005260406000206000915090505481565b600f8181548110610cfb57600080fd5b90600052602060002090600402016000915090508060000154908060010154908060020154908060030160009054906101000a900460ff16905084565b6000600980549050905090565b60185481565b610d53612dab565b73ffffffffffffffffffffffffffffffffffffffff16610d71611908565b73ffffffffffffffffffffffffffffffffffffffff1614610dc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbe9061526a565b60405180910390fd5b6000600f8381548110610e03577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600402019050818160030160006101000a81548160ff021916908315150217905550505050565b610e45610e3f612dab565b82612e82565b610e84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7b9061532a565b60405180910390fd5b610e8f838383612f60565b505050565b60115481565b6002600b541415610ee0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed79061538a565b60405180910390fd5b6002600b819055503373ffffffffffffffffffffffffffffffffffffffff16610f0882611595565b73ffffffffffffffffffffffffffffffffffffffff1614610f5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f559061514a565b60405180910390fd5b60006012600060136000858152602001908152602001600020548152602001908152602001600020600083815260200190815260200160002090506000600f601360008581526020019081526020016000205481548110610fe8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060040201905060008260030154905081600201548110611047576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103e9061540a565b60405180910390fd5b61108961107661106560018660030154612e6c90919063ffffffff16565b6011546131bc90919063ffffffff16565b8460000154612e6c90919063ffffffff16565b4210156110cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c2906151ca565b60405180910390fd5b60006110e48460000154426131d290919063ffffffff16565b905060006110fd601154836131e890919063ffffffff16565b9050836002015481111561111357836002015490505b808560030181905550600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb3361119786896003015461116e919061568b565b61118989600201548b600201546131e890919063ffffffff16565b6131bc90919063ffffffff16565b6040518363ffffffff1660e01b81526004016111b4929190614fc4565b602060405180830381600087803b1580156111ce57600080fd5b505af11580156111e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112069190614195565b5050505050506001600b8190555050565b600061122283611691565b8210611263576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125a9061502a565b60405180910390fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b60105481565b6112ca612dab565b73ffffffffffffffffffffffffffffffffffffffff166112e8611908565b73ffffffffffffffffffffffffffffffffffffffff161461133e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113359061526a565b60405180910390fd5b8060178190555050565b61136383838360405180602001604052806000815250611f66565b505050565b6000611372610d38565b82106113b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113aa9061536a565b60405180910390fd5b600982815481106113ed577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b611407612dab565b73ffffffffffffffffffffffffffffffffffffffff16611425611908565b73ffffffffffffffffffffffffffffffffffffffff161461147b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114729061526a565b60405180910390fd5b600f6040518060800160405280868152602001858152602001848152602001831515815250908060018154018082558091505060019003906000526020600020906004020160009091909190915060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548160ff021916908315150217905550505050505050565b611517612dab565b73ffffffffffffffffffffffffffffffffffffffff16611535611908565b73ffffffffffffffffffffffffffffffffffffffff161461158b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115829061526a565b60405180910390fd5b8060118190555050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561163e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116359061520a565b60405180910390fd5b80915050919050565b60146020528060005260406000206000915090508060000154908060010154905082565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611702576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f9906151ea565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611751612dab565b73ffffffffffffffffffffffffffffffffffffffff1661176f611908565b73ffffffffffffffffffffffffffffffffffffffff16146117c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117bc9061526a565b60405180910390fd5b6117cf60006131fe565b565b6117d9612dab565b73ffffffffffffffffffffffffffffffffffffffff166117f7611908565b73ffffffffffffffffffffffffffffffffffffffff161461184d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118449061526a565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b81526004016118ac93929190614f41565b602060405180830381600087803b1580156118c657600080fd5b505af11580156118da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118fe9190614195565b5050565b60175481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606002805461194090615775565b80601f016020809104026020016040519081016040528092919081815260200182805461196c90615775565b80156119b95780601f1061198e576101008083540402835291602001916119b9565b820191906000526020600020905b81548152906001019060200180831161199c57829003601f168201915b5050505050905090565b6119cb612dab565b73ffffffffffffffffffffffffffffffffffffffff166119e9611908565b73ffffffffffffffffffffffffffffffffffffffff1614611a3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a369061526a565b60405180910390fd5b611a5481601054612e6c90919063ffffffff16565b601081905550600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401611ab7929190614fc4565b602060405180830381600087803b158015611ad157600080fd5b505af1158015611ae5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b099190614195565b5050565b611b15612dab565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7a906150ea565b60405180910390fd5b8060066000611b90612dab565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611c3d612dab565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611c829190614fed565b60405180910390a35050565b600080601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000015411611d19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d10906153ca565b60405180910390fd5b6000611d2433611691565b14611d64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5b906153ea565b60405180910390fd5b6000611d7d8260010154426131d290919063ffffffff16565b90506000611dd66301e13380611dc884611dba612710611dac6016548a600001546131bc90919063ffffffff16565b6131e890919063ffffffff16565b6131bc90919063ffffffff16565b6131e890919063ffffffff16565b9050601854811115611e1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e149061516a565b60405180910390fd5b6000611e36828560000154612e6c90919063ffffffff16565b9050601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008082016000905560018201600090555050611e9f826018546131d290919063ffffffff16565b601881905550600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401611f02929190614fc4565b602060405180830381600087803b158015611f1c57600080fd5b505af1158015611f30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f549190614195565b50600194505050505090565b60165481565b611f77611f71612dab565b83612e82565b611fb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fad9061532a565b60405180910390fd5b611fc2848484846132c2565b50505050565b611fd0612dab565b73ffffffffffffffffffffffffffffffffffffffff16611fee611908565b73ffffffffffffffffffffffffffffffffffffffff1614612044576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203b9061526a565b60405180910390fd5b806010541015612089576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120809061530a565b60405180910390fd5b61209e816010546131d290919063ffffffff16565b601081905550600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b815260040161210393929190614f41565b602060405180830381600087803b15801561211d57600080fd5b505af1158015612131573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121559190614195565b5050565b612161612dab565b73ffffffffffffffffffffffffffffffffffffffff1661217f611908565b73ffffffffffffffffffffffffffffffffffffffff16146121d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121cc9061526a565b60405180910390fd5b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b815260040161223493929190614f41565b602060405180830381600087803b15801561224e57600080fd5b505af1158015612262573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122869190614195565b5061229c81601854612e6c90919063ffffffff16565b60188190555050565b60606122b082612d3f565b6122ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e6906152aa565b60405180910390fd5b60006122f961331e565b905060008151116123195760405180602001604052806000815250612344565b8061232384613335565b604051602001612334929190614f02565b6040516020818303038152906040525b915050919050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905061249b82601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612e6c90919063ffffffff16565b6124b3600a83600001546131bc90919063ffffffff16565b10156124f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124eb906152ea565b60405180910390fd5b6000600f8481548110612530577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600402019050600015158160030160009054906101000a900460ff16151514612598576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258f9061512a565b60405180910390fd5b82816000015411156125df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125d6906151aa565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330866040518463ffffffff1660e01b815260040161263e93929190614f41565b602060405180830381600087803b15801561265857600080fd5b505af115801561266c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126909190614195565b506126a43361269f600c6134e2565b6134f0565b83601360006126b3600c6134e2565b81526020019081526020016000208190555060006012600086815260200190815260200160002060006126e6600c6134e2565b815260200190815260200160002090504281600001819055508381600101819055506127336127106127258460010154876131bc90919063ffffffff16565b6131e890919063ffffffff16565b81600201819055506000816003018190555061279784601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612e6c90919063ffffffff16565b601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506127e4600c6136be565b5050505050565b6127f3612dab565b73ffffffffffffffffffffffffffffffffffffffff16612811611908565b73ffffffffffffffffffffffffffffffffffffffff1614612867576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285e9061526a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156128d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128ce9061506a565b60405180910390fd5b6128e0816131fe565b50565b6012602052816000526040600020602052806000526040600020600091509150508060000154908060010154908060020154908060030154908060040160009054906101000a900460ff16905085565b3373ffffffffffffffffffffffffffffffffffffffff1661295382611595565b73ffffffffffffffffffffffffffffffffffffffff16146129a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a09061514a565b60405180910390fd5b60006012600060136000858152602001908152602001600020548152602001908152602001600020600083815260200190815260200160002090506000600f601360008581526020019081526020016000205481548110612a33577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906004020190508060020154826003015414612a8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a849061508a565b60405180910390fd5b600015158260040160009054906101000a900460ff16151514612ae5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612adc9061534a565b60405180910390fd5b60018260040160006101000a81548160ff021916908315150217905550612b0b836136d4565b612b618260010154601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546131d290919063ffffffff16565b601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb3384600101546040518363ffffffff1660e01b8152600401612c05929190614fc4565b602060405180830381600087803b158015612c1f57600080fd5b505af1158015612c33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c579190614195565b50505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d2857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612d385750612d37826137e5565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612e2683611595565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008183612e7a91906155aa565b905092915050565b6000612e8d82612d3f565b612ecc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ec39061510a565b60405180910390fd5b6000612ed783611595565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612f4657508373ffffffffffffffffffffffffffffffffffffffff16612f2e846109bc565b73ffffffffffffffffffffffffffffffffffffffff16145b80612f575750612f56818561234c565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612f8082611595565b73ffffffffffffffffffffffffffffffffffffffff1614612fd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fcd9061528a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613046576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161303d906150ca565b60405180910390fd5b61305183838361384f565b61305c600082612db3565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130ac919061568b565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461310391906155aa565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600081836131ca9190615631565b905092915050565b600081836131e0919061568b565b905092915050565b600081836131f69190615600565b905092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6132cd848484612f60565b6132d9848484846138cd565b613318576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161330f9061504a565b60405180910390fd5b50505050565b606060405180602001604052806000815250905090565b6060600082141561337d576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506134dd565b600082905060005b600082146133af578080613398906157a7565b915050600a826133a89190615600565b9150613385565b60008167ffffffffffffffff8111156133f1577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156134235781602001600182028036833780820191505090505b5090505b600085146134d65760018261343c919061568b565b9150600a8561344b91906157f0565b603061345791906155aa565b60f81b818381518110613493577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856134cf9190615600565b9450613427565b8093505050505b919050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613560576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135579061522a565b60405180910390fd5b61356981612d3f565b156135a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135a0906150aa565b60405180910390fd5b6135b56000838361384f565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461360591906155aa565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6001816000016000828254019250508190555050565b60006136df82611595565b90506136ed8160008461384f565b6136f8600083612db3565b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613748919061568b565b925050819055506003600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61385a838383613a64565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146138c857600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146138c757600080fd5b5b505050565b60006138ee8473ffffffffffffffffffffffffffffffffffffffff16613b78565b15613a57578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613917612dab565b8786866040518563ffffffff1660e01b81526004016139399493929190614f78565b602060405180830381600087803b15801561395357600080fd5b505af192505050801561398457506040513d601f19601f8201168201806040525081019061398191906141e7565b60015b613a07573d80600081146139b4576040519150601f19603f3d011682016040523d82523d6000602084013e6139b9565b606091505b506000815114156139ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139f69061504a565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613a5c565b600190505b949350505050565b613a6f838383613b8b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613ab257613aad81613b90565b613af1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613af057613aef8382613bd9565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613b3457613b2f81613d46565b613b73565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613b7257613b718282613e89565b5b5b505050565b600080823b905060008111915050919050565b505050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613be684611691565b613bf0919061568b565b9050600060086000848152602001908152602001600020549050818114613cd5576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600980549050613d5a919061568b565b90506000600a6000848152602001908152602001600020549050600060098381548110613db0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060098381548110613df8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a6000858152602001908152602001600020600090556009805480613e6d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613e9483611691565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b6000613f1b613f1684615537565b615506565b905082815260208101848484011115613f3357600080fd5b613f3e848285615733565b509392505050565b600081359050613f55816158ee565b92915050565b600081359050613f6a81615905565b92915050565b600081519050613f7f81615905565b92915050565b600081359050613f948161591c565b92915050565b600081519050613fa98161591c565b92915050565b600082601f830112613fc057600080fd5b8135613fd0848260208601613f08565b91505092915050565b600081359050613fe881615933565b92915050565b60006020828403121561400057600080fd5b600061400e84828501613f46565b91505092915050565b6000806040838503121561402a57600080fd5b600061403885828601613f46565b925050602061404985828601613f46565b9150509250929050565b60008060006060848603121561406857600080fd5b600061407686828701613f46565b935050602061408786828701613f46565b925050604061409886828701613fd9565b9150509250925092565b600080600080608085870312156140b857600080fd5b60006140c687828801613f46565b94505060206140d787828801613f46565b93505060406140e887828801613fd9565b925050606085013567ffffffffffffffff81111561410557600080fd5b61411187828801613faf565b91505092959194509250565b6000806040838503121561413057600080fd5b600061413e85828601613f46565b925050602061414f85828601613f5b565b9150509250929050565b6000806040838503121561416c57600080fd5b600061417a85828601613f46565b925050602061418b85828601613fd9565b9150509250929050565b6000602082840312156141a757600080fd5b60006141b584828501613f70565b91505092915050565b6000602082840312156141d057600080fd5b60006141de84828501613f85565b91505092915050565b6000602082840312156141f957600080fd5b600061420784828501613f9a565b91505092915050565b60006020828403121561422257600080fd5b600061423084828501613fd9565b91505092915050565b6000806040838503121561424c57600080fd5b600061425a85828601613fd9565b925050602061426b85828601613f5b565b9150509250929050565b6000806040838503121561428857600080fd5b600061429685828601613fd9565b92505060206142a785828601613fd9565b9150509250929050565b600080600080608085870312156142c757600080fd5b60006142d587828801613fd9565b94505060206142e687828801613fd9565b93505060406142f787828801613fd9565b925050606061430887828801613f5b565b91505092959194509250565b61431d816156bf565b82525050565b61432c816156d1565b82525050565b600061433d82615567565b614347818561557d565b9350614357818560208601615742565b614360816158dd565b840191505092915050565b600061437682615572565b614380818561558e565b9350614390818560208601615742565b614399816158dd565b840191505092915050565b60006143af82615572565b6143b9818561559f565b93506143c9818560208601615742565b80840191505092915050565b60006143e2602b8361558e565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b600061444860328361558e565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b60006144ae60268361558e565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614514601d8361558e565b91507f43616e2774207769746864726177206265666f726520756e6c6f636b2e0000006000830152602082019050919050565b6000614554601c8361558e565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b600061459460248361558e565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006145fa60198361558e565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b600061463a602c8361558e565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b60006146a0600f8361558e565b91507f506f6f6c206973206c6f636b65642100000000000000000000000000000000006000830152602082019050919050565b60006146e060118361558e565b91507f4e6f7420796f757220636f6e74726163740000000000000000000000000000006000830152602082019050919050565b600061472060388361558e565b91507f50656e64696e6720726577617264732069732067726561746572207468616e2060008301527f617661696c61626c65207265776172642062616c616e636500000000000000006020830152604082019050919050565b600061478660388361558e565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b60006147ec60228361558e565b91507f416d6f756e74206973206c657373207468616e206d696e696d756d20616d6f7560008301527f6e740000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061485260168361558e565b91507f5761697420756e74696c206e65787420636c61696d2e000000000000000000006000830152602082019050919050565b6000614892602a8361558e565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b60006148f860298361558e565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b600061495e60208361558e565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b600061499e602c8361558e565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614a0460208361558e565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614a4460298361558e565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614aaa602f8361558e565b91507f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008301527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020830152604082019050919050565b6000614b1060218361558e565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614b7660218361558e565b91507f4e6f7420656e6f75676820415653207374616b656420696e2074686520706f6f60008301527f6c000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614bdc60258361558e565b91507f576974686472617720616d6f756e7420736d616c6c6572207468616e2064657060008301527f6f7369742e0000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614c4260318361558e565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000614ca8600f8361558e565b91507f416c726561647920436c61696d656400000000000000000000000000000000006000830152602082019050919050565b6000614ce8602c8361558e565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b6000614d4e601f8361558e565b91507f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006000830152602082019050919050565b6000614d8e60298361558e565b91507f416d6f756e74206d7573742062652067726561746572207468616e207374616b60008301527f696e67416d6f756e7400000000000000000000000000000000000000000000006020830152604082019050919050565b6000614df460268361558e565b91507f596f752068617665206e6f7468696e67206465706f736974656420746f20776960008301527f74686472617700000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614e5a60258361558e565b91507f43616e7420776974686472617720796f75206861766520616e2061637469766560008301527f20626f6e640000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614ec060128361558e565b91507f45766572797468696e6720436c61696d656400000000000000000000000000006000830152602082019050919050565b614efc81615729565b82525050565b6000614f0e82856143a4565b9150614f1a82846143a4565b91508190509392505050565b6000602082019050614f3b6000830184614314565b92915050565b6000606082019050614f566000830186614314565b614f636020830185614314565b614f706040830184614ef3565b949350505050565b6000608082019050614f8d6000830187614314565b614f9a6020830186614314565b614fa76040830185614ef3565b8181036060830152614fb98184614332565b905095945050505050565b6000604082019050614fd96000830185614314565b614fe66020830184614ef3565b9392505050565b60006020820190506150026000830184614323565b92915050565b60006020820190508181036000830152615022818461436b565b905092915050565b60006020820190508181036000830152615043816143d5565b9050919050565b600060208201905081810360008301526150638161443b565b9050919050565b60006020820190508181036000830152615083816144a1565b9050919050565b600060208201905081810360008301526150a381614507565b9050919050565b600060208201905081810360008301526150c381614547565b9050919050565b600060208201905081810360008301526150e381614587565b9050919050565b60006020820190508181036000830152615103816145ed565b9050919050565b600060208201905081810360008301526151238161462d565b9050919050565b6000602082019050818103600083015261514381614693565b9050919050565b60006020820190508181036000830152615163816146d3565b9050919050565b6000602082019050818103600083015261518381614713565b9050919050565b600060208201905081810360008301526151a381614779565b9050919050565b600060208201905081810360008301526151c3816147df565b9050919050565b600060208201905081810360008301526151e381614845565b9050919050565b6000602082019050818103600083015261520381614885565b9050919050565b60006020820190508181036000830152615223816148eb565b9050919050565b6000602082019050818103600083015261524381614951565b9050919050565b6000602082019050818103600083015261526381614991565b9050919050565b60006020820190508181036000830152615283816149f7565b9050919050565b600060208201905081810360008301526152a381614a37565b9050919050565b600060208201905081810360008301526152c381614a9d565b9050919050565b600060208201905081810360008301526152e381614b03565b9050919050565b6000602082019050818103600083015261530381614b69565b9050919050565b6000602082019050818103600083015261532381614bcf565b9050919050565b6000602082019050818103600083015261534381614c35565b9050919050565b6000602082019050818103600083015261536381614c9b565b9050919050565b6000602082019050818103600083015261538381614cdb565b9050919050565b600060208201905081810360008301526153a381614d41565b9050919050565b600060208201905081810360008301526153c381614d81565b9050919050565b600060208201905081810360008301526153e381614de7565b9050919050565b6000602082019050818103600083015261540381614e4d565b9050919050565b6000602082019050818103600083015261542381614eb3565b9050919050565b600060208201905061543f6000830184614ef3565b92915050565b600060408201905061545a6000830185614ef3565b6154676020830184614ef3565b9392505050565b60006080820190506154836000830187614ef3565b6154906020830186614ef3565b61549d6040830185614ef3565b6154aa6060830184614323565b95945050505050565b600060a0820190506154c86000830188614ef3565b6154d56020830187614ef3565b6154e26040830186614ef3565b6154ef6060830185614ef3565b6154fc6080830184614323565b9695505050505050565b6000604051905081810181811067ffffffffffffffff8211171561552d5761552c6158ae565b5b8060405250919050565b600067ffffffffffffffff821115615552576155516158ae565b5b601f19601f8301169050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006155b582615729565b91506155c083615729565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156155f5576155f4615821565b5b828201905092915050565b600061560b82615729565b915061561683615729565b92508261562657615625615850565b5b828204905092915050565b600061563c82615729565b915061564783615729565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156156805761567f615821565b5b828202905092915050565b600061569682615729565b91506156a183615729565b9250828210156156b4576156b3615821565b5b828203905092915050565b60006156ca82615709565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015615760578082015181840152602081019050615745565b8381111561576f576000848401525b50505050565b6000600282049050600182168061578d57607f821691505b602082108114156157a1576157a061587f565b5b50919050565b60006157b282615729565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156157e5576157e4615821565b5b600182019050919050565b60006157fb82615729565b915061580683615729565b92508261581657615815615850565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b6158f7816156bf565b811461590257600080fd5b50565b61590e816156d1565b811461591957600080fd5b50565b615925816156dd565b811461593057600080fd5b50565b61593c81615729565b811461594757600080fd5b5056fea264697066735822122039e5f7763f4ca106f1899d108686b4750af0d736e1bdde1b1e0b1a1a8762d1bf64736f6c63430008000033000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000094d916873b22c9c1b53695f1c002f78537b9b3b20000000000000000000000000000000000000000000000000000000000000011416c676f506f6f6c205969656c644e46540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004794e465400000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061027f5760003560e01c80636352211e1161015c578063aeba4c49116100ce578063e985e9c511610087578063e985e9c5146107c2578063e9cbd822146107f2578063eb82055114610810578063f2fde38b1461082c578063f313e70014610848578063f8a2974f1461087c5761027f565b8063aeba4c4914610702578063b7fd178414610720578063b88d4fde1461073e578063bcb7838a1461075a578063beceed3914610776578063c87b56dd146107925761027f565b806371583d4c1161012057806371583d4c14610654578063739a3e02146106705780638da5cb5b1461068e57806395d89b41146106ac57806399b9bd5e146106ca578063a22cb465146106e65761027f565b80636352211e1461059b578063655ea88d146105cb5780636f9f83dd146105fc57806370a082311461061a578063715018a61461064a5761027f565b80631bd8a15a116101f55780632f8a21bf116101b95780632f8a21bf146104dd5780633f230872146104fb57806342842e0e146105175780634f6ccce71461053357806351ee8167146105635780635776d3ad1461057f5761027f565b80631bd8a15a1461043b57806323b872dd1461045757806329bd44e6146104735780632eb375ea146104915780632f745c59146104ad5761027f565b8063095ea7b311610247578063095ea7b3146103505780630c365e611461036c5780631084e8121461039c5780631526fe27146103cc57806318160ddd146103ff5780631859d97a1461041d5761027f565b806301ffc9a71461028457806305e81772146102b457806306fdde03146102e4578063081812fc14610302578063081e3eda14610332575b600080fd5b61029e600480360381019061029991906141be565b610898565b6040516102ab9190614fed565b60405180910390f35b6102ce60048036038101906102c99190614210565b610912565b6040516102db919061542a565b60405180910390f35b6102ec61092a565b6040516102f99190615008565b60405180910390f35b61031c60048036038101906103179190614210565b6109bc565b6040516103299190614f26565b60405180910390f35b61033a610a41565b604051610347919061542a565b60405180910390f35b61036a60048036038101906103659190614159565b610a4e565b005b61038660048036038101906103819190614210565b610b66565b6040516103939190614fed565b60405180910390f35b6103b660048036038101906103b19190613fee565b610cd3565b6040516103c3919061542a565b60405180910390f35b6103e660048036038101906103e19190614210565b610ceb565b6040516103f6949392919061546e565b60405180910390f35b610407610d38565b604051610414919061542a565b60405180910390f35b610425610d45565b604051610432919061542a565b60405180910390f35b61045560048036038101906104509190614239565b610d4b565b005b610471600480360381019061046c9190614053565b610e34565b005b61047b610e94565b604051610488919061542a565b60405180910390f35b6104ab60048036038101906104a69190614210565b610e9a565b005b6104c760048036038101906104c29190614159565b611217565b6040516104d4919061542a565b60405180910390f35b6104e56112bc565b6040516104f2919061542a565b60405180910390f35b61051560048036038101906105109190614210565b6112c2565b005b610531600480360381019061052c9190614053565b611348565b005b61054d60048036038101906105489190614210565b611368565b60405161055a919061542a565b60405180910390f35b61057d600480360381019061057891906142b1565b6113ff565b005b61059960048036038101906105949190614210565b61150f565b005b6105b560048036038101906105b09190614210565b611595565b6040516105c29190614f26565b60405180910390f35b6105e560048036038101906105e09190613fee565b611647565b6040516105f3929190615445565b60405180910390f35b61060461166b565b6040516106119190614f26565b60405180910390f35b610634600480360381019061062f9190613fee565b611691565b604051610641919061542a565b60405180910390f35b610652611749565b005b61066e60048036038101906106699190614210565b6117d1565b005b610678611902565b604051610685919061542a565b60405180910390f35b610696611908565b6040516106a39190614f26565b60405180910390f35b6106b4611931565b6040516106c19190615008565b60405180910390f35b6106e460048036038101906106df9190614210565b6119c3565b005b61070060048036038101906106fb919061411d565b611b0d565b005b61070a611c8e565b6040516107179190614fed565b60405180910390f35b610728611f60565b604051610735919061542a565b60405180910390f35b610758600480360381019061075391906140a2565b611f66565b005b610774600480360381019061076f9190614210565b611fc8565b005b610790600480360381019061078b9190614210565b612159565b005b6107ac60048036038101906107a79190614210565b6122a5565b6040516107b99190615008565b60405180910390f35b6107dc60048036038101906107d79190614017565b61234c565b6040516107e99190614fed565b60405180910390f35b6107fa6123e0565b6040516108079190614f26565b60405180910390f35b61082a60048036038101906108259190614275565b612406565b005b61084660048036038101906108419190613fee565b6127eb565b005b610862600480360381019061085d9190614275565b6128e3565b6040516108739594939291906154b3565b60405180910390f35b61089660048036038101906108919190614210565b612933565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061090b575061090a82612c5d565b5b9050919050565b60136020528060005260406000206000915090505481565b60606001805461093990615775565b80601f016020809104026020016040519081016040528092919081815260200182805461096590615775565b80156109b25780601f10610987576101008083540402835291602001916109b2565b820191906000526020600020905b81548152906001019060200180831161099557829003601f168201915b5050505050905090565b60006109c782612d3f565b610a06576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109fd9061524a565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600f80549050905090565b6000610a5982611595565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610aca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac1906152ca565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ae9612dab565b73ffffffffffffffffffffffffffffffffffffffff161480610b185750610b1781610b12612dab565b61234c565b5b610b57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4e9061518a565b60405180910390fd5b610b618383612db3565b505050565b60006017548211610bac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba3906153aa565b60405180910390fd5b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b8152600401610c0b93929190614f41565b602060405180830381600087803b158015610c2557600080fd5b505af1158015610c39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5d9190614195565b506000601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050428160010181905550610cc1838260000154612e6c90919063ffffffff16565b81600001819055506001915050919050565b60156020528060005260406000206000915090505481565b600f8181548110610cfb57600080fd5b90600052602060002090600402016000915090508060000154908060010154908060020154908060030160009054906101000a900460ff16905084565b6000600980549050905090565b60185481565b610d53612dab565b73ffffffffffffffffffffffffffffffffffffffff16610d71611908565b73ffffffffffffffffffffffffffffffffffffffff1614610dc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbe9061526a565b60405180910390fd5b6000600f8381548110610e03577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600402019050818160030160006101000a81548160ff021916908315150217905550505050565b610e45610e3f612dab565b82612e82565b610e84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7b9061532a565b60405180910390fd5b610e8f838383612f60565b505050565b60115481565b6002600b541415610ee0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed79061538a565b60405180910390fd5b6002600b819055503373ffffffffffffffffffffffffffffffffffffffff16610f0882611595565b73ffffffffffffffffffffffffffffffffffffffff1614610f5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f559061514a565b60405180910390fd5b60006012600060136000858152602001908152602001600020548152602001908152602001600020600083815260200190815260200160002090506000600f601360008581526020019081526020016000205481548110610fe8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060040201905060008260030154905081600201548110611047576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103e9061540a565b60405180910390fd5b61108961107661106560018660030154612e6c90919063ffffffff16565b6011546131bc90919063ffffffff16565b8460000154612e6c90919063ffffffff16565b4210156110cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c2906151ca565b60405180910390fd5b60006110e48460000154426131d290919063ffffffff16565b905060006110fd601154836131e890919063ffffffff16565b9050836002015481111561111357836002015490505b808560030181905550600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb3361119786896003015461116e919061568b565b61118989600201548b600201546131e890919063ffffffff16565b6131bc90919063ffffffff16565b6040518363ffffffff1660e01b81526004016111b4929190614fc4565b602060405180830381600087803b1580156111ce57600080fd5b505af11580156111e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112069190614195565b5050505050506001600b8190555050565b600061122283611691565b8210611263576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125a9061502a565b60405180910390fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b60105481565b6112ca612dab565b73ffffffffffffffffffffffffffffffffffffffff166112e8611908565b73ffffffffffffffffffffffffffffffffffffffff161461133e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113359061526a565b60405180910390fd5b8060178190555050565b61136383838360405180602001604052806000815250611f66565b505050565b6000611372610d38565b82106113b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113aa9061536a565b60405180910390fd5b600982815481106113ed577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b611407612dab565b73ffffffffffffffffffffffffffffffffffffffff16611425611908565b73ffffffffffffffffffffffffffffffffffffffff161461147b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114729061526a565b60405180910390fd5b600f6040518060800160405280868152602001858152602001848152602001831515815250908060018154018082558091505060019003906000526020600020906004020160009091909190915060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548160ff021916908315150217905550505050505050565b611517612dab565b73ffffffffffffffffffffffffffffffffffffffff16611535611908565b73ffffffffffffffffffffffffffffffffffffffff161461158b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115829061526a565b60405180910390fd5b8060118190555050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561163e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116359061520a565b60405180910390fd5b80915050919050565b60146020528060005260406000206000915090508060000154908060010154905082565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611702576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f9906151ea565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611751612dab565b73ffffffffffffffffffffffffffffffffffffffff1661176f611908565b73ffffffffffffffffffffffffffffffffffffffff16146117c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117bc9061526a565b60405180910390fd5b6117cf60006131fe565b565b6117d9612dab565b73ffffffffffffffffffffffffffffffffffffffff166117f7611908565b73ffffffffffffffffffffffffffffffffffffffff161461184d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118449061526a565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b81526004016118ac93929190614f41565b602060405180830381600087803b1580156118c657600080fd5b505af11580156118da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118fe9190614195565b5050565b60175481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606002805461194090615775565b80601f016020809104026020016040519081016040528092919081815260200182805461196c90615775565b80156119b95780601f1061198e576101008083540402835291602001916119b9565b820191906000526020600020905b81548152906001019060200180831161199c57829003601f168201915b5050505050905090565b6119cb612dab565b73ffffffffffffffffffffffffffffffffffffffff166119e9611908565b73ffffffffffffffffffffffffffffffffffffffff1614611a3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a369061526a565b60405180910390fd5b611a5481601054612e6c90919063ffffffff16565b601081905550600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401611ab7929190614fc4565b602060405180830381600087803b158015611ad157600080fd5b505af1158015611ae5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b099190614195565b5050565b611b15612dab565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7a906150ea565b60405180910390fd5b8060066000611b90612dab565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611c3d612dab565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611c829190614fed565b60405180910390a35050565b600080601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000015411611d19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d10906153ca565b60405180910390fd5b6000611d2433611691565b14611d64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5b906153ea565b60405180910390fd5b6000611d7d8260010154426131d290919063ffffffff16565b90506000611dd66301e13380611dc884611dba612710611dac6016548a600001546131bc90919063ffffffff16565b6131e890919063ffffffff16565b6131bc90919063ffffffff16565b6131e890919063ffffffff16565b9050601854811115611e1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e149061516a565b60405180910390fd5b6000611e36828560000154612e6c90919063ffffffff16565b9050601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008082016000905560018201600090555050611e9f826018546131d290919063ffffffff16565b601881905550600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401611f02929190614fc4565b602060405180830381600087803b158015611f1c57600080fd5b505af1158015611f30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f549190614195565b50600194505050505090565b60165481565b611f77611f71612dab565b83612e82565b611fb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fad9061532a565b60405180910390fd5b611fc2848484846132c2565b50505050565b611fd0612dab565b73ffffffffffffffffffffffffffffffffffffffff16611fee611908565b73ffffffffffffffffffffffffffffffffffffffff1614612044576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203b9061526a565b60405180910390fd5b806010541015612089576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120809061530a565b60405180910390fd5b61209e816010546131d290919063ffffffff16565b601081905550600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b815260040161210393929190614f41565b602060405180830381600087803b15801561211d57600080fd5b505af1158015612131573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121559190614195565b5050565b612161612dab565b73ffffffffffffffffffffffffffffffffffffffff1661217f611908565b73ffffffffffffffffffffffffffffffffffffffff16146121d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121cc9061526a565b60405180910390fd5b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b815260040161223493929190614f41565b602060405180830381600087803b15801561224e57600080fd5b505af1158015612262573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122869190614195565b5061229c81601854612e6c90919063ffffffff16565b60188190555050565b60606122b082612d3f565b6122ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e6906152aa565b60405180910390fd5b60006122f961331e565b905060008151116123195760405180602001604052806000815250612344565b8061232384613335565b604051602001612334929190614f02565b6040516020818303038152906040525b915050919050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905061249b82601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612e6c90919063ffffffff16565b6124b3600a83600001546131bc90919063ffffffff16565b10156124f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124eb906152ea565b60405180910390fd5b6000600f8481548110612530577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600402019050600015158160030160009054906101000a900460ff16151514612598576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258f9061512a565b60405180910390fd5b82816000015411156125df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125d6906151aa565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330866040518463ffffffff1660e01b815260040161263e93929190614f41565b602060405180830381600087803b15801561265857600080fd5b505af115801561266c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126909190614195565b506126a43361269f600c6134e2565b6134f0565b83601360006126b3600c6134e2565b81526020019081526020016000208190555060006012600086815260200190815260200160002060006126e6600c6134e2565b815260200190815260200160002090504281600001819055508381600101819055506127336127106127258460010154876131bc90919063ffffffff16565b6131e890919063ffffffff16565b81600201819055506000816003018190555061279784601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612e6c90919063ffffffff16565b601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506127e4600c6136be565b5050505050565b6127f3612dab565b73ffffffffffffffffffffffffffffffffffffffff16612811611908565b73ffffffffffffffffffffffffffffffffffffffff1614612867576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285e9061526a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156128d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128ce9061506a565b60405180910390fd5b6128e0816131fe565b50565b6012602052816000526040600020602052806000526040600020600091509150508060000154908060010154908060020154908060030154908060040160009054906101000a900460ff16905085565b3373ffffffffffffffffffffffffffffffffffffffff1661295382611595565b73ffffffffffffffffffffffffffffffffffffffff16146129a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a09061514a565b60405180910390fd5b60006012600060136000858152602001908152602001600020548152602001908152602001600020600083815260200190815260200160002090506000600f601360008581526020019081526020016000205481548110612a33577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906004020190508060020154826003015414612a8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a849061508a565b60405180910390fd5b600015158260040160009054906101000a900460ff16151514612ae5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612adc9061534a565b60405180910390fd5b60018260040160006101000a81548160ff021916908315150217905550612b0b836136d4565b612b618260010154601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546131d290919063ffffffff16565b601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb3384600101546040518363ffffffff1660e01b8152600401612c05929190614fc4565b602060405180830381600087803b158015612c1f57600080fd5b505af1158015612c33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c579190614195565b50505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d2857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612d385750612d37826137e5565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612e2683611595565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008183612e7a91906155aa565b905092915050565b6000612e8d82612d3f565b612ecc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ec39061510a565b60405180910390fd5b6000612ed783611595565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612f4657508373ffffffffffffffffffffffffffffffffffffffff16612f2e846109bc565b73ffffffffffffffffffffffffffffffffffffffff16145b80612f575750612f56818561234c565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612f8082611595565b73ffffffffffffffffffffffffffffffffffffffff1614612fd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fcd9061528a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613046576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161303d906150ca565b60405180910390fd5b61305183838361384f565b61305c600082612db3565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130ac919061568b565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461310391906155aa565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600081836131ca9190615631565b905092915050565b600081836131e0919061568b565b905092915050565b600081836131f69190615600565b905092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6132cd848484612f60565b6132d9848484846138cd565b613318576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161330f9061504a565b60405180910390fd5b50505050565b606060405180602001604052806000815250905090565b6060600082141561337d576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506134dd565b600082905060005b600082146133af578080613398906157a7565b915050600a826133a89190615600565b9150613385565b60008167ffffffffffffffff8111156133f1577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156134235781602001600182028036833780820191505090505b5090505b600085146134d65760018261343c919061568b565b9150600a8561344b91906157f0565b603061345791906155aa565b60f81b818381518110613493577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856134cf9190615600565b9450613427565b8093505050505b919050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613560576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135579061522a565b60405180910390fd5b61356981612d3f565b156135a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135a0906150aa565b60405180910390fd5b6135b56000838361384f565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461360591906155aa565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6001816000016000828254019250508190555050565b60006136df82611595565b90506136ed8160008461384f565b6136f8600083612db3565b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613748919061568b565b925050819055506003600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61385a838383613a64565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146138c857600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146138c757600080fd5b5b505050565b60006138ee8473ffffffffffffffffffffffffffffffffffffffff16613b78565b15613a57578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613917612dab565b8786866040518563ffffffff1660e01b81526004016139399493929190614f78565b602060405180830381600087803b15801561395357600080fd5b505af192505050801561398457506040513d601f19601f8201168201806040525081019061398191906141e7565b60015b613a07573d80600081146139b4576040519150601f19603f3d011682016040523d82523d6000602084013e6139b9565b606091505b506000815114156139ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139f69061504a565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613a5c565b600190505b949350505050565b613a6f838383613b8b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613ab257613aad81613b90565b613af1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613af057613aef8382613bd9565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613b3457613b2f81613d46565b613b73565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613b7257613b718282613e89565b5b5b505050565b600080823b905060008111915050919050565b505050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613be684611691565b613bf0919061568b565b9050600060086000848152602001908152602001600020549050818114613cd5576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600980549050613d5a919061568b565b90506000600a6000848152602001908152602001600020549050600060098381548110613db0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060098381548110613df8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a6000858152602001908152602001600020600090556009805480613e6d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613e9483611691565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b6000613f1b613f1684615537565b615506565b905082815260208101848484011115613f3357600080fd5b613f3e848285615733565b509392505050565b600081359050613f55816158ee565b92915050565b600081359050613f6a81615905565b92915050565b600081519050613f7f81615905565b92915050565b600081359050613f948161591c565b92915050565b600081519050613fa98161591c565b92915050565b600082601f830112613fc057600080fd5b8135613fd0848260208601613f08565b91505092915050565b600081359050613fe881615933565b92915050565b60006020828403121561400057600080fd5b600061400e84828501613f46565b91505092915050565b6000806040838503121561402a57600080fd5b600061403885828601613f46565b925050602061404985828601613f46565b9150509250929050565b60008060006060848603121561406857600080fd5b600061407686828701613f46565b935050602061408786828701613f46565b925050604061409886828701613fd9565b9150509250925092565b600080600080608085870312156140b857600080fd5b60006140c687828801613f46565b94505060206140d787828801613f46565b93505060406140e887828801613fd9565b925050606085013567ffffffffffffffff81111561410557600080fd5b61411187828801613faf565b91505092959194509250565b6000806040838503121561413057600080fd5b600061413e85828601613f46565b925050602061414f85828601613f5b565b9150509250929050565b6000806040838503121561416c57600080fd5b600061417a85828601613f46565b925050602061418b85828601613fd9565b9150509250929050565b6000602082840312156141a757600080fd5b60006141b584828501613f70565b91505092915050565b6000602082840312156141d057600080fd5b60006141de84828501613f85565b91505092915050565b6000602082840312156141f957600080fd5b600061420784828501613f9a565b91505092915050565b60006020828403121561422257600080fd5b600061423084828501613fd9565b91505092915050565b6000806040838503121561424c57600080fd5b600061425a85828601613fd9565b925050602061426b85828601613f5b565b9150509250929050565b6000806040838503121561428857600080fd5b600061429685828601613fd9565b92505060206142a785828601613fd9565b9150509250929050565b600080600080608085870312156142c757600080fd5b60006142d587828801613fd9565b94505060206142e687828801613fd9565b93505060406142f787828801613fd9565b925050606061430887828801613f5b565b91505092959194509250565b61431d816156bf565b82525050565b61432c816156d1565b82525050565b600061433d82615567565b614347818561557d565b9350614357818560208601615742565b614360816158dd565b840191505092915050565b600061437682615572565b614380818561558e565b9350614390818560208601615742565b614399816158dd565b840191505092915050565b60006143af82615572565b6143b9818561559f565b93506143c9818560208601615742565b80840191505092915050565b60006143e2602b8361558e565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b600061444860328361558e565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b60006144ae60268361558e565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614514601d8361558e565b91507f43616e2774207769746864726177206265666f726520756e6c6f636b2e0000006000830152602082019050919050565b6000614554601c8361558e565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b600061459460248361558e565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006145fa60198361558e565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b600061463a602c8361558e565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b60006146a0600f8361558e565b91507f506f6f6c206973206c6f636b65642100000000000000000000000000000000006000830152602082019050919050565b60006146e060118361558e565b91507f4e6f7420796f757220636f6e74726163740000000000000000000000000000006000830152602082019050919050565b600061472060388361558e565b91507f50656e64696e6720726577617264732069732067726561746572207468616e2060008301527f617661696c61626c65207265776172642062616c616e636500000000000000006020830152604082019050919050565b600061478660388361558e565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b60006147ec60228361558e565b91507f416d6f756e74206973206c657373207468616e206d696e696d756d20616d6f7560008301527f6e740000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061485260168361558e565b91507f5761697420756e74696c206e65787420636c61696d2e000000000000000000006000830152602082019050919050565b6000614892602a8361558e565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b60006148f860298361558e565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b600061495e60208361558e565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b600061499e602c8361558e565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614a0460208361558e565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614a4460298361558e565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614aaa602f8361558e565b91507f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008301527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020830152604082019050919050565b6000614b1060218361558e565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614b7660218361558e565b91507f4e6f7420656e6f75676820415653207374616b656420696e2074686520706f6f60008301527f6c000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614bdc60258361558e565b91507f576974686472617720616d6f756e7420736d616c6c6572207468616e2064657060008301527f6f7369742e0000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614c4260318361558e565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000614ca8600f8361558e565b91507f416c726561647920436c61696d656400000000000000000000000000000000006000830152602082019050919050565b6000614ce8602c8361558e565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b6000614d4e601f8361558e565b91507f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006000830152602082019050919050565b6000614d8e60298361558e565b91507f416d6f756e74206d7573742062652067726561746572207468616e207374616b60008301527f696e67416d6f756e7400000000000000000000000000000000000000000000006020830152604082019050919050565b6000614df460268361558e565b91507f596f752068617665206e6f7468696e67206465706f736974656420746f20776960008301527f74686472617700000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614e5a60258361558e565b91507f43616e7420776974686472617720796f75206861766520616e2061637469766560008301527f20626f6e640000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614ec060128361558e565b91507f45766572797468696e6720436c61696d656400000000000000000000000000006000830152602082019050919050565b614efc81615729565b82525050565b6000614f0e82856143a4565b9150614f1a82846143a4565b91508190509392505050565b6000602082019050614f3b6000830184614314565b92915050565b6000606082019050614f566000830186614314565b614f636020830185614314565b614f706040830184614ef3565b949350505050565b6000608082019050614f8d6000830187614314565b614f9a6020830186614314565b614fa76040830185614ef3565b8181036060830152614fb98184614332565b905095945050505050565b6000604082019050614fd96000830185614314565b614fe66020830184614ef3565b9392505050565b60006020820190506150026000830184614323565b92915050565b60006020820190508181036000830152615022818461436b565b905092915050565b60006020820190508181036000830152615043816143d5565b9050919050565b600060208201905081810360008301526150638161443b565b9050919050565b60006020820190508181036000830152615083816144a1565b9050919050565b600060208201905081810360008301526150a381614507565b9050919050565b600060208201905081810360008301526150c381614547565b9050919050565b600060208201905081810360008301526150e381614587565b9050919050565b60006020820190508181036000830152615103816145ed565b9050919050565b600060208201905081810360008301526151238161462d565b9050919050565b6000602082019050818103600083015261514381614693565b9050919050565b60006020820190508181036000830152615163816146d3565b9050919050565b6000602082019050818103600083015261518381614713565b9050919050565b600060208201905081810360008301526151a381614779565b9050919050565b600060208201905081810360008301526151c3816147df565b9050919050565b600060208201905081810360008301526151e381614845565b9050919050565b6000602082019050818103600083015261520381614885565b9050919050565b60006020820190508181036000830152615223816148eb565b9050919050565b6000602082019050818103600083015261524381614951565b9050919050565b6000602082019050818103600083015261526381614991565b9050919050565b60006020820190508181036000830152615283816149f7565b9050919050565b600060208201905081810360008301526152a381614a37565b9050919050565b600060208201905081810360008301526152c381614a9d565b9050919050565b600060208201905081810360008301526152e381614b03565b9050919050565b6000602082019050818103600083015261530381614b69565b9050919050565b6000602082019050818103600083015261532381614bcf565b9050919050565b6000602082019050818103600083015261534381614c35565b9050919050565b6000602082019050818103600083015261536381614c9b565b9050919050565b6000602082019050818103600083015261538381614cdb565b9050919050565b600060208201905081810360008301526153a381614d41565b9050919050565b600060208201905081810360008301526153c381614d81565b9050919050565b600060208201905081810360008301526153e381614de7565b9050919050565b6000602082019050818103600083015261540381614e4d565b9050919050565b6000602082019050818103600083015261542381614eb3565b9050919050565b600060208201905061543f6000830184614ef3565b92915050565b600060408201905061545a6000830185614ef3565b6154676020830184614ef3565b9392505050565b60006080820190506154836000830187614ef3565b6154906020830186614ef3565b61549d6040830185614ef3565b6154aa6060830184614323565b95945050505050565b600060a0820190506154c86000830188614ef3565b6154d56020830187614ef3565b6154e26040830186614ef3565b6154ef6060830185614ef3565b6154fc6080830184614323565b9695505050505050565b6000604051905081810181811067ffffffffffffffff8211171561552d5761552c6158ae565b5b8060405250919050565b600067ffffffffffffffff821115615552576155516158ae565b5b601f19601f8301169050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006155b582615729565b91506155c083615729565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156155f5576155f4615821565b5b828201905092915050565b600061560b82615729565b915061561683615729565b92508261562657615625615850565b5b828204905092915050565b600061563c82615729565b915061564783615729565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156156805761567f615821565b5b828202905092915050565b600061569682615729565b91506156a183615729565b9250828210156156b4576156b3615821565b5b828203905092915050565b60006156ca82615709565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015615760578082015181840152602081019050615745565b8381111561576f576000848401525b50505050565b6000600282049050600182168061578d57607f821691505b602082108114156157a1576157a061587f565b5b50919050565b60006157b282615729565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156157e5576157e4615821565b5b600182019050919050565b60006157fb82615729565b915061580683615729565b92508261581657615815615850565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b6158f7816156bf565b811461590257600080fd5b50565b61590e816156d1565b811461591957600080fd5b50565b615925816156dd565b811461593057600080fd5b50565b61593c81615729565b811461594757600080fd5b5056fea264697066735822122039e5f7763f4ca106f1899d108686b4750af0d736e1bdde1b1e0b1a1a8762d1bf64736f6c63430008000033

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

000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000094d916873b22c9c1b53695f1c002f78537b9b3b20000000000000000000000000000000000000000000000000000000000000011416c676f506f6f6c205969656c644e46540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004794e465400000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _stablecoin (address): 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
Arg [1] : name (string): AlgoPool YieldNFT
Arg [2] : symbol (string): yNFT
Arg [3] : _avscoin (address): 0x94d916873B22C9C1b53695f1c002F78537B9b3b2

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 00000000000000000000000094d916873b22c9c1b53695f1c002f78537b9b3b2
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [5] : 416c676f506f6f6c205969656c644e4654000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 794e465400000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.