Contract 0x599fb6c640f51ed0e16c9793d4a01f98aba1293b 2

 

Contract Overview

Balance:
0 MATIC

MATIC Value:
$0.00

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x64f8a221a6905a809845ea36d91fa5071d363dc6e49e3c0030dd549a6942e134Claim NFT257401882022-03-08 21:31:54270 days 4 mins ago0xa01a05665b010b041199030115a502a9a32687a1 IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.005166761674 30.071306533
0x5283e86bc9dc7bd72b79d3edaddc1a9547e006ceff2e354afb231217b0c451e6Claim NFT257401662022-03-08 21:31:10270 days 5 mins ago0xa01a05665b010b041199030115a502a9a32687a1 IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.005166761674 30.071306534
0x439a32b534c7ffafb92c8cc3d0eeb02b20a1ed1a686aec5b2dbf7c22842fc7aeClaim NFT257401632022-03-08 21:31:04270 days 5 mins ago0xa01a05665b010b041199030115a502a9a32687a1 IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.005166761674 30.071306534
0x2856faf376bea0907d174af2efc4d701116aba9b012feb83b944e0313fc393f4Claim NFT257401612022-03-08 21:31:00270 days 5 mins ago0xa01a05665b010b041199030115a502a9a32687a1 IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.005166761674 30.071306534
0x5d5d836ec1624ca80e691073ab5ddec88949ac4170cd69a32f2c0bef7d3c145bClaim NFT257401592022-03-08 21:30:52270 days 5 mins ago0xa01a05665b010b041199030115a502a9a32687a1 IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.005166761674 30.071306534
0xf4e993e5fa64f18539470ede2c6929798369e8c78f36bf1c628aadf1e36c2572Claim NFT257401572022-03-08 21:30:48270 days 6 mins ago0xa01a05665b010b041199030115a502a9a32687a1 IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.005250961333 30.071306534
0x1b1a12ea9c06d8b3f81b6ed6e97ea7a43014f380b88255a831a6949d7c0e0466Claim NFT257401522022-03-08 21:30:38270 days 6 mins ago0xa01a05665b010b041199030115a502a9a32687a1 IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.005166761674 30.071306534
0xc23b54e2aaa2fe53dff045d1f9f4001c93807b3268669e9b1911eb274f1ffd47Claim NFT257401302022-03-08 21:29:54270 days 6 mins ago0xa01a05665b010b041199030115a502a9a32687a1 IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.005166761674 30.071306535
0x2069ffc54771f3219987ee373d8004aa65685c9f86e4ecad0ebd7725da799dc4Claim NFT257401272022-03-08 21:29:48270 days 7 mins ago0xa01a05665b010b041199030115a502a9a32687a1 IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.005166761674 30.071306535
0x95ebbd54a5406983299d78957288d2c39d023ef21a62e4628f1d36bda8219be9Claim NFT257401252022-03-08 21:29:44270 days 7 mins ago0xa01a05665b010b041199030115a502a9a32687a1 IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.005166761674 30.071306535
0xcf684036003557a17498d12b985e282fd87806a64af683f3f794c4152770e2f8Claim NFT257401222022-03-08 21:29:38270 days 7 mins ago0xa01a05665b010b041199030115a502a9a32687a1 IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.005166761674 30.071306534
0x9775f31c01fdbd89b65d4056cc09abd55ea8dd1c6121f6b735dbbd8f2d60c0deClaim NFT257401192022-03-08 21:29:32270 days 7 mins ago0xa01a05665b010b041199030115a502a9a32687a1 IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.005166761674 30.071306534
0x919bcf4b652e3079b582c11c40d31d00e059da0f080e99194a979e85f093f2a4Claim NFT257401152022-03-08 21:29:24270 days 7 mins ago0xa01a05665b010b041199030115a502a9a32687a1 IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.005166761674 30.071306534
0xc20fa177e7e08ea15bf91cec2c52633b45115cb4fec350587b9d41c61dd10a07Claim NFT257401132022-03-08 21:29:20270 days 7 mins ago0xa01a05665b010b041199030115a502a9a32687a1 IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.005166761674 30.071306534
0xaada32ef8d6eb5b138c890146d3fd4f97cac9af7d8ad0020ddfd9db705a27e4cClaim NFT257401102022-03-08 21:29:14270 days 7 mins ago0xa01a05665b010b041199030115a502a9a32687a1 IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.005166761674 30.071306534
0xd8f8110c1e34e1fc6c2bbf72ef31360b88282ccaa44b0af723efa5019e83abf9Claim NFT257401072022-03-08 21:29:08270 days 7 mins ago0xa01a05665b010b041199030115a502a9a32687a1 IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.000956447975 30.071306534
0xe55ec31c12bfb73778262a9defb25a56793dbf9189c0cf108bab882bec0ce57fClaim NFT257401032022-03-08 21:29:00270 days 7 mins ago0xa01a05665b010b041199030115a502a9a32687a1 IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.005166761674 30.071306534
0xcad5c2c9461c7fad5c50a194eb69b2641d02e46bba5859e4e00acd43e108044aClaim NFT257401002022-03-08 21:28:54270 days 7 mins ago0xa01a05665b010b041199030115a502a9a32687a1 IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.005166761674 30.071306534
0xab316311fc7ec47780bc1e034ebe1a4adf75634521609d4659b57e75221725acClaim NFT257400972022-03-08 21:28:48270 days 8 mins ago0xa01a05665b010b041199030115a502a9a32687a1 IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.005166761674 30.071306534
0xf4bb0b79cd0fbfd2666080524bfedf0884b1ec990645eecf168e5ab3568445c5Claim NFT257400942022-03-08 21:28:38270 days 8 mins ago0xa01a05665b010b041199030115a502a9a32687a1 IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.005166761674 30.071306534
0x2a2e653f2a067a618c58797d85cc56c5c4c37e2d77b893de275e7383573a36f9Claim NFT257400252022-03-08 21:26:16270 days 10 mins ago0xa01a05665b010b041199030115a502a9a32687a1 IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.005082562017 30.07130654
0x76abe65cb75ee2142ad7419388aedf9ad5ca8e33b6366961886493325b0160aaTransfer Ownersh...257399582022-03-08 21:23:40270 days 13 mins ago0x34c8ac12dcf5b0e4ed2deea7ad9504b3bcdf5e8f IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.000873360955 30.071306544
0xc52ed497d640f4f86f5273b243c6f198924ca7509adb162f94b23d612b3c1a59Withdraw Tokens256997932022-03-07 21:00:19271 days 36 mins ago0x34c8ac12dcf5b0e4ed2deea7ad9504b3bcdf5e8f IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.00139815667 30.588213936
0x98b2ab2af5c4b3854446c4f136c22152b007c7ab6e84f57fd596ee07bfce1db6Place Bid256943352022-03-07 17:41:18271 days 3 hrs ago0x64a77ffb6e739a01c6eef98c2501ad5c36b3ca9b IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.002871910169 32.084796888
0xd8788337bcf1b7290deaa2e2d8bea01f3cbfe379f0df6089c1ddc5628d42f4a5Place Bid256862062022-03-07 12:41:40271 days 8 hrs ago0x747ca36e8ac6ba9a452f7e2fbf234b1153216250 IN  0x599fb6c640f51ed0e16c9793d4a01f98aba1293b0 MATIC0.00268576171430.001136191
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
QueenAuction

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 6 : QueenAuction.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
import '@openzeppelin/contracts/access/Ownable.sol';

interface IQueenNFT {
    function auctionMint(uint id, address to) external;
}


contract QueenAuction is Ownable {

    using SafeERC20 for IERC20;

    uint public bidIncrement;
    uint public startTime;
    uint public endTime;

    IERC20 public daiToken;

    IQueenNFT public queenNft;

    uint public minPrice;

    uint auctionInterval = 8 hours; // Auction interval - 8 hours

    //Events for Bidding and claiming NFT
    event Bid(uint id, address bidder, uint bid);

    //Event emitted when the winer has claimed their nft
    event NFTClaim(uint id, address withdrawalAccount, uint amount);

    constructor (uint _bidIncrement, uint _initialBid, address _queenAddress, address _dai) {
       
        bidIncrement = _bidIncrement;
        minPrice = _initialBid;
        queenNft = IQueenNFT(_queenAddress);
        daiToken = IERC20(_dai);

    }

    ///Struct containing data about the highest bid for a particular nft
    struct AuctionData {
        uint id;
        uint highestBid;
        address highestBidder;
        bool isWithdrawn;
    }

    //mapping from token id to auctionData
    mapping(uint => AuctionData) public HighestBidDetails;

    
    /**
    * @dev Returns the token id of the nft currently up for auction, returns 0 if there is nothing up for auction
    */
    function getActiveID() public view returns(uint) {
        uint timeDifference = block.timestamp - startTime;
        uint id = timeDifference / auctionInterval;

        if(id >= 20) {
            return 0;
        }

        unchecked {
            return 20 - id;
        }
    }

    /**
    * @dev Place a bid for the current nft up for auction
    * requires the auction to have started and not be over, the nft being bid on to be the current nft for auction,
    * and the value of the bid to be at least the minimum bid amount, greator than the current highest bid, and increased from the min bid
    * by a multiple of bidIncrement.
    * @notice dai tokens are sent to the contract on successful bid, and if a bid is beaten the tokens they sent will be sent back
    */
    function placeBid(uint id, uint amount)
        public
        onlyAfterStart
        onlyBeforeEnd
        shouldBeAuctionID(id)
        shouldBeActiveID(id)
        returns (bool success)
    {
    
        require(daiToken.balanceOf(msg.sender) >= amount, "Insufficient balance to place bid");
        
        AuctionData memory highestBidder = HighestBidDetails[id];

        require(amount >= minPrice, "Amount is lower than base price");

        require((amount - minPrice) % bidIncrement == 0, "Increment should be a multiple of bidIncrement");
        
        if(highestBidder.highestBid > 0) {

            require(amount >= (highestBidder.highestBid + bidIncrement), "New Bid must be increased by the bid increment");
        }

        // Transfer tokens to this contract
        daiToken.transferFrom(msg.sender, address(this), amount);

        // If there was a previous bidder, send the tokens back
        if(highestBidder.highestBid > 0) {
            daiToken.transfer(highestBidder.highestBidder, highestBidder.highestBid);
        }

        highestBidder.highestBid = amount;
        highestBidder.highestBidder = msg.sender;
        highestBidder.id = id;

        HighestBidDetails[id] = highestBidder;

        emit Bid(id, highestBidder.highestBidder, highestBidder.highestBid);
        return true;
    }

    /**
    * @dev Mints a nft for the winner of the auction for that nft
    * Requires the nft to not have been already claimed, and that the auction for that nft to be over
    */
    function claimNFT(uint id)
        shouldBeAuctionID(id)
        onlyEnded(id)
        onlyOwner
        public
        returns (bool success)
    {
        require(!HighestBidDetails[id].isWithdrawn, "Already withdrawn");

        AuctionData memory data = HighestBidDetails[id];
        require(data.highestBid > 0, "None of the Bid has enough wallet balance");

        address withdrawalAccount = data.highestBidder;
        uint withdrawalAmount = data.highestBid;
        data.isWithdrawn = true;

        require(withdrawalAccount != address(0) && withdrawalAmount > 0, "Unable to withdraw");

        queenNft.auctionMint(id, withdrawalAccount);
        HighestBidDetails[id] = data;

        emit NFTClaim(id, withdrawalAccount, withdrawalAmount);

        return true;
    }

    function getHighestBidder(uint id) public view returns(AuctionData memory) {

        return HighestBidDetails[id];

    }

    /**
    * @dev Changes the auction interval
    * Requires the caller to be the owner of this contract
    */
    function setAuctionInterval(uint _interval) public onlyOwner {
        auctionInterval = _interval;
    }

    /**
    * @dev Changes the nft that will be minted on claiming a successful bid for a token
    */
    function changeNFTinterface(address _addr) public onlyOwner {
        queenNft = IQueenNFT(_addr);
    }

    /**
    * @dev Withdraws erc20 tokens of the provided address from the contract to the owner of the contract
    * Requires the caller to be the owner of this contract, and can only be called once all the auctions have been completed
    */
	function withdrawTokens(address _tokenAddress) public onlyOwner onlyAfterEnd {
		require(_tokenAddress != address(0), "invalid address");

        IERC20 token = IERC20(_tokenAddress);

		uint256 balance = token.balanceOf(address(this));
		token.transfer(msg.sender, balance);
	}

    /**
    * @dev starts the auction, setting the start time as the current time, and the end time as 20 * the auction interval
    * Requires the caller to be the owner of this contract
    */
    function startAuction() public onlyOwner {

        uint time = block.timestamp;

        startTime = time;

        endTime = time + (20 * auctionInterval);

    }

    /**
    * @dev requires the id to be of a token that has finished being auctioned
    */
    modifier onlyEnded(uint id) {
        require(id > getActiveID(), "Auction not ended for the given ID");
        _;
    }

    /**
    * @dev requires the id to be the id of the active nft for auction
    */
    modifier shouldBeActiveID(uint id) {
        require(id == getActiveID(), "Not an active ID");
        _;
    }

    /**
    * @dev requires that the auction id is a valid token for auction
    */
    modifier shouldBeAuctionID(uint id) {
        require(id >= 1 && id <= 20, "Invalid ID");
        _;
    }

    /**
    * @dev requires that the auction has started
    */
    modifier onlyAfterStart {
        require(startTime > 0, "Auction hasnt started");
        require(block.timestamp > startTime, "Auction not started yet!");
        _;
    }

    /**
    * @dev requires that the auction has has not ended
    */
    modifier onlyBeforeEnd {
        require(endTime > 0, "Endtime not set");
        require(block.timestamp < endTime, "Auction ended!");
        _;
    }

    /**
    * @dev requires that the auction has has ended
    */
    modifier onlyAfterEnd {
        require(endTime > 0, "EndTime not set");
        require(block.timestamp > endTime, "Auction not over");
        _;
    }

}

File 2 of 6 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

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 3 of 6 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_bidIncrement","type":"uint256"},{"internalType":"uint256","name":"_initialBid","type":"uint256"},{"internalType":"address","name":"_queenAddress","type":"address"},{"internalType":"address","name":"_dai","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"bid","type":"uint256"}],"name":"Bid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"address","name":"withdrawalAccount","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"NFTClaim","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"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"HighestBidDetails","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"highestBid","type":"uint256"},{"internalType":"address","name":"highestBidder","type":"address"},{"internalType":"bool","name":"isWithdrawn","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bidIncrement","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"changeNFTinterface","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"claimNFT","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"daiToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getActiveID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getHighestBidder","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"highestBid","type":"uint256"},{"internalType":"address","name":"highestBidder","type":"address"},{"internalType":"bool","name":"isWithdrawn","type":"bool"}],"internalType":"struct QueenAuction.AuctionData","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"placeBid","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"queenNft","outputs":[{"internalType":"contract IQueenNFT","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_interval","type":"uint256"}],"name":"setAuctionInterval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526170806007553480156200001757600080fd5b50604051620029cd380380620029cd83398181016040528101906200003d919062000268565b6200005d62000051620000f760201b60201c565b620000ff60201b60201c565b836001819055508260068190555081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050620002da565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b6000819050919050565b620001dd81620001c8565b8114620001e957600080fd5b50565b600081519050620001fd81620001d2565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620002308262000203565b9050919050565b620002428162000223565b81146200024e57600080fd5b50565b600081519050620002628162000237565b92915050565b60008060008060808587031215620002855762000284620001c3565b5b60006200029587828801620001ec565b9450506020620002a887828801620001ec565b9350506040620002bb8782880162000251565b9250506060620002ce8782880162000251565b91505092959194509250565b6126e380620002ea6000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80638da5cb5b116100a2578063c750cb7911610071578063c750cb791461029c578063c8f412ed146102cc578063e45be8eb146102e8578063f2fde38b14610306578063fe5c873a1461032257610116565b80638da5cb5b1461020f5780639eb18e471461022d578063b3cc167a14610260578063be22f5461461027e57610116565b806357c90de5116100e957806357c90de51461018f578063584f6021146101bf5780636b64c769146101dd578063715018a6146101e757806378e97925146101f157610116565b8063066779bc1461011b5780633197cbb6146101375780633f1e44c91461015557806349df728c14610173575b600080fd5b610135600480360381019061013091906117c3565b610352565b005b61013f610412565b60405161014c9190611809565b60405180910390f35b61015d610418565b60405161016a9190611883565b60405180910390f35b61018d600480360381019061018891906117c3565b61043e565b005b6101a960048036038101906101a491906118ca565b6106ba565b6040516101b69190611925565b60405180910390f35b6101c7610d7a565b6040516101d49190611809565b60405180910390f35b6101e5610dbe565b005b6101ef610e69565b005b6101f9610ef1565b6040516102069190611809565b60405180910390f35b610217610ef7565b604051610224919061194f565b60405180910390f35b6102476004803603810190610242919061196a565b610f20565b6040516102579493929190611997565b60405180910390f35b610268610f7d565b6040516102759190611809565b60405180910390f35b610286610f83565b60405161029391906119fd565b60405180910390f35b6102b660048036038101906102b1919061196a565b610fa9565b6040516102c39190611a9a565b60405180910390f35b6102e660048036038101906102e1919061196a565b61105b565b005b6102f06110e1565b6040516102fd9190611809565b60405180910390f35b610320600480360381019061031b91906117c3565b6110e7565b005b61033c6004803603810190610337919061196a565b6111df565b6040516103499190611925565b60405180910390f35b61035a611654565b73ffffffffffffffffffffffffffffffffffffffff16610378610ef7565b73ffffffffffffffffffffffffffffffffffffffff16146103ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103c590611b12565b60405180910390fd5b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60035481565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610446611654565b73ffffffffffffffffffffffffffffffffffffffff16610464610ef7565b73ffffffffffffffffffffffffffffffffffffffff16146104ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104b190611b12565b60405180910390fd5b6000600354116104ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104f690611b7e565b60405180910390fd5b6003544211610543576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161053a90611bea565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156105b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105aa90611c56565b60405180910390fd5b600081905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016105f3919061194f565b602060405180830381865afa158015610610573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106349190611c8b565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610671929190611cb8565b6020604051808303816000875af1158015610690573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b49190611d0d565b50505050565b60008060025411610700576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106f790611d86565b60405180910390fd5b6002544211610744576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161073b90611df2565b60405180910390fd5b600060035411610789576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078090611e5e565b60405180910390fd5b60035442106107cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c490611eca565b60405180910390fd5b82600181101580156107e0575060148111155b61081f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081690611f36565b60405180910390fd5b83610828610d7a565b8114610869576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086090611fa2565b60405180910390fd5b83600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016108c5919061194f565b602060405180830381865afa1580156108e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109069190611c8b565b1015610947576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093e90612034565b60405180910390fd5b60006008600087815260200190815260200160002060405180608001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016002820160149054906101000a900460ff1615151515815250509050600654851015610a33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2a906120a0565b60405180910390fd5b600060015460065487610a4691906120ef565b610a509190612152565b14610a90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a87906121f5565b60405180910390fd5b600081602001511115610af2576001548160200151610aaf9190612215565b851015610af1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae8906122dd565b60405180910390fd5b5b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330886040518463ffffffff1660e01b8152600401610b51939291906122fd565b6020604051808303816000875af1158015610b70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b949190611d0d565b50600081602001511115610c4c57600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb826040015183602001516040518363ffffffff1660e01b8152600401610c07929190611cb8565b6020604051808303816000875af1158015610c26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4a9190611d0d565b505b8481602001818152505033816040019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050858160000181815250508060086000888152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060608201518160020160146101000a81548160ff0219169083151502179055509050507fdcd726e11f8b5e160f00290f0fe3a1abb547474e53a8e7a8f49a85e7b1ca31998682604001518360200151604051610d6593929190612334565b60405180910390a16001935050505092915050565b60008060025442610d8b91906120ef565b9050600060075482610d9d919061236b565b905060148110610db257600092505050610dbb565b80601403925050505b90565b610dc6611654565b73ffffffffffffffffffffffffffffffffffffffff16610de4610ef7565b73ffffffffffffffffffffffffffffffffffffffff1614610e3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3190611b12565b60405180910390fd5b6000429050806002819055506007546014610e55919061239c565b81610e609190612215565b60038190555050565b610e71611654565b73ffffffffffffffffffffffffffffffffffffffff16610e8f610ef7565b73ffffffffffffffffffffffffffffffffffffffff1614610ee5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610edc90611b12565b60405180910390fd5b610eef600061165c565b565b60025481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60086020528060005260406000206000915090508060000154908060010154908060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020160149054906101000a900460ff16905084565b60015481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610fb1611720565b6008600083815260200190815260200160002060405180608001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016002820160149054906101000a900460ff1615151515815250509050919050565b611063611654565b73ffffffffffffffffffffffffffffffffffffffff16611081610ef7565b73ffffffffffffffffffffffffffffffffffffffff16146110d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ce90611b12565b60405180910390fd5b8060078190555050565b60065481565b6110ef611654565b73ffffffffffffffffffffffffffffffffffffffff1661110d610ef7565b73ffffffffffffffffffffffffffffffffffffffff1614611163576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115a90611b12565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156111d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ca90612468565b60405180910390fd5b6111dc8161165c565b50565b600081600181101580156111f4575060148111155b611233576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122a90611f36565b60405180910390fd5b8261123c610d7a565b811161127d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611274906124fa565b60405180910390fd5b611285611654565b73ffffffffffffffffffffffffffffffffffffffff166112a3610ef7565b73ffffffffffffffffffffffffffffffffffffffff16146112f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f090611b12565b60405180910390fd5b6008600085815260200190815260200160002060020160149054906101000a900460ff161561135d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135490612566565b60405180910390fd5b60006008600086815260200190815260200160002060405180608001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016002820160149054906101000a900460ff1615151515815250509050600081602001511161144b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611442906125f8565b60405180910390fd5b6000816040015190506000826020015190506001836060019015159081151581525050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141580156114ab5750600081115b6114ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e190612664565b60405180910390fd5b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636069a24688846040518363ffffffff1660e01b8152600401611547929190612684565b600060405180830381600087803b15801561156157600080fd5b505af1158015611575573d6000803e3d6000fd5b505050508260086000898152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060608201518160020160146101000a81548160ff0219169083151502179055509050507f8ce3d4c8c19a3d31ad8a39d81250c838db0825883d99cf2b18f63ca2ab29f8f087838360405161163e93929190612334565b60405180910390a1600195505050505050919050565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60405180608001604052806000815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff1681526020016000151581525090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061179082611765565b9050919050565b6117a081611785565b81146117ab57600080fd5b50565b6000813590506117bd81611797565b92915050565b6000602082840312156117d9576117d8611760565b5b60006117e7848285016117ae565b91505092915050565b6000819050919050565b611803816117f0565b82525050565b600060208201905061181e60008301846117fa565b92915050565b6000819050919050565b600061184961184461183f84611765565b611824565b611765565b9050919050565b600061185b8261182e565b9050919050565b600061186d82611850565b9050919050565b61187d81611862565b82525050565b60006020820190506118986000830184611874565b92915050565b6118a7816117f0565b81146118b257600080fd5b50565b6000813590506118c48161189e565b92915050565b600080604083850312156118e1576118e0611760565b5b60006118ef858286016118b5565b9250506020611900858286016118b5565b9150509250929050565b60008115159050919050565b61191f8161190a565b82525050565b600060208201905061193a6000830184611916565b92915050565b61194981611785565b82525050565b60006020820190506119646000830184611940565b92915050565b6000602082840312156119805761197f611760565b5b600061198e848285016118b5565b91505092915050565b60006080820190506119ac60008301876117fa565b6119b960208301866117fa565b6119c66040830185611940565b6119d36060830184611916565b95945050505050565b60006119e782611850565b9050919050565b6119f7816119dc565b82525050565b6000602082019050611a1260008301846119ee565b92915050565b611a21816117f0565b82525050565b611a3081611785565b82525050565b611a3f8161190a565b82525050565b608082016000820151611a5b6000850182611a18565b506020820151611a6e6020850182611a18565b506040820151611a816040850182611a27565b506060820151611a946060850182611a36565b50505050565b6000608082019050611aaf6000830184611a45565b92915050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611afc602083611ab5565b9150611b0782611ac6565b602082019050919050565b60006020820190508181036000830152611b2b81611aef565b9050919050565b7f456e6454696d65206e6f74207365740000000000000000000000000000000000600082015250565b6000611b68600f83611ab5565b9150611b7382611b32565b602082019050919050565b60006020820190508181036000830152611b9781611b5b565b9050919050565b7f41756374696f6e206e6f74206f76657200000000000000000000000000000000600082015250565b6000611bd4601083611ab5565b9150611bdf82611b9e565b602082019050919050565b60006020820190508181036000830152611c0381611bc7565b9050919050565b7f696e76616c696420616464726573730000000000000000000000000000000000600082015250565b6000611c40600f83611ab5565b9150611c4b82611c0a565b602082019050919050565b60006020820190508181036000830152611c6f81611c33565b9050919050565b600081519050611c858161189e565b92915050565b600060208284031215611ca157611ca0611760565b5b6000611caf84828501611c76565b91505092915050565b6000604082019050611ccd6000830185611940565b611cda60208301846117fa565b9392505050565b611cea8161190a565b8114611cf557600080fd5b50565b600081519050611d0781611ce1565b92915050565b600060208284031215611d2357611d22611760565b5b6000611d3184828501611cf8565b91505092915050565b7f41756374696f6e206861736e7420737461727465640000000000000000000000600082015250565b6000611d70601583611ab5565b9150611d7b82611d3a565b602082019050919050565b60006020820190508181036000830152611d9f81611d63565b9050919050565b7f41756374696f6e206e6f74207374617274656420796574210000000000000000600082015250565b6000611ddc601883611ab5565b9150611de782611da6565b602082019050919050565b60006020820190508181036000830152611e0b81611dcf565b9050919050565b7f456e6474696d65206e6f74207365740000000000000000000000000000000000600082015250565b6000611e48600f83611ab5565b9150611e5382611e12565b602082019050919050565b60006020820190508181036000830152611e7781611e3b565b9050919050565b7f41756374696f6e20656e64656421000000000000000000000000000000000000600082015250565b6000611eb4600e83611ab5565b9150611ebf82611e7e565b602082019050919050565b60006020820190508181036000830152611ee381611ea7565b9050919050565b7f496e76616c696420494400000000000000000000000000000000000000000000600082015250565b6000611f20600a83611ab5565b9150611f2b82611eea565b602082019050919050565b60006020820190508181036000830152611f4f81611f13565b9050919050565b7f4e6f7420616e2061637469766520494400000000000000000000000000000000600082015250565b6000611f8c601083611ab5565b9150611f9782611f56565b602082019050919050565b60006020820190508181036000830152611fbb81611f7f565b9050919050565b7f496e73756666696369656e742062616c616e636520746f20706c61636520626960008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b600061201e602183611ab5565b915061202982611fc2565b604082019050919050565b6000602082019050818103600083015261204d81612011565b9050919050565b7f416d6f756e74206973206c6f776572207468616e206261736520707269636500600082015250565b600061208a601f83611ab5565b915061209582612054565b602082019050919050565b600060208201905081810360008301526120b98161207d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006120fa826117f0565b9150612105836117f0565b925082821015612118576121176120c0565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061215d826117f0565b9150612168836117f0565b92508261217857612177612123565b5b828206905092915050565b7f496e6372656d656e742073686f756c642062652061206d756c7469706c65206f60008201527f6620626964496e6372656d656e74000000000000000000000000000000000000602082015250565b60006121df602e83611ab5565b91506121ea82612183565b604082019050919050565b6000602082019050818103600083015261220e816121d2565b9050919050565b6000612220826117f0565b915061222b836117f0565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156122605761225f6120c0565b5b828201905092915050565b7f4e657720426964206d75737420626520696e637265617365642062792074686560008201527f2062696420696e6372656d656e74000000000000000000000000000000000000602082015250565b60006122c7602e83611ab5565b91506122d28261226b565b604082019050919050565b600060208201905081810360008301526122f6816122ba565b9050919050565b60006060820190506123126000830186611940565b61231f6020830185611940565b61232c60408301846117fa565b949350505050565b600060608201905061234960008301866117fa565b6123566020830185611940565b61236360408301846117fa565b949350505050565b6000612376826117f0565b9150612381836117f0565b92508261239157612390612123565b5b828204905092915050565b60006123a7826117f0565b91506123b2836117f0565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156123eb576123ea6120c0565b5b828202905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612452602683611ab5565b915061245d826123f6565b604082019050919050565b6000602082019050818103600083015261248181612445565b9050919050565b7f41756374696f6e206e6f7420656e64656420666f722074686520676976656e2060008201527f4944000000000000000000000000000000000000000000000000000000000000602082015250565b60006124e4602283611ab5565b91506124ef82612488565b604082019050919050565b60006020820190508181036000830152612513816124d7565b9050919050565b7f416c72656164792077697468647261776e000000000000000000000000000000600082015250565b6000612550601183611ab5565b915061255b8261251a565b602082019050919050565b6000602082019050818103600083015261257f81612543565b9050919050565b7f4e6f6e65206f6620746865204269642068617320656e6f7567682077616c6c6560008201527f742062616c616e63650000000000000000000000000000000000000000000000602082015250565b60006125e2602983611ab5565b91506125ed82612586565b604082019050919050565b60006020820190508181036000830152612611816125d5565b9050919050565b7f556e61626c6520746f2077697468647261770000000000000000000000000000600082015250565b600061264e601283611ab5565b915061265982612618565b602082019050919050565b6000602082019050818103600083015261267d81612641565b9050919050565b600060408201905061269960008301856117fa565b6126a66020830184611940565b939250505056fea2646970667358221220b9febf7de8fde4138b343fc56a38fb2b4b66dabdfdc2ad3c00553cba789b010b64736f6c634300080a003300000000000000000000000000000000000000000000032d26d12e980b60000000000000000000000000000000000000000000000000032d26d12e980b600000000000000000000000000000bfb957b7bce1c9290bc0450d309010478314bf690000000000000000000000008f3cf7ad23cd3cadbd9735aff958023239c6a063

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

00000000000000000000000000000000000000000000032d26d12e980b60000000000000000000000000000000000000000000000000032d26d12e980b600000000000000000000000000000bfb957b7bce1c9290bc0450d309010478314bf690000000000000000000000008f3cf7ad23cd3cadbd9735aff958023239c6a063

-----Decoded View---------------
Arg [0] : _bidIncrement (uint256): 15000000000000000000000
Arg [1] : _initialBid (uint256): 15000000000000000000000
Arg [2] : _queenAddress (address): 0xbfb957b7bce1c9290bc0450d309010478314bf69
Arg [3] : _dai (address): 0x8f3cf7ad23cd3cadbd9735aff958023239c6a063

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000032d26d12e980b600000
Arg [1] : 00000000000000000000000000000000000000000000032d26d12e980b600000
Arg [2] : 000000000000000000000000bfb957b7bce1c9290bc0450d309010478314bf69
Arg [3] : 0000000000000000000000008f3cf7ad23cd3cadbd9735aff958023239c6a063


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