ETH Price: $2,472.01 (+7.04%)

Contract

0x2d5256c51653216ba3c7a6961A246E76602A7Ec6
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw112905042020-11-19 20:03:141399 days ago1605816194IN
0x2d5256c5...6602A7Ec6
0 ETH0.0012567135
Withdraw112532032020-11-14 2:41:161405 days ago1605321676IN
0x2d5256c5...6602A7Ec6
0 ETH0.0013488519.95000276
End112512422020-11-13 19:34:081405 days ago1605296048IN
0x2d5256c5...6602A7Ec6
0 ETH0.0051612840
Bid112510042020-11-13 18:36:391405 days ago1605292599IN
0x2d5256c5...6602A7Ec6
0 ETH0.0081980
Withdraw112505192020-11-13 16:48:191406 days ago1605286099IN
0x2d5256c5...6602A7Ec6
0 ETH0.0048929193
Bid112470892020-11-13 4:14:101406 days ago1605240850IN
0x2d5256c5...6602A7Ec6
0 ETH0.0013106215.00000145
Bid112454352020-11-12 22:08:331406 days ago1605218913IN
0x2d5256c5...6602A7Ec6
0 ETH0.0014332514
Bid112453032020-11-12 21:38:001406 days ago1605217080IN
0x2d5256c5...6602A7Ec6
0 ETH0.035475200
Withdraw112271852020-11-10 2:41:331409 days ago1604976093IN
0x2d5256c5...6602A7Ec6
0 ETH0.0011130831
Create112261382020-11-09 22:52:321409 days ago1604962352IN
0x2d5256c5...6602A7Ec6
0 ETH0.0047286318.8
Withdraw112047222020-11-06 15:55:261413 days ago1604678126IN
0x2d5256c5...6602A7Ec6
0 ETH0.003104159
Withdraw112047052020-11-06 15:52:241413 days ago1604677944IN
0x2d5256c5...6602A7Ec6
0 ETH0.003104159
Withdraw112043352020-11-06 14:29:581413 days ago1604672998IN
0x2d5256c5...6602A7Ec6
0 ETH0.0036828470
End112042042020-11-06 14:01:081413 days ago1604671268IN
0x2d5256c5...6602A7Ec6
0 ETH0.0110967586.00000123
Bid112041992020-11-06 14:00:091413 days ago1604671209IN
0x2d5256c5...6602A7Ec6
0 ETH0.0062042200
Bid112041922020-11-06 13:58:041413 days ago1604671084IN
0x2d5256c5...6602A7Ec6
0 ETH0.01535805150
Bid112041412020-11-06 13:45:131413 days ago1604670313IN
0x2d5256c5...6602A7Ec6
0 ETH0.0068591267
Bid112017192020-11-06 4:52:581413 days ago1604638378IN
0x2d5256c5...6602A7Ec6
0 ETH0.0045441252
Bid112006502020-11-06 1:02:471413 days ago1604624567IN
0x2d5256c5...6602A7Ec6
0 ETH0.0033783733
Bid111992122020-11-05 19:48:001413 days ago1604605680IN
0x2d5256c5...6602A7Ec6
0 ETH0.0018348721
Bid111990082020-11-05 19:06:141413 days ago1604603174IN
0x2d5256c5...6602A7Ec6
0 ETH0.0020679720.2
Withdraw111982432020-11-05 16:17:261414 days ago1604593046IN
0x2d5256c5...6602A7Ec6
0 ETH0.0048929193
Bid111980072020-11-05 15:27:291414 days ago1604590049IN
0x2d5256c5...6602A7Ec6
0 ETH0.01167075114
Bid111979752020-11-05 15:18:001414 days ago1604589480IN
0x2d5256c5...6602A7Ec6
0 ETH0.01853568104.5
Create111798932020-11-02 20:41:201416 days ago1604349680IN
0x2d5256c5...6602A7Ec6
0 ETH0.008803335
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MEMEAuction

Compiler Version
v0.5.12+commit.7709ece9

Optimization Enabled:
Yes with 9999 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-10-07
*/

pragma solidity ^0.5.12;


/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

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

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

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

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

/*
 * @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 GSN 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.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

/**
 * @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.
 *
 * 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.
 */
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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _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 onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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 onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
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);
}

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 *
 * _Since v2.5.0:_ this module is now much more gas efficient, given net gas
 * metering changes introduced in the Istanbul hardfork.
 */
contract ReentrancyGuard {
    bool private _notEntered;

    constructor () internal {
        // Storing an initial non-zero value makes deployment a bit more
        // expensive, but in exchange the refund on every call to nonReentrant
        // will be lower in amount. Since refunds are capped to a percetange of
        // the total transaction's gas, it is best to keep them low in cases
        // like this one, to increase the likelihood of the full refund coming
        // into effect.
        _notEntered = true;
    }

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

        // Any calls to nonReentrant after this point will fail
        _notEntered = false;

        _;

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

/**
 * @title ERC165
 * @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md
 */
interface IERC165 {

    /**
     * @notice Query if a contract implements an interface
     * @dev Interface identification is specified in ERC-165. This function
     * uses less than 30,000 gas
     * @param _interfaceId The interface identifier, as specified in ERC-165
     */
    function supportsInterface(bytes4 _interfaceId)
    external
    view
    returns (bool);
}

/**
 * @dev ERC-1155 interface for accepting safe transfers.
 */
interface IERC1155TokenReceiver {

  /**
   * @notice Handle the receipt of a single ERC1155 token type
   * @dev An ERC1155-compliant smart contract MUST call this function on the token recipient contract, at the end of a `safeTransferFrom` after the balance has been updated
   * This function MAY throw to revert and reject the transfer
   * Return of other amount than the magic value MUST result in the transaction being reverted
   * Note: The token contract address is always the message sender
   * @param _operator  The address which called the `safeTransferFrom` function
   * @param _from      The address which previously owned the token
   * @param _id        The id of the token being transferred
   * @param _amount    The amount of tokens being transferred
   * @param _data      Additional data with no specified format
   * @return           `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
   */
  function onERC1155Received(address _operator, address _from, uint256 _id, uint256 _amount, bytes calldata _data) external returns(bytes4);

  /**
   * @notice Handle the receipt of multiple ERC1155 token types
   * @dev An ERC1155-compliant smart contract MUST call this function on the token recipient contract, at the end of a `safeBatchTransferFrom` after the balances have been updated
   * This function MAY throw to revert and reject the transfer
   * Return of other amount than the magic value WILL result in the transaction being reverted
   * Note: The token contract address is always the message sender
   * @param _operator  The address which called the `safeBatchTransferFrom` function
   * @param _from      The address which previously owned the token
   * @param _ids       An array containing ids of each token being transferred
   * @param _amounts   An array containing amounts of each token being transferred
   * @param _data      Additional data with no specified format
   * @return           `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
   */
  function onERC1155BatchReceived(address _operator, address _from, uint256[] calldata _ids, uint256[] calldata _amounts, bytes calldata _data) external returns(bytes4);

  /**
   * @notice Indicates whether a contract implements the `ERC1155TokenReceiver` functions and so can accept ERC1155 token types.
   * @param  interfaceID The ERC-165 interface ID that is queried for support.s
   * @dev This function MUST return true if it implements the ERC1155TokenReceiver interface and ERC-165 interface.
   *      This function MUST NOT consume more than 5,000 gas.
   * @return Wheter ERC-165 or ERC1155TokenReceiver interfaces are supported.
   */
  function supportsInterface(bytes4 interfaceID) external view returns (bool);

}

contract MemeTokenWrapper {
	using SafeMath for uint256;
	IERC20 public meme;

	constructor(address _memeAddress) public {
		meme = IERC20(_memeAddress);
	}

	uint256 private _totalSupply;
	// Objects balances [id][address] => balance
	mapping(uint256 => mapping(address => uint256)) internal _balances;
	mapping(uint256 => uint256) private _totalDeposits;

	function totalSupply() public view returns (uint256) {
		return _totalSupply;
	}

	function totalDeposits(uint256 id) public view returns (uint256) {
		return _totalDeposits[id];
	}

	function balanceOf(address account, uint256 id) public view returns (uint256) {
		return _balances[id][account];
	}

	function bid(uint256 id, uint256 amount) public {
		_totalSupply = _totalSupply.add(amount);
		_totalDeposits[id] = _totalDeposits[id].add(amount);
		_balances[id][msg.sender] = _balances[id][msg.sender].add(amount);
		meme.transferFrom(msg.sender, address(this), amount);
	}

	function withdraw(uint256 id) public {
		uint256 amount = balanceOf(msg.sender, id);
		_totalSupply = _totalSupply.sub(amount);
		_totalDeposits[id] = _totalDeposits[id].sub(amount);
		_balances[id][msg.sender] = _balances[id][msg.sender].sub(amount);
		meme.transfer(msg.sender, amount);
	}

	function _emergencyWithdraw(address account, uint256 id) internal {
		uint256 amount = _balances[id][account];

		_totalSupply = _totalSupply.sub(amount);
		_totalDeposits[id] = _totalDeposits[id].sub(amount);
		_balances[id][account] = _balances[id][account].sub(amount);
		meme.transfer(account, amount);
	}

	function _end(
		uint256 id,
		address highestBidder,
		address beneficiary,
		address runner,
		uint256 fee,
		uint256 amount
	) internal {
		uint256 accountDeposits = _balances[id][highestBidder];
		require(accountDeposits == amount);

		_totalSupply = _totalSupply.sub(amount);
		uint256 memeFee = (amount.mul(fee)).div(100);

		_totalDeposits[id] = _totalDeposits[id].sub(amount);
		_balances[id][highestBidder] = _balances[id][highestBidder].sub(amount);
		meme.transfer(beneficiary, amount.sub(memeFee));
		meme.transfer(runner, memeFee);
	}
}

interface IERC1155 {
	function create(
		uint256 _maxSupply,
		uint256 _initialSupply,
		string calldata _uri,
		bytes calldata _data
	) external returns (uint256 tokenId);

	function safeTransferFrom(
		address _from,
		address _to,
		uint256 _id,
		uint256 _amount,
		bytes calldata _data
	) external;

	function safeBatchTransferFrom(
		address _from,
		address _to,
		uint256[] calldata _ids,
		uint256[] calldata _amounts,
		bytes calldata _data
	) external;

	function balanceOf(address _owner, uint256 _id) external view returns (uint256);

	function balanceOfBatch(address[] calldata _owners, uint256[] calldata _ids)
		external
		view
		returns (uint256[] memory);

	function setApprovalForAll(address _operator, bool _approved) external;

	function isApprovedForAll(address _owner, address _operator) external view returns (bool isOperator);

	event TransferSingle(
		address indexed _operator,
		address indexed _from,
		address indexed _to,
		uint256 _id,
		uint256 _amount
	);

	event TransferBatch(
		address indexed _operator,
		address indexed _from,
		address indexed _to,
		uint256[] _ids,
		uint256[] _amounts
	);

	event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved);

	event URI(string _amount, uint256 indexed _id);
}

contract MEMEAuction is Ownable, ReentrancyGuard, MemeTokenWrapper, IERC1155TokenReceiver {
	using SafeMath for uint256;

	address public memeLtdAddress;
	address public runner;

	// info about a particular auction
	struct AuctionInfo {
		address beneficiary;
		uint256 fee;
		uint256 auctionStart;
		uint256 auctionEnd;
		uint256 nft;
		address highestBidder;
		uint256 highestBid;
		bool auctionEnded;
	}

	mapping(uint256 => AuctionInfo) public auctionsById;
	uint256[] public auctions;

	// Events that will be fired on changes.
	event BidPlaced(address indexed user, uint256 indexed id, uint256 amount);
	event Withdrawn(address indexed user, uint256 indexed id, uint256 amount);
	event Ended(address indexed user, uint256 indexed id, uint256 amount);

	constructor(
		address _runner,
		address _memeAddress,
		address _memeLtdAddress
	) public MemeTokenWrapper(_memeAddress) {
		runner = _runner;
		memeLtdAddress = _memeLtdAddress;
	}

	function auctionStart(uint256 id) public view returns (uint256) {
		return auctionsById[id].auctionStart;
	}

	function beneficiary(uint256 id) public view returns (address) {
		return auctionsById[id].beneficiary;
	}

	function auctionEnd(uint256 id) public view returns (uint256) {
		return auctionsById[id].auctionEnd;
	}

	function memeLtdNft(uint256 id) public view returns (uint256) {
		return auctionsById[id].nft;
	}

	function highestBidder(uint256 id) public view returns (address) {
		return auctionsById[id].highestBidder;
	}

	function highestBid(uint256 id) public view returns (uint256) {
		return auctionsById[id].highestBid;
	}

	function ended(uint256 id) public view returns (bool) {
		return now >= auctionsById[id].auctionEnd;
	}

	function runnerFee(uint256 id) public view returns (uint256) {
		return auctionsById[id].fee;
	}

	function setRunnerAddress(address account) public onlyOwner {
		runner = account;
	}

	function create(
		uint256 id,
		address beneficiaryAddress,
		uint256 fee,
		uint256 start,
		uint256 duration
	) public onlyOwner {
		AuctionInfo storage auction = auctionsById[id];
		require(auction.beneficiary == address(0), "MEMEAuction::create: auction already created");

		auction.beneficiary = beneficiaryAddress;
		auction.fee = fee;
		auction.auctionStart = start;
		auction.auctionEnd = start.add(duration * 1 days);

		auctions.push(id);

		uint256 tokenId = IERC1155(memeLtdAddress).create(1, 1, "", "");
		require(tokenId > 0, "MEMEAuction::create: ERC1155 create did not succeed");
		auction.nft = tokenId;
	}

	function bid(uint256 id, uint256 amount) public nonReentrant {
		AuctionInfo storage auction = auctionsById[id];
		require(auction.beneficiary != address(0), "MEMEAuction::bid: auction does not exist");
		require(now >= auction.auctionStart, "MEMEAuction::bid: auction has not started");
		require(now <= auction.auctionEnd, "MEMEAuction::bid: auction has ended");

		uint256 newAmount = amount.add(balanceOf(msg.sender, id));
		require(newAmount > auction.highestBid, "MEMEAuction::bid: bid is less than highest bid");

		auction.highestBidder = msg.sender;
		auction.highestBid = newAmount;
		super.bid(id, amount);
		emit BidPlaced(msg.sender, id, amount);
	}

	function withdraw(uint256 id) public nonReentrant {
		AuctionInfo storage auction = auctionsById[id];
		uint256 amount = balanceOf(msg.sender, id);
		require(auction.beneficiary != address(0), "MEMEAuction::withdraw: auction does not exist");
		require(amount > 0, "MEMEAuction::withdraw: cannot withdraw 0");

		require(
			auction.highestBidder != msg.sender,
			"MEMEAuction::withdraw: you are the highest bidder and cannot withdraw"
		);

		super.withdraw(id);
		emit Withdrawn(msg.sender, id, amount);
	}

	function emergencyWithdraw(uint256 id) public onlyOwner {
		AuctionInfo storage auction = auctionsById[id];
		require(auction.beneficiary != address(0), "MEMEAuction::create: auction does not exist");
		require(now >= auction.auctionEnd, "MEMEAuction::emergencyWithdraw: the auction has not ended");
		require(!auction.auctionEnded, "MEMEAuction::emergencyWithdraw: auction ended and item sent");

		_emergencyWithdraw(auction.highestBidder, id);
		emit Withdrawn(auction.highestBidder, id, auction.highestBid);
	}

	function end(uint256 id) public nonReentrant {
		AuctionInfo storage auction = auctionsById[id];
		require(auction.beneficiary != address(0), "MEMEAuction::end: auction does not exist");
		require(now >= auction.auctionEnd, "MEMEAuction::end: the auction has not ended");
		require(!auction.auctionEnded, "MEMEAuction::end: auction already ended");

		auction.auctionEnded = true;
		_end(id, auction.highestBidder, auction.beneficiary, runner, auction.fee, auction.highestBid);
		IERC1155(memeLtdAddress).safeTransferFrom(address(this), auction.highestBidder, auction.nft, 1, "");
		emit Ended(auction.highestBidder, id, auction.highestBid);
	}

	function onERC1155Received(
		address _operator,
		address, // _from
		uint256, // _id
		uint256, // _amount
		bytes memory // _data
	) public returns (bytes4) {
		require(msg.sender == address(memeLtdAddress), "MEMEAuction::onERC1155BatchReceived:: invalid token address");
		require(_operator == address(this), "MEMEAuction::onERC1155BatchReceived:: operator must be auction contract");

		// Return success
		return this.onERC1155Received.selector;
	}

	function onERC1155BatchReceived(
		address _operator,
		address, // _from,
		uint256[] memory, // _ids,
		uint256[] memory, // _amounts,
		bytes memory // _data
	) public returns (bytes4) {
		require(msg.sender == address(memeLtdAddress), "MEMEAuction::onERC1155BatchReceived:: invalid token address");
		require(_operator == address(this), "MEMEAuction::onERC1155BatchReceived:: operator must be auction contract");

		// Return success
		return this.onERC1155BatchReceived.selector;
	}

	function supportsInterface(bytes4 interfaceID) external view returns (bool) {
		return
			interfaceID == 0x01ffc9a7 || // ERC-165 support
			interfaceID == 0x4e2312e0; // ERC-1155 `ERC1155TokenReceiver` support
	}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_runner","type":"address"},{"internalType":"address","name":"_memeAddress","type":"address"},{"internalType":"address","name":"_memeLtdAddress","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BidPlaced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Ended","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"constant":true,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"auctionEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"auctionStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"auctions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"auctionsById","outputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"uint256","name":"auctionStart","type":"uint256"},{"internalType":"uint256","name":"auctionEnd","type":"uint256"},{"internalType":"uint256","name":"nft","type":"uint256"},{"internalType":"address","name":"highestBidder","type":"address"},{"internalType":"uint256","name":"highestBid","type":"uint256"},{"internalType":"bool","name":"auctionEnded","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"beneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"bid","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"beneficiaryAddress","type":"address"},{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"create","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"end","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ended","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"highestBid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"highestBidder","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"meme","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"memeLtdAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"memeLtdNft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"runner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"runnerFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"setRunnerAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes4","name":"interfaceID","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalDeposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506040516126753803806126758339818101604052606081101561003357600080fd5b50805160208201516040909201519091908160006100586001600160e01b0361010a16565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600080547401000000000000000000000000000000000000000060ff60a01b19909116179055600180546001600160a01b03199081166001600160a01b039384161790915560068054821695831695909517909455600580549094169116179091555061010e565b3390565b6125588061011d6000396000f3fe608060405234801561001057600080fd5b50600436106101ce5760003560e01c80635aa4909511610104578063b14c63c5116100a2578063e21bcb7a11610071578063e21bcb7a146106e5578063ebee0eb614610702578063f23a6e6114610728578063f2fde38b146107f3576101ce565b8063b14c63c51461043d578063b2b09ad91461045a578063bc197c81146104cc578063e0533f5e146106c8576101ce565b80637a8ca615116100de5780637a8ca61514610408578063861a3689146104105780638da5cb5b1461042d5780638f32d59b14610435576101ce565b80635aa49095146103db5780635daa3160146103e3578063715018a614610400576101ce565b8063372af1b5116101715780635312ea8e1161014b5780635312ea8e14610340578063564524071461035d578063571a26a01461039b578063598647f8146103b8576101ce565b8063372af1b5146102e257806344097c48146102ff578063451df52e14610323576101ce565b806318160ddd116101ad57806318160ddd14610283578063242f1bf31461028b5780632e1a7d4d146102a857806332246e9f146102c5576101ce565b8062fdd58e146101d357806301ffc9a7146102115780630ad2452814610264575b600080fd5b6101ff600480360360408110156101e957600080fd5b506001600160a01b038135169060200135610819565b60408051918252519081900360200190f35b6102506004803603602081101561022757600080fd5b50357fffffffff0000000000000000000000000000000000000000000000000000000016610843565b604080519115158252519081900360200190f35b6102816004803603602081101561027a57600080fd5b50356108d8565b005b6101ff610be1565b6101ff600480360360208110156102a157600080fd5b5035610be7565b610281600480360360208110156102be57600080fd5b5035610bfc565b6101ff600480360360208110156102db57600080fd5b5035610e02565b6101ff600480360360208110156102f857600080fd5b5035610e17565b610307610e29565b604080516001600160a01b039092168252519081900360200190f35b6103076004803603602081101561033957600080fd5b5035610e38565b6102816004803603602081101561035657600080fd5b5035610e56565b610281600480360360a081101561037357600080fd5b508035906001600160a01b036020820135169060408101359060608101359060800135610fef565b6101ff600480360360208110156103b157600080fd5b5035611227565b610281600480360360408110156103ce57600080fd5b5080359060200135611245565b6103076114cd565b610307600480360360208110156103f957600080fd5b50356114dc565b6102816114f7565b6103076115b2565b6102506004803603602081101561042657600080fd5b50356115c1565b6103076115d9565b6102506115e8565b6101ff6004803603602081101561045357600080fd5b503561160c565b6104776004803603602081101561047057600080fd5b5035611621565b604080516001600160a01b03998a1681526020810198909852878101969096526060870194909452608086019290925290941660a084015260c083019390935291151560e08201529051908190036101000190f35b610693600480360360a08110156104e257600080fd5b6001600160a01b03823581169260208101359091169181019060608101604082013564010000000081111561051657600080fd5b82018360208201111561052857600080fd5b8035906020019184602083028401116401000000008311171561054a57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929594936020810193503591505064010000000081111561059a57600080fd5b8201836020820111156105ac57600080fd5b803590602001918460208302840111640100000000831117156105ce57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929594936020810193503591505064010000000081111561061e57600080fd5b82018360208201111561063057600080fd5b8035906020019184600183028401116401000000008311171561065257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611676945050505050565b604080517fffffffff000000000000000000000000000000000000000000000000000000009092168252519081900360200190f35b6101ff600480360360208110156106de57600080fd5b5035611734565b6101ff600480360360208110156106fb57600080fd5b5035611749565b6102816004803603602081101561071857600080fd5b50356001600160a01b031661175e565b610693600480360360a081101561073e57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a08101608082013564010000000081111561077e57600080fd5b82018360208201111561079057600080fd5b803590602001918460018302840111640100000000831117156107b257600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506117f1945050505050565b6102816004803603602081101561080957600080fd5b50356001600160a01b03166118af565b60008181526003602090815260408083206001600160a01b03861684529091529020545b92915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316148061083d5750507fffffffff00000000000000000000000000000000000000000000000000000000167f4e2312e0000000000000000000000000000000000000000000000000000000001490565b60005474010000000000000000000000000000000000000000900460ff16610947576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16815581815260076020526040902080546001600160a01b03166109c15760405162461bcd60e51b81526004018080602001828103825260288152602001806122886028913960400191505060405180910390fd5b8060030154421015610a045760405162461bcd60e51b815260040180806020018281038252602b8152602001806123f3602b913960400191505060405180910390fd5b600781015460ff1615610a485760405162461bcd60e51b81526004018080602001828103825260278152602001806121a76027913960400191505060405180910390fd5b6007810180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600190811790915560058201548254600680549385015490850154610aa89487946001600160a01b0390811694811693911691611914565b6005805490820154600480840154604080517ff242432a00000000000000000000000000000000000000000000000000000000815230938101939093526001600160a01b03938416602484015260448301919091526001606483015260a06084830152600060a483018190529051929093169263f242432a9260e48084019382900301818387803b158015610b3c57600080fd5b505af1158015610b50573d6000803e3d6000fd5b5050506005820154600683015460408051918252518593506001600160a01b03909216917fc6d99bc4696a33c554dbcc4e3d8af9493385fe991203d21d8e08a8e78bd34c269181900360200190a35050600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b60025490565b60009081526007602052604090206004015490565b60005474010000000000000000000000000000000000000000900460ff16610c6b576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16815581815260076020526040812090610caa3384610819565b82549091506001600160a01b0316610cf35760405162461bcd60e51b815260040180806020018281038252602d8152602001806124b0602d913960400191505060405180910390fd5b60008111610d325760405162461bcd60e51b81526004018080602001828103825260288152602001806122e36028913960400191505060405180910390fd5b60058201546001600160a01b0316331415610d7e5760405162461bcd60e51b81526004018080602001828103825260458152602001806122436045913960600191505060405180910390fd5b610d8783611b3b565b604080518281529051849133917f92ccf450a286a957af52509bc1c9939d1a6a481783e142e41e2499f0bb66ebc69181900360200190a35050600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000017905550565b60009081526007602052604090206003015490565b60009081526004602052604090205490565b6001546001600160a01b031681565b6000908152600760205260409020600501546001600160a01b031690565b610e5e6115e8565b610eaf576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600081815260076020526040902080546001600160a01b0316610f035760405162461bcd60e51b815260040180806020018281038252602b815260200180612485602b913960400191505060405180910390fd5b8060030154421015610f465760405162461bcd60e51b815260040180806020018281038252603981526020018061241e6039913960400191505060405180910390fd5b600781015460ff1615610f8a5760405162461bcd60e51b815260040180806020018281038252603b815260200180612397603b913960400191505060405180910390fd5b6005810154610fa2906001600160a01b031683611c6a565b60058101546006820154604080519182525184926001600160a01b0316917f92ccf450a286a957af52509bc1c9939d1a6a481783e142e41e2499f0bb66ebc6919081900360200190a35050565b610ff76115e8565b611048576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600085815260076020526040902080546001600160a01b03161561109d5760405162461bcd60e51b815260040180806020018281038252602c8152602001806121f1602c913960400191505060405180910390fd5b80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861617815560018101849055600281018390556110eb83620151808402611dba565b6003820155600880546001818101835560009283527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3909101889055600554604080517fb09ddf7b000000000000000000000000000000000000000000000000000000008152600481018490526024810193909352608060448401526084830184905260c0606484015260c48301849052516001600160a01b039091169163b09ddf7b9161010480830192602092919082900301818787803b1580156111b057600080fd5b505af11580156111c4573d6000803e3d6000fd5b505050506040513d60208110156111da57600080fd5b505190508061121a5760405162461bcd60e51b81526004018080602001828103825260338152602001806122b06033913960400191505060405180910390fd5b6004909101555050505050565b6008818154811061123457fe5b600091825260209091200154905081565b60005474010000000000000000000000000000000000000000900460ff166112b4576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16815582815260076020526040902080546001600160a01b031661132e5760405162461bcd60e51b815260040180806020018281038252602881526020018061230b6028913960400191505060405180910390fd5b80600201544210156113715760405162461bcd60e51b81526004018080602001828103825260298152602001806123336029913960400191505060405180910390fd5b80600301544211156113b45760405162461bcd60e51b81526004018080602001828103825260238152602001806121ce6023913960400191505060405180910390fd5b60006113d06113c33386610819565b849063ffffffff611dba16565b9050816006015481116114145760405162461bcd60e51b815260040180806020018281038252602e815260200180612457602e913960400191505060405180910390fd5b6005820180547fffffffffffffffffffffffff00000000000000000000000000000000000000001633179055600682018190556114518484611e1b565b604080518481529051859133917fdf8644c0a4c21ed214ce69f395675b3a5fcd1039083daea5058898de40ea31499181900360200190a35050600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790555050565b6005546001600160a01b031681565b6000908152600760205260409020546001600160a01b031690565b6114ff6115e8565b611550576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b6006546001600160a01b031681565b60009081526007602052604090206003015442101590565b6000546001600160a01b031690565b600080546001600160a01b03166115fd611f11565b6001600160a01b031614905090565b60009081526007602052604090206006015490565b6007602081905260009182526040909120805460018201546002830154600384015460048501546005860154600687015496909701546001600160a01b03958616979496939592949193919092169160ff1688565b6005546000906001600160a01b031633146116c25760405162461bcd60e51b815260040180806020018281038252603b81526020018061235c603b913960400191505060405180910390fd5b6001600160a01b03861630146117095760405162461bcd60e51b81526004018080602001828103825260478152602001806124dd6047913960600191505060405180910390fd5b507fbc197c810000000000000000000000000000000000000000000000000000000095945050505050565b60009081526007602052604090206001015490565b60009081526007602052604090206002015490565b6117666115e8565b6117b7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6005546000906001600160a01b0316331461183d5760405162461bcd60e51b815260040180806020018281038252603b81526020018061235c603b913960400191505060405180910390fd5b6001600160a01b03861630146118845760405162461bcd60e51b81526004018080602001828103825260478152602001806124dd6047913960600191505060405180910390fd5b507ff23a6e610000000000000000000000000000000000000000000000000000000095945050505050565b6118b76115e8565b611908576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61191181611f15565b50565b60008681526003602090815260408083206001600160a01b038916845290915290205481811461194357600080fd5b600254611956908363ffffffff611fcd16565b600255600061197c6064611970858763ffffffff61200f16565b9063ffffffff61206816565b60008981526004602052604090205490915061199e908463ffffffff611fcd16565b600089815260046020908152604080832093909355600381528282206001600160a01b038b168352905220546119da908463ffffffff611fcd16565b60008981526003602090815260408083206001600160a01b03808d1685529252909120919091556001541663a9059cbb87611a1b868563ffffffff611fcd16565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611a6a57600080fd5b505af1158015611a7e573d6000803e3d6000fd5b505050506040513d6020811015611a9457600080fd5b5050600154604080517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038881166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015611b0557600080fd5b505af1158015611b19573d6000803e3d6000fd5b505050506040513d6020811015611b2f57600080fd5b50505050505050505050565b6000611b473383610819565b600254909150611b5d908263ffffffff611fcd16565b600255600082815260046020526040902054611b7f908263ffffffff611fcd16565b6000838152600460209081526040808320939093556003815282822033835290522054611bb2908263ffffffff611fcd16565b6000838152600360209081526040808320338085529083528184209490945560015481517fa9059cbb00000000000000000000000000000000000000000000000000000000815260048101959095526024850186905290516001600160a01b039091169363a9059cbb9360448083019493928390030190829087803b158015611c3a57600080fd5b505af1158015611c4e573d6000803e3d6000fd5b505050506040513d6020811015611c6457600080fd5b50505050565b60008181526003602090815260408083206001600160a01b0386168452909152902054600254611ca0908263ffffffff611fcd16565b600255600082815260046020526040902054611cc2908263ffffffff611fcd16565b600083815260046020908152604080832093909355600381528282206001600160a01b038716835290522054611cfe908263ffffffff611fcd16565b60008381526003602090815260408083206001600160a01b038089168086529184528285209590955560015482517fa9059cbb0000000000000000000000000000000000000000000000000000000081526004810192909252602482018790529151919094169363a9059cbb9360448083019493928390030190829087803b158015611d8957600080fd5b505af1158015611d9d573d6000803e3d6000fd5b505050506040513d6020811015611db357600080fd5b5050505050565b600082820183811015611e14576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600254611e2e908263ffffffff611dba16565b600255600082815260046020526040902054611e50908263ffffffff611dba16565b6000838152600460209081526040808320939093556003815282822033835290522054611e83908263ffffffff611dba16565b6000838152600360209081526040808320338085529083528184209490945560015481517f23b872dd00000000000000000000000000000000000000000000000000000000815260048101959095523060248601526044850186905290516001600160a01b03909116936323b872dd9360648083019493928390030190829087803b158015611c3a57600080fd5b3390565b6001600160a01b038116611f5a5760405162461bcd60e51b815260040180806020018281038252602681526020018061221d6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000611e1483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506120aa565b60008261201e5750600061083d565b8282028284828161202b57fe5b0414611e145760405162461bcd60e51b81526004018080602001828103825260218152602001806123d26021913960400191505060405180910390fd5b6000611e1483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612141565b600081848411156121395760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156120fe5781810151838201526020016120e6565b50505050905090810190601f16801561212b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836121905760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156120fe5781810151838201526020016120e6565b50600083858161219c57fe5b049594505050505056fe4d454d4541756374696f6e3a3a656e643a2061756374696f6e20616c726561647920656e6465644d454d4541756374696f6e3a3a6269643a2061756374696f6e2068617320656e6465644d454d4541756374696f6e3a3a6372656174653a2061756374696f6e20616c726561647920637265617465644f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734d454d4541756374696f6e3a3a77697468647261773a20796f75206172652074686520686967686573742062696464657220616e642063616e6e6f742077697468647261774d454d4541756374696f6e3a3a656e643a2061756374696f6e20646f6573206e6f742065786973744d454d4541756374696f6e3a3a6372656174653a20455243313135352063726561746520646964206e6f7420737563636565644d454d4541756374696f6e3a3a77697468647261773a2063616e6e6f7420776974686472617720304d454d4541756374696f6e3a3a6269643a2061756374696f6e20646f6573206e6f742065786973744d454d4541756374696f6e3a3a6269643a2061756374696f6e20686173206e6f7420737461727465644d454d4541756374696f6e3a3a6f6e45524331313535426174636852656365697665643a3a20696e76616c696420746f6b656e20616464726573734d454d4541756374696f6e3a3a656d657267656e637957697468647261773a2061756374696f6e20656e64656420616e64206974656d2073656e74536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774d454d4541756374696f6e3a3a656e643a207468652061756374696f6e20686173206e6f7420656e6465644d454d4541756374696f6e3a3a656d657267656e637957697468647261773a207468652061756374696f6e20686173206e6f7420656e6465644d454d4541756374696f6e3a3a6269643a20626964206973206c657373207468616e2068696768657374206269644d454d4541756374696f6e3a3a6372656174653a2061756374696f6e20646f6573206e6f742065786973744d454d4541756374696f6e3a3a77697468647261773a2061756374696f6e20646f6573206e6f742065786973744d454d4541756374696f6e3a3a6f6e45524331313535426174636852656365697665643a3a206f70657261746f72206d7573742062652061756374696f6e20636f6e7472616374a265627a7a72315820acc55761282e4e6c15f2b390a0d9a9f339ee52091f34df6e0b0305df182860ce64736f6c634300050c0032000000000000000000000000214bc6a17e022cff3676d3979b748f2940317957000000000000000000000000d5525d397898e5502075ea5e830d8914f6f0affe000000000000000000000000e4605d46fd0b3f8329d936a8b258d69276cba264

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101ce5760003560e01c80635aa4909511610104578063b14c63c5116100a2578063e21bcb7a11610071578063e21bcb7a146106e5578063ebee0eb614610702578063f23a6e6114610728578063f2fde38b146107f3576101ce565b8063b14c63c51461043d578063b2b09ad91461045a578063bc197c81146104cc578063e0533f5e146106c8576101ce565b80637a8ca615116100de5780637a8ca61514610408578063861a3689146104105780638da5cb5b1461042d5780638f32d59b14610435576101ce565b80635aa49095146103db5780635daa3160146103e3578063715018a614610400576101ce565b8063372af1b5116101715780635312ea8e1161014b5780635312ea8e14610340578063564524071461035d578063571a26a01461039b578063598647f8146103b8576101ce565b8063372af1b5146102e257806344097c48146102ff578063451df52e14610323576101ce565b806318160ddd116101ad57806318160ddd14610283578063242f1bf31461028b5780632e1a7d4d146102a857806332246e9f146102c5576101ce565b8062fdd58e146101d357806301ffc9a7146102115780630ad2452814610264575b600080fd5b6101ff600480360360408110156101e957600080fd5b506001600160a01b038135169060200135610819565b60408051918252519081900360200190f35b6102506004803603602081101561022757600080fd5b50357fffffffff0000000000000000000000000000000000000000000000000000000016610843565b604080519115158252519081900360200190f35b6102816004803603602081101561027a57600080fd5b50356108d8565b005b6101ff610be1565b6101ff600480360360208110156102a157600080fd5b5035610be7565b610281600480360360208110156102be57600080fd5b5035610bfc565b6101ff600480360360208110156102db57600080fd5b5035610e02565b6101ff600480360360208110156102f857600080fd5b5035610e17565b610307610e29565b604080516001600160a01b039092168252519081900360200190f35b6103076004803603602081101561033957600080fd5b5035610e38565b6102816004803603602081101561035657600080fd5b5035610e56565b610281600480360360a081101561037357600080fd5b508035906001600160a01b036020820135169060408101359060608101359060800135610fef565b6101ff600480360360208110156103b157600080fd5b5035611227565b610281600480360360408110156103ce57600080fd5b5080359060200135611245565b6103076114cd565b610307600480360360208110156103f957600080fd5b50356114dc565b6102816114f7565b6103076115b2565b6102506004803603602081101561042657600080fd5b50356115c1565b6103076115d9565b6102506115e8565b6101ff6004803603602081101561045357600080fd5b503561160c565b6104776004803603602081101561047057600080fd5b5035611621565b604080516001600160a01b03998a1681526020810198909852878101969096526060870194909452608086019290925290941660a084015260c083019390935291151560e08201529051908190036101000190f35b610693600480360360a08110156104e257600080fd5b6001600160a01b03823581169260208101359091169181019060608101604082013564010000000081111561051657600080fd5b82018360208201111561052857600080fd5b8035906020019184602083028401116401000000008311171561054a57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929594936020810193503591505064010000000081111561059a57600080fd5b8201836020820111156105ac57600080fd5b803590602001918460208302840111640100000000831117156105ce57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929594936020810193503591505064010000000081111561061e57600080fd5b82018360208201111561063057600080fd5b8035906020019184600183028401116401000000008311171561065257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611676945050505050565b604080517fffffffff000000000000000000000000000000000000000000000000000000009092168252519081900360200190f35b6101ff600480360360208110156106de57600080fd5b5035611734565b6101ff600480360360208110156106fb57600080fd5b5035611749565b6102816004803603602081101561071857600080fd5b50356001600160a01b031661175e565b610693600480360360a081101561073e57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a08101608082013564010000000081111561077e57600080fd5b82018360208201111561079057600080fd5b803590602001918460018302840111640100000000831117156107b257600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506117f1945050505050565b6102816004803603602081101561080957600080fd5b50356001600160a01b03166118af565b60008181526003602090815260408083206001600160a01b03861684529091529020545b92915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316148061083d5750507fffffffff00000000000000000000000000000000000000000000000000000000167f4e2312e0000000000000000000000000000000000000000000000000000000001490565b60005474010000000000000000000000000000000000000000900460ff16610947576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16815581815260076020526040902080546001600160a01b03166109c15760405162461bcd60e51b81526004018080602001828103825260288152602001806122886028913960400191505060405180910390fd5b8060030154421015610a045760405162461bcd60e51b815260040180806020018281038252602b8152602001806123f3602b913960400191505060405180910390fd5b600781015460ff1615610a485760405162461bcd60e51b81526004018080602001828103825260278152602001806121a76027913960400191505060405180910390fd5b6007810180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600190811790915560058201548254600680549385015490850154610aa89487946001600160a01b0390811694811693911691611914565b6005805490820154600480840154604080517ff242432a00000000000000000000000000000000000000000000000000000000815230938101939093526001600160a01b03938416602484015260448301919091526001606483015260a06084830152600060a483018190529051929093169263f242432a9260e48084019382900301818387803b158015610b3c57600080fd5b505af1158015610b50573d6000803e3d6000fd5b5050506005820154600683015460408051918252518593506001600160a01b03909216917fc6d99bc4696a33c554dbcc4e3d8af9493385fe991203d21d8e08a8e78bd34c269181900360200190a35050600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b60025490565b60009081526007602052604090206004015490565b60005474010000000000000000000000000000000000000000900460ff16610c6b576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16815581815260076020526040812090610caa3384610819565b82549091506001600160a01b0316610cf35760405162461bcd60e51b815260040180806020018281038252602d8152602001806124b0602d913960400191505060405180910390fd5b60008111610d325760405162461bcd60e51b81526004018080602001828103825260288152602001806122e36028913960400191505060405180910390fd5b60058201546001600160a01b0316331415610d7e5760405162461bcd60e51b81526004018080602001828103825260458152602001806122436045913960600191505060405180910390fd5b610d8783611b3b565b604080518281529051849133917f92ccf450a286a957af52509bc1c9939d1a6a481783e142e41e2499f0bb66ebc69181900360200190a35050600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000017905550565b60009081526007602052604090206003015490565b60009081526004602052604090205490565b6001546001600160a01b031681565b6000908152600760205260409020600501546001600160a01b031690565b610e5e6115e8565b610eaf576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600081815260076020526040902080546001600160a01b0316610f035760405162461bcd60e51b815260040180806020018281038252602b815260200180612485602b913960400191505060405180910390fd5b8060030154421015610f465760405162461bcd60e51b815260040180806020018281038252603981526020018061241e6039913960400191505060405180910390fd5b600781015460ff1615610f8a5760405162461bcd60e51b815260040180806020018281038252603b815260200180612397603b913960400191505060405180910390fd5b6005810154610fa2906001600160a01b031683611c6a565b60058101546006820154604080519182525184926001600160a01b0316917f92ccf450a286a957af52509bc1c9939d1a6a481783e142e41e2499f0bb66ebc6919081900360200190a35050565b610ff76115e8565b611048576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600085815260076020526040902080546001600160a01b03161561109d5760405162461bcd60e51b815260040180806020018281038252602c8152602001806121f1602c913960400191505060405180910390fd5b80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861617815560018101849055600281018390556110eb83620151808402611dba565b6003820155600880546001818101835560009283527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3909101889055600554604080517fb09ddf7b000000000000000000000000000000000000000000000000000000008152600481018490526024810193909352608060448401526084830184905260c0606484015260c48301849052516001600160a01b039091169163b09ddf7b9161010480830192602092919082900301818787803b1580156111b057600080fd5b505af11580156111c4573d6000803e3d6000fd5b505050506040513d60208110156111da57600080fd5b505190508061121a5760405162461bcd60e51b81526004018080602001828103825260338152602001806122b06033913960400191505060405180910390fd5b6004909101555050505050565b6008818154811061123457fe5b600091825260209091200154905081565b60005474010000000000000000000000000000000000000000900460ff166112b4576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16815582815260076020526040902080546001600160a01b031661132e5760405162461bcd60e51b815260040180806020018281038252602881526020018061230b6028913960400191505060405180910390fd5b80600201544210156113715760405162461bcd60e51b81526004018080602001828103825260298152602001806123336029913960400191505060405180910390fd5b80600301544211156113b45760405162461bcd60e51b81526004018080602001828103825260238152602001806121ce6023913960400191505060405180910390fd5b60006113d06113c33386610819565b849063ffffffff611dba16565b9050816006015481116114145760405162461bcd60e51b815260040180806020018281038252602e815260200180612457602e913960400191505060405180910390fd5b6005820180547fffffffffffffffffffffffff00000000000000000000000000000000000000001633179055600682018190556114518484611e1b565b604080518481529051859133917fdf8644c0a4c21ed214ce69f395675b3a5fcd1039083daea5058898de40ea31499181900360200190a35050600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790555050565b6005546001600160a01b031681565b6000908152600760205260409020546001600160a01b031690565b6114ff6115e8565b611550576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b6006546001600160a01b031681565b60009081526007602052604090206003015442101590565b6000546001600160a01b031690565b600080546001600160a01b03166115fd611f11565b6001600160a01b031614905090565b60009081526007602052604090206006015490565b6007602081905260009182526040909120805460018201546002830154600384015460048501546005860154600687015496909701546001600160a01b03958616979496939592949193919092169160ff1688565b6005546000906001600160a01b031633146116c25760405162461bcd60e51b815260040180806020018281038252603b81526020018061235c603b913960400191505060405180910390fd5b6001600160a01b03861630146117095760405162461bcd60e51b81526004018080602001828103825260478152602001806124dd6047913960600191505060405180910390fd5b507fbc197c810000000000000000000000000000000000000000000000000000000095945050505050565b60009081526007602052604090206001015490565b60009081526007602052604090206002015490565b6117666115e8565b6117b7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6005546000906001600160a01b0316331461183d5760405162461bcd60e51b815260040180806020018281038252603b81526020018061235c603b913960400191505060405180910390fd5b6001600160a01b03861630146118845760405162461bcd60e51b81526004018080602001828103825260478152602001806124dd6047913960600191505060405180910390fd5b507ff23a6e610000000000000000000000000000000000000000000000000000000095945050505050565b6118b76115e8565b611908576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61191181611f15565b50565b60008681526003602090815260408083206001600160a01b038916845290915290205481811461194357600080fd5b600254611956908363ffffffff611fcd16565b600255600061197c6064611970858763ffffffff61200f16565b9063ffffffff61206816565b60008981526004602052604090205490915061199e908463ffffffff611fcd16565b600089815260046020908152604080832093909355600381528282206001600160a01b038b168352905220546119da908463ffffffff611fcd16565b60008981526003602090815260408083206001600160a01b03808d1685529252909120919091556001541663a9059cbb87611a1b868563ffffffff611fcd16565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611a6a57600080fd5b505af1158015611a7e573d6000803e3d6000fd5b505050506040513d6020811015611a9457600080fd5b5050600154604080517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038881166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015611b0557600080fd5b505af1158015611b19573d6000803e3d6000fd5b505050506040513d6020811015611b2f57600080fd5b50505050505050505050565b6000611b473383610819565b600254909150611b5d908263ffffffff611fcd16565b600255600082815260046020526040902054611b7f908263ffffffff611fcd16565b6000838152600460209081526040808320939093556003815282822033835290522054611bb2908263ffffffff611fcd16565b6000838152600360209081526040808320338085529083528184209490945560015481517fa9059cbb00000000000000000000000000000000000000000000000000000000815260048101959095526024850186905290516001600160a01b039091169363a9059cbb9360448083019493928390030190829087803b158015611c3a57600080fd5b505af1158015611c4e573d6000803e3d6000fd5b505050506040513d6020811015611c6457600080fd5b50505050565b60008181526003602090815260408083206001600160a01b0386168452909152902054600254611ca0908263ffffffff611fcd16565b600255600082815260046020526040902054611cc2908263ffffffff611fcd16565b600083815260046020908152604080832093909355600381528282206001600160a01b038716835290522054611cfe908263ffffffff611fcd16565b60008381526003602090815260408083206001600160a01b038089168086529184528285209590955560015482517fa9059cbb0000000000000000000000000000000000000000000000000000000081526004810192909252602482018790529151919094169363a9059cbb9360448083019493928390030190829087803b158015611d8957600080fd5b505af1158015611d9d573d6000803e3d6000fd5b505050506040513d6020811015611db357600080fd5b5050505050565b600082820183811015611e14576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600254611e2e908263ffffffff611dba16565b600255600082815260046020526040902054611e50908263ffffffff611dba16565b6000838152600460209081526040808320939093556003815282822033835290522054611e83908263ffffffff611dba16565b6000838152600360209081526040808320338085529083528184209490945560015481517f23b872dd00000000000000000000000000000000000000000000000000000000815260048101959095523060248601526044850186905290516001600160a01b03909116936323b872dd9360648083019493928390030190829087803b158015611c3a57600080fd5b3390565b6001600160a01b038116611f5a5760405162461bcd60e51b815260040180806020018281038252602681526020018061221d6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000611e1483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506120aa565b60008261201e5750600061083d565b8282028284828161202b57fe5b0414611e145760405162461bcd60e51b81526004018080602001828103825260218152602001806123d26021913960400191505060405180910390fd5b6000611e1483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612141565b600081848411156121395760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156120fe5781810151838201526020016120e6565b50505050905090810190601f16801561212b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836121905760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156120fe5781810151838201526020016120e6565b50600083858161219c57fe5b049594505050505056fe4d454d4541756374696f6e3a3a656e643a2061756374696f6e20616c726561647920656e6465644d454d4541756374696f6e3a3a6269643a2061756374696f6e2068617320656e6465644d454d4541756374696f6e3a3a6372656174653a2061756374696f6e20616c726561647920637265617465644f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734d454d4541756374696f6e3a3a77697468647261773a20796f75206172652074686520686967686573742062696464657220616e642063616e6e6f742077697468647261774d454d4541756374696f6e3a3a656e643a2061756374696f6e20646f6573206e6f742065786973744d454d4541756374696f6e3a3a6372656174653a20455243313135352063726561746520646964206e6f7420737563636565644d454d4541756374696f6e3a3a77697468647261773a2063616e6e6f7420776974686472617720304d454d4541756374696f6e3a3a6269643a2061756374696f6e20646f6573206e6f742065786973744d454d4541756374696f6e3a3a6269643a2061756374696f6e20686173206e6f7420737461727465644d454d4541756374696f6e3a3a6f6e45524331313535426174636852656365697665643a3a20696e76616c696420746f6b656e20616464726573734d454d4541756374696f6e3a3a656d657267656e637957697468647261773a2061756374696f6e20656e64656420616e64206974656d2073656e74536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774d454d4541756374696f6e3a3a656e643a207468652061756374696f6e20686173206e6f7420656e6465644d454d4541756374696f6e3a3a656d657267656e637957697468647261773a207468652061756374696f6e20686173206e6f7420656e6465644d454d4541756374696f6e3a3a6269643a20626964206973206c657373207468616e2068696768657374206269644d454d4541756374696f6e3a3a6372656174653a2061756374696f6e20646f6573206e6f742065786973744d454d4541756374696f6e3a3a77697468647261773a2061756374696f6e20646f6573206e6f742065786973744d454d4541756374696f6e3a3a6f6e45524331313535426174636852656365697665643a3a206f70657261746f72206d7573742062652061756374696f6e20636f6e7472616374a265627a7a72315820acc55761282e4e6c15f2b390a0d9a9f339ee52091f34df6e0b0305df182860ce64736f6c634300050c0032

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

000000000000000000000000214bc6a17e022cff3676d3979b748f2940317957000000000000000000000000d5525d397898e5502075ea5e830d8914f6f0affe000000000000000000000000e4605d46fd0b3f8329d936a8b258d69276cba264

-----Decoded View---------------
Arg [0] : _runner (address): 0x214bc6A17E022cFF3676d3979b748F2940317957
Arg [1] : _memeAddress (address): 0xD5525D397898e5502075Ea5E830d8914f6F0affe
Arg [2] : _memeLtdAddress (address): 0xe4605d46Fd0B3f8329d936a8b258D69276cBa264

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000214bc6a17e022cff3676d3979b748f2940317957
Arg [1] : 000000000000000000000000d5525d397898e5502075ea5e830d8914f6f0affe
Arg [2] : 000000000000000000000000e4605d46fd0b3f8329d936a8b258d69276cba264


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  ]

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.