ETH Price: $3,469.83 (-1.33%)
Gas: 5 Gwei

Token

Fountain of Fortune (FOF)
 

Overview

Max Total Supply

0 FOF

Holders

101

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
758.eth
Balance
1 FOF
0xD0F0b33573950C4fd9faD0Fc04B321996F958Dd6
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:
FountainOfFortune

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : FountainOfFortune.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./Standards/ERC721/ERC721.sol";
import "./Interfaces/IFountainOfFortune.sol";
import "./Interfaces/IWETH.sol";
import "./Utils/Counters.sol";
import "./Chainlink/VRFConsumerBase.sol";

/**
 * @title Fountain Of Fortune
 * @author Myobu Devs
 */
contract FountainOfFortune is
    VRFConsumerBase(
        0xf0d54349aDdcf704F77AE15b96510dEA15cb7952,
        0x514910771AF9Ca656af840dff83E8264EcF986CA
    ),
    IFountainOfFortune,
    ERC721("Fountain of Fortune", "FOF")
{
    /// @dev Using counters for lottery ID's
    using Counters for Counters.Counter;

    /**
     * @dev
     * _myobu: The Myobu token contract
     * _WETH: The WETH contract used to wrap ETH
     * _chainlinkKeyHash: The chainlink key hash
     * _chainlinkFee: The amount of link to pay for random numbers
     * _feeReceiver: Where all the ticket sale fees will be sent to
     * _tokenID: Used to mint NFTs, increases for each NFT minted
     * _lastClaimedTokenID: Used to store the last tokenID that fees were claimed for
     * _rewardClaimed: Used to store if the reward has been claimed for the current lottery, resets per lottery
     * _inClaimReward: Used to store if its waiting for an oracle response, so claimReward() can't be called multiple times
     * and waste all the LINK in the contract
     * _lotteryID: A counter of how much lotteries there have been, increases by 1 each new lottery
     * _lottery: A mapping of Lottery ID => The lottery struct that stores information
     * _ticketsBought: A mapping of Address => Lottery ID => Amount of tickets bought
     */
    IERC20 private _myobu;
    // solhint-disable-next-line
    IWETH private _WETH;
    bytes32 private _chainlinkKeyHash;
    uint256 private _chainlinkFee;
    address private _feeReceiver;
    uint256 private _tokenID;
    uint256 private _lastClaimedTokenID;
    bool private _rewardClaimed;
    bool private _inClaimReward;
    Counters.Counter private _lotteryID;
    mapping(uint256 => Lottery) private _lottery;
    mapping(address => mapping(uint256 => uint256)) private _ticketsBought;

    /**
     * @dev Modifier that requires that there is no lottery ongoing (ended)
     */
    modifier onlyEnded {
        require(
            _lottery[_lotteryID.current()].endTimestamp <= block.timestamp,
            "FoF: Lottery needs to have ended for this"
        );
        _;
    }

    /**
     * @dev Modifier that requires that there is a lottery in progress (on)
     */
    modifier onlyOn {
        require(
            _lottery[_lotteryID.current()].endTimestamp > block.timestamp,
            "FoF: No lottery is on right now"
        );
        _;
    }

    /**
     * @dev Defines the Myobu and WETH token contracts, the chainlink fee and keyhash
     */
    constructor() {
        _myobu = IERC20(0x75D12E4F91Df721faFCae4c6cD1d5280381370AC);
        _feeReceiver = address(0xdD5FD50DcB8Db2B41357f8E655b941A04b566Cb5);
        _WETH = IWETH(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);
        _chainlinkKeyHash = 0xAA77729D3466CA35AE8D28B3BBAC7CC36A5031EFDC430821C02BC31A238AF445;
        _chainlinkFee = 2e18;
        /// @dev So the owner can be able to start the lottery
        _rewardClaimed = true;
        /// @dev Start ID's at 1
        _tokenID = 1;
        _lastClaimedTokenID = 1;
    }

    /**
     * @dev Attempt to transfer ETH, if failed wrap the ETH and send WETH. So that the
     * transfer always succeeds
     * @param to: The address to send ETH to
     * @param amount: The amount to send
     */
    function transferOrWrapETH(address to, uint256 amount) internal {
        // solhint-disable-next-line
        if (!payable(to).send(amount)) {
            _WETH.deposit{value: amount}();
            _WETH.transfer(to, amount);
        }
    }

    /**
     * @dev Make the lottery tickets untransferable
     * So that nobody makes a new address, buys myobu and then sends the tickets to another address
     * And then sells the myobu. And if he wins the lottery, it won't count it.
     *
     * While it could transfer the ticketsBought, that would make it so anyone can buy tickets, and
     * send to someone else. And then if the person that it was sent to wins from their
     * old lottery tickets, they wouldn't get the reward because not enough myobu to cover
     * the new tickets that they have been sent
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256
    ) internal pure override {
        /// @dev Only mint or burn is allowed
        require(
            from == address(0) || to == address(0),
            "FoF: Cannot transfer tickets"
        );
    }

    /**
     * @return The amount of myobu that someone needs to hold to buy lottery tickets
     * @param user: The address
     * @param amount: The amount of tickets
     */
    function myobuNeededForTickets(address user, uint256 amount)
        public
        view
        override
        returns (uint256)
    {
        uint256 minimumMyobuBalance = _lottery[_lotteryID.current()]
        .minimumMyobuBalance;
        uint256 myobuNeededForEachTicket = _lottery[_lotteryID.current()]
        .myobuNeededForEachTicket;
        uint256 ticketsBought_ = _ticketsBought[user][_lotteryID.current()];
        uint256 totalTickets = (ticketsBought_ + amount) - 1;
        uint256 _myobuNeededForTickets = totalTickets * myobuNeededForEachTicket;
        return minimumMyobuBalance + _myobuNeededForTickets;
    }

    /**
     * @dev Buys tickets with ETH, requires that he has at least (myobuNeededForTickets()) myobu,
     * and then loops over how much tickets he needs and mints the ERC721 tokens
     * If there is too much ETH sent, refund unneeded ETH
     * Emits TicketsBought()
     */
    function buyTickets() external payable override onlyOn {
        uint256 ticketPrice = _lottery[_lotteryID.current()].ticketPrice;
        uint256 amountOfTickets = msg.value / ticketPrice;
        require(amountOfTickets != 0, "FoF: Not enough ETH");
        require(
            _myobu.balanceOf(_msgSender()) >=
                myobuNeededForTickets(_msgSender(), amountOfTickets),
            "FoF: You don't have enough $MYOBU"
        );
        uint256 neededETH = amountOfTickets * ticketPrice;
        /// @dev Refund unneeded eth
        if (msg.value > neededETH) {
            transferOrWrapETH(_msgSender(), msg.value - neededETH);
        }
        uint256 tokenID_ = _tokenID;
        _tokenID += amountOfTickets;
        _ticketsBought[_msgSender()][_lotteryID.current()] += amountOfTickets;
        for (uint256 i = tokenID_; i < amountOfTickets + tokenID_; i++) {
            _mint(_msgSender(), i);
        }
        emit TicketsBought(_msgSender(), amountOfTickets, ticketPrice);
    }

    /**
     * @dev Function to calculate how much fees that will be taken
     * @return The amount of fees that will be taken
     * @param currentTokenID: The latest tokenID
     * @param ticketPrice: The price of 1 ticket
     * @param ticketFee: The percentage of the ticket to take as a fee
     * @param lastClaimedTokenID_: The last token ID that fees have been claimed for
     */
    function calculateFees(
        uint256 currentTokenID,
        uint256 ticketPrice,
        uint256 ticketFee,
        uint256 lastClaimedTokenID_
    ) public pure override returns (uint256) {
        uint256 unclaimedTicketSales = currentTokenID - lastClaimedTokenID_;
        return ((unclaimedTicketSales * ticketPrice) * ticketFee) / 10000;
    }

    /**
     * @return The amount of unclaimed fees, can be claimed using claimFees()
     */
    function unclaimedFees() public view override returns (uint256) {
        return
            calculateFees(
                _tokenID,
                _lottery[_lotteryID.current()].ticketPrice,
                _lottery[_lotteryID.current()].ticketFee,
                _lastClaimedTokenID
            );
    }

    /**
     * @return The amount of fees taken for the current lottery
     */
    function claimedFees() public view override returns (uint256) {
        return
            calculateFees(
                _lastClaimedTokenID,
                _lottery[_lotteryID.current()].ticketPrice,
                _lottery[_lotteryID.current()].ticketFee,
                _lottery[_lotteryID.current()].startingTokenID
            );
    }

    /**
     * @dev Function that claims fees, saves gas so that its doesn't happen per ticket buy.
     * Emits FeesClaimed()
     */
    function claimFees() public override {
        uint256 fee = unclaimedFees();
        _lastClaimedTokenID = _tokenID;
        transferOrWrapETH(_feeReceiver, fee);
        emit FeesClaimed(fee, _msgSender());
    }

    /**
     * @dev Function that distributes the reward, requests for randomness, completes at fulfillRandomness()
     * If nobody bought a ticket, makes rewardsClaimed true and returns nothing
     * Checks for _inClaimReward so that its not called more than once, wasting LINK.
     */
    function claimReward()
        external
        override
        onlyEnded
        returns (bytes32 requestId)
    {
        require(!_rewardClaimed, "FoF: Reward already claimed");
        require(!_inClaimReward, "FoF: Reward is being claimed");
        /// @dev So it doesn't fail if nobody bought any tickets
        if (_lottery[_lotteryID.current()].startingTokenID == _tokenID) {
            _rewardClaimed = true;
            return 0;
        }
        require(
            LINK.balanceOf(address(this)) >= _chainlinkFee,
            "FoF: Put some LINK into the contract"
        );
        _inClaimReward = true;
        return requestRandomness(_chainlinkKeyHash, _chainlinkFee);
    }

    /**
     * @dev Gets a winner and sends him the jackpot, if he doesn't have myobu at the time of winning
     * send the _feeReceiver the jackpot
     * Emits LotteryWon();
     */
    function fulfillRandomness(bytes32, uint256 randomness) internal override {
        /// @dev Get a random number in range of the token IDs
        uint256 x = _lottery[_lotteryID.current()].startingTokenID;
        uint256 y = _tokenID;
        /// @dev The winning token ID
        uint256 resultInRange = x + (randomness % (y - x));
        address winner = ownerOf(resultInRange);
        uint256 amountWon = jackpot();
        uint256 myobuNeeded = myobuNeededForTickets(winner, 0);
        if (_myobu.balanceOf(winner) < myobuNeeded) {
            /// @dev He sold his myobu, give the jackpot to the fee receiver and deduct based on the percentage to keep
            uint256 amountToKeepForNextLottery = (amountWon *
                _lottery[_lotteryID.current()]
                .percentageToKeepOnNotEnoughMyobu) / 10000;
            amountWon -= amountToKeepForNextLottery;
            winner = _feeReceiver;
        }
        transferOrWrapETH(winner, amountWon);
        _rewardClaimed = true;
        delete _inClaimReward;
        emit LotteryWon(winner, amountWon, resultInRange);
    }

    /**
     * @dev Starts a new lottery, Can only be done by the owner.
     * Emits LotteryCreated()
     * @param lotteryLength: How long the lottery will be in seconds
     * @param ticketPrice: The price of a ticket in ETH
     * @param ticketFee: The percentage of the ticket price that is sent to the fee receiver
     * @param percentageToKeepForNextLottery: The percentage that will be kept as reward for the lottery after
     * @param minimumMyobuBalance: The minimum amount of myobu someone needs to buy tickets or get the reward
     * @param myobuNeededForEachTicket: The amount of myobu that someone needs to hold for each ticket they buy
     * @param percentageToKeepOnNotEnoughMyobu: If someone doesn't have myobu at the time of winning, this will define the
     * percentage of the reward that will be kept in the contract for the next lottery
     */
    function createLottery(
        uint256 lotteryLength,
        uint256 ticketPrice,
        uint256 ticketFee,
        uint256 percentageToKeepForNextLottery,
        uint256 minimumMyobuBalance,
        uint256 myobuNeededForEachTicket,
        uint256 percentageToKeepOnNotEnoughMyobu
    ) external onlyOwner onlyEnded {
        /// @dev Cannot execute it now, must be executed seperately
        require(
            _rewardClaimed,
            "FoF: Claim the reward before starting a new lottery"
        );
        require(
            percentageToKeepForNextLottery + ticketFee < 10000,
            "FoF: You can not take everything or more as a fee"
        );
        require(
            lotteryLength <= 2629744,
            "FoF: Must be under or equal to 1 month"
        );
        /// @dev Check if fees haven't been claimed, if they haven't claim them
        if (unclaimedFees() != 0) {
            claimFees();
        }
        /// @dev For the new lottery
        _lotteryID.increment();
        uint256 newLotteryID = _lotteryID.current();
        _lottery[newLotteryID] = Lottery(
            _tokenID,
            block.timestamp,
            block.timestamp + lotteryLength,
            ticketPrice,
            ticketFee,
            minimumMyobuBalance,
            percentageToKeepForNextLottery,
            myobuNeededForEachTicket,
            percentageToKeepOnNotEnoughMyobu
        );
        delete _rewardClaimed;
        emit LotteryCreated(
            newLotteryID,
            lotteryLength,
            ticketPrice,
            ticketFee,
            minimumMyobuBalance,
            percentageToKeepForNextLottery,
            myobuNeededForEachTicket,
            percentageToKeepOnNotEnoughMyobu
        );
    }

    /**
     * @dev Returns the amount of tokens to keep for the next lottery
     */
    function toNextLottery() public view override returns (uint256) {
        uint256 percentageToKeepForNextLottery = _lottery[_lotteryID.current()]
        .percentageToKeepForNextLottery;
        uint256 totalFees = claimedFees();
        return
            ((address(this).balance + totalFees) *
                percentageToKeepForNextLottery) / 10000;
    }

    /**
     * @return The current jackpot
     * @dev Balance - The percentage for the next lottery - Unclaimed Fees
     */
    function jackpot() public view override returns (uint256) {
        uint256 balance = address(this).balance;
        uint256 _unclaimedFees = unclaimedFees();
        uint256 amountToKeepForNextLottery = toNextLottery();
        return balance - amountToKeepForNextLottery - _unclaimedFees;
    }

    /**
     * @dev Function so that anyone can contribute to the jackpot when there is a lottery ongoing
     */
    // solhint-disable-next-line
    receive() external payable onlyOn {}

    /// @dev Getter functions : Start

    /**
     * @return The Myobu Token
     */
    function myobu() external view override returns (IERC20) {
        return _myobu;
    }

    /**
     * @return The amount of link to pay for a VRF call
     */
    function chainlinkFee() external view override returns (uint256) {
        return _chainlinkFee;
    }

    /**
     * @return Where all the ticket fees will be sent to
     */
    function feeReceiver() external view override returns (address) {
        return _feeReceiver;
    }

    /**
     * @return The current lottery ID
     */
    function currentLotteryID() external view override returns (uint256) {
        return _lotteryID.current();
    }

    /**
     * @dev The current token ID
     */
    function tokenID() external view override returns (uint256) {
        return _tokenID;
    }

    /**
     * @return The info of a lottery (A struct)
     * See the Lottery struct for more info
     * @param lotteryID: The ID of the lottery to get info for
     */
    function lottery(uint256 lotteryID)
        external
        view
        override
        returns (Lottery memory)
    {
        return _lottery[lotteryID];
    }

    /**
     * @return Returns if the reward has been claimed, can only be viewed when there is no
     * lottery in progress or will return false.
     */
    function rewardClaimed() external view override onlyEnded returns (bool) {
        return _rewardClaimed;
    }

    /**
     * @return The last token ID fees have been claimed on for the current lottery
     */
    function lastClaimedTokenID() external view override returns (uint256) {
        return _lastClaimedTokenID;
    }

    /**
     * @return The amount of tickets someone bought
     * @param user: The address
     * @param lotteryID: The ID of the lottery
     */
    function ticketsBought(address user, uint256 lotteryID)
        external
        view
        override
        returns (uint256)
    {
        return _ticketsBought[user][lotteryID];
    }

    /// @dev Getter functions : End

    /**
     * @dev If there is unneeded LINK in the contract, the owner can recover them using this function
     */
    function recoverLINK(uint256 amount) external onlyOwner {
        LINK.transfer(_msgSender(), amount);
    }

    /// @dev Optional functions, commented out by default

    /**
     * @dev In case the Myobu token gets changed later on, the owner can call this to change it
     * @param newMyobu: The new myobu token contract
    function setMyobu(IERC20 newMyobu) external onlyOwner {
        _myobu = newMyobu;
    }
     */


    /**
     * @dev Sets the address that receives all the fees
     * @param newFeeReceiver: The new address that will recieve all the fees
    function setFeeReceiver(address newFeeReceiver) external onlyOwner {
        _feeReceiver = newFeeReceiver;
    }
     */

    /**
     * @dev Changes the chainlink VRF oracle fee in case it needs to be changed later on
     * @param newChainlinkFee: The new amount of LINK to pay for a VRF Oracle call
     */
    function setChainlinkFee(uint256 newChainlinkFee) external onlyOwner {
        _chainlinkFee = newChainlinkFee;
    }

    /**
     * @dev Extends the duration of the current lottery and checks if its the new duration is over 1 month, reverts if it is
     * @param extraTime: The time in seconds to extend it by
     */
    function extendCurrentLottery(uint256 extraTime) external onlyOwner onlyOn {
        uint256 currentLotteryEnd = _lottery[_lotteryID.current()].endTimestamp;
        uint256 currentLotteryStart = _lottery[_lotteryID.current()]
        .startTimestamp;
        require(
            currentLotteryEnd + extraTime <= currentLotteryStart + 2629744,
            "FoF: Must be under or equal to 1 month"
        );
        _lottery[_lotteryID.current()].endTimestamp += extraTime;
    }
}

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

import "./interfaces/LinkTokenInterface.sol";

import "./VRFRequestIDBase.sol";

/** ****************************************************************************
 * @notice Interface for contracts using VRF randomness
 * *****************************************************************************
 * @dev PURPOSE
 *
 * @dev Reggie the Random Oracle (not his real job) wants to provide randomness
 * @dev to Vera the verifier in such a way that Vera can be sure he's not
 * @dev making his output up to suit himself. Reggie provides Vera a public key
 * @dev to which he knows the secret key. Each time Vera provides a seed to
 * @dev Reggie, he gives back a value which is computed completely
 * @dev deterministically from the seed and the secret key.
 *
 * @dev Reggie provides a proof by which Vera can verify that the output was
 * @dev correctly computed once Reggie tells it to her, but without that proof,
 * @dev the output is indistinguishable to her from a uniform random sample
 * @dev from the output space.
 *
 * @dev The purpose of this contract is to make it easy for unrelated contracts
 * @dev to talk to Vera the verifier about the work Reggie is doing, to provide
 * @dev simple access to a verifiable source of randomness.
 * *****************************************************************************
 * @dev USAGE
 *
 * @dev Calling contracts must inherit from VRFConsumerBase, and can
 * @dev initialize VRFConsumerBase's attributes in their constructor as
 * @dev shown:
 *
 * @dev   contract VRFConsumer {
 * @dev     constuctor(<other arguments>, address _vrfCoordinator, address _link)
 * @dev       VRFConsumerBase(_vrfCoordinator, _link) public {
 * @dev         <initialization with other arguments goes here>
 * @dev       }
 * @dev   }
 *
 * @dev The oracle will have given you an ID for the VRF keypair they have
 * @dev committed to (let's call it keyHash), and have told you the minimum LINK
 * @dev price for VRF service. Make sure your contract has sufficient LINK, and
 * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you
 * @dev want to generate randomness from.
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomness method.
 *
 * @dev The randomness argument to fulfillRandomness is the actual random value
 * @dev generated from your seed.
 *
 * @dev The requestId argument is generated from the keyHash and the seed by
 * @dev makeRequestId(keyHash, seed). If your contract could have concurrent
 * @dev requests open, you can use the requestId to track which seed is
 * @dev associated with which randomness. See VRFRequestIDBase.sol for more
 * @dev details. (See "SECURITY CONSIDERATIONS" for principles to keep in mind,
 * @dev if your contract could have multiple requests in flight simultaneously.)
 *
 * @dev Colliding `requestId`s are cryptographically impossible as long as seeds
 * @dev differ. (Which is critical to making unpredictable randomness! See the
 * @dev next section.)
 *
 * *****************************************************************************
 * @dev SECURITY CONSIDERATIONS
 *
 * @dev A method with the ability to call your fulfillRandomness method directly
 * @dev could spoof a VRF response with any random value, so it's critical that
 * @dev it cannot be directly called by anything other than this base contract
 * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method).
 *
 * @dev For your users to trust that your contract's random behavior is free
 * @dev from malicious interference, it's best if you can write it so that all
 * @dev behaviors implied by a VRF response are executed *during* your
 * @dev fulfillRandomness method. If your contract must store the response (or
 * @dev anything derived from it) and use it later, you must ensure that any
 * @dev user-significant behavior which depends on that stored value cannot be
 * @dev manipulated by a subsequent VRF request.
 *
 * @dev Similarly, both miners and the VRF oracle itself have some influence
 * @dev over the order in which VRF responses appear on the blockchain, so if
 * @dev your contract could have multiple VRF requests in flight simultaneously,
 * @dev you must ensure that the order in which the VRF responses arrive cannot
 * @dev be used to manipulate your contract's user-significant behavior.
 *
 * @dev Since the ultimate input to the VRF is mixed with the block hash of the
 * @dev block in which the request is made, user-provided seeds have no impact
 * @dev on its economic security properties. They are only included for API
 * @dev compatability with previous versions of this contract.
 *
 * @dev Since the block hash of the block which contains the requestRandomness
 * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful
 * @dev miner could, in principle, fork the blockchain to evict the block
 * @dev containing the request, forcing the request to be included in a
 * @dev different block with a different hash, and therefore a different input
 * @dev to the VRF. However, such an attack would incur a substantial economic
 * @dev cost. This cost scales with the number of blocks the VRF oracle waits
 * @dev until it calls responds to a request.
 */
abstract contract VRFConsumerBase is VRFRequestIDBase {

  /**
   * @notice fulfillRandomness handles the VRF response. Your contract must
   * @notice implement it. See "SECURITY CONSIDERATIONS" above for important
   * @notice principles to keep in mind when implementing your fulfillRandomness
   * @notice method.
   *
   * @dev VRFConsumerBase expects its subcontracts to have a method with this
   * @dev signature, and will call it once it has verified the proof
   * @dev associated with the randomness. (It is triggered via a call to
   * @dev rawFulfillRandomness, below.)
   *
   * @param requestId The Id initially returned by requestRandomness
   * @param randomness the VRF output
   */
  function fulfillRandomness(
    bytes32 requestId,
    uint256 randomness
  )
    internal
    virtual;

  /**
   * @dev In order to keep backwards compatibility we have kept the user
   * seed field around. We remove the use of it because given that the blockhash
   * enters later, it overrides whatever randomness the used seed provides.
   * Given that it adds no security, and can easily lead to misunderstandings,
   * we have removed it from usage and can now provide a simpler API.
   */
  uint256 constant private USER_SEED_PLACEHOLDER = 0;

  /**
   * @notice requestRandomness initiates a request for VRF output given _seed
   *
   * @dev The fulfillRandomness method receives the output, once it's provided
   * @dev by the Oracle, and verified by the vrfCoordinator.
   *
   * @dev The _keyHash must already be registered with the VRFCoordinator, and
   * @dev the _fee must exceed the fee specified during registration of the
   * @dev _keyHash.
   *
   * @dev The _seed parameter is vestigial, and is kept only for API
   * @dev compatibility with older versions. It can't *hurt* to mix in some of
   * @dev your own randomness, here, but it's not necessary because the VRF
   * @dev oracle will mix the hash of the block containing your request into the
   * @dev VRF seed it ultimately uses.
   *
   * @param _keyHash ID of public key against which randomness is generated
   * @param _fee The amount of LINK to send with the request
   *
   * @return requestId unique ID for this request
   *
   * @dev The returned requestId can be used to distinguish responses to
   * @dev concurrent requests. It is passed as the first argument to
   * @dev fulfillRandomness.
   */
  function requestRandomness(
    bytes32 _keyHash,
    uint256 _fee
  )
    internal
    returns (
      bytes32 requestId
    )
  {
    LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER));
    // This is the seed passed to VRFCoordinator. The oracle will mix this with
    // the hash of the block containing this request to obtain the seed/input
    // which is finally passed to the VRF cryptographic machinery.
    uint256 vRFSeed  = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]);
    // nonces[_keyHash] must stay in sync with
    // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above
    // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest).
    // This provides protection against the user repeating their input seed,
    // which would result in a predictable/duplicate output, if multiple such
    // requests appeared in the same block.
    nonces[_keyHash] = nonces[_keyHash] + 1;
    return makeRequestId(_keyHash, vRFSeed);
  }

  LinkTokenInterface immutable internal LINK;
  address immutable private vrfCoordinator;

  // Nonces for each VRF key from which randomness has been requested.
  //
  // Must stay in sync with VRFCoordinator[_keyHash][this]
  mapping(bytes32 /* keyHash */ => uint256 /* nonce */) private nonces;

  /**
   * @param _vrfCoordinator address of VRFCoordinator contract
   * @param _link address of LINK token contract
   *
   * @dev https://docs.chain.link/docs/link-token-contracts
   */
  constructor(
    address _vrfCoordinator,
    address _link
  ) {
    vrfCoordinator = _vrfCoordinator;
    LINK = LinkTokenInterface(_link);
  }

  // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
  // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
  // the origin of the call
  function rawFulfillRandomness(
    bytes32 requestId,
    uint256 randomness
  )
    external
  {
    require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill");
    fulfillRandomness(requestId, randomness);
  }
}

File 3 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 4 of 18 : IWETH.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC20.sol";

interface IWETH is IERC20 {
    function deposit() external payable;
    function withdraw(uint256 amount) external;
}

File 5 of 18 : IFountainOfFortune.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "../Chainlink/interfaces/LinkTokenInterface.sol";

/**
 * @title Myobu Lottery Interface
 * @author Myobu Devs
 */
interface IFountainOfFortune {
    /**
     * @dev Event emmited when tickets are bought
     * @param buyer: The address of the buyer
     * @param amount: The amount of tickets bought
     * @param price: The price of each ticket
     * */
    event TicketsBought(address buyer, uint256 amount, uint256 price);

    /**
     * @dev Event emmited when fees are claimed
     * @param amountClaimed: The amount of fees claimed in ETH
     * @param claimer: The address that claimed the fees
     */
    event FeesClaimed(uint256 amountClaimed, address claimer);

    /**
     * @dev Event emmited when a lottery is created
     * @param lotteryID: The ID of the lottery created
     * @param lotteryLength: How long the lottery will be in seconds
     * @param ticketPrice: The price of a ticket in ETH
     * @param ticketFee: The percentage of the ticket price that is sent to the fee receiver
     * @param minimumMyobuBalance: The minimum amount of Myobu someone needs to buy tickets or get rewarded
     * @param percentageToKeepForNextLottery: The percentage that will be kept as reward for the next lottery
     * @param myobuNeededForEachTicket: The amount of myobu that someone needs to hold for each ticket they buy
     * @param percentageToKeepOnNotEnoughMyobu: If someone doesn't have myobu at the time of winning, this will define the 
     * percentage of the reward that will be kept in the contract for the next lottery
     */
    event LotteryCreated(
        uint256 lotteryID,
        uint256 lotteryLength,
        uint256 ticketPrice,
        uint256 ticketFee,
        uint256 minimumMyobuBalance,
        uint256 percentageToKeepForNextLottery,
        uint256 myobuNeededForEachTicket,
        uint256 percentageToKeepOnNotEnoughMyobu
    );

    /**
     * @dev Event emmited when the someone wins the lottery
     * @param winner: The address of the the lottery winner
     * @param amountWon: The amount of ETH won
     * @param tokenID: The winning tokenID
     */
    event LotteryWon(address winner, uint256 amountWon, uint256 tokenID);

    /**
     * @dev Event emitted when the lottery is extended
     * @param extendedBy: The amount of seconds the lottery is extended by
     */
    event LotteryExtended(uint256 extendedBy);

    /**
     * @dev Struct of a lottery
     * @param startingTokenID: The token ID that the lottery starts at
     * @param startTimestamp: A timestamp of when the lottery started
     * @param endTimestamp: A timestamp of when the lottery will end
     * @param ticketPrice: The price of a ticket in ETH
     * @param ticketFee: The percentage of ticket sales that go to the _feeReceiver
     * @param minimumMyobuBalance: The minimum amount of myobu you need to buy tickets
     * @param percentageToKeepForNextLottery: The percentage of the jackpot to keep for the next lottery
     * @param myobuNeededForEachTicket: The amount of myobu that someone needs to hold for each ticket they buy
     * @param percentageToKeepOnNotEnoughMyobu: If someone doesn't have myobu at the time of winning, this will define the 
     * percentage of the reward that will be kept in the contract for the next lottery
     */
    struct Lottery {
        uint256 startingTokenID;
        uint256 startTimestamp;
        uint256 endTimestamp;
        uint256 ticketPrice;
        uint256 ticketFee;
        uint256 minimumMyobuBalance;
        uint256 percentageToKeepForNextLottery;
        uint256 myobuNeededForEachTicket;
        uint256 percentageToKeepOnNotEnoughMyobu;
    }

    /**
     * @dev Buys lottery tickets with ETH
     */
    function buyTickets() external payable;

    function ticketsBought(address user, uint256 lotteryID)
        external
        view
        returns (uint256);

    /**
     * @return The amount of unclaimed fees, can be claimed using claimFees()
     */
    function unclaimedFees() external view returns (uint256);

    /**
     * @return The amount of fees claimed for the current lottery
     */
    function claimedFees() external view returns (uint256);

    /**
     * @dev Function to calculate the fees that will be taken
     * @return The amount of fees that will be taken
     * @param currentTokenID: The latest tokenID
     * @param ticketPrice: The price of 1 ticket
     * @param ticketFee: The percentage of the ticket to take as a fee
     * @param lastClaimedTokenID_: The last token ID that fees have been claimed for
     */
    function calculateFees(
        uint256 currentTokenID,
        uint256 ticketPrice,
        uint256 ticketFee,
        uint256 lastClaimedTokenID_
    ) external pure returns (uint256);

    /**
     * @dev Function that claims fees and sends to _feeReceiver.
     */
    function claimFees() external;

    /**
     * @return The amount of myobu that someone needs to hold to buy lottery tickets
     * @param user: The address
     * @param amount: The amount of tickets
     */
    function myobuNeededForTickets(address user, uint256 amount)
        external
        view
        returns (uint256);

    /**
     * @dev Function that gets a random winner and sends the reward
     */
    function claimReward() external returns (bytes32 requestId);

    /**
     * @dev Returns the amount of tokens to keep for the next lottery
     */
    function toNextLottery() external view returns (uint256);

    /**
     * @return The current jackpot
     */
    function jackpot() external view returns (uint256);

    /**
     * @return The current token being used
     */
    function myobu() external view returns (IERC20);

    /**
     * @return The amount of link to pay
     */
    function chainlinkFee() external view returns (uint256);

    /**
     * @return Where all the ticket sale fees will be sent to
     */
    function feeReceiver() external view returns (address);

    /**
     * @return A counter of how much lotteries there have been, increases by 1 each new lottery.
     */
    function currentLotteryID() external view returns (uint256);

    /**
     * @return The current token ID
     */
    function tokenID() external view returns (uint256);

    /**
     * @return The info of a lottery (The Lottery Struct)
     */
    function lottery(uint256 lotteryID) external view returns (Lottery memory);

    /**
     * @return Returns if the reward has been claimed for the current lottery
     */
    function rewardClaimed() external view returns (bool);

    /**
     * @return The last tokenID that fees have been claimed on for the current lottery
     */
    function lastClaimedTokenID() external view returns (uint256);
}

File 6 of 18 : ERC721.sol
// SPDX-License-Identifier: MIT
/// @dev Same openzeppelin contract but imported ownable here
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../Utils/Address.sol";
import "../../Utils/Ownable.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}.
 */
abstract contract ERC721 is Ownable, 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(to).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 7 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 8 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 9 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./Context.sol";

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

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

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

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

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

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

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private 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 11 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 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 : 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 15 of 18 : LinkTokenInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface LinkTokenInterface {

  function allowance(
    address owner,
    address spender
  )
    external
    view
    returns (
      uint256 remaining
    );

  function approve(
    address spender,
    uint256 value
  )
    external
    returns (
      bool success
    );

  function balanceOf(
    address owner
  )
    external
    view
    returns (
      uint256 balance
    );

  function decimals()
    external
    view
    returns (
      uint8 decimalPlaces
    );

  function decreaseApproval(
    address spender,
    uint256 addedValue
  )
    external
    returns (
      bool success
    );

  function increaseApproval(
    address spender,
    uint256 subtractedValue
  ) external;

  function name()
    external
    view
    returns (
      string memory tokenName
    );

  function symbol()
    external
    view
    returns (
      string memory tokenSymbol
    );

  function totalSupply()
    external
    view
    returns (
      uint256 totalTokensIssued
    );

  function transfer(
    address to,
    uint256 value
  )
    external
    returns (
      bool success
    );

  function transferAndCall(
    address to,
    uint256 value,
    bytes calldata data
  )
    external
    returns (
      bool success
    );

  function transferFrom(
    address from,
    address to,
    uint256 value
  )
    external
    returns (
      bool success
    );

}

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

contract VRFRequestIDBase {

  /**
   * @notice returns the seed which is actually input to the VRF coordinator
   *
   * @dev To prevent repetition of VRF output due to repetition of the
   * @dev user-supplied seed, that seed is combined in a hash with the
   * @dev user-specific nonce, and the address of the consuming contract. The
   * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in
   * @dev the final seed, but the nonce does protect against repetition in
   * @dev requests which are included in a single block.
   *
   * @param _userSeed VRF seed input provided by user
   * @param _requester Address of the requesting contract
   * @param _nonce User-specific nonce at the time of the request
   */
  function makeVRFInputSeed(
    bytes32 _keyHash,
    uint256 _userSeed,
    address _requester,
    uint256 _nonce
  )
    internal
    pure
    returns (
      uint256
    )
  {
    return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce)));
  }

  /**
   * @notice Returns the id for this request
   * @param _keyHash The serviceAgreement ID to be used for this request
   * @param _vRFInputSeed The seed to be passed directly to the VRF
   * @return The id for this request
   *
   * @dev Note that _vRFInputSeed is not the seed passed by the consuming
   * @dev contract, but the one generated by makeVRFInputSeed
   */
  function makeRequestId(
    bytes32 _keyHash,
    uint256 _vRFInputSeed
  )
    internal
    pure
    returns (
      bytes32
    )
  {
    return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed));
  }
}

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

pragma solidity ^0.8.0;

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

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

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountClaimed","type":"uint256"},{"indexed":false,"internalType":"address","name":"claimer","type":"address"}],"name":"FeesClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"lotteryID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lotteryLength","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ticketPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ticketFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minimumMyobuBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"percentageToKeepForNextLottery","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"myobuNeededForEachTicket","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"percentageToKeepOnNotEnoughMyobu","type":"uint256"}],"name":"LotteryCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"extendedBy","type":"uint256"}],"name":"LotteryExtended","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"winner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountWon","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"LotteryWon","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"TicketsBought","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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTickets","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"currentTokenID","type":"uint256"},{"internalType":"uint256","name":"ticketPrice","type":"uint256"},{"internalType":"uint256","name":"ticketFee","type":"uint256"},{"internalType":"uint256","name":"lastClaimedTokenID_","type":"uint256"}],"name":"calculateFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"chainlinkFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimReward","outputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimedFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"lotteryLength","type":"uint256"},{"internalType":"uint256","name":"ticketPrice","type":"uint256"},{"internalType":"uint256","name":"ticketFee","type":"uint256"},{"internalType":"uint256","name":"percentageToKeepForNextLottery","type":"uint256"},{"internalType":"uint256","name":"minimumMyobuBalance","type":"uint256"},{"internalType":"uint256","name":"myobuNeededForEachTicket","type":"uint256"},{"internalType":"uint256","name":"percentageToKeepOnNotEnoughMyobu","type":"uint256"}],"name":"createLottery","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentLotteryID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"extraTime","type":"uint256"}],"name":"extendCurrentLottery","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"jackpot","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastClaimedTokenID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"lotteryID","type":"uint256"}],"name":"lottery","outputs":[{"components":[{"internalType":"uint256","name":"startingTokenID","type":"uint256"},{"internalType":"uint256","name":"startTimestamp","type":"uint256"},{"internalType":"uint256","name":"endTimestamp","type":"uint256"},{"internalType":"uint256","name":"ticketPrice","type":"uint256"},{"internalType":"uint256","name":"ticketFee","type":"uint256"},{"internalType":"uint256","name":"minimumMyobuBalance","type":"uint256"},{"internalType":"uint256","name":"percentageToKeepForNextLottery","type":"uint256"},{"internalType":"uint256","name":"myobuNeededForEachTicket","type":"uint256"},{"internalType":"uint256","name":"percentageToKeepOnNotEnoughMyobu","type":"uint256"}],"internalType":"struct IFountainOfFortune.Lottery","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"myobu","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"myobuNeededForTickets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverLINK","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"newChainlinkFee","type":"uint256"}],"name":"setChainlinkFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"lotteryID","type":"uint256"}],"name":"ticketsBought","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toNextLottery","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenID","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":"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":"unclaimedFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c06040523480156200001157600080fd5b506040518060400160405280601381526020017f466f756e7461696e206f6620466f7274756e65000000000000000000000000008152506040518060400160405280600381526020017f464f46000000000000000000000000000000000000000000000000000000000081525073f0d54349addcf704f77ae15b96510dea15cb795273514910771af9ca656af840dff83e8264ecf986ca8173ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250505050620001386200012c620002d560201b60201c565b620002dd60201b60201c565b816002908051906020019062000150929190620003a3565b50806003908051906020019062000169929190620003a3565b5050507375d12e4f91df721fafcae4c6cd1d5280381370ac600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073dd5fd50dcb8db2b41357f8e655b941a04b566cb5600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af44560001b600a81905550671bc16d674ec80000600b819055506001600f60006101000a81548160ff0219169083151502179055506001600d819055506001600e81905550620004b8565b600033905090565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620003b19062000453565b90600052602060002090601f016020900481019282620003d5576000855562000421565b82601f10620003f057805160ff191683800117855562000421565b8280016001018555821562000421579182015b828111156200042057825182559160200191906001019062000403565b5b50905062000430919062000434565b5090565b5b808211156200044f57600081600090555060010162000435565b5090565b600060028204905060018216806200046c57607f821691505b6020821081141562000483576200048262000489565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60805160601c60a05160601c615455620004f9600039600081816116980152612d9b01526000818161129301528181611e370152612d5f01526154556000f3fe6080604052600436106102345760003560e01c8063734d82871161012e578063a894a724116100ab578063c81998261161006f578063c8199826146108bf578063c87b56dd146108c9578063d294f09314610906578063e985e9c51461091d578063f2fde38b1461095a5761029c565b8063a894a724146107da578063a984c35614610817578063b3f0067414610840578063b88a802f1461086b578063b88d4fde146108965761029c565b8063a22cb465116100f2578063a22cb465146106f5578063a284673f1461071e578063a2a3045614610747578063a57d156014610772578063a5c42ef1146107af5761029c565b8063734d8287146106205780637ac98be11461064b5780638da5cb5b1461067657806394985ddd146106a157806395d89b41146106ca5761029c565b806338b014ca116101bc5780636b31ee01116101805780636b31ee01146105275780636b397497146105525780636c07e3e61461058f57806370a08231146105cc578063715018a6146106095761029c565b806338b014ca1461044257806342842e0e1461046d5780634a25d2b1146104965780636352211e146104c15780636a8a46a0146104fe5761029c565b8063095ea7b311610203578063095ea7b3146103715780630c21e6e31461039a5780631ede0a66146103c557806323b872dd146103f0578063323768c9146104195761029c565b806301b62b78146102a157806301ffc9a7146102cc57806306fdde0314610309578063081812fc146103345761029c565b3661029c5742601160006102486010610983565b8152602001908152602001600020600201541161029a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161029190614456565b60405180910390fd5b005b600080fd5b3480156102ad57600080fd5b506102b6610991565b6040516102c391906142f5565b60405180910390f35b3480156102d857600080fd5b506102f360048036038101906102ee9190613a45565b610a0a565b60405161030091906142f5565b60405180910390f35b34801561031557600080fd5b5061031e610aec565b60405161032b91906143b4565b60405180910390f35b34801561034057600080fd5b5061035b60048036038101906103569190613a97565b610b7e565b60405161036891906141f0565b60405180910390f35b34801561037d57600080fd5b50610398600480360381019061039391906139a4565b610c03565b005b3480156103a657600080fd5b506103af610d1b565b6040516103bc9190614772565b60405180910390f35b3480156103d157600080fd5b506103da610d8d565b6040516103e79190614772565b60405180910390f35b3480156103fc57600080fd5b506104176004803603810190610412919061389e565b610d97565b005b34801561042557600080fd5b50610440600480360381019061043b9190613b4c565b610df7565b005b34801561044e57600080fd5b50610457611108565b6040516104649190614772565b60405180910390f35b34801561047957600080fd5b50610494600480360381019061048f919061389e565b611119565b005b3480156104a257600080fd5b506104ab611139565b6040516104b89190614399565b60405180910390f35b3480156104cd57600080fd5b506104e860048036038101906104e39190613a97565b611163565b6040516104f591906141f0565b60405180910390f35b34801561050a57600080fd5b5061052560048036038101906105209190613a97565b611215565b005b34801561053357600080fd5b5061053c611349565b6040516105499190614772565b60405180910390f35b34801561055e57600080fd5b50610579600480360381019061057491906139a4565b611386565b6040516105869190614772565b60405180910390f35b34801561059b57600080fd5b506105b660048036038101906105b191906139a4565b611472565b6040516105c39190614772565b60405180910390f35b3480156105d857600080fd5b506105f360048036038101906105ee9190613839565b6114cd565b6040516106009190614772565b60405180910390f35b34801561061557600080fd5b5061061e611585565b005b34801561062c57600080fd5b5061063561160d565b6040516106429190614772565b60405180910390f35b34801561065757600080fd5b50610660611662565b60405161066d9190614772565b60405180910390f35b34801561068257600080fd5b5061068b61166c565b60405161069891906141f0565b60405180910390f35b3480156106ad57600080fd5b506106c860048036038101906106c39190613a09565b611696565b005b3480156106d657600080fd5b506106df611732565b6040516106ec91906143b4565b60405180910390f35b34801561070157600080fd5b5061071c60048036038101906107179190613968565b6117c4565b005b34801561072a57600080fd5b5061074560048036038101906107409190613a97565b611945565b005b34801561075357600080fd5b5061075c6119cb565b6040516107699190614772565b60405180910390f35b34801561077e57600080fd5b5061079960048036038101906107949190613a97565b611a27565b6040516107a69190614756565b60405180910390f35b3480156107bb57600080fd5b506107c4611aaf565b6040516107d19190614772565b60405180910390f35b3480156107e657600080fd5b5061080160048036038101906107fc9190613ae9565b611ab9565b60405161080e9190614772565b60405180910390f35b34801561082357600080fd5b5061083e60048036038101906108399190613a97565b611af9565b005b34801561084c57600080fd5b50610855611cb5565b60405161086291906141f0565b60405180910390f35b34801561087757600080fd5b50610880611cdf565b60405161088d9190614310565b60405180910390f35b3480156108a257600080fd5b506108bd60048036038101906108b891906138ed565b611f4e565b005b6108c7611fb0565b005b3480156108d557600080fd5b506108f060048036038101906108eb9190613a97565b6122df565b6040516108fd91906143b4565b60405180910390f35b34801561091257600080fd5b5061091b612386565b005b34801561092957600080fd5b50610944600480360381019061093f9190613862565b61240a565b60405161095191906142f5565b60405180910390f35b34801561096657600080fd5b50610981600480360381019061097c9190613839565b61249e565b005b600081600001549050919050565b600042601160006109a26010610983565b81526020019081526020016000206002015411156109f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ec906144f6565b60405180910390fd5b600f60009054906101000a900460ff16905090565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610ad557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610ae55750610ae482612596565b5b9050919050565b606060028054610afb90614ac6565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2790614ac6565b8015610b745780601f10610b4957610100808354040283529160200191610b74565b820191906000526020600020905b815481529060010190602001808311610b5757829003601f168201915b5050505050905090565b6000610b8982612600565b610bc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bbf90614616565b60405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c0e82611163565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c76906146d6565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c9e61266c565b73ffffffffffffffffffffffffffffffffffffffff161480610ccd5750610ccc81610cc761266c565b61240a565b5b610d0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0390614556565b60405180910390fd5b610d168383612674565b505050565b6000610d88600e5460116000610d316010610983565b81526020019081526020016000206003015460116000610d516010610983565b81526020019081526020016000206004015460116000610d716010610983565b815260200190815260200160002060000154611ab9565b905090565b6000600e54905090565b610da8610da261266c565b8261272d565b610de7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dde906146f6565b60405180910390fd5b610df283838361280b565b505050565b610dff61266c565b73ffffffffffffffffffffffffffffffffffffffff16610e1d61166c565b73ffffffffffffffffffffffffffffffffffffffff1614610e73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6a90614636565b60405180910390fd5b4260116000610e826010610983565b8152602001908152602001600020600201541115610ed5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ecc906144f6565b60405180910390fd5b600f60009054906101000a900460ff16610f24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1b906145b6565b60405180910390fd5b6127108585610f3391906148cd565b10610f73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6a906145d6565b60405180910390fd5b62282070871115610fb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb090614676565b60405180910390fd5b6000610fc361160d565b14610fd157610fd0612386565b5b610fdb6010612a67565b6000610fe76010610983565b9050604051806101200160405280600d548152602001428152602001894261100f91906148cd565b81526020018881526020018781526020018581526020018681526020018481526020018381525060116000838152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e082015181600701556101008201518160080155905050600f60006101000a81549060ff02191690557fe03fed3157c750504431f802bfcbfbb868bb76f5aa7e16e11153c3b3de5fe87981898989888a89896040516110f69897969594939291906147b6565b60405180910390a15050505050505050565b60006111146010610983565b905090565b61113483838360405180602001604052806000815250611f4e565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000806004600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561120c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120390614596565b60405180910390fd5b80915050919050565b61121d61266c565b73ffffffffffffffffffffffffffffffffffffffff1661123b61166c565b73ffffffffffffffffffffffffffffffffffffffff1614611291576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128890614636565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6112d561266c565b836040518363ffffffff1660e01b81526004016112f3929190614257565b602060405180830381600087803b15801561130d57600080fd5b505af1158015611321573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061134591906139e0565b5050565b600080479050600061135961160d565b905060006113656119cb565b905081818461137491906149ae565b61137e91906149ae565b935050505090565b600080601160006113976010610983565b81526020019081526020016000206005015490506000601160006113bb6010610983565b81526020019081526020016000206007015490506000601260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061141c6010610983565b815260200190815260200160002054905060006001868361143d91906148cd565b61144791906149ae565b9050600083826114579190614954565b9050808561146591906148cd565b9550505050505092915050565b6000601260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561153e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153590614576565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61158d61266c565b73ffffffffffffffffffffffffffffffffffffffff166115ab61166c565b73ffffffffffffffffffffffffffffffffffffffff1614611601576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f890614636565b60405180910390fd5b61160b6000612a7d565b565b600061165d600d54601160006116236010610983565b815260200190815260200160002060030154601160006116436010610983565b815260200190815260200160002060040154600e54611ab9565b905090565b6000600b54905090565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611724576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171b906146b6565b60405180910390fd5b61172e8282612b43565b5050565b60606003805461174190614ac6565b80601f016020809104026020016040519081016040528092919081815260200182805461176d90614ac6565b80156117ba5780601f1061178f576101008083540402835291602001916117ba565b820191906000526020600020905b81548152906001019060200180831161179d57829003601f168201915b5050505050905090565b6117cc61266c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561183a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183190614496565b60405180910390fd5b806007600061184761266c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166118f461266c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161193991906142f5565b60405180910390a35050565b61194d61266c565b73ffffffffffffffffffffffffffffffffffffffff1661196b61166c565b73ffffffffffffffffffffffffffffffffffffffff16146119c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b890614636565b60405180910390fd5b80600b8190555050565b600080601160006119dc6010610983565b815260200190815260200160002060060154905060006119fa610d1b565b9050612710828247611a0c91906148cd565b611a169190614954565b611a209190614923565b9250505090565b611a2f6136dd565b601160008381526020019081526020016000206040518061012001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815260200160068201548152602001600782015481526020016008820154815250509050919050565b6000600d54905090565b6000808286611ac891906149ae565b9050612710848683611ada9190614954565b611ae49190614954565b611aee9190614923565b915050949350505050565b611b0161266c565b73ffffffffffffffffffffffffffffffffffffffff16611b1f61166c565b73ffffffffffffffffffffffffffffffffffffffff1614611b75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6c90614636565b60405180910390fd5b4260116000611b846010610983565b81526020019081526020016000206002015411611bd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bcd90614456565b60405180910390fd5b600060116000611be66010610983565b8152602001908152602001600020600201549050600060116000611c0a6010610983565b81526020019081526020016000206001015490506228207081611c2d91906148cd565b8383611c3991906148cd565b1115611c7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7190614676565b60405180910390fd5b8260116000611c896010610983565b81526020019081526020016000206002016000828254611ca991906148cd565b92505081905550505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60004260116000611cf06010610983565b8152602001908152602001600020600201541115611d43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3a906144f6565b60405180910390fd5b600f60009054906101000a900460ff1615611d93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8a90614536565b60405180910390fd5b600f60019054906101000a900460ff1615611de3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dda90614716565b60405180910390fd5b600d5460116000611df46010610983565b8152602001908152602001600020600001541415611e32576001600f60006101000a81548160ff0219169083151502179055506000801b9050611f4b565b600b547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611e8e91906141f0565b60206040518083038186803b158015611ea657600080fd5b505afa158015611eba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ede9190613ac0565b1015611f1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1690614516565b60405180910390fd5b6001600f60016101000a81548160ff021916908315150217905550611f48600a54600b54612d5b565b90505b90565b611f5f611f5961266c565b8361272d565b611f9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f95906146f6565b60405180910390fd5b611faa84848484612eba565b50505050565b4260116000611fbf6010610983565b81526020019081526020016000206002015411612011576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200890614456565b60405180910390fd5b6000601160006120216010610983565b8152602001908152602001600020600301549050600081346120439190614923565b90506000811415612089576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612080906143d6565b60405180910390fd5b61209a61209461266c565b82611386565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a082316120e061266c565b6040518263ffffffff1660e01b81526004016120fc91906141f0565b60206040518083038186803b15801561211457600080fd5b505afa158015612128573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061214c9190613ac0565b101561218d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612184906144b6565b60405180910390fd5b6000828261219b9190614954565b9050803411156121c2576121c16121b061266c565b82346121bc91906149ae565b612f16565b5b6000600d54905082600d60008282546121db91906148cd565b9250508190555082601260006121ef61266c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006122356010610983565b8152602001908152602001600020600082825461225291906148cd565b9250508190555060008190505b818461226b91906148cd565b8110156122965761228361227d61266c565b82613087565b808061228e90614b29565b91505061225f565b507fb0ebd247b49b0f0079dfe3093ede3e56ddb43164363f38bf1576023c076ab4f26122c061266c565b84866040516122d1939291906142be565b60405180910390a150505050565b60606122ea82612600565b612329576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232090614696565b60405180910390fd5b6000612333613255565b90506000815111612353576040518060200160405280600081525061237e565b8061235d8461326c565b60405160200161236e9291906141cc565b6040516020818303038152906040525b915050919050565b600061239061160d565b9050600d54600e819055506123c7600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682612f16565b7ff8c86b1d7444df9b0cdd6af6e83356a81c75e1ad49cc19ec84347b5fa6ddeb33816123f161266c565b6040516123ff92919061478d565b60405180910390a150565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6124a661266c565b73ffffffffffffffffffffffffffffffffffffffff166124c461166c565b73ffffffffffffffffffffffffffffffffffffffff161461251a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251190614636565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561258a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258190614416565b60405180910390fd5b61259381612a7d565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166004600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816006600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166126e783611163565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061273882612600565b612777576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161276e906144d6565b60405180910390fd5b600061278283611163565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806127f157508373ffffffffffffffffffffffffffffffffffffffff166127d984610b7e565b73ffffffffffffffffffffffffffffffffffffffff16145b806128025750612801818561240a565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661282b82611163565b73ffffffffffffffffffffffffffffffffffffffff1614612881576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161287890614656565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156128f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e890614476565b60405180910390fd5b6128fc838383613419565b612907600082612674565b6001600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461295791906149ae565b925050819055506001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129ae91906148cd565b92505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6001816000016000828254019250508190555050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600060116000612b536010610983565b81526020019081526020016000206000015490506000600d54905060008282612b7c91906149ae565b84612b879190614b86565b83612b9291906148cd565b90506000612b9f82611163565b90506000612bab611349565b90506000612bba836000611386565b905080600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b8152600401612c1891906141f0565b60206040518083038186803b158015612c3057600080fd5b505afa158015612c44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c689190613ac0565b1015612cdf57600061271060116000612c816010610983565b81526020019081526020016000206008015484612c9e9190614954565b612ca89190614923565b90508083612cb691906149ae565b9250600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169350505b612ce98383612f16565b6001600f60006101000a81548160ff021916908315150217905550600f60016101000a81549060ff02191690557fa87bed6ccaf5dd569c5a881130f4bc9c9b604a4909d2982cffe0f37caca6db47838386604051612d49939291906142be565b60405180910390a15050505050505050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001612dcf92919061432b565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401612dfc93929190614280565b602060405180830381600087803b158015612e1657600080fd5b505af1158015612e2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e4e91906139e0565b506000612e7084600030600080898152602001908152602001600020546134c4565b9050600160008086815260200190815260200160002054612e9191906148cd565b60008086815260200190815260200160002081905550612eb18482613500565b91505092915050565b612ec584848461280b565b612ed184848484613533565b612f10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f07906143f6565b60405180910390fd5b50505050565b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505061308357600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015612fb957600080fd5b505af1158015612fcd573d6000803e3d6000fd5b5050505050600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b815260040161302f929190614257565b602060405180830381600087803b15801561304957600080fd5b505af115801561305d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061308191906139e0565b505b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156130f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130ee906145f6565b60405180910390fd5b61310081612600565b15613140576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161313790614436565b60405180910390fd5b61314c60008383613419565b6001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461319c91906148cd565b92505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b606060405180602001604052806000815250905090565b606060008214156132b4576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613414565b600082905060005b600082146132e65780806132cf90614b29565b915050600a826132df9190614923565b91506132bc565b60008167ffffffffffffffff811115613328577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561335a5781602001600182028036833780820191505090505b5090505b6000851461340d5760018261337391906149ae565b9150600a856133829190614b86565b603061338e91906148cd565b60f81b8183815181106133ca577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856134069190614923565b945061335e565b8093505050505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614806134805750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b6134bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134b690614736565b60405180910390fd5b505050565b6000848484846040516020016134dd9493929190614354565b6040516020818303038152906040528051906020012060001c9050949350505050565b600082826040516020016135159291906141a0565b60405160208183030381529060405280519060200120905092915050565b60006135548473ffffffffffffffffffffffffffffffffffffffff166136ca565b156136bd578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261357d61266c565b8786866040518563ffffffff1660e01b815260040161359f949392919061420b565b602060405180830381600087803b1580156135b957600080fd5b505af19250505080156135ea57506040513d601f19601f820116820180604052508101906135e79190613a6e565b60015b61366d573d806000811461361a576040519150601f19603f3d011682016040523d82523d6000602084013e61361f565b606091505b50600081511415613665576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161365c906143f6565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506136c2565b600190505b949350505050565b600080823b905060008111915050919050565b6040518061012001604052806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b600061373c61373784614859565b614834565b90508281526020810184848401111561375457600080fd5b61375f848285614a84565b509392505050565b600081359050613776816153ac565b92915050565b60008135905061378b816153c3565b92915050565b6000815190506137a0816153c3565b92915050565b6000813590506137b5816153da565b92915050565b6000813590506137ca816153f1565b92915050565b6000815190506137df816153f1565b92915050565b600082601f8301126137f657600080fd5b8135613806848260208601613729565b91505092915050565b60008135905061381e81615408565b92915050565b60008151905061383381615408565b92915050565b60006020828403121561384b57600080fd5b600061385984828501613767565b91505092915050565b6000806040838503121561387557600080fd5b600061388385828601613767565b925050602061389485828601613767565b9150509250929050565b6000806000606084860312156138b357600080fd5b60006138c186828701613767565b93505060206138d286828701613767565b92505060406138e38682870161380f565b9150509250925092565b6000806000806080858703121561390357600080fd5b600061391187828801613767565b945050602061392287828801613767565b93505060406139338782880161380f565b925050606085013567ffffffffffffffff81111561395057600080fd5b61395c878288016137e5565b91505092959194509250565b6000806040838503121561397b57600080fd5b600061398985828601613767565b925050602061399a8582860161377c565b9150509250929050565b600080604083850312156139b757600080fd5b60006139c585828601613767565b92505060206139d68582860161380f565b9150509250929050565b6000602082840312156139f257600080fd5b6000613a0084828501613791565b91505092915050565b60008060408385031215613a1c57600080fd5b6000613a2a858286016137a6565b9250506020613a3b8582860161380f565b9150509250929050565b600060208284031215613a5757600080fd5b6000613a65848285016137bb565b91505092915050565b600060208284031215613a8057600080fd5b6000613a8e848285016137d0565b91505092915050565b600060208284031215613aa957600080fd5b6000613ab78482850161380f565b91505092915050565b600060208284031215613ad257600080fd5b6000613ae084828501613824565b91505092915050565b60008060008060808587031215613aff57600080fd5b6000613b0d8782880161380f565b9450506020613b1e8782880161380f565b9350506040613b2f8782880161380f565b9250506060613b408782880161380f565b91505092959194509250565b600080600080600080600060e0888a031215613b6757600080fd5b6000613b758a828b0161380f565b9750506020613b868a828b0161380f565b9650506040613b978a828b0161380f565b9550506060613ba88a828b0161380f565b9450506080613bb98a828b0161380f565b93505060a0613bca8a828b0161380f565b92505060c0613bdb8a828b0161380f565b91505092959891949750929550565b613bf3816149e2565b82525050565b613c02816149f4565b82525050565b613c1181614a00565b82525050565b613c28613c2382614a00565b614b72565b82525050565b6000613c398261488a565b613c4381856148a0565b9350613c53818560208601614a93565b613c5c81614c73565b840191505092915050565b613c7081614a60565b82525050565b6000613c8182614895565b613c8b81856148b1565b9350613c9b818560208601614a93565b613ca481614c73565b840191505092915050565b6000613cba82614895565b613cc481856148c2565b9350613cd4818560208601614a93565b80840191505092915050565b6000613ced6013836148b1565b9150613cf882614c84565b602082019050919050565b6000613d106032836148b1565b9150613d1b82614cad565b604082019050919050565b6000613d336026836148b1565b9150613d3e82614cfc565b604082019050919050565b6000613d56601c836148b1565b9150613d6182614d4b565b602082019050919050565b6000613d79601f836148b1565b9150613d8482614d74565b602082019050919050565b6000613d9c6024836148b1565b9150613da782614d9d565b604082019050919050565b6000613dbf6019836148b1565b9150613dca82614dec565b602082019050919050565b6000613de26021836148b1565b9150613ded82614e15565b604082019050919050565b6000613e05602c836148b1565b9150613e1082614e64565b604082019050919050565b6000613e286029836148b1565b9150613e3382614eb3565b604082019050919050565b6000613e4b6024836148b1565b9150613e5682614f02565b604082019050919050565b6000613e6e601b836148b1565b9150613e7982614f51565b602082019050919050565b6000613e916038836148b1565b9150613e9c82614f7a565b604082019050919050565b6000613eb4602a836148b1565b9150613ebf82614fc9565b604082019050919050565b6000613ed76029836148b1565b9150613ee282615018565b604082019050919050565b6000613efa6033836148b1565b9150613f0582615067565b604082019050919050565b6000613f1d6031836148b1565b9150613f28826150b6565b604082019050919050565b6000613f406020836148b1565b9150613f4b82615105565b602082019050919050565b6000613f63602c836148b1565b9150613f6e8261512e565b604082019050919050565b6000613f866020836148b1565b9150613f918261517d565b602082019050919050565b6000613fa96029836148b1565b9150613fb4826151a6565b604082019050919050565b6000613fcc6026836148b1565b9150613fd7826151f5565b604082019050919050565b6000613fef602f836148b1565b9150613ffa82615244565b604082019050919050565b6000614012601f836148b1565b915061401d82615293565b602082019050919050565b60006140356021836148b1565b9150614040826152bc565b604082019050919050565b60006140586031836148b1565b91506140638261530b565b604082019050919050565b600061407b601c836148b1565b91506140868261535a565b602082019050919050565b600061409e601c836148b1565b91506140a982615383565b602082019050919050565b610120820160008201516140cb600085018261416b565b5060208201516140de602085018261416b565b5060408201516140f1604085018261416b565b506060820151614104606085018261416b565b506080820151614117608085018261416b565b5060a082015161412a60a085018261416b565b5060c082015161413d60c085018261416b565b5060e082015161415060e085018261416b565b5061010082015161416561010085018261416b565b50505050565b61417481614a56565b82525050565b61418381614a56565b82525050565b61419a61419582614a56565b614b7c565b82525050565b60006141ac8285613c17565b6020820191506141bc8284614189565b6020820191508190509392505050565b60006141d88285613caf565b91506141e48284613caf565b91508190509392505050565b60006020820190506142056000830184613bea565b92915050565b60006080820190506142206000830187613bea565b61422d6020830186613bea565b61423a604083018561417a565b818103606083015261424c8184613c2e565b905095945050505050565b600060408201905061426c6000830185613bea565b614279602083018461417a565b9392505050565b60006060820190506142956000830186613bea565b6142a2602083018561417a565b81810360408301526142b48184613c2e565b9050949350505050565b60006060820190506142d36000830186613bea565b6142e0602083018561417a565b6142ed604083018461417a565b949350505050565b600060208201905061430a6000830184613bf9565b92915050565b60006020820190506143256000830184613c08565b92915050565b60006040820190506143406000830185613c08565b61434d602083018461417a565b9392505050565b60006080820190506143696000830187613c08565b614376602083018661417a565b6143836040830185613bea565b614390606083018461417a565b95945050505050565b60006020820190506143ae6000830184613c67565b92915050565b600060208201905081810360008301526143ce8184613c76565b905092915050565b600060208201905081810360008301526143ef81613ce0565b9050919050565b6000602082019050818103600083015261440f81613d03565b9050919050565b6000602082019050818103600083015261442f81613d26565b9050919050565b6000602082019050818103600083015261444f81613d49565b9050919050565b6000602082019050818103600083015261446f81613d6c565b9050919050565b6000602082019050818103600083015261448f81613d8f565b9050919050565b600060208201905081810360008301526144af81613db2565b9050919050565b600060208201905081810360008301526144cf81613dd5565b9050919050565b600060208201905081810360008301526144ef81613df8565b9050919050565b6000602082019050818103600083015261450f81613e1b565b9050919050565b6000602082019050818103600083015261452f81613e3e565b9050919050565b6000602082019050818103600083015261454f81613e61565b9050919050565b6000602082019050818103600083015261456f81613e84565b9050919050565b6000602082019050818103600083015261458f81613ea7565b9050919050565b600060208201905081810360008301526145af81613eca565b9050919050565b600060208201905081810360008301526145cf81613eed565b9050919050565b600060208201905081810360008301526145ef81613f10565b9050919050565b6000602082019050818103600083015261460f81613f33565b9050919050565b6000602082019050818103600083015261462f81613f56565b9050919050565b6000602082019050818103600083015261464f81613f79565b9050919050565b6000602082019050818103600083015261466f81613f9c565b9050919050565b6000602082019050818103600083015261468f81613fbf565b9050919050565b600060208201905081810360008301526146af81613fe2565b9050919050565b600060208201905081810360008301526146cf81614005565b9050919050565b600060208201905081810360008301526146ef81614028565b9050919050565b6000602082019050818103600083015261470f8161404b565b9050919050565b6000602082019050818103600083015261472f8161406e565b9050919050565b6000602082019050818103600083015261474f81614091565b9050919050565b60006101208201905061476c60008301846140b4565b92915050565b6000602082019050614787600083018461417a565b92915050565b60006040820190506147a2600083018561417a565b6147af6020830184613bea565b9392505050565b6000610100820190506147cc600083018b61417a565b6147d9602083018a61417a565b6147e6604083018961417a565b6147f3606083018861417a565b614800608083018761417a565b61480d60a083018661417a565b61481a60c083018561417a565b61482760e083018461417a565b9998505050505050505050565b600061483e61484f565b905061484a8282614af8565b919050565b6000604051905090565b600067ffffffffffffffff82111561487457614873614c44565b5b61487d82614c73565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006148d882614a56565b91506148e383614a56565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561491857614917614bb7565b5b828201905092915050565b600061492e82614a56565b915061493983614a56565b92508261494957614948614be6565b5b828204905092915050565b600061495f82614a56565b915061496a83614a56565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156149a3576149a2614bb7565b5b828202905092915050565b60006149b982614a56565b91506149c483614a56565b9250828210156149d7576149d6614bb7565b5b828203905092915050565b60006149ed82614a36565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000614a6b82614a72565b9050919050565b6000614a7d82614a36565b9050919050565b82818337600083830152505050565b60005b83811015614ab1578082015181840152602081019050614a96565b83811115614ac0576000848401525b50505050565b60006002820490506001821680614ade57607f821691505b60208210811415614af257614af1614c15565b5b50919050565b614b0182614c73565b810181811067ffffffffffffffff82111715614b2057614b1f614c44565b5b80604052505050565b6000614b3482614a56565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614b6757614b66614bb7565b5b600182019050919050565b6000819050919050565b6000819050919050565b6000614b9182614a56565b9150614b9c83614a56565b925082614bac57614bab614be6565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f466f463a204e6f7420656e6f7567682045544800000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f466f463a204e6f206c6f7474657279206973206f6e207269676874206e6f7700600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f466f463a20596f7520646f6e2774206861766520656e6f75676820244d594f4260008201527f5500000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f466f463a204c6f7474657279206e6565647320746f206861766520656e64656460008201527f20666f7220746869730000000000000000000000000000000000000000000000602082015250565b7f466f463a2050757420736f6d65204c494e4b20696e746f2074686520636f6e7460008201527f7261637400000000000000000000000000000000000000000000000000000000602082015250565b7f466f463a2052657761726420616c726561647920636c61696d65640000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f466f463a20436c61696d2074686520726577617264206265666f72652073746160008201527f7274696e672061206e6577206c6f747465727900000000000000000000000000602082015250565b7f466f463a20596f752063616e206e6f742074616b652065766572797468696e6760008201527f206f72206d6f7265206173206120666565000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f466f463a204d75737420626520756e646572206f7220657175616c20746f203160008201527f206d6f6e74680000000000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f466f463a20526577617264206973206265696e6720636c61696d656400000000600082015250565b7f466f463a2043616e6e6f74207472616e73666572207469636b65747300000000600082015250565b6153b5816149e2565b81146153c057600080fd5b50565b6153cc816149f4565b81146153d757600080fd5b50565b6153e381614a00565b81146153ee57600080fd5b50565b6153fa81614a0a565b811461540557600080fd5b50565b61541181614a56565b811461541c57600080fd5b5056fea26469706673582212208670a5d628ca55aa49203450350c90eef485c0b3afc6c2c8befe83526fdf5db464736f6c63430008040033

Deployed Bytecode

0x6080604052600436106102345760003560e01c8063734d82871161012e578063a894a724116100ab578063c81998261161006f578063c8199826146108bf578063c87b56dd146108c9578063d294f09314610906578063e985e9c51461091d578063f2fde38b1461095a5761029c565b8063a894a724146107da578063a984c35614610817578063b3f0067414610840578063b88a802f1461086b578063b88d4fde146108965761029c565b8063a22cb465116100f2578063a22cb465146106f5578063a284673f1461071e578063a2a3045614610747578063a57d156014610772578063a5c42ef1146107af5761029c565b8063734d8287146106205780637ac98be11461064b5780638da5cb5b1461067657806394985ddd146106a157806395d89b41146106ca5761029c565b806338b014ca116101bc5780636b31ee01116101805780636b31ee01146105275780636b397497146105525780636c07e3e61461058f57806370a08231146105cc578063715018a6146106095761029c565b806338b014ca1461044257806342842e0e1461046d5780634a25d2b1146104965780636352211e146104c15780636a8a46a0146104fe5761029c565b8063095ea7b311610203578063095ea7b3146103715780630c21e6e31461039a5780631ede0a66146103c557806323b872dd146103f0578063323768c9146104195761029c565b806301b62b78146102a157806301ffc9a7146102cc57806306fdde0314610309578063081812fc146103345761029c565b3661029c5742601160006102486010610983565b8152602001908152602001600020600201541161029a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161029190614456565b60405180910390fd5b005b600080fd5b3480156102ad57600080fd5b506102b6610991565b6040516102c391906142f5565b60405180910390f35b3480156102d857600080fd5b506102f360048036038101906102ee9190613a45565b610a0a565b60405161030091906142f5565b60405180910390f35b34801561031557600080fd5b5061031e610aec565b60405161032b91906143b4565b60405180910390f35b34801561034057600080fd5b5061035b60048036038101906103569190613a97565b610b7e565b60405161036891906141f0565b60405180910390f35b34801561037d57600080fd5b50610398600480360381019061039391906139a4565b610c03565b005b3480156103a657600080fd5b506103af610d1b565b6040516103bc9190614772565b60405180910390f35b3480156103d157600080fd5b506103da610d8d565b6040516103e79190614772565b60405180910390f35b3480156103fc57600080fd5b506104176004803603810190610412919061389e565b610d97565b005b34801561042557600080fd5b50610440600480360381019061043b9190613b4c565b610df7565b005b34801561044e57600080fd5b50610457611108565b6040516104649190614772565b60405180910390f35b34801561047957600080fd5b50610494600480360381019061048f919061389e565b611119565b005b3480156104a257600080fd5b506104ab611139565b6040516104b89190614399565b60405180910390f35b3480156104cd57600080fd5b506104e860048036038101906104e39190613a97565b611163565b6040516104f591906141f0565b60405180910390f35b34801561050a57600080fd5b5061052560048036038101906105209190613a97565b611215565b005b34801561053357600080fd5b5061053c611349565b6040516105499190614772565b60405180910390f35b34801561055e57600080fd5b50610579600480360381019061057491906139a4565b611386565b6040516105869190614772565b60405180910390f35b34801561059b57600080fd5b506105b660048036038101906105b191906139a4565b611472565b6040516105c39190614772565b60405180910390f35b3480156105d857600080fd5b506105f360048036038101906105ee9190613839565b6114cd565b6040516106009190614772565b60405180910390f35b34801561061557600080fd5b5061061e611585565b005b34801561062c57600080fd5b5061063561160d565b6040516106429190614772565b60405180910390f35b34801561065757600080fd5b50610660611662565b60405161066d9190614772565b60405180910390f35b34801561068257600080fd5b5061068b61166c565b60405161069891906141f0565b60405180910390f35b3480156106ad57600080fd5b506106c860048036038101906106c39190613a09565b611696565b005b3480156106d657600080fd5b506106df611732565b6040516106ec91906143b4565b60405180910390f35b34801561070157600080fd5b5061071c60048036038101906107179190613968565b6117c4565b005b34801561072a57600080fd5b5061074560048036038101906107409190613a97565b611945565b005b34801561075357600080fd5b5061075c6119cb565b6040516107699190614772565b60405180910390f35b34801561077e57600080fd5b5061079960048036038101906107949190613a97565b611a27565b6040516107a69190614756565b60405180910390f35b3480156107bb57600080fd5b506107c4611aaf565b6040516107d19190614772565b60405180910390f35b3480156107e657600080fd5b5061080160048036038101906107fc9190613ae9565b611ab9565b60405161080e9190614772565b60405180910390f35b34801561082357600080fd5b5061083e60048036038101906108399190613a97565b611af9565b005b34801561084c57600080fd5b50610855611cb5565b60405161086291906141f0565b60405180910390f35b34801561087757600080fd5b50610880611cdf565b60405161088d9190614310565b60405180910390f35b3480156108a257600080fd5b506108bd60048036038101906108b891906138ed565b611f4e565b005b6108c7611fb0565b005b3480156108d557600080fd5b506108f060048036038101906108eb9190613a97565b6122df565b6040516108fd91906143b4565b60405180910390f35b34801561091257600080fd5b5061091b612386565b005b34801561092957600080fd5b50610944600480360381019061093f9190613862565b61240a565b60405161095191906142f5565b60405180910390f35b34801561096657600080fd5b50610981600480360381019061097c9190613839565b61249e565b005b600081600001549050919050565b600042601160006109a26010610983565b81526020019081526020016000206002015411156109f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ec906144f6565b60405180910390fd5b600f60009054906101000a900460ff16905090565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610ad557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610ae55750610ae482612596565b5b9050919050565b606060028054610afb90614ac6565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2790614ac6565b8015610b745780601f10610b4957610100808354040283529160200191610b74565b820191906000526020600020905b815481529060010190602001808311610b5757829003601f168201915b5050505050905090565b6000610b8982612600565b610bc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bbf90614616565b60405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c0e82611163565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c76906146d6565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c9e61266c565b73ffffffffffffffffffffffffffffffffffffffff161480610ccd5750610ccc81610cc761266c565b61240a565b5b610d0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0390614556565b60405180910390fd5b610d168383612674565b505050565b6000610d88600e5460116000610d316010610983565b81526020019081526020016000206003015460116000610d516010610983565b81526020019081526020016000206004015460116000610d716010610983565b815260200190815260200160002060000154611ab9565b905090565b6000600e54905090565b610da8610da261266c565b8261272d565b610de7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dde906146f6565b60405180910390fd5b610df283838361280b565b505050565b610dff61266c565b73ffffffffffffffffffffffffffffffffffffffff16610e1d61166c565b73ffffffffffffffffffffffffffffffffffffffff1614610e73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6a90614636565b60405180910390fd5b4260116000610e826010610983565b8152602001908152602001600020600201541115610ed5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ecc906144f6565b60405180910390fd5b600f60009054906101000a900460ff16610f24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1b906145b6565b60405180910390fd5b6127108585610f3391906148cd565b10610f73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6a906145d6565b60405180910390fd5b62282070871115610fb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb090614676565b60405180910390fd5b6000610fc361160d565b14610fd157610fd0612386565b5b610fdb6010612a67565b6000610fe76010610983565b9050604051806101200160405280600d548152602001428152602001894261100f91906148cd565b81526020018881526020018781526020018581526020018681526020018481526020018381525060116000838152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e082015181600701556101008201518160080155905050600f60006101000a81549060ff02191690557fe03fed3157c750504431f802bfcbfbb868bb76f5aa7e16e11153c3b3de5fe87981898989888a89896040516110f69897969594939291906147b6565b60405180910390a15050505050505050565b60006111146010610983565b905090565b61113483838360405180602001604052806000815250611f4e565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000806004600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561120c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120390614596565b60405180910390fd5b80915050919050565b61121d61266c565b73ffffffffffffffffffffffffffffffffffffffff1661123b61166c565b73ffffffffffffffffffffffffffffffffffffffff1614611291576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128890614636565b60405180910390fd5b7f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca73ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6112d561266c565b836040518363ffffffff1660e01b81526004016112f3929190614257565b602060405180830381600087803b15801561130d57600080fd5b505af1158015611321573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061134591906139e0565b5050565b600080479050600061135961160d565b905060006113656119cb565b905081818461137491906149ae565b61137e91906149ae565b935050505090565b600080601160006113976010610983565b81526020019081526020016000206005015490506000601160006113bb6010610983565b81526020019081526020016000206007015490506000601260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061141c6010610983565b815260200190815260200160002054905060006001868361143d91906148cd565b61144791906149ae565b9050600083826114579190614954565b9050808561146591906148cd565b9550505050505092915050565b6000601260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561153e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153590614576565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61158d61266c565b73ffffffffffffffffffffffffffffffffffffffff166115ab61166c565b73ffffffffffffffffffffffffffffffffffffffff1614611601576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f890614636565b60405180910390fd5b61160b6000612a7d565b565b600061165d600d54601160006116236010610983565b815260200190815260200160002060030154601160006116436010610983565b815260200190815260200160002060040154600e54611ab9565b905090565b6000600b54905090565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611724576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171b906146b6565b60405180910390fd5b61172e8282612b43565b5050565b60606003805461174190614ac6565b80601f016020809104026020016040519081016040528092919081815260200182805461176d90614ac6565b80156117ba5780601f1061178f576101008083540402835291602001916117ba565b820191906000526020600020905b81548152906001019060200180831161179d57829003601f168201915b5050505050905090565b6117cc61266c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561183a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183190614496565b60405180910390fd5b806007600061184761266c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166118f461266c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161193991906142f5565b60405180910390a35050565b61194d61266c565b73ffffffffffffffffffffffffffffffffffffffff1661196b61166c565b73ffffffffffffffffffffffffffffffffffffffff16146119c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b890614636565b60405180910390fd5b80600b8190555050565b600080601160006119dc6010610983565b815260200190815260200160002060060154905060006119fa610d1b565b9050612710828247611a0c91906148cd565b611a169190614954565b611a209190614923565b9250505090565b611a2f6136dd565b601160008381526020019081526020016000206040518061012001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815260200160068201548152602001600782015481526020016008820154815250509050919050565b6000600d54905090565b6000808286611ac891906149ae565b9050612710848683611ada9190614954565b611ae49190614954565b611aee9190614923565b915050949350505050565b611b0161266c565b73ffffffffffffffffffffffffffffffffffffffff16611b1f61166c565b73ffffffffffffffffffffffffffffffffffffffff1614611b75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6c90614636565b60405180910390fd5b4260116000611b846010610983565b81526020019081526020016000206002015411611bd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bcd90614456565b60405180910390fd5b600060116000611be66010610983565b8152602001908152602001600020600201549050600060116000611c0a6010610983565b81526020019081526020016000206001015490506228207081611c2d91906148cd565b8383611c3991906148cd565b1115611c7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7190614676565b60405180910390fd5b8260116000611c896010610983565b81526020019081526020016000206002016000828254611ca991906148cd565b92505081905550505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60004260116000611cf06010610983565b8152602001908152602001600020600201541115611d43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3a906144f6565b60405180910390fd5b600f60009054906101000a900460ff1615611d93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8a90614536565b60405180910390fd5b600f60019054906101000a900460ff1615611de3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dda90614716565b60405180910390fd5b600d5460116000611df46010610983565b8152602001908152602001600020600001541415611e32576001600f60006101000a81548160ff0219169083151502179055506000801b9050611f4b565b600b547f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611e8e91906141f0565b60206040518083038186803b158015611ea657600080fd5b505afa158015611eba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ede9190613ac0565b1015611f1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1690614516565b60405180910390fd5b6001600f60016101000a81548160ff021916908315150217905550611f48600a54600b54612d5b565b90505b90565b611f5f611f5961266c565b8361272d565b611f9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f95906146f6565b60405180910390fd5b611faa84848484612eba565b50505050565b4260116000611fbf6010610983565b81526020019081526020016000206002015411612011576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200890614456565b60405180910390fd5b6000601160006120216010610983565b8152602001908152602001600020600301549050600081346120439190614923565b90506000811415612089576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612080906143d6565b60405180910390fd5b61209a61209461266c565b82611386565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a082316120e061266c565b6040518263ffffffff1660e01b81526004016120fc91906141f0565b60206040518083038186803b15801561211457600080fd5b505afa158015612128573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061214c9190613ac0565b101561218d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612184906144b6565b60405180910390fd5b6000828261219b9190614954565b9050803411156121c2576121c16121b061266c565b82346121bc91906149ae565b612f16565b5b6000600d54905082600d60008282546121db91906148cd565b9250508190555082601260006121ef61266c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006122356010610983565b8152602001908152602001600020600082825461225291906148cd565b9250508190555060008190505b818461226b91906148cd565b8110156122965761228361227d61266c565b82613087565b808061228e90614b29565b91505061225f565b507fb0ebd247b49b0f0079dfe3093ede3e56ddb43164363f38bf1576023c076ab4f26122c061266c565b84866040516122d1939291906142be565b60405180910390a150505050565b60606122ea82612600565b612329576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232090614696565b60405180910390fd5b6000612333613255565b90506000815111612353576040518060200160405280600081525061237e565b8061235d8461326c565b60405160200161236e9291906141cc565b6040516020818303038152906040525b915050919050565b600061239061160d565b9050600d54600e819055506123c7600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682612f16565b7ff8c86b1d7444df9b0cdd6af6e83356a81c75e1ad49cc19ec84347b5fa6ddeb33816123f161266c565b6040516123ff92919061478d565b60405180910390a150565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6124a661266c565b73ffffffffffffffffffffffffffffffffffffffff166124c461166c565b73ffffffffffffffffffffffffffffffffffffffff161461251a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251190614636565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561258a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258190614416565b60405180910390fd5b61259381612a7d565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166004600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816006600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166126e783611163565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061273882612600565b612777576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161276e906144d6565b60405180910390fd5b600061278283611163565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806127f157508373ffffffffffffffffffffffffffffffffffffffff166127d984610b7e565b73ffffffffffffffffffffffffffffffffffffffff16145b806128025750612801818561240a565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661282b82611163565b73ffffffffffffffffffffffffffffffffffffffff1614612881576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161287890614656565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156128f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e890614476565b60405180910390fd5b6128fc838383613419565b612907600082612674565b6001600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461295791906149ae565b925050819055506001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129ae91906148cd565b92505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6001816000016000828254019250508190555050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600060116000612b536010610983565b81526020019081526020016000206000015490506000600d54905060008282612b7c91906149ae565b84612b879190614b86565b83612b9291906148cd565b90506000612b9f82611163565b90506000612bab611349565b90506000612bba836000611386565b905080600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b8152600401612c1891906141f0565b60206040518083038186803b158015612c3057600080fd5b505afa158015612c44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c689190613ac0565b1015612cdf57600061271060116000612c816010610983565b81526020019081526020016000206008015484612c9e9190614954565b612ca89190614923565b90508083612cb691906149ae565b9250600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169350505b612ce98383612f16565b6001600f60006101000a81548160ff021916908315150217905550600f60016101000a81549060ff02191690557fa87bed6ccaf5dd569c5a881130f4bc9c9b604a4909d2982cffe0f37caca6db47838386604051612d49939291906142be565b60405180910390a15050505050505050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca73ffffffffffffffffffffffffffffffffffffffff16634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795284866000604051602001612dcf92919061432b565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401612dfc93929190614280565b602060405180830381600087803b158015612e1657600080fd5b505af1158015612e2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e4e91906139e0565b506000612e7084600030600080898152602001908152602001600020546134c4565b9050600160008086815260200190815260200160002054612e9191906148cd565b60008086815260200190815260200160002081905550612eb18482613500565b91505092915050565b612ec584848461280b565b612ed184848484613533565b612f10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f07906143f6565b60405180910390fd5b50505050565b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505061308357600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015612fb957600080fd5b505af1158015612fcd573d6000803e3d6000fd5b5050505050600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b815260040161302f929190614257565b602060405180830381600087803b15801561304957600080fd5b505af115801561305d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061308191906139e0565b505b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156130f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130ee906145f6565b60405180910390fd5b61310081612600565b15613140576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161313790614436565b60405180910390fd5b61314c60008383613419565b6001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461319c91906148cd565b92505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b606060405180602001604052806000815250905090565b606060008214156132b4576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613414565b600082905060005b600082146132e65780806132cf90614b29565b915050600a826132df9190614923565b91506132bc565b60008167ffffffffffffffff811115613328577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561335a5781602001600182028036833780820191505090505b5090505b6000851461340d5760018261337391906149ae565b9150600a856133829190614b86565b603061338e91906148cd565b60f81b8183815181106133ca577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856134069190614923565b945061335e565b8093505050505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614806134805750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b6134bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134b690614736565b60405180910390fd5b505050565b6000848484846040516020016134dd9493929190614354565b6040516020818303038152906040528051906020012060001c9050949350505050565b600082826040516020016135159291906141a0565b60405160208183030381529060405280519060200120905092915050565b60006135548473ffffffffffffffffffffffffffffffffffffffff166136ca565b156136bd578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261357d61266c565b8786866040518563ffffffff1660e01b815260040161359f949392919061420b565b602060405180830381600087803b1580156135b957600080fd5b505af19250505080156135ea57506040513d601f19601f820116820180604052508101906135e79190613a6e565b60015b61366d573d806000811461361a576040519150601f19603f3d011682016040523d82523d6000602084013e61361f565b606091505b50600081511415613665576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161365c906143f6565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506136c2565b600190505b949350505050565b600080823b905060008111915050919050565b6040518061012001604052806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b600061373c61373784614859565b614834565b90508281526020810184848401111561375457600080fd5b61375f848285614a84565b509392505050565b600081359050613776816153ac565b92915050565b60008135905061378b816153c3565b92915050565b6000815190506137a0816153c3565b92915050565b6000813590506137b5816153da565b92915050565b6000813590506137ca816153f1565b92915050565b6000815190506137df816153f1565b92915050565b600082601f8301126137f657600080fd5b8135613806848260208601613729565b91505092915050565b60008135905061381e81615408565b92915050565b60008151905061383381615408565b92915050565b60006020828403121561384b57600080fd5b600061385984828501613767565b91505092915050565b6000806040838503121561387557600080fd5b600061388385828601613767565b925050602061389485828601613767565b9150509250929050565b6000806000606084860312156138b357600080fd5b60006138c186828701613767565b93505060206138d286828701613767565b92505060406138e38682870161380f565b9150509250925092565b6000806000806080858703121561390357600080fd5b600061391187828801613767565b945050602061392287828801613767565b93505060406139338782880161380f565b925050606085013567ffffffffffffffff81111561395057600080fd5b61395c878288016137e5565b91505092959194509250565b6000806040838503121561397b57600080fd5b600061398985828601613767565b925050602061399a8582860161377c565b9150509250929050565b600080604083850312156139b757600080fd5b60006139c585828601613767565b92505060206139d68582860161380f565b9150509250929050565b6000602082840312156139f257600080fd5b6000613a0084828501613791565b91505092915050565b60008060408385031215613a1c57600080fd5b6000613a2a858286016137a6565b9250506020613a3b8582860161380f565b9150509250929050565b600060208284031215613a5757600080fd5b6000613a65848285016137bb565b91505092915050565b600060208284031215613a8057600080fd5b6000613a8e848285016137d0565b91505092915050565b600060208284031215613aa957600080fd5b6000613ab78482850161380f565b91505092915050565b600060208284031215613ad257600080fd5b6000613ae084828501613824565b91505092915050565b60008060008060808587031215613aff57600080fd5b6000613b0d8782880161380f565b9450506020613b1e8782880161380f565b9350506040613b2f8782880161380f565b9250506060613b408782880161380f565b91505092959194509250565b600080600080600080600060e0888a031215613b6757600080fd5b6000613b758a828b0161380f565b9750506020613b868a828b0161380f565b9650506040613b978a828b0161380f565b9550506060613ba88a828b0161380f565b9450506080613bb98a828b0161380f565b93505060a0613bca8a828b0161380f565b92505060c0613bdb8a828b0161380f565b91505092959891949750929550565b613bf3816149e2565b82525050565b613c02816149f4565b82525050565b613c1181614a00565b82525050565b613c28613c2382614a00565b614b72565b82525050565b6000613c398261488a565b613c4381856148a0565b9350613c53818560208601614a93565b613c5c81614c73565b840191505092915050565b613c7081614a60565b82525050565b6000613c8182614895565b613c8b81856148b1565b9350613c9b818560208601614a93565b613ca481614c73565b840191505092915050565b6000613cba82614895565b613cc481856148c2565b9350613cd4818560208601614a93565b80840191505092915050565b6000613ced6013836148b1565b9150613cf882614c84565b602082019050919050565b6000613d106032836148b1565b9150613d1b82614cad565b604082019050919050565b6000613d336026836148b1565b9150613d3e82614cfc565b604082019050919050565b6000613d56601c836148b1565b9150613d6182614d4b565b602082019050919050565b6000613d79601f836148b1565b9150613d8482614d74565b602082019050919050565b6000613d9c6024836148b1565b9150613da782614d9d565b604082019050919050565b6000613dbf6019836148b1565b9150613dca82614dec565b602082019050919050565b6000613de26021836148b1565b9150613ded82614e15565b604082019050919050565b6000613e05602c836148b1565b9150613e1082614e64565b604082019050919050565b6000613e286029836148b1565b9150613e3382614eb3565b604082019050919050565b6000613e4b6024836148b1565b9150613e5682614f02565b604082019050919050565b6000613e6e601b836148b1565b9150613e7982614f51565b602082019050919050565b6000613e916038836148b1565b9150613e9c82614f7a565b604082019050919050565b6000613eb4602a836148b1565b9150613ebf82614fc9565b604082019050919050565b6000613ed76029836148b1565b9150613ee282615018565b604082019050919050565b6000613efa6033836148b1565b9150613f0582615067565b604082019050919050565b6000613f1d6031836148b1565b9150613f28826150b6565b604082019050919050565b6000613f406020836148b1565b9150613f4b82615105565b602082019050919050565b6000613f63602c836148b1565b9150613f6e8261512e565b604082019050919050565b6000613f866020836148b1565b9150613f918261517d565b602082019050919050565b6000613fa96029836148b1565b9150613fb4826151a6565b604082019050919050565b6000613fcc6026836148b1565b9150613fd7826151f5565b604082019050919050565b6000613fef602f836148b1565b9150613ffa82615244565b604082019050919050565b6000614012601f836148b1565b915061401d82615293565b602082019050919050565b60006140356021836148b1565b9150614040826152bc565b604082019050919050565b60006140586031836148b1565b91506140638261530b565b604082019050919050565b600061407b601c836148b1565b91506140868261535a565b602082019050919050565b600061409e601c836148b1565b91506140a982615383565b602082019050919050565b610120820160008201516140cb600085018261416b565b5060208201516140de602085018261416b565b5060408201516140f1604085018261416b565b506060820151614104606085018261416b565b506080820151614117608085018261416b565b5060a082015161412a60a085018261416b565b5060c082015161413d60c085018261416b565b5060e082015161415060e085018261416b565b5061010082015161416561010085018261416b565b50505050565b61417481614a56565b82525050565b61418381614a56565b82525050565b61419a61419582614a56565b614b7c565b82525050565b60006141ac8285613c17565b6020820191506141bc8284614189565b6020820191508190509392505050565b60006141d88285613caf565b91506141e48284613caf565b91508190509392505050565b60006020820190506142056000830184613bea565b92915050565b60006080820190506142206000830187613bea565b61422d6020830186613bea565b61423a604083018561417a565b818103606083015261424c8184613c2e565b905095945050505050565b600060408201905061426c6000830185613bea565b614279602083018461417a565b9392505050565b60006060820190506142956000830186613bea565b6142a2602083018561417a565b81810360408301526142b48184613c2e565b9050949350505050565b60006060820190506142d36000830186613bea565b6142e0602083018561417a565b6142ed604083018461417a565b949350505050565b600060208201905061430a6000830184613bf9565b92915050565b60006020820190506143256000830184613c08565b92915050565b60006040820190506143406000830185613c08565b61434d602083018461417a565b9392505050565b60006080820190506143696000830187613c08565b614376602083018661417a565b6143836040830185613bea565b614390606083018461417a565b95945050505050565b60006020820190506143ae6000830184613c67565b92915050565b600060208201905081810360008301526143ce8184613c76565b905092915050565b600060208201905081810360008301526143ef81613ce0565b9050919050565b6000602082019050818103600083015261440f81613d03565b9050919050565b6000602082019050818103600083015261442f81613d26565b9050919050565b6000602082019050818103600083015261444f81613d49565b9050919050565b6000602082019050818103600083015261446f81613d6c565b9050919050565b6000602082019050818103600083015261448f81613d8f565b9050919050565b600060208201905081810360008301526144af81613db2565b9050919050565b600060208201905081810360008301526144cf81613dd5565b9050919050565b600060208201905081810360008301526144ef81613df8565b9050919050565b6000602082019050818103600083015261450f81613e1b565b9050919050565b6000602082019050818103600083015261452f81613e3e565b9050919050565b6000602082019050818103600083015261454f81613e61565b9050919050565b6000602082019050818103600083015261456f81613e84565b9050919050565b6000602082019050818103600083015261458f81613ea7565b9050919050565b600060208201905081810360008301526145af81613eca565b9050919050565b600060208201905081810360008301526145cf81613eed565b9050919050565b600060208201905081810360008301526145ef81613f10565b9050919050565b6000602082019050818103600083015261460f81613f33565b9050919050565b6000602082019050818103600083015261462f81613f56565b9050919050565b6000602082019050818103600083015261464f81613f79565b9050919050565b6000602082019050818103600083015261466f81613f9c565b9050919050565b6000602082019050818103600083015261468f81613fbf565b9050919050565b600060208201905081810360008301526146af81613fe2565b9050919050565b600060208201905081810360008301526146cf81614005565b9050919050565b600060208201905081810360008301526146ef81614028565b9050919050565b6000602082019050818103600083015261470f8161404b565b9050919050565b6000602082019050818103600083015261472f8161406e565b9050919050565b6000602082019050818103600083015261474f81614091565b9050919050565b60006101208201905061476c60008301846140b4565b92915050565b6000602082019050614787600083018461417a565b92915050565b60006040820190506147a2600083018561417a565b6147af6020830184613bea565b9392505050565b6000610100820190506147cc600083018b61417a565b6147d9602083018a61417a565b6147e6604083018961417a565b6147f3606083018861417a565b614800608083018761417a565b61480d60a083018661417a565b61481a60c083018561417a565b61482760e083018461417a565b9998505050505050505050565b600061483e61484f565b905061484a8282614af8565b919050565b6000604051905090565b600067ffffffffffffffff82111561487457614873614c44565b5b61487d82614c73565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006148d882614a56565b91506148e383614a56565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561491857614917614bb7565b5b828201905092915050565b600061492e82614a56565b915061493983614a56565b92508261494957614948614be6565b5b828204905092915050565b600061495f82614a56565b915061496a83614a56565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156149a3576149a2614bb7565b5b828202905092915050565b60006149b982614a56565b91506149c483614a56565b9250828210156149d7576149d6614bb7565b5b828203905092915050565b60006149ed82614a36565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000614a6b82614a72565b9050919050565b6000614a7d82614a36565b9050919050565b82818337600083830152505050565b60005b83811015614ab1578082015181840152602081019050614a96565b83811115614ac0576000848401525b50505050565b60006002820490506001821680614ade57607f821691505b60208210811415614af257614af1614c15565b5b50919050565b614b0182614c73565b810181811067ffffffffffffffff82111715614b2057614b1f614c44565b5b80604052505050565b6000614b3482614a56565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614b6757614b66614bb7565b5b600182019050919050565b6000819050919050565b6000819050919050565b6000614b9182614a56565b9150614b9c83614a56565b925082614bac57614bab614be6565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f466f463a204e6f7420656e6f7567682045544800000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f466f463a204e6f206c6f7474657279206973206f6e207269676874206e6f7700600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f466f463a20596f7520646f6e2774206861766520656e6f75676820244d594f4260008201527f5500000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f466f463a204c6f7474657279206e6565647320746f206861766520656e64656460008201527f20666f7220746869730000000000000000000000000000000000000000000000602082015250565b7f466f463a2050757420736f6d65204c494e4b20696e746f2074686520636f6e7460008201527f7261637400000000000000000000000000000000000000000000000000000000602082015250565b7f466f463a2052657761726420616c726561647920636c61696d65640000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f466f463a20436c61696d2074686520726577617264206265666f72652073746160008201527f7274696e672061206e6577206c6f747465727900000000000000000000000000602082015250565b7f466f463a20596f752063616e206e6f742074616b652065766572797468696e6760008201527f206f72206d6f7265206173206120666565000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f466f463a204d75737420626520756e646572206f7220657175616c20746f203160008201527f206d6f6e74680000000000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f466f463a20526577617264206973206265696e6720636c61696d656400000000600082015250565b7f466f463a2043616e6e6f74207472616e73666572207469636b65747300000000600082015250565b6153b5816149e2565b81146153c057600080fd5b50565b6153cc816149f4565b81146153d757600080fd5b50565b6153e381614a00565b81146153ee57600080fd5b50565b6153fa81614a0a565b811461540557600080fd5b50565b61541181614a56565b811461541c57600080fd5b5056fea26469706673582212208670a5d628ca55aa49203450350c90eef485c0b3afc6c2c8befe83526fdf5db464736f6c63430008040033

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.