ETH Price: $2,600.13 (-1.77%)

Contract

0x0CBa81Ba02c58A4C2C160fdD2E7411AD9cdf5Dbe
 

Overview

ETH Balance

197.33 ETH

Eth Value

$513,084.38 (@ $2,600.13/ETH)
Transaction Hash
Method
Block
From
To
Claim Refund194220182024-03-12 22:35:35201 days ago1710282935IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.0045141256.59782343
Claim Refund175288492023-06-21 15:12:47466 days ago1687360367IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.0025800732.35127706
Claim Refund169429932023-03-30 22:20:59549 days ago1680214859IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.002443930.63384569
Claim Refund155194782022-09-12 6:43:13749 days ago1662964993IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.000465295.83223538
Transfer Ownersh...154040752022-08-24 16:56:43767 days ago1661360203IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.0003958213.63931014
Claim Refund151816542022-07-20 20:32:48802 days ago1658349168IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.0033498841.98480155
Claim Refund151752852022-07-19 20:35:28803 days ago1658262928IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.0019300424.1957111
Claim Refund149618122022-06-14 12:51:45838 days ago1655211105IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.0058838173.78931323
Claim Refund148563082022-05-27 20:54:35856 days ago1653684875IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.002712434.55030706
Claim Refund148295152022-05-23 12:13:05860 days ago1653307985IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.001374417.23862983
Claim Refund148205802022-05-22 1:21:56862 days ago1653182516IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.0013614417.07057235
Claim Refund147942282022-05-17 18:51:29866 days ago1652813489IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.0017914722.45806341
Claim Refund147936342022-05-17 16:39:02866 days ago1652805542IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.0015469519.40149999
Claim Refund147586542022-05-12 3:00:51872 days ago1652324451IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.010183127.60663209
Claim Refund147573042022-05-11 21:47:11872 days ago1652305631IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.02149289269.3683151
Claim Refund147432892022-05-09 16:00:56874 days ago1652112056IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.01035043129.75670767
Claim Refund147432572022-05-09 15:50:39874 days ago1652111439IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.0069563488.58654036
Claim Refund147349932022-05-08 8:26:01876 days ago1651998361IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.0014799118.55316278
Claim Refund147262732022-05-06 22:49:04877 days ago1651877344IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.0022373828.05991167
Claim Refund147219502022-05-06 6:25:16878 days ago1651818316IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.0031540240.17562271
Claim Refund147208152022-05-06 2:08:35878 days ago1651802915IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.0030581938.37616709
Claim Refund147208002022-05-06 2:04:24878 days ago1651802664IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.0024554430.76999382
Claim Refund147143072022-05-05 1:22:27879 days ago1651713747IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.0040780651.15358206
Claim Refund147143042022-05-05 1:21:20879 days ago1651713680IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.003775848.09572089
Claim Refund147049912022-05-03 13:49:20880 days ago1651585760IN
0x0CBa81Ba...D9cdf5Dbe
0 ETH0.0049120361.61139665
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
194220182024-03-12 22:35:35201 days ago1710282935
0x0CBa81Ba...D9cdf5Dbe
4.9 ETH
175288492023-06-21 15:12:47466 days ago1687360367
0x0CBa81Ba...D9cdf5Dbe
4 ETH
169429932023-03-30 22:20:59549 days ago1680214859
0x0CBa81Ba...D9cdf5Dbe
0.31 ETH
155194782022-09-12 6:43:13749 days ago1662964993
0x0CBa81Ba...D9cdf5Dbe
1.85 ETH
151816542022-07-20 20:32:48802 days ago1658349168
0x0CBa81Ba...D9cdf5Dbe
4.05 ETH
151752852022-07-19 20:35:28803 days ago1658262928
0x0CBa81Ba...D9cdf5Dbe
0.3 ETH
149618122022-06-14 12:51:45838 days ago1655211105
0x0CBa81Ba...D9cdf5Dbe
2 ETH
148563082022-05-27 20:54:35856 days ago1653684875
0x0CBa81Ba...D9cdf5Dbe
0.28 ETH
148295152022-05-23 12:13:05860 days ago1653307985
0x0CBa81Ba...D9cdf5Dbe
0.44 ETH
148205802022-05-22 1:21:56862 days ago1653182516
0x0CBa81Ba...D9cdf5Dbe
2.63 ETH
147942282022-05-17 18:51:29866 days ago1652813489
0x0CBa81Ba...D9cdf5Dbe
0.35 ETH
147936342022-05-17 16:39:02866 days ago1652805542
0x0CBa81Ba...D9cdf5Dbe
1.9 ETH
147586542022-05-12 3:00:51872 days ago1652324451
0x0CBa81Ba...D9cdf5Dbe
0.25 ETH
147573042022-05-11 21:47:11872 days ago1652305631
0x0CBa81Ba...D9cdf5Dbe
4.94 ETH
147432892022-05-09 16:00:56874 days ago1652112056
0x0CBa81Ba...D9cdf5Dbe
1.5 ETH
147432572022-05-09 15:50:39874 days ago1652111439
0x0CBa81Ba...D9cdf5Dbe
0.25 ETH
147349932022-05-08 8:26:01876 days ago1651998361
0x0CBa81Ba...D9cdf5Dbe
3 ETH
147262732022-05-06 22:49:04877 days ago1651877344
0x0CBa81Ba...D9cdf5Dbe
0.5 ETH
147219502022-05-06 6:25:16878 days ago1651818316
0x0CBa81Ba...D9cdf5Dbe
1.5 ETH
147208152022-05-06 2:08:35878 days ago1651802915
0x0CBa81Ba...D9cdf5Dbe
3.95 ETH
147208002022-05-06 2:04:24878 days ago1651802664
0x0CBa81Ba...D9cdf5Dbe
1.3 ETH
147143072022-05-05 1:22:27879 days ago1651713747
0x0CBa81Ba...D9cdf5Dbe
2.9 ETH
147143042022-05-05 1:21:20879 days ago1651713680
0x0CBa81Ba...D9cdf5Dbe
3.1 ETH
147049912022-05-03 13:49:20880 days ago1651585760
0x0CBa81Ba...D9cdf5Dbe
2.14 ETH
147023692022-05-03 3:52:15881 days ago1651549935
0x0CBa81Ba...D9cdf5Dbe
6 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Auction

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : Auction.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.12;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract Auction is Ownable, Pausable {
  using SafeERC20 for IERC20;

  uint256 public immutable minimumUnitPrice;
  uint256 public immutable minimumBidIncrement;
  uint256 public immutable unitPriceStepSize;
  uint256 public immutable minimumQuantity;
  uint256 public immutable maximumQuantity;
  uint256 public immutable numberOfAuctions;
  uint256 public immutable itemsPerAuction;
  address payable public immutable beneficiaryAddress;

  // Total auction length - including the last X hours inside which it can randomly end
  uint256 public auctionLengthInHours = 24;
  // The target number for the random end's random number generator.
  // MUST be < endWindows to have an even chance of ending each window
  uint256 constant randomEnd = 7;
  // Auction randomly ends within last auctionEndThresholdHrs
  uint256 public constant auctionEndThresholdHrs = 3;
  // Number of time windows inside the threshold in which the auction can randomly end
  uint256 public constant endWindows = 18;
  // block timestamp of when auction starts
  uint256 public auctionStart;
  // Merkle root of those addresses owed a refund
  bytes32 public refundMerkleRoot;

  AuctionStatus private _auctionStatus;
  uint256 private _bidIndex;

  event AuctionStarted();
  event AuctionEnded();
  event BidPlaced(
    bytes32 indexed bidHash,
    uint256 indexed auctionIndex,
    address indexed bidder,
    uint256 bidIndex,
    uint256 unitPrice,
    uint256 quantity,
    uint256 balance
  );
  event RefundIssued(address indexed refundRecipient, uint256 refundAmount);

  struct Bid {
    uint128 unitPrice;
    uint128 quantity;
  }

  struct AuctionStatus {
    bool started;
    bool ended;
  }

  // keccak256(auctionIndex, bidder address) => current bid
  mapping(bytes32 => Bid) private _bids;
  // Refunds address => excessRefunded
  mapping(address => bool) private _excessRefunded;
  // Auction end checks windowIndex => windowChecked
  mapping(uint256 => bool) private _windowChecked;

  // Beneficiary address cannot be changed after deployment.
  constructor(
    address payable beneficiaryAddress_,
    uint256 minimumUnitPrice_,
    uint256 minimumBidIncrement_,
    uint256 unitPriceStepSize_,
    uint256 maximumQuantity_,
    uint256 numberOfAuctions_,
    uint256 itemsPerAuction_
  ) {
    beneficiaryAddress = beneficiaryAddress_;
    minimumUnitPrice = minimumUnitPrice_;
    minimumBidIncrement = minimumBidIncrement_;
    unitPriceStepSize = unitPriceStepSize_;
    minimumQuantity = 1;
    maximumQuantity = maximumQuantity_;
    numberOfAuctions = numberOfAuctions_;
    itemsPerAuction = itemsPerAuction_;
    pause();
  }

  modifier whenRefundsActive() {
    require(refundMerkleRoot != 0, "Refund merkle root not set");
    _;
  }

  modifier whenAuctionActive() {
    require(!_auctionStatus.ended, "Auction has already ended");
    require(_auctionStatus.started, "Auction hasn't started yet");
    _;
  }

  modifier whenPreAuction() {
    require(!_auctionStatus.ended, "Auction has already ended");
    require(!_auctionStatus.started, "Auction has already started");
    _;
  }

  modifier whenAuctionEnded() {
    require(_auctionStatus.ended, "Auction hasn't ended yet");
    require(_auctionStatus.started, "Auction hasn't started yet");
    _;
  }

  function auctionStatus() public view returns (AuctionStatus memory) {
    return _auctionStatus;
  }

  function pause() public onlyOwner {
    _pause();
  }

  function unpause() public onlyOwner {
    _unpause();
  }

  function startAuction() external onlyOwner whenPreAuction {
    _auctionStatus.started = true;
    auctionStart = block.timestamp;

    if (paused()) {
      unpause();
    }
    emit AuctionStarted();
  }

  function getAuctionEnd() internal view returns (uint256) {
    return auctionStart + (auctionLengthInHours * 1 hours);
  }

  function endAuction() external whenAuctionActive {
    require(
      block.timestamp >= getAuctionEnd(),
      "Auction can't be stopped until due"
    );
    _endAuction();
  }

  function _endAuction() internal whenAuctionActive {
    _auctionStatus.ended = true;
    if (!paused()) {
      _pause();
    }
    emit AuctionEnded();
  }

  function numberOfBidsPlaced() external view returns (uint256) {
    return _bidIndex;
  }

  function getBid(uint256 auctionIndex_, address bidder_)
    external
    view
    returns (Bid memory)
  {
    return _bids[_bidHash(auctionIndex_, bidder_)];
  }

  function _bidHash(uint256 auctionIndex_, address bidder_)
    internal
    pure
    returns (bytes32)
  {
    return keccak256(abi.encode(auctionIndex_, bidder_));
  }

  function _refundHash(uint256 refundAmount_, address bidder_)
    internal
    pure
    returns (bytes32)
  {
    return keccak256(abi.encode(refundAmount_, bidder_));
  }

  // When a bidder places a bid or updates their existing bid, they will use this function.
  // - total value can never be lowered
  // - unit price can never be lowered
  // - quantity can be raised or lowered, but only if unit price is raised to meet or exceed previous total price
  function placeBid(
    uint256 auctionIndex_,
    uint256 quantity_,
    uint256 unitPrice_
  ) external payable whenNotPaused whenAuctionActive {
    // If the bidder is increasing their bid, the amount being added must be greater than or equal to the minimum bid increment.
    // A msg.value of 0 can be valid if the bidder is updating their bid but no new ether is required.
    if (msg.value > 0 && msg.value < minimumBidIncrement) {
      revert("Bid lower than minimum bid increment.");
    }

    // Ensure auctionIndex is within valid range.
    // For a multi-phase auction like loomlock, this would be insuffucient. You would need to store a state var for the current auction index and require that the auctionIndex_ param == that index.
    require(auctionIndex_ < numberOfAuctions, "Invalid auctionIndex");

    // Cache initial bid values.
    bytes32 bidHash = _bidHash(auctionIndex_, msg.sender);
    uint256 initialUnitPrice = _bids[bidHash].unitPrice;
    uint256 initialQuantity = _bids[bidHash].quantity;
    uint256 initialBalance = initialUnitPrice * initialQuantity;

    // Cache final bid values.
    uint256 finalUnitPrice = unitPrice_;
    uint256 finalQuantity = quantity_;
    uint256 finalBalance = initialBalance + msg.value;

    // Don't allow bids with a unit price scale smaller than unitPriceStepSize.
    // For example, allow 1.01 or 111.01 but don't allow 1.011.
    require(
      finalUnitPrice % unitPriceStepSize == 0,
      "Unit price step too small"
    );

    // Reject bids that don't have a quantity within the valid range.
    require(finalQuantity >= minimumQuantity, "Quantity too low");
    require(finalQuantity <= maximumQuantity, "Quantity too high");

    // Balance can never be lowered. This can't really ever happen because of the way finalBalance is defined.
    require(finalBalance >= initialBalance, "Balance can't be lowered");

    // Unit price can never be lowered.
    // Quantity can be raised or lowered, but it can only be lowered if the unit price is raised to meet or exceed the initial total value. Ensuring the the unit price is never lowered takes care of this.
    require(finalUnitPrice >= initialUnitPrice, "Unit price can't be lowered");

    // Ensure the new finalBalance equals quantity * the unit price that was given in this txn exactly. This is important to prevent rounding errors later when returning ether.
    require(
      finalQuantity * finalUnitPrice == finalBalance,
      "Quantity * Unit Price != Total Value"
    );

    // Unit price must be greater than or equal to the minimumUnitPrice.
    require(finalUnitPrice >= minimumUnitPrice, "Bid unit price too low");

    // Something must be changing from the initial bid for this new bid to be valid.
    if (
      initialUnitPrice == finalUnitPrice && initialQuantity == finalQuantity
    ) {
      revert("This bid doesn't change anything");
    }

    // Update the bidder's bid.
    _bids[bidHash].unitPrice = uint128(finalUnitPrice);
    _bids[bidHash].quantity = uint128(finalQuantity);

    emit BidPlaced(
      bidHash,
      auctionIndex_,
      msg.sender,
      _bidIndex,
      finalUnitPrice,
      finalQuantity,
      finalBalance
    );

    // Increment after emitting the BidPlaced event because counter is 0-indexed.
    _bidIndex += 1;

    // After the bid has been placed, check to see whether the auction is ended
    _checkAuctionEnd();
  }

  function withdrawContractBalance() external onlyOwner {
    (bool success, ) = beneficiaryAddress.call{value: address(this).balance}(
      ""
    );
    require(success, "Transfer failed");
  }

  // A withdraw function to avoid locking ERC20 tokens in the contract forever.
  // Tokens can only be withdrawn by the owner, to the owner.
  function transferERC20Token(IERC20 token, uint256 amount) external onlyOwner {
    token.safeTransfer(owner(), amount);
  }

  // Handles receiving ether to the contract.
  // Reject all direct payments to the contract except from beneficiary and owner.
  // Bids must be placed using the placeBid function.
  receive() external payable {
    require(msg.value > 0, "No ether was sent");
    require(
      msg.sender == beneficiaryAddress || msg.sender == owner(),
      "Only owner or beneficiary can fund contract"
    );
  }

  function setRefundMerkleRoot(bytes32 refundMerkleRoot_)
    external
    onlyOwner
    whenAuctionEnded
  {
    refundMerkleRoot = refundMerkleRoot_;
  }

  function claimRefund(uint256 refundAmount_, bytes32[] calldata proof_)
    external
    whenNotPaused
    whenAuctionEnded
    whenRefundsActive
  {
    // Can only refund if we haven't already refunded this address:
    require(!_excessRefunded[msg.sender], "Refund already issued");

    bytes32 leaf = _refundHash(refundAmount_, msg.sender);
    require(
      MerkleProof.verify(proof_, refundMerkleRoot, leaf),
      "Refund proof invalid"
    );

    // Safety check - we shouldn't be refunding more than this address has bid across all auctions. This will also
    // catch data collision exploits using other address and refund amount combinations, if
    // such are possible:
    uint256 totalBalance;
    for (
      uint256 auctionIndex = 0;
      auctionIndex < numberOfAuctions;
      auctionIndex++
    ) {
      bytes32 bidHash = _bidHash(auctionIndex, msg.sender);
      totalBalance += _bids[bidHash].unitPrice * _bids[bidHash].quantity;
    }

    require(refundAmount_ <= totalBalance, "Refund request exceeds balance");

    // Set state - we are issuing a refund to this address now, therefore
    // this logic path cannot be entered again for this address:
    _excessRefunded[msg.sender] = true;

    // State has been set, we can now send the refund:
    (bool success, ) = msg.sender.call{value: refundAmount_}("");
    require(success, "Refund failed");

    emit RefundIssued(msg.sender, refundAmount_);
  }

  function _checkAuctionEnd() internal {
    // (1) If we are at or past the end time it's the end of the action:
    if (block.timestamp >= getAuctionEnd()) {
      _endAuction();
    } else {
      // (2) Still going? See if we are in the threshold:
      uint256 auctionEndThreshold = getAuctionEnd() -
        (auctionEndThresholdHrs * 1 hours);
      if (block.timestamp >= auctionEndThreshold) {
        uint256 windowSize = (auctionEndThresholdHrs * 1 hours) / endWindows;
        uint256 windowIndex = (block.timestamp - auctionEndThreshold) /
          windowSize;
        if (!_windowChecked[windowIndex]) {
          _windowChecked[windowIndex] = true;
          // End logic is simple, we do a modulo on the random number using the number of
          // windows. We check the value (something that must be < endWindows to sure even probability each window).
          // Auction ends if they match.
          if (_getRandomNumber() % endWindows == randomEnd) {
            _endAuction();
          }
        }
      }
    }
  }

  function _getRandomNumber() internal view returns (uint256) {
    return
      uint256(keccak256(abi.encode(_bidIndex, blockhash(block.number - 1))));
  }
}

File 2 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 8 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 4 of 8 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 5 of 8 : MerkleProof.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        bytes32 computedHash = leaf;

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

File 6 of 8 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address payable","name":"beneficiaryAddress_","type":"address"},{"internalType":"uint256","name":"minimumUnitPrice_","type":"uint256"},{"internalType":"uint256","name":"minimumBidIncrement_","type":"uint256"},{"internalType":"uint256","name":"unitPriceStepSize_","type":"uint256"},{"internalType":"uint256","name":"maximumQuantity_","type":"uint256"},{"internalType":"uint256","name":"numberOfAuctions_","type":"uint256"},{"internalType":"uint256","name":"itemsPerAuction_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"AuctionEnded","type":"event"},{"anonymous":false,"inputs":[],"name":"AuctionStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"bidHash","type":"bytes32"},{"indexed":true,"internalType":"uint256","name":"auctionIndex","type":"uint256"},{"indexed":true,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"bidIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unitPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"balance","type":"uint256"}],"name":"BidPlaced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"refundRecipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"refundAmount","type":"uint256"}],"name":"RefundIssued","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"auctionEndThresholdHrs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctionLengthInHours","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctionStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctionStatus","outputs":[{"components":[{"internalType":"bool","name":"started","type":"bool"},{"internalType":"bool","name":"ended","type":"bool"}],"internalType":"struct Auction.AuctionStatus","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beneficiaryAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"refundAmount_","type":"uint256"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"}],"name":"claimRefund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endWindows","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"auctionIndex_","type":"uint256"},{"internalType":"address","name":"bidder_","type":"address"}],"name":"getBid","outputs":[{"components":[{"internalType":"uint128","name":"unitPrice","type":"uint128"},{"internalType":"uint128","name":"quantity","type":"uint128"}],"internalType":"struct Auction.Bid","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"itemsPerAuction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maximumQuantity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumBidIncrement","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumQuantity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumUnitPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberOfAuctions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberOfBidsPlaced","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"auctionIndex_","type":"uint256"},{"internalType":"uint256","name":"quantity_","type":"uint256"},{"internalType":"uint256","name":"unitPrice_","type":"uint256"}],"name":"placeBid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"refundMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"refundMerkleRoot_","type":"bytes32"}],"name":"setRefundMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferERC20Token","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unitPriceStepSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawContractBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

61018060405260186001553480156200001757600080fd5b50604051620044a1380380620044a183398181016040528101906200003d91906200040e565b6200005d620000516200010560201b60201c565b6200010d60201b60201c565b60008060146101000a81548160ff0219169083151502179055508673ffffffffffffffffffffffffffffffffffffffff166101608173ffffffffffffffffffffffffffffffffffffffff168152505085608081815250508460a081815250508360c08181525050600160e08181525050826101008181525050816101208181525050806101408181525050620000f8620001d160201b60201c565b50505050505050620005f8565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620001e16200010560201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620002076200027260201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000260576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002579062000522565b60405180910390fd5b620002706200029b60201b60201c565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b620002ab6200035360201b60201c565b15620002ee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002e59062000594565b60405180910390fd5b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200033a6200010560201b60201c565b604051620003499190620005db565b60405180910390a1565b60008060149054906101000a900460ff16905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200039b826200036e565b9050919050565b620003ad816200038e565b8114620003b957600080fd5b50565b600081519050620003cd81620003a2565b92915050565b6000819050919050565b620003e881620003d3565b8114620003f457600080fd5b50565b6000815190506200040881620003dd565b92915050565b600080600080600080600060e0888a03121562000430576200042f62000369565b5b6000620004408a828b01620003bc565b9750506020620004538a828b01620003f7565b9650506040620004668a828b01620003f7565b9550506060620004798a828b01620003f7565b94505060806200048c8a828b01620003f7565b93505060a06200049f8a828b01620003f7565b92505060c0620004b28a828b01620003f7565b91505092959891949750929550565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006200050a602083620004c1565b91506200051782620004d2565b602082019050919050565b600060208201905081810360008301526200053d81620004fb565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006200057c601083620004c1565b9150620005898262000544565b602082019050919050565b60006020820190508181036000830152620005af816200056d565b9050919050565b6000620005c3826200036e565b9050919050565b620005d581620005b6565b82525050565b6000602082019050620005f26000830184620005ca565b92915050565b60805160a05160c05160e05161010051610120516101405161016051613e046200069d60003960008181610210015281816119370152611a2801526000611c390152600081816109f501528181610d270152610ec70152600081816110c40152611a0401526000818161076d0152611061015260008181610ff501526115de015260008181610e630152611b1d015260008181610c7201526111fa0152613e046000f3fe6080604052600436106101c65760003560e01c806382449a91116100f7578063c04b18d811610095578063ec89b5e011610064578063ec89b5e0146106ac578063f2fde38b146106d7578063f624af1514610700578063fe67a54b1461072b576102db565b8063c04b18d8146105ee578063d9c4870e14610619578063df69050914610644578063eba1b60b1461066f576102db565b80639d6a0f28116100d15780639d6a0f281461055a578063b705400714610585578063bcba6939146105ae578063bfab3db9146105d7576102db565b806382449a91146104ed5780638456cb59146105185780638da5cb5b1461052f576102db565b806350d9d472116101645780635e62be251161013e5780635e62be25146104785780636b64c76914610494578063715018a6146104ab5780637f06cd22146104c2576102db565b806350d9d472146103f7578063510c5d6a146104225780635c975abb1461044d576102db565b8063338bd126116101a0578063338bd1261461035f5780633ba6976b1461038a5780633f4ba83a146103b55780634f245ef7146103cc576102db565b80631d75ddcc146102e0578063211f00361461030b57806327b70d6e14610334576102db565b366102db576000341161020e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161020590612697565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061029a575061026b610742565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6102d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102d090612729565b60405180910390fd5b005b600080fd5b3480156102ec57600080fd5b506102f561076b565b6040516103029190612762565b60405180910390f35b34801561031757600080fd5b50610332600480360381019061032d9190612818565b61078f565b005b34801561034057600080fd5b50610349610c6a565b6040516103569190612762565b60405180910390f35b34801561036b57600080fd5b50610374610c70565b6040516103819190612762565b60405180910390f35b34801561039657600080fd5b5061039f610c94565b6040516103ac9190612762565b60405180910390f35b3480156103c157600080fd5b506103ca610c99565b005b3480156103d857600080fd5b506103e1610d1f565b6040516103ee9190612762565b60405180910390f35b34801561040357600080fd5b5061040c610d25565b6040516104199190612762565b60405180910390f35b34801561042e57600080fd5b50610437610d49565b6040516104449190612762565b60405180910390f35b34801561045957600080fd5b50610462610d53565b60405161046f9190612893565b60405180910390f35b610492600480360381019061048d91906128ae565b610d69565b005b3480156104a057600080fd5b506104a96113c9565b005b3480156104b757600080fd5b506104c0611554565b005b3480156104ce57600080fd5b506104d76115dc565b6040516104e49190612762565b60405180910390f35b3480156104f957600080fd5b50610502611600565b60405161050f9190612762565b60405180910390f35b34801561052457600080fd5b5061052d611605565b005b34801561053b57600080fd5b50610544610742565b6040516105519190612942565b60405180910390f35b34801561056657600080fd5b5061056f61168b565b60405161057c919061299b565b60405180910390f35b34801561059157600080fd5b506105ac60048036038101906105a791906129ec565b6116db565b005b3480156105ba57600080fd5b506105d560048036038101906105d09190612a57565b611805565b005b3480156105e357600080fd5b506105ec6118b7565b005b3480156105fa57600080fd5b50610603611a02565b6040516106109190612762565b60405180910390f35b34801561062557600080fd5b5061062e611a26565b60405161063b9190612ab8565b60405180910390f35b34801561065057600080fd5b50610659611a4a565b6040516106669190612ae2565b60405180910390f35b34801561067b57600080fd5b5061069660048036038101906106919190612b29565b611a50565b6040516106a39190612bc3565b60405180910390f35b3480156106b857600080fd5b506106c1611b1b565b6040516106ce9190612762565b60405180910390f35b3480156106e357600080fd5b506106fe60048036038101906106f99190612bde565b611b3f565b005b34801561070c57600080fd5b50610715611c37565b6040516107229190612762565b60405180910390f35b34801561073757600080fd5b50610740611c5b565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b610797610d53565b156107d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ce90612c57565b60405180910390fd5b600460000160019054906101000a900460ff16610829576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082090612cc3565b60405180910390fd5b600460000160009054906101000a900460ff1661087b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087290612d2f565b60405180910390fd5b6000801b60035414156108c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108ba90612d9b565b60405180910390fd5b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610950576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094790612e07565b60405180910390fd5b600061095c8433611d54565b90506109ac838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060035483611d87565b6109eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e290612e73565b60405180910390fd5b600080600090505b7f0000000000000000000000000000000000000000000000000000000000000000811015610acc576000610a278233611e3d565b90506006600082815260200190815260200160002060000160109054906101000a90046fffffffffffffffffffffffffffffffff166006600083815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff16610a999190612ec2565b6fffffffffffffffffffffffffffffffff1683610ab69190612f0c565b9250508080610ac490612f62565b9150506109f3565b5080851115610b10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0790612ff7565b60405180910390fd5b6001600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060003373ffffffffffffffffffffffffffffffffffffffff1686604051610b8e90613048565b60006040518083038185875af1925050503d8060008114610bcb576040519150601f19603f3d011682016040523d82523d6000602084013e610bd0565b606091505b5050905080610c14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0b906130a9565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167fa171b6942063c6f2800ce40a780edce37baa2b618571b11eedd1e69e626e7d7687604051610c5a9190612762565b60405180910390a2505050505050565b60015481565b7f000000000000000000000000000000000000000000000000000000000000000081565b601281565b610ca1611e70565b73ffffffffffffffffffffffffffffffffffffffff16610cbf610742565b73ffffffffffffffffffffffffffffffffffffffff1614610d15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0c90613115565b60405180910390fd5b610d1d611e78565b565b60025481565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000600554905090565b60008060149054906101000a900460ff16905090565b610d71610d53565b15610db1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da890612c57565b60405180910390fd5b600460000160019054906101000a900460ff1615610e04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dfb90613181565b60405180910390fd5b600460000160009054906101000a900460ff16610e56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4d90612d2f565b60405180910390fd5b600034118015610e8557507f000000000000000000000000000000000000000000000000000000000000000034105b15610ec5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebc90613213565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000008310610f27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1e9061327f565b60405180910390fd5b6000610f338433611e3d565b905060006006600083815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16905060006006600084815260200190815260200160002060000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16905060008183610fd5919061329f565b90506000859050600087905060003484610fef9190612f0c565b905060007f00000000000000000000000000000000000000000000000000000000000000008461101f9190613328565b1461105f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611056906133a5565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000008210156110c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b990613411565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000821115611125576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111c9061347d565b60405180910390fd5b83811015611168576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115f906134e9565b60405180910390fd5b858310156111ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a290613555565b60405180910390fd5b8083836111b8919061329f565b146111f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ef906135e7565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000083101561125b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125290613653565b60405180910390fd5b828614801561126957508185145b156112a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a0906136bf565b60405180910390fd5b826006600089815260200190815260200160002060000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550816006600089815260200190815260200160002060000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055503373ffffffffffffffffffffffffffffffffffffffff168a887f873a7b17235b7078b0b53046e05f4271fcef4e1af54cf24fb2395f97f6b8c06660055487878760405161139394939291906136df565b60405180910390a46001600560008282546113ae9190612f0c565b925050819055506113bd611f19565b50505050505050505050565b6113d1611e70565b73ffffffffffffffffffffffffffffffffffffffff166113ef610742565b73ffffffffffffffffffffffffffffffffffffffff1614611445576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143c90613115565b60405180910390fd5b600460000160019054906101000a900460ff1615611498576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148f90613181565b60405180910390fd5b600460000160009054906101000a900460ff16156114eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e290613770565b60405180910390fd5b6001600460000160006101000a81548160ff02191690831515021790555042600281905550611518610d53565b1561152657611525610c99565b5b7fc8f99b9ac2a284b93c3652b9f064a6706724088cdafa9e0a8437c026191b2f0360405160405180910390a1565b61155c611e70565b73ffffffffffffffffffffffffffffffffffffffff1661157a610742565b73ffffffffffffffffffffffffffffffffffffffff16146115d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c790613115565b60405180910390fd5b6115da6000612018565b565b7f000000000000000000000000000000000000000000000000000000000000000081565b600381565b61160d611e70565b73ffffffffffffffffffffffffffffffffffffffff1661162b610742565b73ffffffffffffffffffffffffffffffffffffffff1614611681576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167890613115565b60405180910390fd5b6116896120dc565b565b6116936125de565b60046040518060400160405290816000820160009054906101000a900460ff161515151581526020016000820160019054906101000a900460ff161515151581525050905090565b6116e3611e70565b73ffffffffffffffffffffffffffffffffffffffff16611701610742565b73ffffffffffffffffffffffffffffffffffffffff1614611757576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174e90613115565b60405180910390fd5b600460000160019054906101000a900460ff166117a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a090612cc3565b60405180910390fd5b600460000160009054906101000a900460ff166117fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117f290612d2f565b60405180910390fd5b8060038190555050565b61180d611e70565b73ffffffffffffffffffffffffffffffffffffffff1661182b610742565b73ffffffffffffffffffffffffffffffffffffffff1614611881576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187890613115565b60405180910390fd5b6118b361188c610742565b828473ffffffffffffffffffffffffffffffffffffffff1661217f9092919063ffffffff16565b5050565b6118bf611e70565b73ffffffffffffffffffffffffffffffffffffffff166118dd610742565b73ffffffffffffffffffffffffffffffffffffffff1614611933576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192a90613115565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff164760405161197990613048565b60006040518083038185875af1925050503d80600081146119b6576040519150601f19603f3d011682016040523d82523d6000602084013e6119bb565b606091505b50509050806119ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f6906137dc565b60405180910390fd5b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60035481565b611a586125fc565b60066000611a668585611e3d565b81526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681525050905092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b611b47611e70565b73ffffffffffffffffffffffffffffffffffffffff16611b65610742565b73ffffffffffffffffffffffffffffffffffffffff1614611bbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb290613115565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c229061386e565b60405180910390fd5b611c3481612018565b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b600460000160019054906101000a900460ff1615611cae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca590613181565b60405180910390fd5b600460000160009054906101000a900460ff16611d00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf790612d2f565b60405180910390fd5b611d08612205565b421015611d4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4190613900565b60405180910390fd5b611d52612229565b565b60008282604051602001611d69929190613920565b60405160208183030381529060405280519060200120905092915050565b60008082905060005b8551811015611e2f576000868281518110611dae57611dad613949565b5b60200260200101519050808311611def578281604051602001611dd2929190613999565b604051602081830303815290604052805190602001209250611e1b565b8083604051602001611e02929190613999565b6040516020818303038152906040528051906020012092505b508080611e2790612f62565b915050611d90565b508381149150509392505050565b60008282604051602001611e52929190613920565b60405160208183030381529060405280519060200120905092915050565b600033905090565b611e80610d53565b611ebf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb690613a11565b60405180910390fd5b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611f02611e70565b604051611f0f9190612942565b60405180910390a1565b611f21612205565b4210611f3457611f2f612229565b612016565b6000610e106003611f45919061329f565b611f4d612205565b611f579190613a31565b90508042106120145760006012610e106003611f73919061329f565b611f7d9190613a65565b90506000818342611f8e9190613a31565b611f989190613a65565b90506008600082815260200190815260200160002060009054906101000a900460ff166120115760016008600083815260200190815260200160002060006101000a81548160ff02191690831515021790555060076012611ff761232f565b6120019190613328565b14156120105761200f612229565b5b5b50505b505b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6120e4610d53565b15612124576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211b90612c57565b60405180910390fd5b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612168611e70565b6040516121759190612942565b60405180910390a1565b6122008363a9059cbb60e01b848460405160240161219e929190613a96565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612371565b505050565b6000610e10600154612217919061329f565b6002546122249190612f0c565b905090565b600460000160019054906101000a900460ff161561227c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227390613181565b60405180910390fd5b600460000160009054906101000a900460ff166122ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c590612d2f565b60405180910390fd5b6001600460000160016101000a81548160ff0219169083151502179055506122f4610d53565b612301576123006120dc565b5b7fa0e92984607195c326795751263414ee1074526323552e694c90ef2b99ae3f2960405160405180910390a1565b60006005546001436123419190613a31565b40604051602001612353929190613abf565b6040516020818303038152906040528051906020012060001c905090565b60006123d3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166124389092919063ffffffff16565b905060008151111561243357808060200190518101906123f39190613b14565b612432576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242990613bb3565b60405180910390fd5b5b505050565b60606124478484600085612450565b90509392505050565b606082471015612495576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248c90613c45565b60405180910390fd5b61249e85612564565b6124dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d490613cb1565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516125069190613d40565b60006040518083038185875af1925050503d8060008114612543576040519150601f19603f3d011682016040523d82523d6000602084013e612548565b606091505b5091509150612558828286612577565b92505050949350505050565b600080823b905060008111915050919050565b60608315612587578290506125d7565b60008351111561259a5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ce9190613dac565b60405180910390fd5b9392505050565b60405180604001604052806000151581526020016000151581525090565b604051806040016040528060006fffffffffffffffffffffffffffffffff16815260200160006fffffffffffffffffffffffffffffffff1681525090565b600082825260208201905092915050565b7f4e6f206574686572207761732073656e74000000000000000000000000000000600082015250565b600061268160118361263a565b915061268c8261264b565b602082019050919050565b600060208201905081810360008301526126b081612674565b9050919050565b7f4f6e6c79206f776e6572206f722062656e65666963696172792063616e20667560008201527f6e6420636f6e7472616374000000000000000000000000000000000000000000602082015250565b6000612713602b8361263a565b915061271e826126b7565b604082019050919050565b6000602082019050818103600083015261274281612706565b9050919050565b6000819050919050565b61275c81612749565b82525050565b60006020820190506127776000830184612753565b92915050565b600080fd5b600080fd5b61279081612749565b811461279b57600080fd5b50565b6000813590506127ad81612787565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126127d8576127d76127b3565b5b8235905067ffffffffffffffff8111156127f5576127f46127b8565b5b602083019150836020820283011115612811576128106127bd565b5b9250929050565b6000806000604084860312156128315761283061277d565b5b600061283f8682870161279e565b935050602084013567ffffffffffffffff8111156128605761285f612782565b5b61286c868287016127c2565b92509250509250925092565b60008115159050919050565b61288d81612878565b82525050565b60006020820190506128a86000830184612884565b92915050565b6000806000606084860312156128c7576128c661277d565b5b60006128d58682870161279e565b93505060206128e68682870161279e565b92505060406128f78682870161279e565b9150509250925092565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061292c82612901565b9050919050565b61293c81612921565b82525050565b60006020820190506129576000830184612933565b92915050565b61296681612878565b82525050565b604082016000820151612982600085018261295d565b506020820151612995602085018261295d565b50505050565b60006040820190506129b0600083018461296c565b92915050565b6000819050919050565b6129c9816129b6565b81146129d457600080fd5b50565b6000813590506129e6816129c0565b92915050565b600060208284031215612a0257612a0161277d565b5b6000612a10848285016129d7565b91505092915050565b6000612a2482612921565b9050919050565b612a3481612a19565b8114612a3f57600080fd5b50565b600081359050612a5181612a2b565b92915050565b60008060408385031215612a6e57612a6d61277d565b5b6000612a7c85828601612a42565b9250506020612a8d8582860161279e565b9150509250929050565b6000612aa282612901565b9050919050565b612ab281612a97565b82525050565b6000602082019050612acd6000830184612aa9565b92915050565b612adc816129b6565b82525050565b6000602082019050612af76000830184612ad3565b92915050565b612b0681612921565b8114612b1157600080fd5b50565b600081359050612b2381612afd565b92915050565b60008060408385031215612b4057612b3f61277d565b5b6000612b4e8582860161279e565b9250506020612b5f85828601612b14565b9150509250929050565b60006fffffffffffffffffffffffffffffffff82169050919050565b612b8e81612b69565b82525050565b604082016000820151612baa6000850182612b85565b506020820151612bbd6020850182612b85565b50505050565b6000604082019050612bd86000830184612b94565b92915050565b600060208284031215612bf457612bf361277d565b5b6000612c0284828501612b14565b91505092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000612c4160108361263a565b9150612c4c82612c0b565b602082019050919050565b60006020820190508181036000830152612c7081612c34565b9050919050565b7f41756374696f6e206861736e277420656e646564207965740000000000000000600082015250565b6000612cad60188361263a565b9150612cb882612c77565b602082019050919050565b60006020820190508181036000830152612cdc81612ca0565b9050919050565b7f41756374696f6e206861736e2774207374617274656420796574000000000000600082015250565b6000612d19601a8361263a565b9150612d2482612ce3565b602082019050919050565b60006020820190508181036000830152612d4881612d0c565b9050919050565b7f526566756e64206d65726b6c6520726f6f74206e6f7420736574000000000000600082015250565b6000612d85601a8361263a565b9150612d9082612d4f565b602082019050919050565b60006020820190508181036000830152612db481612d78565b9050919050565b7f526566756e6420616c7265616479206973737565640000000000000000000000600082015250565b6000612df160158361263a565b9150612dfc82612dbb565b602082019050919050565b60006020820190508181036000830152612e2081612de4565b9050919050565b7f526566756e642070726f6f6620696e76616c6964000000000000000000000000600082015250565b6000612e5d60148361263a565b9150612e6882612e27565b602082019050919050565b60006020820190508181036000830152612e8c81612e50565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612ecd82612b69565b9150612ed883612b69565b9250816fffffffffffffffffffffffffffffffff0483118215151615612f0157612f00612e93565b5b828202905092915050565b6000612f1782612749565b9150612f2283612749565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612f5757612f56612e93565b5b828201905092915050565b6000612f6d82612749565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612fa057612f9f612e93565b5b600182019050919050565b7f526566756e64207265717565737420657863656564732062616c616e63650000600082015250565b6000612fe1601e8361263a565b9150612fec82612fab565b602082019050919050565b6000602082019050818103600083015261301081612fd4565b9050919050565b600081905092915050565b50565b6000613032600083613017565b915061303d82613022565b600082019050919050565b600061305382613025565b9150819050919050565b7f526566756e64206661696c656400000000000000000000000000000000000000600082015250565b6000613093600d8361263a565b915061309e8261305d565b602082019050919050565b600060208201905081810360008301526130c281613086565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006130ff60208361263a565b915061310a826130c9565b602082019050919050565b6000602082019050818103600083015261312e816130f2565b9050919050565b7f41756374696f6e2068617320616c726561647920656e64656400000000000000600082015250565b600061316b60198361263a565b915061317682613135565b602082019050919050565b6000602082019050818103600083015261319a8161315e565b9050919050565b7f426964206c6f776572207468616e206d696e696d756d2062696420696e63726560008201527f6d656e742e000000000000000000000000000000000000000000000000000000602082015250565b60006131fd60258361263a565b9150613208826131a1565b604082019050919050565b6000602082019050818103600083015261322c816131f0565b9050919050565b7f496e76616c69642061756374696f6e496e646578000000000000000000000000600082015250565b600061326960148361263a565b915061327482613233565b602082019050919050565b600060208201905081810360008301526132988161325c565b9050919050565b60006132aa82612749565b91506132b583612749565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156132ee576132ed612e93565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061333382612749565b915061333e83612749565b92508261334e5761334d6132f9565b5b828206905092915050565b7f556e6974207072696365207374657020746f6f20736d616c6c00000000000000600082015250565b600061338f60198361263a565b915061339a82613359565b602082019050919050565b600060208201905081810360008301526133be81613382565b9050919050565b7f5175616e7469747920746f6f206c6f7700000000000000000000000000000000600082015250565b60006133fb60108361263a565b9150613406826133c5565b602082019050919050565b6000602082019050818103600083015261342a816133ee565b9050919050565b7f5175616e7469747920746f6f2068696768000000000000000000000000000000600082015250565b600061346760118361263a565b915061347282613431565b602082019050919050565b600060208201905081810360008301526134968161345a565b9050919050565b7f42616c616e63652063616e2774206265206c6f77657265640000000000000000600082015250565b60006134d360188361263a565b91506134de8261349d565b602082019050919050565b60006020820190508181036000830152613502816134c6565b9050919050565b7f556e69742070726963652063616e2774206265206c6f77657265640000000000600082015250565b600061353f601b8361263a565b915061354a82613509565b602082019050919050565b6000602082019050818103600083015261356e81613532565b9050919050565b7f5175616e74697479202a20556e697420507269636520213d20546f74616c205660008201527f616c756500000000000000000000000000000000000000000000000000000000602082015250565b60006135d160248361263a565b91506135dc82613575565b604082019050919050565b60006020820190508181036000830152613600816135c4565b9050919050565b7f42696420756e697420707269636520746f6f206c6f7700000000000000000000600082015250565b600061363d60168361263a565b915061364882613607565b602082019050919050565b6000602082019050818103600083015261366c81613630565b9050919050565b7f546869732062696420646f65736e2774206368616e676520616e797468696e67600082015250565b60006136a960208361263a565b91506136b482613673565b602082019050919050565b600060208201905081810360008301526136d88161369c565b9050919050565b60006080820190506136f46000830187612753565b6137016020830186612753565b61370e6040830185612753565b61371b6060830184612753565b95945050505050565b7f41756374696f6e2068617320616c726561647920737461727465640000000000600082015250565b600061375a601b8361263a565b915061376582613724565b602082019050919050565b600060208201905081810360008301526137898161374d565b9050919050565b7f5472616e73666572206661696c65640000000000000000000000000000000000600082015250565b60006137c6600f8361263a565b91506137d182613790565b602082019050919050565b600060208201905081810360008301526137f5816137b9565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061385860268361263a565b9150613863826137fc565b604082019050919050565b600060208201905081810360008301526138878161384b565b9050919050565b7f41756374696f6e2063616e27742062652073746f7070656420756e74696c206460008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006138ea60228361263a565b91506138f58261388e565b604082019050919050565b60006020820190508181036000830152613919816138dd565b9050919050565b60006040820190506139356000830185612753565b6139426020830184612933565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000819050919050565b61399361398e826129b6565b613978565b82525050565b60006139a58285613982565b6020820191506139b58284613982565b6020820191508190509392505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006139fb60148361263a565b9150613a06826139c5565b602082019050919050565b60006020820190508181036000830152613a2a816139ee565b9050919050565b6000613a3c82612749565b9150613a4783612749565b925082821015613a5a57613a59612e93565b5b828203905092915050565b6000613a7082612749565b9150613a7b83612749565b925082613a8b57613a8a6132f9565b5b828204905092915050565b6000604082019050613aab6000830185612933565b613ab86020830184612753565b9392505050565b6000604082019050613ad46000830185612753565b613ae16020830184612ad3565b9392505050565b613af181612878565b8114613afc57600080fd5b50565b600081519050613b0e81613ae8565b92915050565b600060208284031215613b2a57613b2961277d565b5b6000613b3884828501613aff565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000613b9d602a8361263a565b9150613ba882613b41565b604082019050919050565b60006020820190508181036000830152613bcc81613b90565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000613c2f60268361263a565b9150613c3a82613bd3565b604082019050919050565b60006020820190508181036000830152613c5e81613c22565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000613c9b601d8361263a565b9150613ca682613c65565b602082019050919050565b60006020820190508181036000830152613cca81613c8e565b9050919050565b600081519050919050565b60005b83811015613cfa578082015181840152602081019050613cdf565b83811115613d09576000848401525b50505050565b6000613d1a82613cd1565b613d248185613017565b9350613d34818560208601613cdc565b80840191505092915050565b6000613d4c8284613d0f565b915081905092915050565b600081519050919050565b6000601f19601f8301169050919050565b6000613d7e82613d57565b613d88818561263a565b9350613d98818560208601613cdc565b613da181613d62565b840191505092915050565b60006020820190508181036000830152613dc68184613d73565b90509291505056fea2646970667358221220c7120cec2e9fe2062b14cdd4b25b5c637c16762c4e524ba15d114649ad9df4cc64736f6c634300080c00330000000000000000000000001ffe9762419a0384b8488c6e1f468d8bfb8d11f300000000000000000000000000000000000000000000000003782dace9d90000000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000780

Deployed Bytecode

0x6080604052600436106101c65760003560e01c806382449a91116100f7578063c04b18d811610095578063ec89b5e011610064578063ec89b5e0146106ac578063f2fde38b146106d7578063f624af1514610700578063fe67a54b1461072b576102db565b8063c04b18d8146105ee578063d9c4870e14610619578063df69050914610644578063eba1b60b1461066f576102db565b80639d6a0f28116100d15780639d6a0f281461055a578063b705400714610585578063bcba6939146105ae578063bfab3db9146105d7576102db565b806382449a91146104ed5780638456cb59146105185780638da5cb5b1461052f576102db565b806350d9d472116101645780635e62be251161013e5780635e62be25146104785780636b64c76914610494578063715018a6146104ab5780637f06cd22146104c2576102db565b806350d9d472146103f7578063510c5d6a146104225780635c975abb1461044d576102db565b8063338bd126116101a0578063338bd1261461035f5780633ba6976b1461038a5780633f4ba83a146103b55780634f245ef7146103cc576102db565b80631d75ddcc146102e0578063211f00361461030b57806327b70d6e14610334576102db565b366102db576000341161020e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161020590612697565b60405180910390fd5b7f0000000000000000000000001ffe9762419a0384b8488c6e1f468d8bfb8d11f373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061029a575061026b610742565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6102d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102d090612729565b60405180910390fd5b005b600080fd5b3480156102ec57600080fd5b506102f561076b565b6040516103029190612762565b60405180910390f35b34801561031757600080fd5b50610332600480360381019061032d9190612818565b61078f565b005b34801561034057600080fd5b50610349610c6a565b6040516103569190612762565b60405180910390f35b34801561036b57600080fd5b50610374610c70565b6040516103819190612762565b60405180910390f35b34801561039657600080fd5b5061039f610c94565b6040516103ac9190612762565b60405180910390f35b3480156103c157600080fd5b506103ca610c99565b005b3480156103d857600080fd5b506103e1610d1f565b6040516103ee9190612762565b60405180910390f35b34801561040357600080fd5b5061040c610d25565b6040516104199190612762565b60405180910390f35b34801561042e57600080fd5b50610437610d49565b6040516104449190612762565b60405180910390f35b34801561045957600080fd5b50610462610d53565b60405161046f9190612893565b60405180910390f35b610492600480360381019061048d91906128ae565b610d69565b005b3480156104a057600080fd5b506104a96113c9565b005b3480156104b757600080fd5b506104c0611554565b005b3480156104ce57600080fd5b506104d76115dc565b6040516104e49190612762565b60405180910390f35b3480156104f957600080fd5b50610502611600565b60405161050f9190612762565b60405180910390f35b34801561052457600080fd5b5061052d611605565b005b34801561053b57600080fd5b50610544610742565b6040516105519190612942565b60405180910390f35b34801561056657600080fd5b5061056f61168b565b60405161057c919061299b565b60405180910390f35b34801561059157600080fd5b506105ac60048036038101906105a791906129ec565b6116db565b005b3480156105ba57600080fd5b506105d560048036038101906105d09190612a57565b611805565b005b3480156105e357600080fd5b506105ec6118b7565b005b3480156105fa57600080fd5b50610603611a02565b6040516106109190612762565b60405180910390f35b34801561062557600080fd5b5061062e611a26565b60405161063b9190612ab8565b60405180910390f35b34801561065057600080fd5b50610659611a4a565b6040516106669190612ae2565b60405180910390f35b34801561067b57600080fd5b5061069660048036038101906106919190612b29565b611a50565b6040516106a39190612bc3565b60405180910390f35b3480156106b857600080fd5b506106c1611b1b565b6040516106ce9190612762565b60405180910390f35b3480156106e357600080fd5b506106fe60048036038101906106f99190612bde565b611b3f565b005b34801561070c57600080fd5b50610715611c37565b6040516107229190612762565b60405180910390f35b34801561073757600080fd5b50610740611c5b565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000000000000000000000000000000000000000000181565b610797610d53565b156107d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ce90612c57565b60405180910390fd5b600460000160019054906101000a900460ff16610829576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082090612cc3565b60405180910390fd5b600460000160009054906101000a900460ff1661087b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087290612d2f565b60405180910390fd5b6000801b60035414156108c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108ba90612d9b565b60405180910390fd5b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610950576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094790612e07565b60405180910390fd5b600061095c8433611d54565b90506109ac838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060035483611d87565b6109eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e290612e73565b60405180910390fd5b600080600090505b7f0000000000000000000000000000000000000000000000000000000000000001811015610acc576000610a278233611e3d565b90506006600082815260200190815260200160002060000160109054906101000a90046fffffffffffffffffffffffffffffffff166006600083815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff16610a999190612ec2565b6fffffffffffffffffffffffffffffffff1683610ab69190612f0c565b9250508080610ac490612f62565b9150506109f3565b5080851115610b10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0790612ff7565b60405180910390fd5b6001600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060003373ffffffffffffffffffffffffffffffffffffffff1686604051610b8e90613048565b60006040518083038185875af1925050503d8060008114610bcb576040519150601f19603f3d011682016040523d82523d6000602084013e610bd0565b606091505b5050905080610c14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0b906130a9565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167fa171b6942063c6f2800ce40a780edce37baa2b618571b11eedd1e69e626e7d7687604051610c5a9190612762565b60405180910390a2505050505050565b60015481565b7f00000000000000000000000000000000000000000000000003782dace9d9000081565b601281565b610ca1611e70565b73ffffffffffffffffffffffffffffffffffffffff16610cbf610742565b73ffffffffffffffffffffffffffffffffffffffff1614610d15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0c90613115565b60405180910390fd5b610d1d611e78565b565b60025481565b7f000000000000000000000000000000000000000000000000000000000000000181565b6000600554905090565b60008060149054906101000a900460ff16905090565b610d71610d53565b15610db1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da890612c57565b60405180910390fd5b600460000160019054906101000a900460ff1615610e04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dfb90613181565b60405180910390fd5b600460000160009054906101000a900460ff16610e56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4d90612d2f565b60405180910390fd5b600034118015610e8557507f000000000000000000000000000000000000000000000000016345785d8a000034105b15610ec5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebc90613213565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000018310610f27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1e9061327f565b60405180910390fd5b6000610f338433611e3d565b905060006006600083815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16905060006006600084815260200190815260200160002060000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16905060008183610fd5919061329f565b90506000859050600087905060003484610fef9190612f0c565b905060007f000000000000000000000000000000000000000000000000002386f26fc100008461101f9190613328565b1461105f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611056906133a5565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000018210156110c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b990613411565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000003821115611125576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111c9061347d565b60405180910390fd5b83811015611168576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115f906134e9565b60405180910390fd5b858310156111ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a290613555565b60405180910390fd5b8083836111b8919061329f565b146111f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ef906135e7565b60405180910390fd5b7f00000000000000000000000000000000000000000000000003782dace9d9000083101561125b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125290613653565b60405180910390fd5b828614801561126957508185145b156112a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a0906136bf565b60405180910390fd5b826006600089815260200190815260200160002060000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550816006600089815260200190815260200160002060000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055503373ffffffffffffffffffffffffffffffffffffffff168a887f873a7b17235b7078b0b53046e05f4271fcef4e1af54cf24fb2395f97f6b8c06660055487878760405161139394939291906136df565b60405180910390a46001600560008282546113ae9190612f0c565b925050819055506113bd611f19565b50505050505050505050565b6113d1611e70565b73ffffffffffffffffffffffffffffffffffffffff166113ef610742565b73ffffffffffffffffffffffffffffffffffffffff1614611445576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143c90613115565b60405180910390fd5b600460000160019054906101000a900460ff1615611498576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148f90613181565b60405180910390fd5b600460000160009054906101000a900460ff16156114eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e290613770565b60405180910390fd5b6001600460000160006101000a81548160ff02191690831515021790555042600281905550611518610d53565b1561152657611525610c99565b5b7fc8f99b9ac2a284b93c3652b9f064a6706724088cdafa9e0a8437c026191b2f0360405160405180910390a1565b61155c611e70565b73ffffffffffffffffffffffffffffffffffffffff1661157a610742565b73ffffffffffffffffffffffffffffffffffffffff16146115d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c790613115565b60405180910390fd5b6115da6000612018565b565b7f000000000000000000000000000000000000000000000000002386f26fc1000081565b600381565b61160d611e70565b73ffffffffffffffffffffffffffffffffffffffff1661162b610742565b73ffffffffffffffffffffffffffffffffffffffff1614611681576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167890613115565b60405180910390fd5b6116896120dc565b565b6116936125de565b60046040518060400160405290816000820160009054906101000a900460ff161515151581526020016000820160019054906101000a900460ff161515151581525050905090565b6116e3611e70565b73ffffffffffffffffffffffffffffffffffffffff16611701610742565b73ffffffffffffffffffffffffffffffffffffffff1614611757576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174e90613115565b60405180910390fd5b600460000160019054906101000a900460ff166117a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a090612cc3565b60405180910390fd5b600460000160009054906101000a900460ff166117fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117f290612d2f565b60405180910390fd5b8060038190555050565b61180d611e70565b73ffffffffffffffffffffffffffffffffffffffff1661182b610742565b73ffffffffffffffffffffffffffffffffffffffff1614611881576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187890613115565b60405180910390fd5b6118b361188c610742565b828473ffffffffffffffffffffffffffffffffffffffff1661217f9092919063ffffffff16565b5050565b6118bf611e70565b73ffffffffffffffffffffffffffffffffffffffff166118dd610742565b73ffffffffffffffffffffffffffffffffffffffff1614611933576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192a90613115565b60405180910390fd5b60007f0000000000000000000000001ffe9762419a0384b8488c6e1f468d8bfb8d11f373ffffffffffffffffffffffffffffffffffffffff164760405161197990613048565b60006040518083038185875af1925050503d80600081146119b6576040519150601f19603f3d011682016040523d82523d6000602084013e6119bb565b606091505b50509050806119ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f6906137dc565b60405180910390fd5b50565b7f000000000000000000000000000000000000000000000000000000000000000381565b7f0000000000000000000000001ffe9762419a0384b8488c6e1f468d8bfb8d11f381565b60035481565b611a586125fc565b60066000611a668585611e3d565b81526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681525050905092915050565b7f000000000000000000000000000000000000000000000000016345785d8a000081565b611b47611e70565b73ffffffffffffffffffffffffffffffffffffffff16611b65610742565b73ffffffffffffffffffffffffffffffffffffffff1614611bbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb290613115565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c229061386e565b60405180910390fd5b611c3481612018565b50565b7f000000000000000000000000000000000000000000000000000000000000078081565b600460000160019054906101000a900460ff1615611cae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca590613181565b60405180910390fd5b600460000160009054906101000a900460ff16611d00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf790612d2f565b60405180910390fd5b611d08612205565b421015611d4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4190613900565b60405180910390fd5b611d52612229565b565b60008282604051602001611d69929190613920565b60405160208183030381529060405280519060200120905092915050565b60008082905060005b8551811015611e2f576000868281518110611dae57611dad613949565b5b60200260200101519050808311611def578281604051602001611dd2929190613999565b604051602081830303815290604052805190602001209250611e1b565b8083604051602001611e02929190613999565b6040516020818303038152906040528051906020012092505b508080611e2790612f62565b915050611d90565b508381149150509392505050565b60008282604051602001611e52929190613920565b60405160208183030381529060405280519060200120905092915050565b600033905090565b611e80610d53565b611ebf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb690613a11565b60405180910390fd5b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611f02611e70565b604051611f0f9190612942565b60405180910390a1565b611f21612205565b4210611f3457611f2f612229565b612016565b6000610e106003611f45919061329f565b611f4d612205565b611f579190613a31565b90508042106120145760006012610e106003611f73919061329f565b611f7d9190613a65565b90506000818342611f8e9190613a31565b611f989190613a65565b90506008600082815260200190815260200160002060009054906101000a900460ff166120115760016008600083815260200190815260200160002060006101000a81548160ff02191690831515021790555060076012611ff761232f565b6120019190613328565b14156120105761200f612229565b5b5b50505b505b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6120e4610d53565b15612124576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211b90612c57565b60405180910390fd5b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612168611e70565b6040516121759190612942565b60405180910390a1565b6122008363a9059cbb60e01b848460405160240161219e929190613a96565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612371565b505050565b6000610e10600154612217919061329f565b6002546122249190612f0c565b905090565b600460000160019054906101000a900460ff161561227c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227390613181565b60405180910390fd5b600460000160009054906101000a900460ff166122ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c590612d2f565b60405180910390fd5b6001600460000160016101000a81548160ff0219169083151502179055506122f4610d53565b612301576123006120dc565b5b7fa0e92984607195c326795751263414ee1074526323552e694c90ef2b99ae3f2960405160405180910390a1565b60006005546001436123419190613a31565b40604051602001612353929190613abf565b6040516020818303038152906040528051906020012060001c905090565b60006123d3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166124389092919063ffffffff16565b905060008151111561243357808060200190518101906123f39190613b14565b612432576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242990613bb3565b60405180910390fd5b5b505050565b60606124478484600085612450565b90509392505050565b606082471015612495576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248c90613c45565b60405180910390fd5b61249e85612564565b6124dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d490613cb1565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516125069190613d40565b60006040518083038185875af1925050503d8060008114612543576040519150601f19603f3d011682016040523d82523d6000602084013e612548565b606091505b5091509150612558828286612577565b92505050949350505050565b600080823b905060008111915050919050565b60608315612587578290506125d7565b60008351111561259a5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ce9190613dac565b60405180910390fd5b9392505050565b60405180604001604052806000151581526020016000151581525090565b604051806040016040528060006fffffffffffffffffffffffffffffffff16815260200160006fffffffffffffffffffffffffffffffff1681525090565b600082825260208201905092915050565b7f4e6f206574686572207761732073656e74000000000000000000000000000000600082015250565b600061268160118361263a565b915061268c8261264b565b602082019050919050565b600060208201905081810360008301526126b081612674565b9050919050565b7f4f6e6c79206f776e6572206f722062656e65666963696172792063616e20667560008201527f6e6420636f6e7472616374000000000000000000000000000000000000000000602082015250565b6000612713602b8361263a565b915061271e826126b7565b604082019050919050565b6000602082019050818103600083015261274281612706565b9050919050565b6000819050919050565b61275c81612749565b82525050565b60006020820190506127776000830184612753565b92915050565b600080fd5b600080fd5b61279081612749565b811461279b57600080fd5b50565b6000813590506127ad81612787565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126127d8576127d76127b3565b5b8235905067ffffffffffffffff8111156127f5576127f46127b8565b5b602083019150836020820283011115612811576128106127bd565b5b9250929050565b6000806000604084860312156128315761283061277d565b5b600061283f8682870161279e565b935050602084013567ffffffffffffffff8111156128605761285f612782565b5b61286c868287016127c2565b92509250509250925092565b60008115159050919050565b61288d81612878565b82525050565b60006020820190506128a86000830184612884565b92915050565b6000806000606084860312156128c7576128c661277d565b5b60006128d58682870161279e565b93505060206128e68682870161279e565b92505060406128f78682870161279e565b9150509250925092565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061292c82612901565b9050919050565b61293c81612921565b82525050565b60006020820190506129576000830184612933565b92915050565b61296681612878565b82525050565b604082016000820151612982600085018261295d565b506020820151612995602085018261295d565b50505050565b60006040820190506129b0600083018461296c565b92915050565b6000819050919050565b6129c9816129b6565b81146129d457600080fd5b50565b6000813590506129e6816129c0565b92915050565b600060208284031215612a0257612a0161277d565b5b6000612a10848285016129d7565b91505092915050565b6000612a2482612921565b9050919050565b612a3481612a19565b8114612a3f57600080fd5b50565b600081359050612a5181612a2b565b92915050565b60008060408385031215612a6e57612a6d61277d565b5b6000612a7c85828601612a42565b9250506020612a8d8582860161279e565b9150509250929050565b6000612aa282612901565b9050919050565b612ab281612a97565b82525050565b6000602082019050612acd6000830184612aa9565b92915050565b612adc816129b6565b82525050565b6000602082019050612af76000830184612ad3565b92915050565b612b0681612921565b8114612b1157600080fd5b50565b600081359050612b2381612afd565b92915050565b60008060408385031215612b4057612b3f61277d565b5b6000612b4e8582860161279e565b9250506020612b5f85828601612b14565b9150509250929050565b60006fffffffffffffffffffffffffffffffff82169050919050565b612b8e81612b69565b82525050565b604082016000820151612baa6000850182612b85565b506020820151612bbd6020850182612b85565b50505050565b6000604082019050612bd86000830184612b94565b92915050565b600060208284031215612bf457612bf361277d565b5b6000612c0284828501612b14565b91505092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000612c4160108361263a565b9150612c4c82612c0b565b602082019050919050565b60006020820190508181036000830152612c7081612c34565b9050919050565b7f41756374696f6e206861736e277420656e646564207965740000000000000000600082015250565b6000612cad60188361263a565b9150612cb882612c77565b602082019050919050565b60006020820190508181036000830152612cdc81612ca0565b9050919050565b7f41756374696f6e206861736e2774207374617274656420796574000000000000600082015250565b6000612d19601a8361263a565b9150612d2482612ce3565b602082019050919050565b60006020820190508181036000830152612d4881612d0c565b9050919050565b7f526566756e64206d65726b6c6520726f6f74206e6f7420736574000000000000600082015250565b6000612d85601a8361263a565b9150612d9082612d4f565b602082019050919050565b60006020820190508181036000830152612db481612d78565b9050919050565b7f526566756e6420616c7265616479206973737565640000000000000000000000600082015250565b6000612df160158361263a565b9150612dfc82612dbb565b602082019050919050565b60006020820190508181036000830152612e2081612de4565b9050919050565b7f526566756e642070726f6f6620696e76616c6964000000000000000000000000600082015250565b6000612e5d60148361263a565b9150612e6882612e27565b602082019050919050565b60006020820190508181036000830152612e8c81612e50565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612ecd82612b69565b9150612ed883612b69565b9250816fffffffffffffffffffffffffffffffff0483118215151615612f0157612f00612e93565b5b828202905092915050565b6000612f1782612749565b9150612f2283612749565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612f5757612f56612e93565b5b828201905092915050565b6000612f6d82612749565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612fa057612f9f612e93565b5b600182019050919050565b7f526566756e64207265717565737420657863656564732062616c616e63650000600082015250565b6000612fe1601e8361263a565b9150612fec82612fab565b602082019050919050565b6000602082019050818103600083015261301081612fd4565b9050919050565b600081905092915050565b50565b6000613032600083613017565b915061303d82613022565b600082019050919050565b600061305382613025565b9150819050919050565b7f526566756e64206661696c656400000000000000000000000000000000000000600082015250565b6000613093600d8361263a565b915061309e8261305d565b602082019050919050565b600060208201905081810360008301526130c281613086565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006130ff60208361263a565b915061310a826130c9565b602082019050919050565b6000602082019050818103600083015261312e816130f2565b9050919050565b7f41756374696f6e2068617320616c726561647920656e64656400000000000000600082015250565b600061316b60198361263a565b915061317682613135565b602082019050919050565b6000602082019050818103600083015261319a8161315e565b9050919050565b7f426964206c6f776572207468616e206d696e696d756d2062696420696e63726560008201527f6d656e742e000000000000000000000000000000000000000000000000000000602082015250565b60006131fd60258361263a565b9150613208826131a1565b604082019050919050565b6000602082019050818103600083015261322c816131f0565b9050919050565b7f496e76616c69642061756374696f6e496e646578000000000000000000000000600082015250565b600061326960148361263a565b915061327482613233565b602082019050919050565b600060208201905081810360008301526132988161325c565b9050919050565b60006132aa82612749565b91506132b583612749565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156132ee576132ed612e93565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061333382612749565b915061333e83612749565b92508261334e5761334d6132f9565b5b828206905092915050565b7f556e6974207072696365207374657020746f6f20736d616c6c00000000000000600082015250565b600061338f60198361263a565b915061339a82613359565b602082019050919050565b600060208201905081810360008301526133be81613382565b9050919050565b7f5175616e7469747920746f6f206c6f7700000000000000000000000000000000600082015250565b60006133fb60108361263a565b9150613406826133c5565b602082019050919050565b6000602082019050818103600083015261342a816133ee565b9050919050565b7f5175616e7469747920746f6f2068696768000000000000000000000000000000600082015250565b600061346760118361263a565b915061347282613431565b602082019050919050565b600060208201905081810360008301526134968161345a565b9050919050565b7f42616c616e63652063616e2774206265206c6f77657265640000000000000000600082015250565b60006134d360188361263a565b91506134de8261349d565b602082019050919050565b60006020820190508181036000830152613502816134c6565b9050919050565b7f556e69742070726963652063616e2774206265206c6f77657265640000000000600082015250565b600061353f601b8361263a565b915061354a82613509565b602082019050919050565b6000602082019050818103600083015261356e81613532565b9050919050565b7f5175616e74697479202a20556e697420507269636520213d20546f74616c205660008201527f616c756500000000000000000000000000000000000000000000000000000000602082015250565b60006135d160248361263a565b91506135dc82613575565b604082019050919050565b60006020820190508181036000830152613600816135c4565b9050919050565b7f42696420756e697420707269636520746f6f206c6f7700000000000000000000600082015250565b600061363d60168361263a565b915061364882613607565b602082019050919050565b6000602082019050818103600083015261366c81613630565b9050919050565b7f546869732062696420646f65736e2774206368616e676520616e797468696e67600082015250565b60006136a960208361263a565b91506136b482613673565b602082019050919050565b600060208201905081810360008301526136d88161369c565b9050919050565b60006080820190506136f46000830187612753565b6137016020830186612753565b61370e6040830185612753565b61371b6060830184612753565b95945050505050565b7f41756374696f6e2068617320616c726561647920737461727465640000000000600082015250565b600061375a601b8361263a565b915061376582613724565b602082019050919050565b600060208201905081810360008301526137898161374d565b9050919050565b7f5472616e73666572206661696c65640000000000000000000000000000000000600082015250565b60006137c6600f8361263a565b91506137d182613790565b602082019050919050565b600060208201905081810360008301526137f5816137b9565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061385860268361263a565b9150613863826137fc565b604082019050919050565b600060208201905081810360008301526138878161384b565b9050919050565b7f41756374696f6e2063616e27742062652073746f7070656420756e74696c206460008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006138ea60228361263a565b91506138f58261388e565b604082019050919050565b60006020820190508181036000830152613919816138dd565b9050919050565b60006040820190506139356000830185612753565b6139426020830184612933565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000819050919050565b61399361398e826129b6565b613978565b82525050565b60006139a58285613982565b6020820191506139b58284613982565b6020820191508190509392505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006139fb60148361263a565b9150613a06826139c5565b602082019050919050565b60006020820190508181036000830152613a2a816139ee565b9050919050565b6000613a3c82612749565b9150613a4783612749565b925082821015613a5a57613a59612e93565b5b828203905092915050565b6000613a7082612749565b9150613a7b83612749565b925082613a8b57613a8a6132f9565b5b828204905092915050565b6000604082019050613aab6000830185612933565b613ab86020830184612753565b9392505050565b6000604082019050613ad46000830185612753565b613ae16020830184612ad3565b9392505050565b613af181612878565b8114613afc57600080fd5b50565b600081519050613b0e81613ae8565b92915050565b600060208284031215613b2a57613b2961277d565b5b6000613b3884828501613aff565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000613b9d602a8361263a565b9150613ba882613b41565b604082019050919050565b60006020820190508181036000830152613bcc81613b90565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000613c2f60268361263a565b9150613c3a82613bd3565b604082019050919050565b60006020820190508181036000830152613c5e81613c22565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000613c9b601d8361263a565b9150613ca682613c65565b602082019050919050565b60006020820190508181036000830152613cca81613c8e565b9050919050565b600081519050919050565b60005b83811015613cfa578082015181840152602081019050613cdf565b83811115613d09576000848401525b50505050565b6000613d1a82613cd1565b613d248185613017565b9350613d34818560208601613cdc565b80840191505092915050565b6000613d4c8284613d0f565b915081905092915050565b600081519050919050565b6000601f19601f8301169050919050565b6000613d7e82613d57565b613d88818561263a565b9350613d98818560208601613cdc565b613da181613d62565b840191505092915050565b60006020820190508181036000830152613dc68184613d73565b90509291505056fea2646970667358221220c7120cec2e9fe2062b14cdd4b25b5c637c16762c4e524ba15d114649ad9df4cc64736f6c634300080c0033

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

0000000000000000000000001ffe9762419a0384b8488c6e1f468d8bfb8d11f300000000000000000000000000000000000000000000000003782dace9d90000000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000780

-----Decoded View---------------
Arg [0] : beneficiaryAddress_ (address): 0x1FFE9762419a0384B8488c6e1f468d8BfB8d11f3
Arg [1] : minimumUnitPrice_ (uint256): 250000000000000000
Arg [2] : minimumBidIncrement_ (uint256): 100000000000000000
Arg [3] : unitPriceStepSize_ (uint256): 10000000000000000
Arg [4] : maximumQuantity_ (uint256): 3
Arg [5] : numberOfAuctions_ (uint256): 1
Arg [6] : itemsPerAuction_ (uint256): 1920

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000001ffe9762419a0384b8488c6e1f468d8bfb8d11f3
Arg [1] : 00000000000000000000000000000000000000000000000003782dace9d90000
Arg [2] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [3] : 000000000000000000000000000000000000000000000000002386f26fc10000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000780


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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