Contract Address Details
0x00E1a75480b8bFFA6A0d468fe9ad0C9B261291a3
- Token
- DOS (DOS)
- Creator
- 0x842ac4–9749cc at 0x79f750–50360b
- Balance
- 0 Doge
- Tokens
-
Fetching tokens...
- Transactions
- 258 Transactions
- Transfers
- 0 Transfers
- Gas Used
- 10,871,922
- Last Balance Update
- 25388668
- Contract name:
- DOS
- Optimization enabled
- true
- Compiler version
- v0.8.4+commit.c7e474f2
- Optimization runs
- 1000
- EVM Version
- default
- Verified at
- 2022-08-26T03:04:53.629001Z
Constructor Arguments
000000000000000000000000dc527f1008d3010ff786bd681a83bd56bb89d7be
Arg [0] (address) : 0xdc527f1008d3010ff786bd681a83bd56bb89d7be
Contract source code
// Sources flattened with hardhat v2.9.9 https://hardhat.org // File @openzeppelin/contracts/token/ERC20/IERC20.sol@v4.7.0 // SPDX-License-Identifier: MIT // 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/ERC20/extensions/IERC20Metadata.sol@v4.7.0 // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @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); } // File @openzeppelin/contracts/utils/Context.sol@v4.7.0 // 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/token/ERC20/ERC20.sol@v4.7.0 // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @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, allowance(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 = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * 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 Updates `owner` s allowance for `spender` based on spent `amount`. * * 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 {} } // File @openzeppelin/contracts/utils/math/SafeMath.sol@v4.7.0 // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } // File @openzeppelin/contracts/utils/Address.sol@v4.7.0 // OpenZeppelin Contracts (last updated v4.7.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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File @openzeppelin/contracts/security/Pausable.sol@v4.7.0 // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // File contracts/ERC20/DOS.sol pragma solidity ^0.8.0; /* Dog SWAP */ contract DOS is ERC20, Pausable { using SafeMath for uint256; using Address for address; uint256 public cap = 1000000000 ether; uint256 public antiWhaleThreshold; mapping(address => bool) public isExcFromFee; mapping(address => bool) public isExcFromAntiWhale; mapping(address => bool) public isInToAntiWhale; mapping(address => bool) public isExcPause; bool public isAntiWhale; address public beneficiary; uint256 public taxFee; // 100 = 1% address private governance; address private pendingGovernance; constructor(address _beneficiary) Pausable() ERC20("DOS", "DOS") { governance = _msgSender(); isAntiWhale = false; beneficiary = _beneficiary; antiWhaleThreshold = cap.div(100); isExcFromFee[governance] = true; isExcFromAntiWhale[governance] = true; isExcFromFee[beneficiary] = true; isExcFromAntiWhale[beneficiary] = true; isExcPause[governance] = true; taxFee = 0; _mint(governance, cap); } modifier onlyGovernance() { require(msg.sender == governance, "DOS: !governance"); _; } function decimals() public view virtual override returns (uint8) { return 18; } function pause() external virtual onlyGovernance { _pause(); } function unpause() external virtual onlyGovernance { _unpause(); } function _beforeTokenTransfer( address from_, address to_, uint256 amount_ ) internal virtual override { super._beforeTokenTransfer(from_, to_, amount_); if (!isExcPause[from_] && !isExcPause[to_]) { require(!paused(), "DOS: token transfer while paused"); } if (from_ == address(0)) { require(totalSupply().add(amount_) <= cap, "DOS: cap exceeded"); } } // only mint <= cap function mint(address to_, uint256 amount_) external virtual onlyGovernance { _mint(to_, amount_); } function burn(uint256 amount_) external virtual { _burn(msg.sender, amount_); } function setBeneficiary(address _beneficiary) external onlyGovernance { require(_beneficiary != address(0), "DOS: zero address"); beneficiary = _beneficiary; } function setAntiWhale(bool _isAntiWhale) external onlyGovernance { isAntiWhale = _isAntiWhale; } function setExcFromFee(address _account, bool _status) external onlyGovernance { require(_account != address(0), "DOS: zero address"); isExcFromFee[_account] = _status; } function setExcAntiWhale(address _account, bool _status) external onlyGovernance { require(_account != address(0), "DOS: zero address"); isExcFromAntiWhale[_account] = _status; } function setInToAntiWhale(address _account, bool _status) external onlyGovernance { require(_account != address(0), "DOS: zero address"); isInToAntiWhale[_account] = _status; } function setIsExcPause(address _account, bool _status) external onlyGovernance { require(_account != address(0), "DOS: zero address"); isExcPause[_account] = _status; } function setAntiWhaleThreshold(uint256 _antiWhaleThreshold) external onlyGovernance { antiWhaleThreshold = _antiWhaleThreshold; } function setTaxFee(uint256 _taxFee) external onlyGovernance { taxFee = _taxFee; } function calculateTaxFee(uint256 _amount) public view returns (uint256 _fee) { _fee = _amount.mul(taxFee).div(10000); } function _transfer( address sender, address recipient, uint256 amount ) internal virtual override { if (isAntiWhale && !isExcFromAntiWhale[sender]) { if (isInToAntiWhale[recipient]) { require(amount <= antiWhaleThreshold, "Anti whale: can't buy more than the specified threshold"); require(balanceOf(sender).add(amount) <= antiWhaleThreshold, "Anti whale: can't hold more than the specified threshold"); } } if (taxFee > 0 && !isExcFromFee[sender] && !isExcFromFee[recipient]) { uint256 fee = calculateTaxFee(amount); amount = amount.sub(fee); super._transfer(sender, beneficiary, fee); } super._transfer(sender, recipient, amount); } /* Suopport User */ function governanceRecoverUnsupported( address _token, uint256 _amount, address _to ) external onlyGovernance { IERC20(_token).transfer(_to, _amount); } }
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_beneficiary","internalType":"address"}]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Paused","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Unpaused","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"antiWhaleThreshold","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"beneficiary","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"burn","inputs":[{"type":"uint256","name":"amount_","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"_fee","internalType":"uint256"}],"name":"calculateTaxFee","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"cap","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"decreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"subtractedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"governanceRecoverUnsupported","inputs":[{"type":"address","name":"_token","internalType":"address"},{"type":"uint256","name":"_amount","internalType":"uint256"},{"type":"address","name":"_to","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isAntiWhale","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isExcFromAntiWhale","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isExcFromFee","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isExcPause","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isInToAntiWhale","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"mint","inputs":[{"type":"address","name":"to_","internalType":"address"},{"type":"uint256","name":"amount_","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"pause","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"paused","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setAntiWhale","inputs":[{"type":"bool","name":"_isAntiWhale","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setAntiWhaleThreshold","inputs":[{"type":"uint256","name":"_antiWhaleThreshold","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBeneficiary","inputs":[{"type":"address","name":"_beneficiary","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setExcAntiWhale","inputs":[{"type":"address","name":"_account","internalType":"address"},{"type":"bool","name":"_status","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setExcFromFee","inputs":[{"type":"address","name":"_account","internalType":"address"},{"type":"bool","name":"_status","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setInToAntiWhale","inputs":[{"type":"address","name":"_account","internalType":"address"},{"type":"bool","name":"_status","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setIsExcPause","inputs":[{"type":"address","name":"_account","internalType":"address"},{"type":"bool","name":"_status","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setTaxFee","inputs":[{"type":"uint256","name":"_taxFee","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"taxFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"unpause","inputs":[]}]
Contract Creation Code
0x60806040526b033b2e3c9fd0803ce80000006006553480156200002157600080fd5b506040516200216e3803806200216e8339810160408190526200004491620004aa565b60405180604001604052806003815260200162444f5360e81b81525060405180604001604052806003815260200162444f5360e81b81525081600390805190602001906200009492919062000404565b508051620000aa90600490602084019062000404565b50506005805460ff1916905550600e8054336001600160a01b0319909116179055600c80546001600160a81b0319166101006001600160a01b0384160217905560065462000106906064620001b6602090811b62000e2917901c565b600755600e80546001600160a01b0390811660009081526008602081815260408084208054600160ff19918216811790925587548716865260098085528387208054831684179055600c8054610100908190048a16895296865284882080548416851790555495909504871686529383528185208054851682179055865486168552600b90925283208054909216179055600d559054600654620001af929190911690620001cb565b5062000556565b6000620001c48284620004f8565b9392505050565b6001600160a01b038216620002275760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b6200023560008383620002c2565b8060026000828254620002499190620004d3565b90915550506001600160a01b0382166000908152602081905260408120805483929062000278908490620004d3565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b620002da838383620003f160201b62000e3c1760201c565b6001600160a01b0383166000908152600b602052604090205460ff161580156200031d57506001600160a01b0382166000908152600b602052604090205460ff16155b15620003785760055460ff1615620003785760405162461bcd60e51b815260206004820181905260248201527f444f533a20746f6b656e207472616e73666572207768696c652070617573656460448201526064016200021e565b6001600160a01b038316620003f157600654620003ad826200039960025490565b620003f660201b62000e411790919060201c565b1115620003f15760405162461bcd60e51b81526020600482015260116024820152701113d4ce8818d85c08195e18d959591959607a1b60448201526064016200021e565b505050565b6000620001c48284620004d3565b828054620004129062000519565b90600052602060002090601f01602090048101928262000436576000855562000481565b82601f106200045157805160ff191683800117855562000481565b8280016001018555821562000481579182015b828111156200048157825182559160200191906001019062000464565b506200048f92915062000493565b5090565b5b808211156200048f576000815560010162000494565b600060208284031215620004bc578081fd5b81516001600160a01b0381168114620001c4578182fd5b60008219821115620004f357634e487b7160e01b81526011600452602481fd5b500190565b6000826200051457634e487b7160e01b81526012600452602481fd5b500490565b600181811c908216806200052e57607f821691505b602082108114156200055057634e487b7160e01b600052602260045260246000fd5b50919050565b611c0880620005666000396000f3fe608060405234801561001057600080fd5b50600436106102415760003560e01c80636e6407401161014557806395d89b41116100bd578063b4cea39f1161008c578063dd62ed3e11610071578063dd62ed3e146104d4578063ddbf29f11461050d578063e926987d1461053057600080fd5b8063b4cea39f146104ae578063c4081a4c146104c157600080fd5b806395d89b4114610477578063a071dcf41461047f578063a457c2d714610488578063a9059cbb1461049b57600080fd5b806376f1f2b7116101145780638456cb59116100f95780638456cb591461043f5780638f767647146104475780639226de511461046a57600080fd5b806376f1f2b714610423578063795f694f1461042c57600080fd5b80636e640740146103b157806370a08231146103d457806375128141146103fd578063762d6edc1461041057600080fd5b8063355274ea116101d857806340c10f19116101a75780634a5566bf1161018c5780634a5566bf1461038057806354575af4146103935780635c975abb146103a657600080fd5b806340c10f191461035a57806342966c681461036d57600080fd5b8063355274ea1461030657806338af3eed1461030f578063395093511461033f5780633f4ba83a1461035257600080fd5b806318f03d641161021457806318f03d64146102bc5780631c31f710146102d157806323b872dd146102e4578063313ce567146102f757600080fd5b806306fdde0314610246578063095ea7b3146102645780630ba2a1bb1461028757806318160ddd146102aa575b600080fd5b61024e610543565b60405161025b9190611ab2565b60405180910390f35b6102776102723660046119fe565b6105d5565b604051901515815260200161025b565b610277610295366004611941565b60096020526000908152604090205460ff1681565b6002545b60405190815260200161025b565b6102cf6102ca3660046119c8565b6105ed565b005b6102cf6102df366004611941565b6106b4565b6102776102f236600461198d565b61078a565b6040516012815260200161025b565b6102ae60065481565b600c546103279061010090046001600160a01b031681565b6040516001600160a01b03909116815260200161025b565b61027761034d3660046119fe565b6107ae565b6102cf6107ed565b6102cf6103683660046119fe565b610844565b6102cf61037b366004611a9a565b61089f565b6102cf61038e366004611a62565b6108ac565b6102cf6103a1366004611a27565b61090c565b60055460ff16610277565b6102776103bf366004611941565b600a6020526000908152604090205460ff1681565b6102ae6103e2366004611941565b6001600160a01b031660009081526020819052604090205490565b6102ae61040b366004611a9a565b6109fa565b6102cf61041e3660046119c8565b610a23565b6102ae60075481565b6102cf61043a366004611a9a565b610ae5565b6102cf610b37565b610277610455366004611941565b60086020526000908152604090205460ff1681565b600c546102779060ff1681565b61024e610b8c565b6102ae600d5481565b6102776104963660046119fe565b610b9b565b6102776104a93660046119fe565b610c45565b6102cf6104bc3660046119c8565b610c53565b6102cf6104cf366004611a9a565b610d15565b6102ae6104e236600461195b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61027761051b366004611941565b600b6020526000908152604090205460ff1681565b6102cf61053e3660046119c8565b610d67565b60606003805461055290611b73565b80601f016020809104026020016040519081016040528092919081815260200182805461057e90611b73565b80156105cb5780601f106105a0576101008083540402835291602001916105cb565b820191906000526020600020905b8154815290600101906020018083116105ae57829003601f168201915b5050505050905090565b6000336105e3818585610e4d565b5060019392505050565b600e546001600160a01b0316331461063f5760405162461bcd60e51b815260206004820152601060248201526f444f533a2021676f7665726e616e636560801b60448201526064015b60405180910390fd5b6001600160a01b0382166106895760405162461bcd60e51b8152602060048201526011602482015270444f533a207a65726f206164647265737360781b6044820152606401610636565b6001600160a01b03919091166000908152600a60205260409020805460ff1916911515919091179055565b600e546001600160a01b031633146107015760405162461bcd60e51b815260206004820152601060248201526f444f533a2021676f7665726e616e636560801b6044820152606401610636565b6001600160a01b03811661074b5760405162461bcd60e51b8152602060048201526011602482015270444f533a207a65726f206164647265737360781b6044820152606401610636565b600c80546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b600033610798858285610fa5565b6107a3858585611031565b506001949350505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906105e390829086906107e8908790611b05565b610e4d565b600e546001600160a01b0316331461083a5760405162461bcd60e51b815260206004820152601060248201526f444f533a2021676f7665726e616e636560801b6044820152606401610636565b610842611235565b565b600e546001600160a01b031633146108915760405162461bcd60e51b815260206004820152601060248201526f444f533a2021676f7665726e616e636560801b6044820152606401610636565b61089b8282611287565b5050565b6108a93382611372565b50565b600e546001600160a01b031633146108f95760405162461bcd60e51b815260206004820152601060248201526f444f533a2021676f7665726e616e636560801b6044820152606401610636565b600c805460ff1916911515919091179055565b600e546001600160a01b031633146109595760405162461bcd60e51b815260206004820152601060248201526f444f533a2021676f7665726e616e636560801b6044820152606401610636565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301526024820184905284169063a9059cbb90604401602060405180830381600087803b1580156109bc57600080fd5b505af11580156109d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109f49190611a7e565b50505050565b6000610a1d612710610a17600d548561150390919063ffffffff16565b90610e29565b92915050565b600e546001600160a01b03163314610a705760405162461bcd60e51b815260206004820152601060248201526f444f533a2021676f7665726e616e636560801b6044820152606401610636565b6001600160a01b038216610aba5760405162461bcd60e51b8152602060048201526011602482015270444f533a207a65726f206164647265737360781b6044820152606401610636565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b600e546001600160a01b03163314610b325760405162461bcd60e51b815260206004820152601060248201526f444f533a2021676f7665726e616e636560801b6044820152606401610636565b600755565b600e546001600160a01b03163314610b845760405162461bcd60e51b815260206004820152601060248201526f444f533a2021676f7665726e616e636560801b6044820152606401610636565b61084261150f565b60606004805461055290611b73565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610c385760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610636565b6107a38286868403610e4d565b6000336105e3818585611031565b600e546001600160a01b03163314610ca05760405162461bcd60e51b815260206004820152601060248201526f444f533a2021676f7665726e616e636560801b6044820152606401610636565b6001600160a01b038216610cea5760405162461bcd60e51b8152602060048201526011602482015270444f533a207a65726f206164647265737360781b6044820152606401610636565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b600e546001600160a01b03163314610d625760405162461bcd60e51b815260206004820152601060248201526f444f533a2021676f7665726e616e636560801b6044820152606401610636565b600d55565b600e546001600160a01b03163314610db45760405162461bcd60e51b815260206004820152601060248201526f444f533a2021676f7665726e616e636560801b6044820152606401610636565b6001600160a01b038216610dfe5760405162461bcd60e51b8152602060048201526011602482015270444f533a207a65726f206164647265737360781b6044820152606401610636565b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b6000610e358284611b1d565b9392505050565b505050565b6000610e358284611b05565b6001600160a01b038316610ec85760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610636565b6001600160a01b038216610f445760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610636565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146109f457818110156110245760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610636565b6109f48484848403610e4d565b600c5460ff16801561105c57506001600160a01b03831660009081526009602052604090205460ff16155b1561119a576001600160a01b0382166000908152600a602052604090205460ff161561119a576007548111156110fa5760405162461bcd60e51b815260206004820152603760248201527f416e7469207768616c653a2063616e277420627579206d6f7265207468616e2060448201527f74686520737065636966696564207468726573686f6c640000000000000000006064820152608401610636565b60075461112682611120866001600160a01b031660009081526020819052604090205490565b90610e41565b111561119a5760405162461bcd60e51b815260206004820152603860248201527f416e7469207768616c653a2063616e277420686f6c64206d6f7265207468616e60448201527f2074686520737065636966696564207468726573686f6c6400000000000000006064820152608401610636565b6000600d541180156111c557506001600160a01b03831660009081526008602052604090205460ff16155b80156111ea57506001600160a01b03821660009081526008602052604090205460ff16155b1561122a5760006111fa826109fa565b9050611206828261154c565b915061122884600c60019054906101000a90046001600160a01b031683611558565b505b610e3c838383611558565b61123d61177a565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b0382166112dd5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610636565b6112e9600083836117cc565b80600260008282546112fb9190611b05565b90915550506001600160a01b03821660009081526020819052604081208054839290611328908490611b05565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0382166113ee5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610636565b6113fa826000836117cc565b6001600160a01b038216600090815260208190526040902054818110156114895760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610636565b6001600160a01b03831660009081526020819052604081208383039055600280548492906114b8908490611b5c565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6000610e358284611b3d565b6115176118d2565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861126a3390565b6000610e358284611b5c565b6001600160a01b0383166115d45760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610636565b6001600160a01b0382166116505760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610636565b61165b8383836117cc565b6001600160a01b038316600090815260208190526040902054818110156116ea5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610636565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611721908490611b05565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161176d91815260200190565b60405180910390a36109f4565b60055460ff166108425760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610636565b6001600160a01b0383166000908152600b602052604090205460ff1615801561180e57506001600160a01b0382166000908152600b602052604090205460ff16155b156118665760055460ff16156118665760405162461bcd60e51b815260206004820181905260248201527f444f533a20746f6b656e207472616e73666572207768696c65207061757365646044820152606401610636565b6001600160a01b038316610e3c576006546118848261112060025490565b1115610e3c5760405162461bcd60e51b815260206004820152601160248201527f444f533a206361702065786365656465640000000000000000000000000000006044820152606401610636565b60055460ff16156108425760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610636565b80356001600160a01b038116811461193c57600080fd5b919050565b600060208284031215611952578081fd5b610e3582611925565b6000806040838503121561196d578081fd5b61197683611925565b915061198460208401611925565b90509250929050565b6000806000606084860312156119a1578081fd5b6119aa84611925565b92506119b860208501611925565b9150604084013590509250925092565b600080604083850312156119da578182fd5b6119e383611925565b915060208301356119f381611bc4565b809150509250929050565b60008060408385031215611a10578182fd5b611a1983611925565b946020939093013593505050565b600080600060608486031215611a3b578283fd5b611a4484611925565b925060208401359150611a5960408501611925565b90509250925092565b600060208284031215611a73578081fd5b8135610e3581611bc4565b600060208284031215611a8f578081fd5b8151610e3581611bc4565b600060208284031215611aab578081fd5b5035919050565b6000602080835283518082850152825b81811015611ade57858101830151858201604001528201611ac2565b81811115611aef5783604083870101525b50601f01601f1916929092016040019392505050565b60008219821115611b1857611b18611bae565b500190565b600082611b3857634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611b5757611b57611bae565b500290565b600082821015611b6e57611b6e611bae565b500390565b600181811c90821680611b8757607f821691505b60208210811415611ba857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80151581146108a957600080fdfea2646970667358221220f77b7c8ccebae4b6df176dd272e78930b00412f24e2d8fd94d45388d1c3b9b1264736f6c63430008040033000000000000000000000000dc527f1008d3010ff786bd681a83bd56bb89d7be
Deployed ByteCode
0x608060405234801561001057600080fd5b50600436106102415760003560e01c80636e6407401161014557806395d89b41116100bd578063b4cea39f1161008c578063dd62ed3e11610071578063dd62ed3e146104d4578063ddbf29f11461050d578063e926987d1461053057600080fd5b8063b4cea39f146104ae578063c4081a4c146104c157600080fd5b806395d89b4114610477578063a071dcf41461047f578063a457c2d714610488578063a9059cbb1461049b57600080fd5b806376f1f2b7116101145780638456cb59116100f95780638456cb591461043f5780638f767647146104475780639226de511461046a57600080fd5b806376f1f2b714610423578063795f694f1461042c57600080fd5b80636e640740146103b157806370a08231146103d457806375128141146103fd578063762d6edc1461041057600080fd5b8063355274ea116101d857806340c10f19116101a75780634a5566bf1161018c5780634a5566bf1461038057806354575af4146103935780635c975abb146103a657600080fd5b806340c10f191461035a57806342966c681461036d57600080fd5b8063355274ea1461030657806338af3eed1461030f578063395093511461033f5780633f4ba83a1461035257600080fd5b806318f03d641161021457806318f03d64146102bc5780631c31f710146102d157806323b872dd146102e4578063313ce567146102f757600080fd5b806306fdde0314610246578063095ea7b3146102645780630ba2a1bb1461028757806318160ddd146102aa575b600080fd5b61024e610543565b60405161025b9190611ab2565b60405180910390f35b6102776102723660046119fe565b6105d5565b604051901515815260200161025b565b610277610295366004611941565b60096020526000908152604090205460ff1681565b6002545b60405190815260200161025b565b6102cf6102ca3660046119c8565b6105ed565b005b6102cf6102df366004611941565b6106b4565b6102776102f236600461198d565b61078a565b6040516012815260200161025b565b6102ae60065481565b600c546103279061010090046001600160a01b031681565b6040516001600160a01b03909116815260200161025b565b61027761034d3660046119fe565b6107ae565b6102cf6107ed565b6102cf6103683660046119fe565b610844565b6102cf61037b366004611a9a565b61089f565b6102cf61038e366004611a62565b6108ac565b6102cf6103a1366004611a27565b61090c565b60055460ff16610277565b6102776103bf366004611941565b600a6020526000908152604090205460ff1681565b6102ae6103e2366004611941565b6001600160a01b031660009081526020819052604090205490565b6102ae61040b366004611a9a565b6109fa565b6102cf61041e3660046119c8565b610a23565b6102ae60075481565b6102cf61043a366004611a9a565b610ae5565b6102cf610b37565b610277610455366004611941565b60086020526000908152604090205460ff1681565b600c546102779060ff1681565b61024e610b8c565b6102ae600d5481565b6102776104963660046119fe565b610b9b565b6102776104a93660046119fe565b610c45565b6102cf6104bc3660046119c8565b610c53565b6102cf6104cf366004611a9a565b610d15565b6102ae6104e236600461195b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61027761051b366004611941565b600b6020526000908152604090205460ff1681565b6102cf61053e3660046119c8565b610d67565b60606003805461055290611b73565b80601f016020809104026020016040519081016040528092919081815260200182805461057e90611b73565b80156105cb5780601f106105a0576101008083540402835291602001916105cb565b820191906000526020600020905b8154815290600101906020018083116105ae57829003601f168201915b5050505050905090565b6000336105e3818585610e4d565b5060019392505050565b600e546001600160a01b0316331461063f5760405162461bcd60e51b815260206004820152601060248201526f444f533a2021676f7665726e616e636560801b60448201526064015b60405180910390fd5b6001600160a01b0382166106895760405162461bcd60e51b8152602060048201526011602482015270444f533a207a65726f206164647265737360781b6044820152606401610636565b6001600160a01b03919091166000908152600a60205260409020805460ff1916911515919091179055565b600e546001600160a01b031633146107015760405162461bcd60e51b815260206004820152601060248201526f444f533a2021676f7665726e616e636560801b6044820152606401610636565b6001600160a01b03811661074b5760405162461bcd60e51b8152602060048201526011602482015270444f533a207a65726f206164647265737360781b6044820152606401610636565b600c80546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b600033610798858285610fa5565b6107a3858585611031565b506001949350505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906105e390829086906107e8908790611b05565b610e4d565b600e546001600160a01b0316331461083a5760405162461bcd60e51b815260206004820152601060248201526f444f533a2021676f7665726e616e636560801b6044820152606401610636565b610842611235565b565b600e546001600160a01b031633146108915760405162461bcd60e51b815260206004820152601060248201526f444f533a2021676f7665726e616e636560801b6044820152606401610636565b61089b8282611287565b5050565b6108a93382611372565b50565b600e546001600160a01b031633146108f95760405162461bcd60e51b815260206004820152601060248201526f444f533a2021676f7665726e616e636560801b6044820152606401610636565b600c805460ff1916911515919091179055565b600e546001600160a01b031633146109595760405162461bcd60e51b815260206004820152601060248201526f444f533a2021676f7665726e616e636560801b6044820152606401610636565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301526024820184905284169063a9059cbb90604401602060405180830381600087803b1580156109bc57600080fd5b505af11580156109d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109f49190611a7e565b50505050565b6000610a1d612710610a17600d548561150390919063ffffffff16565b90610e29565b92915050565b600e546001600160a01b03163314610a705760405162461bcd60e51b815260206004820152601060248201526f444f533a2021676f7665726e616e636560801b6044820152606401610636565b6001600160a01b038216610aba5760405162461bcd60e51b8152602060048201526011602482015270444f533a207a65726f206164647265737360781b6044820152606401610636565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b600e546001600160a01b03163314610b325760405162461bcd60e51b815260206004820152601060248201526f444f533a2021676f7665726e616e636560801b6044820152606401610636565b600755565b600e546001600160a01b03163314610b845760405162461bcd60e51b815260206004820152601060248201526f444f533a2021676f7665726e616e636560801b6044820152606401610636565b61084261150f565b60606004805461055290611b73565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610c385760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610636565b6107a38286868403610e4d565b6000336105e3818585611031565b600e546001600160a01b03163314610ca05760405162461bcd60e51b815260206004820152601060248201526f444f533a2021676f7665726e616e636560801b6044820152606401610636565b6001600160a01b038216610cea5760405162461bcd60e51b8152602060048201526011602482015270444f533a207a65726f206164647265737360781b6044820152606401610636565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b600e546001600160a01b03163314610d625760405162461bcd60e51b815260206004820152601060248201526f444f533a2021676f7665726e616e636560801b6044820152606401610636565b600d55565b600e546001600160a01b03163314610db45760405162461bcd60e51b815260206004820152601060248201526f444f533a2021676f7665726e616e636560801b6044820152606401610636565b6001600160a01b038216610dfe5760405162461bcd60e51b8152602060048201526011602482015270444f533a207a65726f206164647265737360781b6044820152606401610636565b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b6000610e358284611b1d565b9392505050565b505050565b6000610e358284611b05565b6001600160a01b038316610ec85760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610636565b6001600160a01b038216610f445760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610636565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146109f457818110156110245760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610636565b6109f48484848403610e4d565b600c5460ff16801561105c57506001600160a01b03831660009081526009602052604090205460ff16155b1561119a576001600160a01b0382166000908152600a602052604090205460ff161561119a576007548111156110fa5760405162461bcd60e51b815260206004820152603760248201527f416e7469207768616c653a2063616e277420627579206d6f7265207468616e2060448201527f74686520737065636966696564207468726573686f6c640000000000000000006064820152608401610636565b60075461112682611120866001600160a01b031660009081526020819052604090205490565b90610e41565b111561119a5760405162461bcd60e51b815260206004820152603860248201527f416e7469207768616c653a2063616e277420686f6c64206d6f7265207468616e60448201527f2074686520737065636966696564207468726573686f6c6400000000000000006064820152608401610636565b6000600d541180156111c557506001600160a01b03831660009081526008602052604090205460ff16155b80156111ea57506001600160a01b03821660009081526008602052604090205460ff16155b1561122a5760006111fa826109fa565b9050611206828261154c565b915061122884600c60019054906101000a90046001600160a01b031683611558565b505b610e3c838383611558565b61123d61177a565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b0382166112dd5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610636565b6112e9600083836117cc565b80600260008282546112fb9190611b05565b90915550506001600160a01b03821660009081526020819052604081208054839290611328908490611b05565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0382166113ee5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610636565b6113fa826000836117cc565b6001600160a01b038216600090815260208190526040902054818110156114895760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610636565b6001600160a01b03831660009081526020819052604081208383039055600280548492906114b8908490611b5c565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6000610e358284611b3d565b6115176118d2565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861126a3390565b6000610e358284611b5c565b6001600160a01b0383166115d45760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610636565b6001600160a01b0382166116505760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610636565b61165b8383836117cc565b6001600160a01b038316600090815260208190526040902054818110156116ea5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610636565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611721908490611b05565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161176d91815260200190565b60405180910390a36109f4565b60055460ff166108425760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610636565b6001600160a01b0383166000908152600b602052604090205460ff1615801561180e57506001600160a01b0382166000908152600b602052604090205460ff16155b156118665760055460ff16156118665760405162461bcd60e51b815260206004820181905260248201527f444f533a20746f6b656e207472616e73666572207768696c65207061757365646044820152606401610636565b6001600160a01b038316610e3c576006546118848261112060025490565b1115610e3c5760405162461bcd60e51b815260206004820152601160248201527f444f533a206361702065786365656465640000000000000000000000000000006044820152606401610636565b60055460ff16156108425760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610636565b80356001600160a01b038116811461193c57600080fd5b919050565b600060208284031215611952578081fd5b610e3582611925565b6000806040838503121561196d578081fd5b61197683611925565b915061198460208401611925565b90509250929050565b6000806000606084860312156119a1578081fd5b6119aa84611925565b92506119b860208501611925565b9150604084013590509250925092565b600080604083850312156119da578182fd5b6119e383611925565b915060208301356119f381611bc4565b809150509250929050565b60008060408385031215611a10578182fd5b611a1983611925565b946020939093013593505050565b600080600060608486031215611a3b578283fd5b611a4484611925565b925060208401359150611a5960408501611925565b90509250925092565b600060208284031215611a73578081fd5b8135610e3581611bc4565b600060208284031215611a8f578081fd5b8151610e3581611bc4565b600060208284031215611aab578081fd5b5035919050565b6000602080835283518082850152825b81811015611ade57858101830151858201604001528201611ac2565b81811115611aef5783604083870101525b50601f01601f1916929092016040019392505050565b60008219821115611b1857611b18611bae565b500190565b600082611b3857634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611b5757611b57611bae565b500290565b600082821015611b6e57611b6e611bae565b500390565b600181811c90821680611b8757607f821691505b60208210811415611ba857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80151581146108a957600080fdfea2646970667358221220f77b7c8ccebae4b6df176dd272e78930b00412f24e2d8fd94d45388d1c3b9b1264736f6c63430008040033