Contract Address Details
0x6949c8d5c6bDa32e89d6e4594DFd8B7C33A5fdCf
- Contract Name
- RenderaiNFTSaleV2
- Creator
- 0xacd320–1fac21 at 0xafc996–89ec19
- Balance
- 0 Doge
- Tokens
-
Fetching tokens...
- Transactions
- 4 Transactions
- Transfers
- 54 Transfers
- Gas Used
- 351,458
- Last Balance Update
- 20464459
Transactions
Token Transfers
Tokens
Internal Transactions
Coin Balance History
Logs
Code
Read Contract
Write Contract
- Contract name:
- RenderaiNFTSaleV2
- Optimization enabled
- false
- Compiler version
- v0.8.17+commit.8df45f5f
- EVM Version
- default
- Verified at
- 2022-12-17T17:22:29.348960Z
Constructor Arguments
0000000000000000000000001749c3ed28189a4695cbaee75816a962020408a0000000000000000000000000b58904a0328abacf05b288e51a578471a8317b70000000000000000000000000000000000000000000000000d02ab486cedc0000000000000000000000000000000000000000000000000a968163f0a57b40000000000000000000000000000000000000000000000000000000000000000009c4
Arg [0] (address) : 0x1749c3ed28189a4695cbaee75816a962020408a0
Arg [1] (address) : 0xb58904a0328abacf05b288e51a578471a8317b70
Arg [2] (uint256) : 15000000000000000000
Arg [3] (uint256) : 50000000000000000000000
Arg [4] (uint256) : 2500
Contract source code
// File: @openzeppelin/contracts/utils/Context.sol // 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; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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 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); } // File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts/token/ERC721/IERC721.sol // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // File: RenderaiNFTSaleV2.sol pragma solidity ^0.8.17; contract RenderaiNFTSaleV2 is Ownable { address public nft; address public token; address public dead = 0x000000000000000000000000000000000000dEaD; uint256 public price; uint256 public tokenAmount; uint256 public tokenBurnPercent; constructor(address _nft, address _token, uint256 _price, uint256 _tokenAmount, uint256 _tokenBurnPercent) { nft = _nft; token = _token; price = _price; tokenAmount = _tokenAmount; tokenBurnPercent = _tokenBurnPercent; //default: 2500 (25%) } function newNft(address _nft) external onlyOwner() { nft = _nft; } function newToken(address _token) external onlyOwner() { token = _token; } function newPrice(uint256 _price) external onlyOwner() { price = _price; } function newTokenAmount(uint256 _tokenAmount) external onlyOwner() { tokenAmount = _tokenAmount; } // Buy for coins function buyNft(address recipient, uint256 tokenId) external payable { require(msg.value >= price, "Not enough coins sent, check price"); require(IERC721(nft).balanceOf(address(this)) >= 1, "Not enough NFTs in the market"); IERC721(nft).safeTransferFrom(address(this), recipient, tokenId); } // Buy for tokens function buyNft2(address recipient, uint256 tokenId, uint256 tokenPayAmount, uint256 tokenBurnAmount) external { require(tokenAmount >= 0, "token amount can not be 0"); tokenBurnAmount = tokenAmount * tokenBurnPercent / 10000; tokenPayAmount = tokenAmount - tokenBurnAmount; IERC20(token).transferFrom(msg.sender, address(this), tokenPayAmount); IERC20(token).transferFrom(msg.sender, address(dead), tokenBurnAmount); require(IERC721(nft).balanceOf(address(this)) >= 1, "Not enough NFTs in the market"); IERC721(nft).safeTransferFrom(address(this), recipient, tokenId); } // Withdraw from the contract function withdrawNft(uint256 tokenId) external onlyOwner { IERC721(nft).safeTransferFrom(address(this), msg.sender, tokenId); } function withdrawToken() external onlyOwner { uint256 balance = IERC20(token).balanceOf(address(this)); IERC20(token).transfer(msg.sender, balance); } function transferValue(address payable _to) external onlyOwner { uint256 amount = address(this).balance; (bool success, ) = _to.call{value: amount}(""); require(success, "Failed to send coins"); } }
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_nft","internalType":"address"},{"type":"address","name":"_token","internalType":"address"},{"type":"uint256","name":"_price","internalType":"uint256"},{"type":"uint256","name":"_tokenAmount","internalType":"uint256"},{"type":"uint256","name":"_tokenBurnPercent","internalType":"uint256"}]},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"payable","outputs":[],"name":"buyNft","inputs":[{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"buyNft2","inputs":[{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"tokenPayAmount","internalType":"uint256"},{"type":"uint256","name":"tokenBurnAmount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"dead","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"newNft","inputs":[{"type":"address","name":"_nft","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"newPrice","inputs":[{"type":"uint256","name":"_price","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"newToken","inputs":[{"type":"address","name":"_token","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"newTokenAmount","inputs":[{"type":"uint256","name":"_tokenAmount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"nft","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"price","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"token","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenAmount","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenBurnPercent","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferValue","inputs":[{"type":"address","name":"_to","internalType":"address payable"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdrawNft","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdrawToken","inputs":[]}]
Contract Creation Code
0x608060405261dead600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200005457600080fd5b50604051620019d2380380620019d283398181016040528101906200007a9190620002ad565b6200009a6200008e6200013c60201b60201c565b6200014460201b60201c565b84600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550826004819055508160058190555080600681905550505050505062000335565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200023a826200020d565b9050919050565b6200024c816200022d565b81146200025857600080fd5b50565b6000815190506200026c8162000241565b92915050565b6000819050919050565b620002878162000272565b81146200029357600080fd5b50565b600081519050620002a7816200027c565b92915050565b600080600080600060a08688031215620002cc57620002cb62000208565b5b6000620002dc888289016200025b565b9550506020620002ef888289016200025b565b9450506040620003028882890162000296565b9350506060620003158882890162000296565b9250506080620003288882890162000296565b9150509295509295909350565b61168d80620003456000396000f3fe6080604052600436106101095760003560e01c8063a035b1fe11610095578063eec7faa111610064578063eec7faa1146102fc578063f14a424f14610327578063f2fde38b14610350578063fc0c546a14610379578063fe72ac7f146103a457610109565b8063a035b1fe14610268578063ca628c7814610293578063ebd51a76146102aa578063ee68c9dc146102d357610109565b80634ddf4f8f116100dc5780634ddf4f8f146101b657806351061c85146101d2578063715018a6146101fd5780638da5cb5b14610214578063910efae81461023f57610109565b80631e4198e01461010e578063315f16b51461013757806336cf7c871461016057806347ccca021461018b575b600080fd5b34801561011a57600080fd5b5061013560048036038101906101309190610f2a565b6103cd565b005b34801561014357600080fd5b5061015e60048036038101906101599190610f8d565b61048b565b005b34801561016c57600080fd5b5061017561049d565b6040516101829190610fdb565b60405180910390f35b34801561019757600080fd5b506101a06104c3565b6040516101ad9190610fdb565b60405180910390f35b6101d060048036038101906101cb9190611022565b6104e9565b005b3480156101de57600080fd5b506101e76106a1565b6040516101f49190611071565b60405180910390f35b34801561020957600080fd5b506102126106a7565b005b34801561022057600080fd5b506102296106bb565b6040516102369190610fdb565b60405180910390f35b34801561024b57600080fd5b5061026660048036038101906102619190610f8d565b6106e4565b005b34801561027457600080fd5b5061027d610780565b60405161028a9190611071565b60405180910390f35b34801561029f57600080fd5b506102a8610786565b005b3480156102b657600080fd5b506102d160048036038101906102cc919061108c565b6108d2565b005b3480156102df57600080fd5b506102fa60048036038101906102f591906110b9565b61091e565b005b34801561030857600080fd5b50610311610c70565b60405161031e9190611071565b60405180910390f35b34801561033357600080fd5b5061034e6004803603810190610349919061108c565b610c76565b005b34801561035c57600080fd5b506103776004803603810190610372919061108c565b610cc2565b005b34801561038557600080fd5b5061038e610d45565b60405161039b9190610fdb565b60405180910390f35b3480156103b057600080fd5b506103cb60048036038101906103c69190610f8d565b610d6b565b005b6103d5610d7d565b600047905060008273ffffffffffffffffffffffffffffffffffffffff168260405161040090611151565b60006040518083038185875af1925050503d806000811461043d576040519150601f19603f3d011682016040523d82523d6000602084013e610442565b606091505b5050905080610486576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161047d906111c3565b60405180910390fd5b505050565b610493610d7d565b8060058190555050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045434101561052e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052590611255565b60405180910390fd5b60018060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161058a9190610fdb565b602060405180830381865afa1580156105a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105cb919061128a565b101561060c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060390611303565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3084846040518463ffffffff1660e01b815260040161066b93929190611323565b600060405180830381600087803b15801561068557600080fd5b505af1158015610699573d6000803e3d6000fd5b505050505050565b60065481565b6106af610d7d565b6106b96000610dfb565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6106ec610d7d565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3033846040518463ffffffff1660e01b815260040161074b93929190611323565b600060405180830381600087803b15801561076557600080fd5b505af1158015610779573d6000803e3d6000fd5b5050505050565b60045481565b61078e610d7d565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016107eb9190610fdb565b602060405180830381865afa158015610808573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082c919061128a565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b815260040161088b92919061135a565b6020604051808303816000875af11580156108aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ce91906113bb565b5050565b6108da610d7d565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006005541015610964576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095b90611434565b60405180910390fd5b6127106006546005546109779190611483565b61098191906114f4565b9050806005546109919190611525565b9150600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b81526004016109f293929190611323565b6020604051808303816000875af1158015610a11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3591906113bb565b50600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b8152600401610ab793929190611323565b6020604051808303816000875af1158015610ad6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610afa91906113bb565b5060018060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610b579190610fdb565b602060405180830381865afa158015610b74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b98919061128a565b1015610bd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd090611303565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3086866040518463ffffffff1660e01b8152600401610c3893929190611323565b600060405180830381600087803b158015610c5257600080fd5b505af1158015610c66573d6000803e3d6000fd5b5050505050505050565b60055481565b610c7e610d7d565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610cca610d7d565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d30906115cb565b60405180910390fd5b610d4281610dfb565b50565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610d73610d7d565b8060048190555050565b610d85610ebf565b73ffffffffffffffffffffffffffffffffffffffff16610da36106bb565b73ffffffffffffffffffffffffffffffffffffffff1614610df9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df090611637565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610ef782610ecc565b9050919050565b610f0781610eec565b8114610f1257600080fd5b50565b600081359050610f2481610efe565b92915050565b600060208284031215610f4057610f3f610ec7565b5b6000610f4e84828501610f15565b91505092915050565b6000819050919050565b610f6a81610f57565b8114610f7557600080fd5b50565b600081359050610f8781610f61565b92915050565b600060208284031215610fa357610fa2610ec7565b5b6000610fb184828501610f78565b91505092915050565b6000610fc582610ecc565b9050919050565b610fd581610fba565b82525050565b6000602082019050610ff06000830184610fcc565b92915050565b610fff81610fba565b811461100a57600080fd5b50565b60008135905061101c81610ff6565b92915050565b6000806040838503121561103957611038610ec7565b5b60006110478582860161100d565b925050602061105885828601610f78565b9150509250929050565b61106b81610f57565b82525050565b60006020820190506110866000830184611062565b92915050565b6000602082840312156110a2576110a1610ec7565b5b60006110b08482850161100d565b91505092915050565b600080600080608085870312156110d3576110d2610ec7565b5b60006110e18782880161100d565b94505060206110f287828801610f78565b935050604061110387828801610f78565b925050606061111487828801610f78565b91505092959194509250565b600081905092915050565b50565b600061113b600083611120565b91506111468261112b565b600082019050919050565b600061115c8261112e565b9150819050919050565b600082825260208201905092915050565b7f4661696c656420746f2073656e6420636f696e73000000000000000000000000600082015250565b60006111ad601483611166565b91506111b882611177565b602082019050919050565b600060208201905081810360008301526111dc816111a0565b9050919050565b7f4e6f7420656e6f75676820636f696e732073656e742c20636865636b2070726960008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b600061123f602283611166565b915061124a826111e3565b604082019050919050565b6000602082019050818103600083015261126e81611232565b9050919050565b60008151905061128481610f61565b92915050565b6000602082840312156112a05761129f610ec7565b5b60006112ae84828501611275565b91505092915050565b7f4e6f7420656e6f756768204e46547320696e20746865206d61726b6574000000600082015250565b60006112ed601d83611166565b91506112f8826112b7565b602082019050919050565b6000602082019050818103600083015261131c816112e0565b9050919050565b60006060820190506113386000830186610fcc565b6113456020830185610fcc565b6113526040830184611062565b949350505050565b600060408201905061136f6000830185610fcc565b61137c6020830184611062565b9392505050565b60008115159050919050565b61139881611383565b81146113a357600080fd5b50565b6000815190506113b58161138f565b92915050565b6000602082840312156113d1576113d0610ec7565b5b60006113df848285016113a6565b91505092915050565b7f746f6b656e20616d6f756e742063616e206e6f74206265203000000000000000600082015250565b600061141e601983611166565b9150611429826113e8565b602082019050919050565b6000602082019050818103600083015261144d81611411565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061148e82610f57565b915061149983610f57565b92508282026114a781610f57565b915082820484148315176114be576114bd611454565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006114ff82610f57565b915061150a83610f57565b92508261151a576115196114c5565b5b828204905092915050565b600061153082610f57565b915061153b83610f57565b925082820390508181111561155357611552611454565b5b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006115b5602683611166565b91506115c082611559565b604082019050919050565b600060208201905081810360008301526115e4816115a8565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611621602083611166565b915061162c826115eb565b602082019050919050565b6000602082019050818103600083015261165081611614565b905091905056fea2646970667358221220b96f7f69de61567e43de3e7c22cc81a0818991befa2528eab44857aad24f161564736f6c634300081100330000000000000000000000001749c3ed28189a4695cbaee75816a962020408a0000000000000000000000000b58904a0328abacf05b288e51a578471a8317b70000000000000000000000000000000000000000000000000d02ab486cedc0000000000000000000000000000000000000000000000000a968163f0a57b40000000000000000000000000000000000000000000000000000000000000000009c4
Deployed ByteCode
0x6080604052600436106101095760003560e01c8063a035b1fe11610095578063eec7faa111610064578063eec7faa1146102fc578063f14a424f14610327578063f2fde38b14610350578063fc0c546a14610379578063fe72ac7f146103a457610109565b8063a035b1fe14610268578063ca628c7814610293578063ebd51a76146102aa578063ee68c9dc146102d357610109565b80634ddf4f8f116100dc5780634ddf4f8f146101b657806351061c85146101d2578063715018a6146101fd5780638da5cb5b14610214578063910efae81461023f57610109565b80631e4198e01461010e578063315f16b51461013757806336cf7c871461016057806347ccca021461018b575b600080fd5b34801561011a57600080fd5b5061013560048036038101906101309190610f2a565b6103cd565b005b34801561014357600080fd5b5061015e60048036038101906101599190610f8d565b61048b565b005b34801561016c57600080fd5b5061017561049d565b6040516101829190610fdb565b60405180910390f35b34801561019757600080fd5b506101a06104c3565b6040516101ad9190610fdb565b60405180910390f35b6101d060048036038101906101cb9190611022565b6104e9565b005b3480156101de57600080fd5b506101e76106a1565b6040516101f49190611071565b60405180910390f35b34801561020957600080fd5b506102126106a7565b005b34801561022057600080fd5b506102296106bb565b6040516102369190610fdb565b60405180910390f35b34801561024b57600080fd5b5061026660048036038101906102619190610f8d565b6106e4565b005b34801561027457600080fd5b5061027d610780565b60405161028a9190611071565b60405180910390f35b34801561029f57600080fd5b506102a8610786565b005b3480156102b657600080fd5b506102d160048036038101906102cc919061108c565b6108d2565b005b3480156102df57600080fd5b506102fa60048036038101906102f591906110b9565b61091e565b005b34801561030857600080fd5b50610311610c70565b60405161031e9190611071565b60405180910390f35b34801561033357600080fd5b5061034e6004803603810190610349919061108c565b610c76565b005b34801561035c57600080fd5b506103776004803603810190610372919061108c565b610cc2565b005b34801561038557600080fd5b5061038e610d45565b60405161039b9190610fdb565b60405180910390f35b3480156103b057600080fd5b506103cb60048036038101906103c69190610f8d565b610d6b565b005b6103d5610d7d565b600047905060008273ffffffffffffffffffffffffffffffffffffffff168260405161040090611151565b60006040518083038185875af1925050503d806000811461043d576040519150601f19603f3d011682016040523d82523d6000602084013e610442565b606091505b5050905080610486576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161047d906111c3565b60405180910390fd5b505050565b610493610d7d565b8060058190555050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045434101561052e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052590611255565b60405180910390fd5b60018060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161058a9190610fdb565b602060405180830381865afa1580156105a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105cb919061128a565b101561060c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060390611303565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3084846040518463ffffffff1660e01b815260040161066b93929190611323565b600060405180830381600087803b15801561068557600080fd5b505af1158015610699573d6000803e3d6000fd5b505050505050565b60065481565b6106af610d7d565b6106b96000610dfb565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6106ec610d7d565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3033846040518463ffffffff1660e01b815260040161074b93929190611323565b600060405180830381600087803b15801561076557600080fd5b505af1158015610779573d6000803e3d6000fd5b5050505050565b60045481565b61078e610d7d565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016107eb9190610fdb565b602060405180830381865afa158015610808573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082c919061128a565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b815260040161088b92919061135a565b6020604051808303816000875af11580156108aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ce91906113bb565b5050565b6108da610d7d565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006005541015610964576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095b90611434565b60405180910390fd5b6127106006546005546109779190611483565b61098191906114f4565b9050806005546109919190611525565b9150600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b81526004016109f293929190611323565b6020604051808303816000875af1158015610a11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3591906113bb565b50600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b8152600401610ab793929190611323565b6020604051808303816000875af1158015610ad6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610afa91906113bb565b5060018060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610b579190610fdb565b602060405180830381865afa158015610b74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b98919061128a565b1015610bd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd090611303565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3086866040518463ffffffff1660e01b8152600401610c3893929190611323565b600060405180830381600087803b158015610c5257600080fd5b505af1158015610c66573d6000803e3d6000fd5b5050505050505050565b60055481565b610c7e610d7d565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610cca610d7d565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d30906115cb565b60405180910390fd5b610d4281610dfb565b50565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610d73610d7d565b8060048190555050565b610d85610ebf565b73ffffffffffffffffffffffffffffffffffffffff16610da36106bb565b73ffffffffffffffffffffffffffffffffffffffff1614610df9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df090611637565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610ef782610ecc565b9050919050565b610f0781610eec565b8114610f1257600080fd5b50565b600081359050610f2481610efe565b92915050565b600060208284031215610f4057610f3f610ec7565b5b6000610f4e84828501610f15565b91505092915050565b6000819050919050565b610f6a81610f57565b8114610f7557600080fd5b50565b600081359050610f8781610f61565b92915050565b600060208284031215610fa357610fa2610ec7565b5b6000610fb184828501610f78565b91505092915050565b6000610fc582610ecc565b9050919050565b610fd581610fba565b82525050565b6000602082019050610ff06000830184610fcc565b92915050565b610fff81610fba565b811461100a57600080fd5b50565b60008135905061101c81610ff6565b92915050565b6000806040838503121561103957611038610ec7565b5b60006110478582860161100d565b925050602061105885828601610f78565b9150509250929050565b61106b81610f57565b82525050565b60006020820190506110866000830184611062565b92915050565b6000602082840312156110a2576110a1610ec7565b5b60006110b08482850161100d565b91505092915050565b600080600080608085870312156110d3576110d2610ec7565b5b60006110e18782880161100d565b94505060206110f287828801610f78565b935050604061110387828801610f78565b925050606061111487828801610f78565b91505092959194509250565b600081905092915050565b50565b600061113b600083611120565b91506111468261112b565b600082019050919050565b600061115c8261112e565b9150819050919050565b600082825260208201905092915050565b7f4661696c656420746f2073656e6420636f696e73000000000000000000000000600082015250565b60006111ad601483611166565b91506111b882611177565b602082019050919050565b600060208201905081810360008301526111dc816111a0565b9050919050565b7f4e6f7420656e6f75676820636f696e732073656e742c20636865636b2070726960008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b600061123f602283611166565b915061124a826111e3565b604082019050919050565b6000602082019050818103600083015261126e81611232565b9050919050565b60008151905061128481610f61565b92915050565b6000602082840312156112a05761129f610ec7565b5b60006112ae84828501611275565b91505092915050565b7f4e6f7420656e6f756768204e46547320696e20746865206d61726b6574000000600082015250565b60006112ed601d83611166565b91506112f8826112b7565b602082019050919050565b6000602082019050818103600083015261131c816112e0565b9050919050565b60006060820190506113386000830186610fcc565b6113456020830185610fcc565b6113526040830184611062565b949350505050565b600060408201905061136f6000830185610fcc565b61137c6020830184611062565b9392505050565b60008115159050919050565b61139881611383565b81146113a357600080fd5b50565b6000815190506113b58161138f565b92915050565b6000602082840312156113d1576113d0610ec7565b5b60006113df848285016113a6565b91505092915050565b7f746f6b656e20616d6f756e742063616e206e6f74206265203000000000000000600082015250565b600061141e601983611166565b9150611429826113e8565b602082019050919050565b6000602082019050818103600083015261144d81611411565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061148e82610f57565b915061149983610f57565b92508282026114a781610f57565b915082820484148315176114be576114bd611454565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006114ff82610f57565b915061150a83610f57565b92508261151a576115196114c5565b5b828204905092915050565b600061153082610f57565b915061153b83610f57565b925082820390508181111561155357611552611454565b5b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006115b5602683611166565b91506115c082611559565b604082019050919050565b600060208201905081810360008301526115e4816115a8565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611621602083611166565b915061162c826115eb565b602082019050919050565b6000602082019050818103600083015261165081611614565b905091905056fea2646970667358221220b96f7f69de61567e43de3e7c22cc81a0818991befa2528eab44857aad24f161564736f6c63430008110033