ERC-20
Overview
Max Total Supply
1,111,111.000000000000000018 QD
Holders
1
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
1,111,111.000000000000000018 QDValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
QD
Compiler Version
v0.8.8+commit.dddeac2f
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.8; // pragma experimental SMTChecker; import "SafeERC20.sol"; import "ReentrancyGuard.sol"; import "IERC721.sol"; import "ERC20.sol"; import "Ownable.sol"; interface ICollection is IERC721 { function latestTokenId() external view returns (uint256); } contract QD is Ownable, ERC20, ReentrancyGuard { using SafeERC20 for ERC20; uint public sale_start; uint public minted; uint public raised; uint public _VERSION; uint constant internal _QD_DECIMALS = 18; uint constant internal _USDT_DECIMALS = 1e6; uint constant public PRECISION = 1e18; uint constant public SALE_LENGTH = 54 days; uint constant public MAX_QD_PER_DAY = 777_777; uint constant public delta = 101_010_000_000_000_018; uint constant public start_price = 44 * PRECISION / 100; // = 44B / Elon uint constant public slice = 1_111_111_000_000_000_000_000_018; // 🍕 pie address constant public SUKC_ETH = 0x42cc020Ef5e9681364ABB5aba26F39626F1874A4; address constant public F8N = 0x13B09CBc96aA378A04D4AFfBdF2116cEab14056b; address constant public UA = 0x165CD37b4C644C2921454429E7F9358d18A45e14; // twitter.com/Ukraine/status/1497594592438497282 address immutable public tether; // never changed mapping ( uint => address ) public redeemed; mapping ( uint => Outcome ) private _outcomes; mapping ( uint => mapping (address => uint) ) private _qd; mapping ( uint => mapping (address => uint) ) private _spent; event Withdraw (address indexed reciever, uint amt_usd, uint qd_amt); event Mint (address indexed reciever, uint cost_in_usd, uint qd_amt); enum Outcome { IDK, SUKCETH, FAILT } constructor(address _usdt) ERC20("QU!D", "QD") { sale_start = 1658777777; // July 25th, 2022 // in 1658, New Amsterdam police force forms _mint(SUKC_ETH, slice); // for...mirror (QP) _outcomes[1] = Outcome.IDK; // we'll see 🤞 _VERSION = 1; tether = _usdt; } function withdraw() external nonReentrant { if (block.timestamp > sale_start + SALE_LENGTH) { if (_outcomes[_VERSION] == Outcome.IDK) { if (owner() != SUKC_ETH) { if (owner() != address(0)) { // clementine...misbehaviour ERC20(tether).safeTransfer(owner(), 10_000_000_000); } // thank you, cum again... _transferOwnership(SUKC_ETH); // elect Dr. Schleppr } if (raised > 23_000_000_000_000) { // 23 flavors 🌶 ERC20(tether).safeTransfer(owner(), raised); _outcomes[_VERSION] = Outcome.SUKCETH; } else { _outcomes[_VERSION] = Outcome.FAILT; } minted = 0; raised = 0; } } uint total_refund; uint total_mint; for (uint i = 1; i <= _VERSION; i++) { if (_outcomes[i] == Outcome.SUKCETH) { // land the rebates uint amount = _qd[i][_msgSender()]; if (amount > 0) { total_mint += amount; delete(_qd[i][_msgSender()]); } uint spent = _spent[i][_msgSender()]; if (spent > 0) { delete(_spent[i][_msgSender()]); } } else if (_outcomes[i] == Outcome.FAILT) { // like Kickstarter uint refund = _spent[i][_msgSender()]; if (refund > 0) { total_refund += refund; delete(_spent[i][_msgSender()]); } uint amount = _qd[i][_msgSender()]; if (amount > 0) { delete(_qd[i][_msgSender()]); } } } if (total_refund > 0) { ERC20(tether).safeTransfer(_msgSender(), total_refund); } if (total_mint > 0) { _mint(_msgSender(), total_mint); } } function mint(uint qd_amt, address beneficiary) external nonReentrant returns (uint cost, uint paid, uint aid) { if (qd_amt == slice) { qd_amt = 0; if (_msgSender() == SUKC_ETH) { cost = 466_666 * 10 ** _USDT_DECIMALS; // call pops on money phone ERC20(tether).safeTransferFrom(_msgSender(), address(this), cost); qd_amt = slice; raised += cost; sale_start = block.timestamp; _VERSION += 1; } else if (beneficiary != SUKC_ETH) { uint latest = ICollection(F8N).latestTokenId(); for (uint i = 1; i <= latest; i++) { if (beneficiary == ICollection(F8N).ownerOf(i)) { if (redeemed[i] == address(0)) { redeemed[i] = beneficiary; qd_amt += slice; } } } } _mint(beneficiary, qd_amt); } else { require(block.timestamp >= sale_start, "QD: MINT_R2"); require(beneficiary != address(0), "ERC20: mint to the zero address"); require(qd_amt >= 1_000_000_000_000_000_000_000, "QD: MINT_R1"); // 1 rack minimum...for a t-shirt require(get_total_supply_cap(block.timestamp) >= qd_amt, "QD: MINT_R3"); // supply cap for minting cost = qd_amt_to_usdt_amt(qd_amt, block.timestamp); aid = cost * 22 / 100; // 🇺🇦,🇺🇦 paid = cost - aid; ERC20(tether).safeTransferFrom(_msgSender(), address(this), cost); ERC20(tether).safeTransfer(UA, aid); // must happen after above minted += qd_amt; raised += paid; _qd[_VERSION][beneficiary] += qd_amt; _spent[_VERSION][_msgSender()] += paid; } if (qd_amt > 0) { emit Mint(beneficiary, cost, qd_amt); emit Transfer(address(0), beneficiary, qd_amt); } } function get_total_supply_cap(uint block_timestamp) public view returns (uint total_supply_cap) { uint in_days = ((block_timestamp - sale_start) / 1 days) + 1; // off by one due to rounding total_supply_cap = in_days * MAX_QD_PER_DAY * PRECISION; if (block_timestamp <= sale_start + SALE_LENGTH) { return total_supply_cap - minted; } return 0; } function qd_amt_to_usdt_amt(uint qd_amt, uint block_timestamp) public view returns (uint usdt_amount) { uint price = (qd_amt / PRECISION) * calculate_price(block_timestamp); usdt_amount = (price * 10 ** _USDT_DECIMALS) / PRECISION ; } function calculate_price( uint block_timestamp) public view returns (uint price) { uint in_days = ((block_timestamp - sale_start) / 1 days) + 1; price = in_days * delta + start_price; } function balanceOf(address account, uint version) public view returns (uint256) { return _qd[_VERSION][account]; } function totalSupply(uint version) public view returns (uint256) { return minted; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "IERC20.sol"; import "Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @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]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being 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 percentage 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. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @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 making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "IERC20.sol"; import "IERC20Metadata.sol"; import "Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, _allowances[owner][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = _allowances[owner][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Spend `amount` form the allowance of `owner` toward `spender`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "libraries": { "QD.sol": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_usdt","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"reciever","type":"address"},{"indexed":false,"internalType":"uint256","name":"cost_in_usd","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"qd_amt","type":"uint256"}],"name":"Mint","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"reciever","type":"address"},{"indexed":false,"internalType":"uint256","name":"amt_usd","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"qd_amt","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"F8N","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_QD_PER_DAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SALE_LENGTH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SUKC_ETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UA","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_VERSION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"version","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"block_timestamp","type":"uint256"}],"name":"calculate_price","outputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"delta","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"block_timestamp","type":"uint256"}],"name":"get_total_supply_cap","outputs":[{"internalType":"uint256","name":"total_supply_cap","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"qd_amt","type":"uint256"},{"internalType":"address","name":"beneficiary","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"cost","type":"uint256"},{"internalType":"uint256","name":"paid","type":"uint256"},{"internalType":"uint256","name":"aid","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"qd_amt","type":"uint256"},{"internalType":"uint256","name":"block_timestamp","type":"uint256"}],"name":"qd_amt_to_usdt_amt","outputs":[{"internalType":"uint256","name":"usdt_amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"raised","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"redeemed","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sale_start","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"slice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"start_price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tether","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"version","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b506040516200229f3803806200229f83398101604081905262000034916200031b565b604051806040016040528060048152602001631455485160e21b81525060405180604001604052806002815260200161145160f21b81525062000086620000806200013960201b60201c565b6200013d565b81516200009b90600490602085019062000275565b508051620000b190600590602084019062000275565b50506001600655506362def0b1600755620000eb7342cc020ef5e9681364abb5aba26f39626f1874a469eb4972b05d9ebcbc00126200018d565b60016000819052600c6020527fd421a5181c571bba3f01190c922c3b2a896fc1d84e86c9f17ac10e67ebef8b5c805460ff19169055600a5560601b6001600160601b031916608052620003b1565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620001e85760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060036000828254620001fc91906200034d565b90915550506001600160a01b038216600090815260016020526040812080548392906200022b9084906200034d565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b828054620002839062000374565b90600052602060002090601f016020900481019282620002a75760008555620002f2565b82601f10620002c257805160ff1916838001178555620002f2565b82800160010185558215620002f2579182015b82811115620002f2578251825591602001919060010190620002d5565b506200030092915062000304565b5090565b5b8082111562000300576000815560010162000305565b6000602082840312156200032e57600080fd5b81516001600160a01b03811681146200034657600080fd5b9392505050565b600082198211156200036f57634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200038957607f821691505b60208210811415620003ab57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c611eac620003f360003960008181610307015281816107e20152818161085d01528181610a5e01528181610bc70152610f730152611eac6000f3fe608060405234801561001057600080fd5b506004361061021b5760003560e01c80637f37162411610125578063bbc56cc8116100ad578063dd62ed3e1161007c578063dd62ed3e146104a2578063efb4eeee146104db578063f0ea4bfc146104f6578063f2fde38b146104ff578063f7a3e0491461051257600080fd5b8063bbc56cc814610460578063bd85b0391461046a578063bf2b52bf1461047f578063c52e8c411461048757600080fd5b806395d89b41116100f457806395d89b411461041057806398b9cc6e14610418578063a457c2d71461042b578063a9059cbb1461043e578063aaf5eb681461045157600080fd5b80637f371624146103a55780638da5cb5b146103b657806392e8a363146103c757806394bf804d146103e257600080fd5b806339509351116101a85780635efc071a116101775780635efc071a146103025780636d7c6ba01461034157806370a082311461034b578063715018a6146103745780637ed0f1c11461037c57600080fd5b806339509351146102d35780633ccfd60b146102e657806349b0db14146102f05780634f02c420146102f957600080fd5b806318160ddd116101ef57806318160ddd1461028d57806323b872dd146102955780632e5c0fe7146102a8578063313ce567146102b1578063367e1c3e146102c057600080fd5b8062fdd58e1461022057806306fdde0314610246578063095ea7b31461025b57806312b495a81461027e575b600080fd5b61023361022e366004611a9e565b610525565b6040519081526020015b60405180910390f35b61024e610552565b60405161023d9190611af6565b61026e610269366004611a9e565b6105e4565b604051901515815260200161023d565b610233670166dc0f50c3201281565b600354610233565b61026e6102a3366004611b29565b6105fc565b61023360075481565b6040516012815260200161023d565b6102336102ce366004611b6a565b610622565b61026e6102e1366004611a9e565b61069d565b6102ee6106dc565b005b610233600a5481565b61023360085481565b6103297f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161023d565b610233620bde3181565b610233610359366004611b83565b6001600160a01b031660009081526001602052604090205490565b6102ee610aa6565b61032961038a366004611b6a565b600b602052600090815260409020546001600160a01b031681565b61023369eb4972b05d9ebcbc001281565b6000546001600160a01b0316610329565b6103297313b09cbc96aa378a04d4affbdf2116ceab14056b81565b6103f56103f0366004611ba0565b610b0c565b6040805193845260208401929092529082015260600161023d565b61024e6110e5565b610233610426366004611bd0565b6110f4565b61026e610439366004611a9e565b611151565b61026e61044c366004611a9e565b6111ee565b610233670de0b6b3a764000081565b6102336247310081565b610233610478366004611b6a565b5060085490565b6102336111fc565b61032973165cd37b4c644c2921454429e7f9358d18a45e1481565b6102336104b0366004611bf2565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6103297342cc020ef5e9681364abb5aba26f39626f1874a481565b61023360095481565b6102ee61050d366004611b83565b61121e565b610233610520366004611b6a565b6112e9565b600a546000908152600d602090815260408083206001600160a01b03861684529091529020545b92915050565b60606004805461056190611c20565b80601f016020809104026020016040519081016040528092919081815260200182805461058d90611c20565b80156105da5780601f106105af576101008083540402835291602001916105da565b820191906000526020600020905b8154815290600101906020018083116105bd57829003601f168201915b5050505050905090565b6000336105f2818585611350565b5060019392505050565b60003361060a858285611474565b610615858585611506565b60019150505b9392505050565b60008062015180600754846106379190611c71565b6106419190611c88565b61064c906001611caa565b9050670de0b6b3a7640000610664620bde3183611cc2565b61066e9190611cc2565b9150624731006007546106819190611caa565b83116106945760085461061b9083611c71565b50600092915050565b3360008181526002602090815260408083206001600160a01b03871684529091528120549091906105f290829086906106d7908790611caa565b611350565b600260065414156107345760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260065560075461074a906247310090611caa565b4211156108cd57600a546000908152600c602052604081205460ff16600281111561077757610777611ce1565b14156108cd577342cc020ef5e9681364abb5aba26f39626f1874a46107a46000546001600160a01b031690565b6001600160a01b03161461082b576000546001600160a01b03161561080e5761080e6107d86000546001600160a01b031690565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906402540be4006116d4565b61082b7342cc020ef5e9681364abb5aba26f39626f1874a461173c565b6514eb1ad4700060095411156108a5576108846108506000546001600160a01b031690565b6009546001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691906116d4565b600a546000908152600c60205260409020805460ff191660011790556108c2565b600a546000908152600c60205260409020805460ff191660021790555b600060088190556009555b60008060015b600a548111610a525760016000828152600c602052604090205460ff16600281111561090157610901611ce1565b1415610990576000818152600d60209081526040808320338452909152902054801561094e576109318184611caa565b6000838152600d6020908152604080832033845290915281205592505b6000828152600e602090815260408083203384529091529020548015610989576000838152600e602090815260408083203384529091528120555b5050610a40565b60026000828152600c602052604090205460ff1660028111156109b5576109b5611ce1565b1415610a40576000818152600e602090815260408083203384529091529020548015610a02576109e58185611caa565b6000838152600e6020908152604080832033845290915281205593505b6000828152600d602090815260408083203384529091529020548015610a3d576000838152600d602090815260408083203384529091528120555b50505b80610a4a81611cf7565b9150506108d3565b508115610a8d57610a8d7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633846116d4565b8015610a9d57610a9d338261178c565b50506001600655565b6000546001600160a01b03163314610b005760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161072b565b610b0a600061173c565b565b600080600060026006541415610b645760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161072b565b600260065569eb4972b05d9ebcbc0012851415610e095760009450337342cc020ef5e9681364abb5aba26f39626f1874a41415610c3857610ba9620f4240600a611df6565b610bb69062071eea611cc2565b9250610bef335b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690308661186b565b69eb4972b05d9ebcbc001294508260096000828254610c0e9190611caa565b909155505042600755600a805460019190600090610c2d908490611caa565b90915550610dfa9050565b6001600160a01b0384167342cc020ef5e9681364abb5aba26f39626f1874a414610dfa5760007313b09cbc96aa378a04d4affbdf2116ceab14056b6001600160a01b0316638c0e83496040518163ffffffff1660e01b815260040160206040518083038186803b158015610cab57600080fd5b505afa158015610cbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce39190611e02565b905060015b818111610df7576040516331a9108f60e11b8152600481018290527313b09cbc96aa378a04d4affbdf2116ceab14056b90636352211e9060240160206040518083038186803b158015610d3a57600080fd5b505afa158015610d4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d729190611e1b565b6001600160a01b0316866001600160a01b03161415610de5576000818152600b60205260409020546001600160a01b0316610de5576000818152600b6020526040902080546001600160a01b0319166001600160a01b038816179055610de269eb4972b05d9ebcbc001288611caa565b96505b80610def81611cf7565b915050610ce8565b50505b610e04848661178c565b61104a565b600754421015610e495760405162461bcd60e51b815260206004820152600b60248201526a28a21d1026a4a72a2fa91960a91b604482015260640161072b565b6001600160a01b038416610e9f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161072b565b683635c9adc5dea00000851015610ee65760405162461bcd60e51b815260206004820152600b60248201526a51443a204d494e545f523160a81b604482015260640161072b565b84610ef042610622565b1015610f2c5760405162461bcd60e51b815260206004820152600b60248201526a51443a204d494e545f523360a81b604482015260640161072b565b610f3685426110f4565b92506064610f45846016611cc2565b610f4f9190611c88565b9050610f5b8184611c71565b9150610f6633610bbd565b610fae6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001673165cd37b4c644c2921454429e7f9358d18a45e14836116d4565b8460086000828254610fc09190611caa565b925050819055508160096000828254610fd99190611caa565b9091555050600a546000908152600d602090815260408083206001600160a01b038816845290915281208054879290611013908490611caa565b9091555050600a546000908152600e6020908152604080832033845290915281208054849290611044908490611caa565b90915550505b84156110d65760408051848152602081018790526001600160a01b038616917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f910160405180910390a26040518581526001600160a01b038516906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35b60016006819055509250925092565b60606005805461056190611c20565b600080611100836112e9565b611112670de0b6b3a764000086611c88565b61111c9190611cc2565b9050670de0b6b3a7640000611135620f4240600a611df6565b61113f9083611cc2565b6111499190611c88565b949350505050565b3360008181526002602090815260408083206001600160a01b0387168452909152812054909190838110156111d65760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161072b565b6111e38286868403611350565b506001949350505050565b6000336105f2818585611506565b6064611211670de0b6b3a7640000602c611cc2565b61121b9190611c88565b81565b6000546001600160a01b031633146112785760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161072b565b6001600160a01b0381166112dd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161072b565b6112e68161173c565b50565b60008062015180600754846112fe9190611c71565b6113089190611c88565b611313906001611caa565b9050606461132a670de0b6b3a7640000602c611cc2565b6113349190611c88565b611346670166dc0f50c3201283611cc2565b61061b9190611caa565b6001600160a01b0383166113b25760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161072b565b6001600160a01b0382166114135760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161072b565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03838116600090815260026020908152604080832093861683529290522054600019811461150057818110156114f35760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161072b565b6115008484848403611350565b50505050565b6001600160a01b03831661156a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161072b565b6001600160a01b0382166115cc5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161072b565b6001600160a01b038316600090815260016020526040902054818110156116445760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161072b565b6001600160a01b0380851660009081526001602052604080822085850390559185168152908120805484929061167b908490611caa565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516116c791815260200190565b60405180910390a3611500565b6040516001600160a01b03831660248201526044810182905261173790849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526118a3565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382166117e25760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161072b565b80600360008282546117f49190611caa565b90915550506001600160a01b03821660009081526001602052604081208054839290611821908490611caa565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526115009085906323b872dd60e01b90608401611700565b60006118f8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166119759092919063ffffffff16565b80519091501561173757808060200190518101906119169190611e38565b6117375760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161072b565b60606111498484600085856001600160a01b0385163b6119d75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161072b565b600080866001600160a01b031685876040516119f39190611e5a565b60006040518083038185875af1925050503d8060008114611a30576040519150601f19603f3d011682016040523d82523d6000602084013e611a35565b606091505b5091509150611a45828286611a50565b979650505050505050565b60608315611a5f57508161061b565b825115611a6f5782518084602001fd5b8160405162461bcd60e51b815260040161072b9190611af6565b6001600160a01b03811681146112e657600080fd5b60008060408385031215611ab157600080fd5b8235611abc81611a89565b946020939093013593505050565b60005b83811015611ae5578181015183820152602001611acd565b838111156115005750506000910152565b6020815260008251806020840152611b15816040850160208701611aca565b601f01601f19169190910160400192915050565b600080600060608486031215611b3e57600080fd5b8335611b4981611a89565b92506020840135611b5981611a89565b929592945050506040919091013590565b600060208284031215611b7c57600080fd5b5035919050565b600060208284031215611b9557600080fd5b813561061b81611a89565b60008060408385031215611bb357600080fd5b823591506020830135611bc581611a89565b809150509250929050565b60008060408385031215611be357600080fd5b50508035926020909101359150565b60008060408385031215611c0557600080fd5b8235611c1081611a89565b91506020830135611bc581611a89565b600181811c90821680611c3457607f821691505b60208210811415611c5557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082821015611c8357611c83611c5b565b500390565b600082611ca557634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115611cbd57611cbd611c5b565b500190565b6000816000190483118215151615611cdc57611cdc611c5b565b500290565b634e487b7160e01b600052602160045260246000fd5b6000600019821415611d0b57611d0b611c5b565b5060010190565b600181815b80851115611d4d578160001904821115611d3357611d33611c5b565b80851615611d4057918102915b93841c9390800290611d17565b509250929050565b600082611d645750600161054c565b81611d715750600061054c565b8160018114611d875760028114611d9157611dad565b600191505061054c565b60ff841115611da257611da2611c5b565b50506001821b61054c565b5060208310610133831016604e8410600b8410161715611dd0575081810a61054c565b611dda8383611d12565b8060001904821115611dee57611dee611c5b565b029392505050565b600061061b8383611d55565b600060208284031215611e1457600080fd5b5051919050565b600060208284031215611e2d57600080fd5b815161061b81611a89565b600060208284031215611e4a57600080fd5b8151801515811461061b57600080fd5b60008251611e6c818460208701611aca565b919091019291505056fea264697066735822122027d3168570865a5d5421e046e4ef734496545992b6e4016bc1be21295c1b15f464736f6c63430008080033000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061021b5760003560e01c80637f37162411610125578063bbc56cc8116100ad578063dd62ed3e1161007c578063dd62ed3e146104a2578063efb4eeee146104db578063f0ea4bfc146104f6578063f2fde38b146104ff578063f7a3e0491461051257600080fd5b8063bbc56cc814610460578063bd85b0391461046a578063bf2b52bf1461047f578063c52e8c411461048757600080fd5b806395d89b41116100f457806395d89b411461041057806398b9cc6e14610418578063a457c2d71461042b578063a9059cbb1461043e578063aaf5eb681461045157600080fd5b80637f371624146103a55780638da5cb5b146103b657806392e8a363146103c757806394bf804d146103e257600080fd5b806339509351116101a85780635efc071a116101775780635efc071a146103025780636d7c6ba01461034157806370a082311461034b578063715018a6146103745780637ed0f1c11461037c57600080fd5b806339509351146102d35780633ccfd60b146102e657806349b0db14146102f05780634f02c420146102f957600080fd5b806318160ddd116101ef57806318160ddd1461028d57806323b872dd146102955780632e5c0fe7146102a8578063313ce567146102b1578063367e1c3e146102c057600080fd5b8062fdd58e1461022057806306fdde0314610246578063095ea7b31461025b57806312b495a81461027e575b600080fd5b61023361022e366004611a9e565b610525565b6040519081526020015b60405180910390f35b61024e610552565b60405161023d9190611af6565b61026e610269366004611a9e565b6105e4565b604051901515815260200161023d565b610233670166dc0f50c3201281565b600354610233565b61026e6102a3366004611b29565b6105fc565b61023360075481565b6040516012815260200161023d565b6102336102ce366004611b6a565b610622565b61026e6102e1366004611a9e565b61069d565b6102ee6106dc565b005b610233600a5481565b61023360085481565b6103297f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec781565b6040516001600160a01b03909116815260200161023d565b610233620bde3181565b610233610359366004611b83565b6001600160a01b031660009081526001602052604090205490565b6102ee610aa6565b61032961038a366004611b6a565b600b602052600090815260409020546001600160a01b031681565b61023369eb4972b05d9ebcbc001281565b6000546001600160a01b0316610329565b6103297313b09cbc96aa378a04d4affbdf2116ceab14056b81565b6103f56103f0366004611ba0565b610b0c565b6040805193845260208401929092529082015260600161023d565b61024e6110e5565b610233610426366004611bd0565b6110f4565b61026e610439366004611a9e565b611151565b61026e61044c366004611a9e565b6111ee565b610233670de0b6b3a764000081565b6102336247310081565b610233610478366004611b6a565b5060085490565b6102336111fc565b61032973165cd37b4c644c2921454429e7f9358d18a45e1481565b6102336104b0366004611bf2565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6103297342cc020ef5e9681364abb5aba26f39626f1874a481565b61023360095481565b6102ee61050d366004611b83565b61121e565b610233610520366004611b6a565b6112e9565b600a546000908152600d602090815260408083206001600160a01b03861684529091529020545b92915050565b60606004805461056190611c20565b80601f016020809104026020016040519081016040528092919081815260200182805461058d90611c20565b80156105da5780601f106105af576101008083540402835291602001916105da565b820191906000526020600020905b8154815290600101906020018083116105bd57829003601f168201915b5050505050905090565b6000336105f2818585611350565b5060019392505050565b60003361060a858285611474565b610615858585611506565b60019150505b9392505050565b60008062015180600754846106379190611c71565b6106419190611c88565b61064c906001611caa565b9050670de0b6b3a7640000610664620bde3183611cc2565b61066e9190611cc2565b9150624731006007546106819190611caa565b83116106945760085461061b9083611c71565b50600092915050565b3360008181526002602090815260408083206001600160a01b03871684529091528120549091906105f290829086906106d7908790611caa565b611350565b600260065414156107345760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260065560075461074a906247310090611caa565b4211156108cd57600a546000908152600c602052604081205460ff16600281111561077757610777611ce1565b14156108cd577342cc020ef5e9681364abb5aba26f39626f1874a46107a46000546001600160a01b031690565b6001600160a01b03161461082b576000546001600160a01b03161561080e5761080e6107d86000546001600160a01b031690565b6001600160a01b037f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec716906402540be4006116d4565b61082b7342cc020ef5e9681364abb5aba26f39626f1874a461173c565b6514eb1ad4700060095411156108a5576108846108506000546001600160a01b031690565b6009546001600160a01b037f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec71691906116d4565b600a546000908152600c60205260409020805460ff191660011790556108c2565b600a546000908152600c60205260409020805460ff191660021790555b600060088190556009555b60008060015b600a548111610a525760016000828152600c602052604090205460ff16600281111561090157610901611ce1565b1415610990576000818152600d60209081526040808320338452909152902054801561094e576109318184611caa565b6000838152600d6020908152604080832033845290915281205592505b6000828152600e602090815260408083203384529091529020548015610989576000838152600e602090815260408083203384529091528120555b5050610a40565b60026000828152600c602052604090205460ff1660028111156109b5576109b5611ce1565b1415610a40576000818152600e602090815260408083203384529091529020548015610a02576109e58185611caa565b6000838152600e6020908152604080832033845290915281205593505b6000828152600d602090815260408083203384529091529020548015610a3d576000838152600d602090815260408083203384529091528120555b50505b80610a4a81611cf7565b9150506108d3565b508115610a8d57610a8d7f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec76001600160a01b031633846116d4565b8015610a9d57610a9d338261178c565b50506001600655565b6000546001600160a01b03163314610b005760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161072b565b610b0a600061173c565b565b600080600060026006541415610b645760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161072b565b600260065569eb4972b05d9ebcbc0012851415610e095760009450337342cc020ef5e9681364abb5aba26f39626f1874a41415610c3857610ba9620f4240600a611df6565b610bb69062071eea611cc2565b9250610bef335b6001600160a01b037f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec71690308661186b565b69eb4972b05d9ebcbc001294508260096000828254610c0e9190611caa565b909155505042600755600a805460019190600090610c2d908490611caa565b90915550610dfa9050565b6001600160a01b0384167342cc020ef5e9681364abb5aba26f39626f1874a414610dfa5760007313b09cbc96aa378a04d4affbdf2116ceab14056b6001600160a01b0316638c0e83496040518163ffffffff1660e01b815260040160206040518083038186803b158015610cab57600080fd5b505afa158015610cbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce39190611e02565b905060015b818111610df7576040516331a9108f60e11b8152600481018290527313b09cbc96aa378a04d4affbdf2116ceab14056b90636352211e9060240160206040518083038186803b158015610d3a57600080fd5b505afa158015610d4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d729190611e1b565b6001600160a01b0316866001600160a01b03161415610de5576000818152600b60205260409020546001600160a01b0316610de5576000818152600b6020526040902080546001600160a01b0319166001600160a01b038816179055610de269eb4972b05d9ebcbc001288611caa565b96505b80610def81611cf7565b915050610ce8565b50505b610e04848661178c565b61104a565b600754421015610e495760405162461bcd60e51b815260206004820152600b60248201526a28a21d1026a4a72a2fa91960a91b604482015260640161072b565b6001600160a01b038416610e9f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161072b565b683635c9adc5dea00000851015610ee65760405162461bcd60e51b815260206004820152600b60248201526a51443a204d494e545f523160a81b604482015260640161072b565b84610ef042610622565b1015610f2c5760405162461bcd60e51b815260206004820152600b60248201526a51443a204d494e545f523360a81b604482015260640161072b565b610f3685426110f4565b92506064610f45846016611cc2565b610f4f9190611c88565b9050610f5b8184611c71565b9150610f6633610bbd565b610fae6001600160a01b037f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec71673165cd37b4c644c2921454429e7f9358d18a45e14836116d4565b8460086000828254610fc09190611caa565b925050819055508160096000828254610fd99190611caa565b9091555050600a546000908152600d602090815260408083206001600160a01b038816845290915281208054879290611013908490611caa565b9091555050600a546000908152600e6020908152604080832033845290915281208054849290611044908490611caa565b90915550505b84156110d65760408051848152602081018790526001600160a01b038616917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f910160405180910390a26040518581526001600160a01b038516906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35b60016006819055509250925092565b60606005805461056190611c20565b600080611100836112e9565b611112670de0b6b3a764000086611c88565b61111c9190611cc2565b9050670de0b6b3a7640000611135620f4240600a611df6565b61113f9083611cc2565b6111499190611c88565b949350505050565b3360008181526002602090815260408083206001600160a01b0387168452909152812054909190838110156111d65760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161072b565b6111e38286868403611350565b506001949350505050565b6000336105f2818585611506565b6064611211670de0b6b3a7640000602c611cc2565b61121b9190611c88565b81565b6000546001600160a01b031633146112785760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161072b565b6001600160a01b0381166112dd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161072b565b6112e68161173c565b50565b60008062015180600754846112fe9190611c71565b6113089190611c88565b611313906001611caa565b9050606461132a670de0b6b3a7640000602c611cc2565b6113349190611c88565b611346670166dc0f50c3201283611cc2565b61061b9190611caa565b6001600160a01b0383166113b25760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161072b565b6001600160a01b0382166114135760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161072b565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03838116600090815260026020908152604080832093861683529290522054600019811461150057818110156114f35760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161072b565b6115008484848403611350565b50505050565b6001600160a01b03831661156a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161072b565b6001600160a01b0382166115cc5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161072b565b6001600160a01b038316600090815260016020526040902054818110156116445760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161072b565b6001600160a01b0380851660009081526001602052604080822085850390559185168152908120805484929061167b908490611caa565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516116c791815260200190565b60405180910390a3611500565b6040516001600160a01b03831660248201526044810182905261173790849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526118a3565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382166117e25760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161072b565b80600360008282546117f49190611caa565b90915550506001600160a01b03821660009081526001602052604081208054839290611821908490611caa565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526115009085906323b872dd60e01b90608401611700565b60006118f8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166119759092919063ffffffff16565b80519091501561173757808060200190518101906119169190611e38565b6117375760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161072b565b60606111498484600085856001600160a01b0385163b6119d75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161072b565b600080866001600160a01b031685876040516119f39190611e5a565b60006040518083038185875af1925050503d8060008114611a30576040519150601f19603f3d011682016040523d82523d6000602084013e611a35565b606091505b5091509150611a45828286611a50565b979650505050505050565b60608315611a5f57508161061b565b825115611a6f5782518084602001fd5b8160405162461bcd60e51b815260040161072b9190611af6565b6001600160a01b03811681146112e657600080fd5b60008060408385031215611ab157600080fd5b8235611abc81611a89565b946020939093013593505050565b60005b83811015611ae5578181015183820152602001611acd565b838111156115005750506000910152565b6020815260008251806020840152611b15816040850160208701611aca565b601f01601f19169190910160400192915050565b600080600060608486031215611b3e57600080fd5b8335611b4981611a89565b92506020840135611b5981611a89565b929592945050506040919091013590565b600060208284031215611b7c57600080fd5b5035919050565b600060208284031215611b9557600080fd5b813561061b81611a89565b60008060408385031215611bb357600080fd5b823591506020830135611bc581611a89565b809150509250929050565b60008060408385031215611be357600080fd5b50508035926020909101359150565b60008060408385031215611c0557600080fd5b8235611c1081611a89565b91506020830135611bc581611a89565b600181811c90821680611c3457607f821691505b60208210811415611c5557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082821015611c8357611c83611c5b565b500390565b600082611ca557634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115611cbd57611cbd611c5b565b500190565b6000816000190483118215151615611cdc57611cdc611c5b565b500290565b634e487b7160e01b600052602160045260246000fd5b6000600019821415611d0b57611d0b611c5b565b5060010190565b600181815b80851115611d4d578160001904821115611d3357611d33611c5b565b80851615611d4057918102915b93841c9390800290611d17565b509250929050565b600082611d645750600161054c565b81611d715750600061054c565b8160018114611d875760028114611d9157611dad565b600191505061054c565b60ff841115611da257611da2611c5b565b50506001821b61054c565b5060208310610133831016604e8410600b8410161715611dd0575081810a61054c565b611dda8383611d12565b8060001904821115611dee57611dee611c5b565b029392505050565b600061061b8383611d55565b600060208284031215611e1457600080fd5b5051919050565b600060208284031215611e2d57600080fd5b815161061b81611a89565b600060208284031215611e4a57600080fd5b8151801515811461061b57600080fd5b60008251611e6c818460208701611aca565b919091019291505056fea264697066735822122027d3168570865a5d5421e046e4ef734496545992b6e4016bc1be21295c1b15f464736f6c63430008080033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
-----Decoded View---------------
Arg [0] : _usdt (address): 0xdAC17F958D2ee523a2206206994597C13D831ec7
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.