Contract Address Details
0xdD1D3B04939972A617E0bA7710591B03E825207c
- Token
- Doge Musk Swap (DMUSK)
- Creator
- 0x1df5cb–9a68d4 at 0xce2c27–47b14e
- Balance
- 0 Doge
- Tokens
-
Fetching tokens...
- Transactions
- 409 Transactions
- Transfers
- 6,023 Transfers
- Gas Used
- 20,522,581
- Last Balance Update
- 27583567
Transactions
Token Transfers
Tokens
Internal Transactions
Coin Balance History
Logs
Code
Read Contract
Write Contract
- Contract name:
- DMUSK
- Optimization enabled
- true
- Compiler version
- v0.8.7+commit.e28d00a7
- Optimization runs
- 200
- EVM Version
- default
- Verified at
- 2022-09-03T14:56:55.178786Z
Constructor Arguments
000000000000000000000000aa4b2479c4c10b917faa98cc7c2b24d99bfa2174
Arg [0] (address) : 0xaa4b2479c4c10b917faa98cc7c2b24d99bfa2174
Contract source code
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) /** * @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; } } // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) /** * @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); } // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.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); } // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.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, 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 {} } // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) // 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; } } } // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) /** * @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); } } } } interface IPancakeRouter01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); } interface IPancakeRouter02 is IPancakeRouter01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; } interface IPancakeFactory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; function INIT_CODE_PAIR_HASH() external view returns (bytes32); } contract DMUSK is Ownable, ERC20 { using SafeMath for uint256; address public pancakeV2Pair; IPancakeRouter02 public router; uint256 public treasuryFee; uint256 public marketingFee; uint256 public liquidityFee; uint256 public totalFee; address public treasuryAddress; address public marketingAddress; uint256 public constant FEE_PRECISION = 1000; uint256 public constant MAX_SUPPLY = 1e12 * 10 ** 18; mapping (address => bool) private _isExcludedFromFee; // uint256 public immutable startTime; // when trading starts bool private swapping; bool public tradingEnabled = false; uint256 public swapAmountThreshold = 10000 * 10 ** 18; event SwapAndLiquify( uint256 tokensSwapped, uint256 ethReceived, uint256 tokensIntoLiqudity ); modifier Swapping { swapping = true; _; swapping = false; } modifier onlyManager { require(msg.sender == owner() || msg.sender == treasuryAddress || msg.sender == marketingAddress); _; } constructor(address _router) ERC20("Doge Musk Swap", "DMUSK") { // startTime = block.timestamp + 1 days; // startTime = block.timestamp; router = IPancakeRouter02(_router); pancakeV2Pair = IPancakeFactory(router.factory()) .createPair(address(this), router.WETH()); treasuryFee = 1; marketingFee = 1; liquidityFee = 1; totalFee = treasuryFee.add(marketingFee).add(liquidityFee); _isExcludedFromFee[msg.sender] = true; _isExcludedFromFee[address(this)] = true; // _mint(msg.sender, MAX_SUPPLY.mul(68).div(100)); _approve(address(this), address(router), uint256(int(-1))); } receive() payable external {} function updatePair(address _new) external onlyOwner { require(_new != address(0), "Null address"); pancakeV2Pair = _new; } function updateFee( uint256 _treasury, uint256 _marketing, uint256 _liquidity ) external onlyManager { uint256 _totalFee; _totalFee = _treasury.add(_marketing).add(_liquidity); require(_totalFee <= 200, "Total Fee Can't be more than 20%"); distributeFee(); treasuryFee = _treasury; marketingFee = _marketing; liquidityFee = _liquidity; totalFee = _totalFee; } function updateReceiver( address _treasury, address _marketing ) external onlyManager { require(_treasury != address(0), "Null address"); require(_marketing != address(0), "Null address"); treasuryAddress = _treasury; marketingAddress = _marketing; } function _transfer( address from, address to, uint256 amount ) internal virtual override { if ( !_isExcludedFromFee[from] && !_isExcludedFromFee[to] ) { if (from == pancakeV2Pair || to == pancakeV2Pair) { // Buying or selling require(tradingEnabled, "Trading Not available"); uint256 _feeAmount = amount.mul(totalFee).div(FEE_PRECISION); super._transfer(from, address(this), _feeAmount); amount = amount.sub(_feeAmount); } else { uint256 contractTokenBalance = balanceOf(address(this)); bool swapAmountOk = contractTokenBalance >= swapAmountThreshold; if (swapAmountOk && !swapping) { distributeFee(); } } } super._transfer(from, to, amount); } function distributeFee() private Swapping { uint256 amountRest; uint256 amountLiquidity; uint256 tokenBalance = balanceOf(address(this)); amountLiquidity = tokenBalance.mul(liquidityFee).div(totalFee); amountRest = tokenBalance.sub(amountLiquidity); uint256 initialBalance = address(this).balance; swapTokensForBNB(amountRest); uint256 newBalance = address(this).balance.sub(initialBalance); uint256 feeRest = treasuryFee.add(marketingFee); uint256 bnbForTreasury = newBalance.mul(treasuryFee).div(feeRest); Address.sendValue(payable(treasuryAddress), bnbForTreasury); Address.sendValue(payable(marketingAddress), newBalance.sub(bnbForTreasury)); swapAndLiquify(amountLiquidity); } function swapAndLiquify(uint256 tokens) private { if (tokens == 0) return; uint256 half = tokens.div(2); uint256 otherHalf = tokens.sub(half); uint256 initialBalance = address(this).balance; swapTokensForBNB(half); uint256 newBalance = address(this).balance.sub(initialBalance); if (newBalance == 0) return; addLiquidity(otherHalf, newBalance); emit SwapAndLiquify(half, newBalance, otherHalf); } function swapTokensForBNB(uint256 tokenAmount) private { if (tokenAmount == 0) return; address[] memory path = new address[](2); path[0] = address(this); path[1] = router.WETH(); _approve(address(this), address(router), tokenAmount); router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // accept any amount of ETH path, address(this), block.timestamp ); } function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private { // approve token transfer to cover all possible scenarios _approve(address(this), address(router), tokenAmount); // add the liquidity router.addLiquidityETH{value: ethAmount}( address(this), tokenAmount, 0, // slippage is unavoidable 0, // slippage is unavoidable address(this), block.timestamp ); } /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef). function multiMint(address[] memory _to, uint256 _amount) public onlyManager { for(uint i = 0; i < _to.length; i++) { _mint(_to[i], _amount); _moveDelegates(address(0), _delegates[_to[i]], _amount); } require(totalSupply() <= MAX_SUPPLY, "Exceed max supply"); } function mint(address _to, uint256 _amount) public onlyManager { _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); require(totalSupply() <= MAX_SUPPLY, "Exceed max supply"); } function burn(address _from ,uint256 _amount) public onlyManager { _burn(_from, _amount); _moveDelegates(address(0), _delegates[_from], _amount); } function setExcludedFromFee(address _addr, bool _bExcluded) public onlyManager { require(_isExcludedFromFee[_addr] != _bExcluded, "Already set"); _isExcludedFromFee[_addr] = _bExcluded; } function openTrading() public onlyManager { require(!tradingEnabled, "Already enabled"); tradingEnabled = true; } function isExcludedFromFee(address _addr) public view returns (bool) { return _isExcludedFromFee[_addr]; } // Copied and modified from YAM code: // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol // Which is copied and modified from COMPOUND: // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol /// @notice A record of each accounts delegate mapping (address => address) internal _delegates; /// @notice A checkpoint for marking number of votes from a given block struct Checkpoint { uint32 fromBlock; uint256 votes; } /// @notice A record of votes checkpoints for each account, by index mapping (address => mapping (uint32 => Checkpoint)) public checkpoints; /// @notice The number of checkpoints for each account mapping (address => uint32) public numCheckpoints; /// @notice The EIP-712 typehash for the contract's domain bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)"); /// @notice The EIP-712 typehash for the delegation struct used by the contract bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)"); /// @notice A record of states for signing / validating signatures mapping (address => uint) public nonces; /// @notice An event thats emitted when an account changes its delegate event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate); /// @notice An event thats emitted when a delegate account's vote balance changes event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance); /** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegator The address to get delegatee for */ function delegates(address delegator) external view returns (address) { return _delegates[delegator]; } /** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegatee The address to delegate votes to */ function delegate(address delegatee) external { return _delegate(msg.sender, delegatee); } /** * @notice Delegates votes from signatory to `delegatee` * @param delegatee The address to delegate votes to * @param nonce The contract state required to match the signature * @param expiry The time at which to expire the signature * @param v The recovery byte of the signature * @param r Half of the ECDSA signature pair * @param s Half of the ECDSA signature pair */ function delegateBySig( address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s ) external { bytes32 domainSeparator = keccak256( abi.encode( DOMAIN_TYPEHASH, keccak256(bytes(name())), getChainId(), address(this) ) ); bytes32 structHash = keccak256( abi.encode( DELEGATION_TYPEHASH, delegatee, nonce, expiry ) ); bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", domainSeparator, structHash ) ); address signatory = ecrecover(digest, v, r, s); require(signatory != address(0), "CAKE::delegateBySig: invalid signature"); require(nonce == nonces[signatory]++, "CAKE::delegateBySig: invalid nonce"); require(block.timestamp <= expiry, "CAKE::delegateBySig: signature expired"); return _delegate(signatory, delegatee); } /** * @notice Gets the current votes balance for `account` * @param account The address to get votes balance * @return The number of current votes for `account` */ function getCurrentVotes(address account) external view returns (uint256) { uint32 nCheckpoints = numCheckpoints[account]; return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0; } /** * @notice Determine the prior number of votes for an account as of a block number * @dev Block number must be a finalized block or else this function will revert to prevent misinformation. * @param account The address of the account to check * @param blockNumber The block number to get the vote balance at * @return The number of votes the account had as of the given block */ function getPriorVotes(address account, uint blockNumber) external view returns (uint256) { require(blockNumber < block.number, "CAKE::getPriorVotes: not yet determined"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { return 0; } // First check most recent balance if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) { return checkpoints[account][nCheckpoints - 1].votes; } // Next check implicit zero balance if (checkpoints[account][0].fromBlock > blockNumber) { return 0; } uint32 lower = 0; uint32 upper = nCheckpoints - 1; while (upper > lower) { uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow Checkpoint memory cp = checkpoints[account][center]; if (cp.fromBlock == blockNumber) { return cp.votes; } else if (cp.fromBlock < blockNumber) { lower = center; } else { upper = center - 1; } } return checkpoints[account][lower].votes; } function _delegate(address delegator, address delegatee) internal { address currentDelegate = _delegates[delegator]; uint256 delegatorBalance = balanceOf(delegator); // balance of underlying CAKEs (not scaled); _delegates[delegator] = delegatee; emit DelegateChanged(delegator, currentDelegate, delegatee); _moveDelegates(currentDelegate, delegatee, delegatorBalance); } function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal { if (srcRep != dstRep && amount > 0) { if (srcRep != address(0)) { // decrease old representative uint32 srcRepNum = numCheckpoints[srcRep]; uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0; uint256 srcRepNew = srcRepOld.sub(amount); _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew); } if (dstRep != address(0)) { // increase new representative uint32 dstRepNum = numCheckpoints[dstRep]; uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0; uint256 dstRepNew = dstRepOld.add(amount); _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew); } } } function _writeCheckpoint( address delegatee, uint32 nCheckpoints, uint256 oldVotes, uint256 newVotes ) internal { uint32 blockNumber = safe32(block.number, "CAKE::_writeCheckpoint: block number exceeds 32 bits"); if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) { checkpoints[delegatee][nCheckpoints - 1].votes = newVotes; } else { checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes); numCheckpoints[delegatee] = nCheckpoints + 1; } emit DelegateVotesChanged(delegatee, oldVotes, newVotes); } function safe32(uint n, string memory errorMessage) internal pure returns (uint32) { require(n < 2**32, errorMessage); return uint32(n); } function getChainId() internal view returns (uint) { uint256 chainId; assembly { chainId := chainid() } return chainId; } }
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_router","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":"DelegateChanged","inputs":[{"type":"address","name":"delegator","internalType":"address","indexed":true},{"type":"address","name":"fromDelegate","internalType":"address","indexed":true},{"type":"address","name":"toDelegate","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"DelegateVotesChanged","inputs":[{"type":"address","name":"delegate","internalType":"address","indexed":true},{"type":"uint256","name":"previousBalance","internalType":"uint256","indexed":false},{"type":"uint256","name":"newBalance","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"SwapAndLiquify","inputs":[{"type":"uint256","name":"tokensSwapped","internalType":"uint256","indexed":false},{"type":"uint256","name":"ethReceived","internalType":"uint256","indexed":false},{"type":"uint256","name":"tokensIntoLiqudity","internalType":"uint256","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":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DELEGATION_TYPEHASH","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DOMAIN_TYPEHASH","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"FEE_PRECISION","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_SUPPLY","inputs":[]},{"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":"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":"nonpayable","outputs":[],"name":"burn","inputs":[{"type":"address","name":"_from","internalType":"address"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint32","name":"fromBlock","internalType":"uint32"},{"type":"uint256","name":"votes","internalType":"uint256"}],"name":"checkpoints","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"uint32","name":"","internalType":"uint32"}]},{"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":"delegate","inputs":[{"type":"address","name":"delegatee","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"delegateBySig","inputs":[{"type":"address","name":"delegatee","internalType":"address"},{"type":"uint256","name":"nonce","internalType":"uint256"},{"type":"uint256","name":"expiry","internalType":"uint256"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"delegates","inputs":[{"type":"address","name":"delegator","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getCurrentVotes","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getPriorVotes","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"blockNumber","internalType":"uint256"}]},{"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":"isExcludedFromFee","inputs":[{"type":"address","name":"_addr","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"liquidityFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"marketingAddress","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"marketingFee","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"mint","inputs":[{"type":"address","name":"_to","internalType":"address"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"multiMint","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":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"nonces","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint32","name":"","internalType":"uint32"}],"name":"numCheckpoints","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"openTrading","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"pancakeV2Pair","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IPancakeRouter02"}],"name":"router","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setExcludedFromFee","inputs":[{"type":"address","name":"_addr","internalType":"address"},{"type":"bool","name":"_bExcluded","internalType":"bool"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"swapAmountThreshold","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"tradingEnabled","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":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"treasuryAddress","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"treasuryFee","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateFee","inputs":[{"type":"uint256","name":"_treasury","internalType":"uint256"},{"type":"uint256","name":"_marketing","internalType":"uint256"},{"type":"uint256","name":"_liquidity","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updatePair","inputs":[{"type":"address","name":"_new","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateReceiver","inputs":[{"type":"address","name":"_treasury","internalType":"address"},{"type":"address","name":"_marketing","internalType":"address"}]},{"type":"receive","stateMutability":"payable"}]
Contract Creation Code
0x6080604052600f805461ff001916905569021e19e0c9bab24000006010553480156200002a57600080fd5b5060405162003260380380620032608339810160408190526200004d916200057a565b6040518060400160405280600e81526020016d0446f6765204d75736b20537761760941b81525060405180604001604052806005815260200164444d55534b60d81b815250620000ac620000a66200033f60201b60201c565b62000343565b8151620000c1906004906020850190620004d4565b508051620000d7906005906020840190620004d4565b5050600780546001600160a01b0319166001600160a01b0384169081179091556040805163c45a015560e01b8152905191925063c45a0155916004808301926020929190829003018186803b1580156200013057600080fd5b505afa15801562000145573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200016b91906200057a565b6001600160a01b031663c9c6539630600760009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015620001c957600080fd5b505afa158015620001de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020491906200057a565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b1580156200024d57600080fd5b505af115801562000262573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200028891906200057a565b600680546001600160a01b0319166001600160a01b0392909216919091179055600160088190556009819055600a819055620002ea90620002d6818062000393602090811b6200162f17901c565b6200039360201b6200162f1790919060201c565b600b55336000908152600e60205260408082208054600160ff19918216811790925530808552929093208054909316179091556007546200033891906001600160a01b0316600019620003a8565b5062000609565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000620003a18284620005a5565b9392505050565b6001600160a01b038316620004105760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084015b60405180910390fd5b6001600160a01b038216620004735760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840162000407565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b828054620004e290620005cc565b90600052602060002090601f01602090048101928262000506576000855562000551565b82601f106200052157805160ff191683800117855562000551565b8280016001018555821562000551579182015b828111156200055157825182559160200191906001019062000534565b506200055f92915062000563565b5090565b5b808211156200055f576000815560010162000564565b6000602082840312156200058d57600080fd5b81516001600160a01b0381168114620003a157600080fd5b60008219821115620005c757634e487b7160e01b600052601160045260246000fd5b500190565b600181811c90821680620005e157607f821691505b602082108114156200060357634e487b7160e01b600052602260045260246000fd5b50919050565b612c4780620006196000396000f3fe6080604052600436106102765760003560e01c8063715018a61161014f578063b4b5ea57116100c1578063e63a391f1161007a578063e63a391f146107ce578063e7a324dc146107e4578063f1127ed814610818578063f2fde38b1461087c578063f887ea401461089c578063fc061a4f146108bc57600080fd5b8063b4b5ea5714610723578063c3cda52014610743578063c5f956af14610763578063c9567bf914610783578063cc32d17614610798578063dd62ed3e146107ae57600080fd5b806398118cb41161011357806398118cb4146106775780639dc29fac1461068d578063a457c2d7146106ad578063a5ece941146106cd578063a71f1eba146106ed578063a9059cbb1461070357600080fd5b8063715018a6146105e2578063782d6fe1146105f75780637ecebe00146106175780638da5cb5b1461064457806395d89b411461066257600080fd5b806340c10f19116101e85780635c19a95c116101ac5780635c19a95c146104ee578063632a6a351461050e5780636612e66f1461052e5780636b67c4df1461054e5780636fcfff451461056457806370a08231146105ac57600080fd5b806340c10f19146104055780634ada218b146104255780634c8baca9146104445780635342acb414610464578063587cde1e1461049d57600080fd5b806320606b701161023a57806320606b701461033457806323b872dd14610368578063313ce5671461038857806332cb6b0c146103a457806339509351146103c55780633fee318e146103e557600080fd5b806306fdde0314610282578063095ea7b3146102ad57806318160ddd146102dd5780631b56bbf9146102fc5780631df4ccfc1461031e57600080fd5b3661027d57005b600080fd5b34801561028e57600080fd5b506102976108dc565b6040516102a4919061295c565b60405180910390f35b3480156102b957600080fd5b506102cd6102c836600461276b565b61096e565b60405190151581526020016102a4565b3480156102e957600080fd5b506003545b6040519081526020016102a4565b34801561030857600080fd5b5061031c610317366004612684565b610988565b005b34801561032a57600080fd5b506102ee600b5481565b34801561034057600080fd5b506102ee7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b34801561037457600080fd5b506102cd6103833660046126f7565b6109e1565b34801561039457600080fd5b50604051601281526020016102a4565b3480156103b057600080fd5b506102ee6c0c9f2c9cd04674edea4000000081565b3480156103d157600080fd5b506102cd6103e036600461276b565b610a05565b3480156103f157600080fd5b5061031c6104003660046126be565b610a27565b34801561041157600080fd5b5061031c61042036600461276b565b610ae2565b34801561043157600080fd5b50600f546102cd90610100900460ff1681565b34801561045057600080fd5b5061031c61045f366004612830565b610baf565b34801561047057600080fd5b506102cd61047f366004612684565b6001600160a01b03166000908152600e602052604090205460ff1690565b3480156104a957600080fd5b506104d66104b8366004612684565b6001600160a01b039081166000908152601160205260409020541690565b6040516001600160a01b0390911681526020016102a4565b3480156104fa57600080fd5b5061031c610509366004612684565b610c92565b34801561051a57600080fd5b506006546104d6906001600160a01b031681565b34801561053a57600080fd5b5061031c610549366004612738565b610c9f565b34801561055a57600080fd5b506102ee60095481565b34801561057057600080fd5b5061059761057f366004612684565b60136020526000908152604090205463ffffffff1681565b60405163ffffffff90911681526020016102a4565b3480156105b857600080fd5b506102ee6105c7366004612684565b6001600160a01b031660009081526001602052604090205490565b3480156105ee57600080fd5b5061031c610d68565b34801561060357600080fd5b506102ee61061236600461276b565b610d7c565b34801561062357600080fd5b506102ee610632366004612684565b60146020526000908152604090205481565b34801561065057600080fd5b506000546001600160a01b03166104d6565b34801561066e57600080fd5b50610297610fe1565b34801561068357600080fd5b506102ee600a5481565b34801561069957600080fd5b5061031c6106a836600461276b565b610ff0565b3480156106b957600080fd5b506102cd6106c836600461276b565b611060565b3480156106d957600080fd5b50600d546104d6906001600160a01b031681565b3480156106f957600080fd5b506102ee60105481565b34801561070f57600080fd5b506102cd61071e36600461276b565b6110db565b34801561072f57600080fd5b506102ee61073e366004612684565b6110e9565b34801561074f57600080fd5b5061031c61075e366004612797565b61115e565b34801561076f57600080fd5b50600c546104d6906001600160a01b031681565b34801561078f57600080fd5b5061031c61142c565b3480156107a457600080fd5b506102ee60085481565b3480156107ba57600080fd5b506102ee6107c93660046126be565b6114c8565b3480156107da57600080fd5b506102ee6103e881565b3480156107f057600080fd5b506102ee7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b34801561082457600080fd5b506108606108333660046127f9565b60126020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b6040805163ffffffff90931683526020830191909152016102a4565b34801561088857600080fd5b5061031c610897366004612684565b6114f3565b3480156108a857600080fd5b506007546104d6906001600160a01b031681565b3480156108c857600080fd5b5061031c6108d7366004612902565b611569565b6060600480546108eb90612b1a565b80601f016020809104026020016040519081016040528092919081815260200182805461091790612b1a565b80156109645780601f1061093957610100808354040283529160200191610964565b820191906000526020600020905b81548152906001019060200180831161094757829003601f168201915b5050505050905090565b60003361097c81858561163b565b60019150505b92915050565b61099061175f565b6001600160a01b0381166109bf5760405162461bcd60e51b81526004016109b6906129b1565b60405180910390fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6000336109ef8582856117b9565b6109fa858585611833565b506001949350505050565b60003361097c818585610a1883836114c8565b610a229190612a48565b61163b565b6000546001600160a01b0316331480610a4a5750600c546001600160a01b031633145b80610a5f5750600d546001600160a01b031633145b610a6857600080fd5b6001600160a01b038216610a8e5760405162461bcd60e51b81526004016109b6906129b1565b6001600160a01b038116610ab45760405162461bcd60e51b81526004016109b6906129b1565b600c80546001600160a01b039384166001600160a01b031991821617909155600d8054929093169116179055565b6000546001600160a01b0316331480610b055750600c546001600160a01b031633145b80610b1a5750600d546001600160a01b031633145b610b2357600080fd5b610b2d8282611980565b6001600160a01b03808316600090815260116020526040812054610b52921683611a5f565b6c0c9f2c9cd04674edea40000000610b6960035490565b1115610bab5760405162461bcd60e51b8152602060048201526011602482015270457863656564206d617820737570706c7960781b60448201526064016109b6565b5050565b6000546001600160a01b0316331480610bd25750600c546001600160a01b031633145b80610be75750600d546001600160a01b031633145b610bf057600080fd5b60005b8251811015610c7a57610c1f838281518110610c1157610c11612b9c565b602002602001015183611980565b610c68600060116000868581518110610c3a57610c3a612b9c565b6020908102919091018101516001600160a01b03908116835290820192909252604001600020541684611a5f565b80610c7281612b55565b915050610bf3565b506c0c9f2c9cd04674edea40000000610b6960035490565b610c9c3382611bbe565b50565b6000546001600160a01b0316331480610cc25750600c546001600160a01b031633145b80610cd75750600d546001600160a01b031633145b610ce057600080fd5b6001600160a01b0382166000908152600e602052604090205460ff1615158115151415610d3d5760405162461bcd60e51b815260206004820152600b60248201526a105b1c9958591e481cd95d60aa1b60448201526064016109b6565b6001600160a01b03919091166000908152600e60205260409020805460ff1916911515919091179055565b610d7061175f565b610d7a6000611c38565b565b6000438210610ddd5760405162461bcd60e51b815260206004820152602760248201527f43414b453a3a6765745072696f72566f7465733a206e6f742079657420646574604482015266195c9b5a5b995960ca1b60648201526084016109b6565b6001600160a01b03831660009081526013602052604090205463ffffffff1680610e0b576000915050610982565b6001600160a01b03841660009081526012602052604081208491610e30600185612af5565b63ffffffff90811682526020820192909252604001600020541611610e99576001600160a01b038416600090815260126020526040812090610e73600184612af5565b63ffffffff1663ffffffff16815260200190815260200160002060010154915050610982565b6001600160a01b038416600090815260126020908152604080832083805290915290205463ffffffff16831015610ed4576000915050610982565b600080610ee2600184612af5565b90505b8163ffffffff168163ffffffff161115610faa5760006002610f078484612af5565b610f119190612a9c565b610f1b9083612af5565b6001600160a01b038816600090815260126020908152604080832063ffffffff8086168552908352928190208151808301909252805490931680825260019093015491810191909152919250871415610f7e576020015194506109829350505050565b805163ffffffff16871115610f9557819350610fa3565b610fa0600183612af5565b92505b5050610ee5565b506001600160a01b038516600090815260126020908152604080832063ffffffff9094168352929052206001015491505092915050565b6060600580546108eb90612b1a565b6000546001600160a01b03163314806110135750600c546001600160a01b031633145b806110285750600d546001600160a01b031633145b61103157600080fd5b61103b8282611c88565b6001600160a01b03808316600090815260116020526040812054610bab921683611a5f565b6000338161106e82866114c8565b9050838110156110ce5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016109b6565b6109fa828686840361163b565b60003361097c818585611833565b6001600160a01b03811660009081526013602052604081205463ffffffff1680611114576000611157565b6001600160a01b038316600090815260126020526040812090611138600184612af5565b63ffffffff1663ffffffff168152602001908152602001600020600101545b9392505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a8666111896108dc565b805190602001206111974690565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a90528251808503909101815261014084019092528151919093012061190160f01b610160830152610162820183905261018282018190529192506000906101a20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa1580156112c3573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166113355760405162461bcd60e51b815260206004820152602660248201527f43414b453a3a64656c656761746542795369673a20696e76616c6964207369676044820152656e617475726560d01b60648201526084016109b6565b6001600160a01b038116600090815260146020526040812080549161135983612b55565b9190505589146113b65760405162461bcd60e51b815260206004820152602260248201527f43414b453a3a64656c656761746542795369673a20696e76616c6964206e6f6e604482015261636560f01b60648201526084016109b6565b874211156114155760405162461bcd60e51b815260206004820152602660248201527f43414b453a3a64656c656761746542795369673a207369676e617475726520656044820152651e1c1a5c995960d21b60648201526084016109b6565b61141f818b611bbe565b505050505b505050505050565b6000546001600160a01b031633148061144f5750600c546001600160a01b031633145b806114645750600d546001600160a01b031633145b61146d57600080fd5b600f54610100900460ff16156114b75760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e48195b98589b1959608a1b60448201526064016109b6565b600f805461ff001916610100179055565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6114fb61175f565b6001600160a01b0381166115605760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109b6565b610c9c81611c38565b6000546001600160a01b031633148061158c5750600c546001600160a01b031633145b806115a15750600d546001600160a01b031633145b6115aa57600080fd5b60006115c0826115ba868661162f565b9061162f565b905060c88111156116135760405162461bcd60e51b815260206004820181905260248201527f546f74616c204665652043616e2774206265206d6f7265207468616e2032302560448201526064016109b6565b61161b611dd6565b600893909355600991909155600a55600b55565b60006111578284612a48565b6001600160a01b03831661169d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016109b6565b6001600160a01b0382166116fe5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016109b6565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000546001600160a01b03163314610d7a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109b6565b60006117c584846114c8565b9050600019811461182d57818110156118205760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016109b6565b61182d848484840361163b565b50505050565b6001600160a01b0383166000908152600e602052604090205460ff1615801561187557506001600160a01b0382166000908152600e602052604090205460ff16155b15611970576006546001600160a01b03848116911614806118a357506006546001600160a01b038381169116145b1561193957600f54610100900460ff166118f75760405162461bcd60e51b815260206004820152601560248201527454726164696e67204e6f7420617661696c61626c6560581b60448201526064016109b6565b600061191a6103e8611914600b5485611ed390919063ffffffff16565b90611edf565b9050611927843083611eeb565b61193182826120b9565b915050611970565b30600090815260016020526040902054601054811080159081906119605750600f5460ff16155b1561196d5761196d611dd6565b50505b61197b838383611eeb565b505050565b6001600160a01b0382166119d65760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016109b6565b80600360008282546119e89190612a48565b90915550506001600160a01b03821660009081526001602052604081208054839290611a15908490612a48565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b816001600160a01b0316836001600160a01b031614158015611a815750600081115b1561197b576001600160a01b03831615611b24576001600160a01b03831660009081526013602052604081205463ffffffff169081611ac1576000611b04565b6001600160a01b038516600090815260126020526040812090611ae5600185612af5565b63ffffffff1663ffffffff168152602001908152602001600020600101545b90506000611b1282856120b9565b9050611b20868484846120c5565b5050505b6001600160a01b0382161561197b576001600160a01b03821660009081526013602052604081205463ffffffff169081611b5f576000611ba2565b6001600160a01b038416600090815260126020526040812090611b83600185612af5565b63ffffffff1663ffffffff168152602001908152602001600020600101545b90506000611bb0828561162f565b9050611424858484846120c5565b6001600160a01b03828116600081815260116020818152604080842080546001845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a461182d828483611a5f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216611ce85760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016109b6565b6001600160a01b03821660009081526001602052604090205481811015611d5c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016109b6565b6001600160a01b0383166000908152600160205260408120838303905560038054849290611d8b908490612ade565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600f805460ff1916600117905560008080611e06306001600160a01b031660009081526001602052604090205490565b9050611e23600b54611914600a5484611ed390919063ffffffff16565b9150611e2f81836120b9565b925047611e3b84612267565b6000611e4747836120b9565b90506000611e6260095460085461162f90919063ffffffff16565b90506000611e7f8261191460085486611ed390919063ffffffff16565b600c54909150611e98906001600160a01b0316826123d0565b600d54611eb7906001600160a01b0316611eb285846120b9565b6123d0565b611ec0866124e9565b5050600f805460ff191690555050505050565b60006111578284612abf565b60006111578284612a88565b6001600160a01b038316611f4f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016109b6565b6001600160a01b038216611fb15760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016109b6565b6001600160a01b038316600090815260016020526040902054818110156120295760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016109b6565b6001600160a01b03808516600090815260016020526040808220858503905591851681529081208054849290612060908490612a48565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516120ac91815260200190565b60405180910390a361182d565b60006111578284612ade565b60006120e943604051806060016040528060348152602001612bde60349139612584565b905060008463ffffffff1611801561214357506001600160a01b038516600090815260126020526040812063ffffffff831691612127600188612af5565b63ffffffff908116825260208201929092526040016000205416145b1561218c576001600160a01b0385166000908152601260205260408120839161216d600188612af5565b63ffffffff16815260208101919091526040016000206001015561221c565b60408051808201825263ffffffff838116825260208083018681526001600160a01b038a166000908152601283528581208a851682529092529390209151825463ffffffff1916911617815590516001918201556121eb908590612a60565b6001600160a01b0386166000908152601360205260409020805463ffffffff191663ffffffff929092169190911790555b60408051848152602081018490526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b8061226f5750565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106122a4576122a4612b9c565b6001600160a01b03928316602091820292909201810191909152600754604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b1580156122f857600080fd5b505afa15801561230c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061233091906126a1565b8160018151811061234357612343612b9c565b6001600160a01b039283166020918202929092010152600754612369913091168461163b565b60075460405163791ac94760e01b81526001600160a01b039091169063791ac947906123a29085906000908690309042906004016129d7565b600060405180830381600087803b1580156123bc57600080fd5b505af1158015611424573d6000803e3d6000fd5b804710156124205760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016109b6565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461246d576040519150601f19603f3d011682016040523d82523d6000602084013e612472565b606091505b505090508061197b5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016109b6565b806124f15750565b60006124fe826002611edf565b9050600061250c83836120b9565b90504761251883612267565b600061252447836120b9565b905080612532575050505050565b61253c83826125b4565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a15050505050565b60008164010000000084106125ac5760405162461bcd60e51b81526004016109b6919061295c565b509192915050565b6007546125cc9030906001600160a01b03168461163b565b60075460405163f305d71960e01b8152306004820181905260248201859052600060448301819052606483015260848201524260a48201526001600160a01b039091169063f305d71990839060c4016060604051808303818588803b15801561263457600080fd5b505af1158015612648573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061266d919061292e565b5050505050565b803561267f81612bc8565b919050565b60006020828403121561269657600080fd5b813561115781612bc8565b6000602082840312156126b357600080fd5b815161115781612bc8565b600080604083850312156126d157600080fd5b82356126dc81612bc8565b915060208301356126ec81612bc8565b809150509250929050565b60008060006060848603121561270c57600080fd5b833561271781612bc8565b9250602084013561272781612bc8565b929592945050506040919091013590565b6000806040838503121561274b57600080fd5b823561275681612bc8565b9150602083013580151581146126ec57600080fd5b6000806040838503121561277e57600080fd5b823561278981612bc8565b946020939093013593505050565b60008060008060008060c087890312156127b057600080fd5b86356127bb81612bc8565b95506020870135945060408701359350606087013560ff811681146127df57600080fd5b9598949750929560808101359460a0909101359350915050565b6000806040838503121561280c57600080fd5b823561281781612bc8565b9150602083013563ffffffff811681146126ec57600080fd5b6000806040838503121561284357600080fd5b823567ffffffffffffffff8082111561285b57600080fd5b818501915085601f83011261286f57600080fd5b813560208282111561288357612883612bb2565b8160051b604051601f19603f830116810181811086821117156128a8576128a8612bb2565b604052838152828101945085830182870184018b10156128c757600080fd5b600096505b848710156128f1576128dd81612674565b8652600196909601959483019483016128cc565b509997909101359750505050505050565b60008060006060848603121561291757600080fd5b505081359360208301359350604090920135919050565b60008060006060848603121561294357600080fd5b8351925060208401519150604084015190509250925092565b600060208083528351808285015260005b818110156129895785810183015185820160400152820161296d565b8181111561299b576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252600c908201526b4e756c6c206164647265737360a01b604082015260600190565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612a275784516001600160a01b031683529383019391830191600101612a02565b50506001600160a01b03969096166060850152505050608001529392505050565b60008219821115612a5b57612a5b612b70565b500190565b600063ffffffff808316818516808303821115612a7f57612a7f612b70565b01949350505050565b600082612a9757612a97612b86565b500490565b600063ffffffff80841680612ab357612ab3612b86565b92169190910492915050565b6000816000190483118215151615612ad957612ad9612b70565b500290565b600082821015612af057612af0612b70565b500390565b600063ffffffff83811690831681811015612b1257612b12612b70565b039392505050565b600181811c90821680612b2e57607f821691505b60208210811415612b4f57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612b6957612b69612b70565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610c9c57600080fdfe43414b453a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473a2646970667358221220da61fa16024dd10c1111a51ecfe7543c4cfaa2d50fda3326951fb1dbef0b746464736f6c63430008070033000000000000000000000000aa4b2479c4c10b917faa98cc7c2b24d99bfa2174
Deployed ByteCode
0x6080604052600436106102765760003560e01c8063715018a61161014f578063b4b5ea57116100c1578063e63a391f1161007a578063e63a391f146107ce578063e7a324dc146107e4578063f1127ed814610818578063f2fde38b1461087c578063f887ea401461089c578063fc061a4f146108bc57600080fd5b8063b4b5ea5714610723578063c3cda52014610743578063c5f956af14610763578063c9567bf914610783578063cc32d17614610798578063dd62ed3e146107ae57600080fd5b806398118cb41161011357806398118cb4146106775780639dc29fac1461068d578063a457c2d7146106ad578063a5ece941146106cd578063a71f1eba146106ed578063a9059cbb1461070357600080fd5b8063715018a6146105e2578063782d6fe1146105f75780637ecebe00146106175780638da5cb5b1461064457806395d89b411461066257600080fd5b806340c10f19116101e85780635c19a95c116101ac5780635c19a95c146104ee578063632a6a351461050e5780636612e66f1461052e5780636b67c4df1461054e5780636fcfff451461056457806370a08231146105ac57600080fd5b806340c10f19146104055780634ada218b146104255780634c8baca9146104445780635342acb414610464578063587cde1e1461049d57600080fd5b806320606b701161023a57806320606b701461033457806323b872dd14610368578063313ce5671461038857806332cb6b0c146103a457806339509351146103c55780633fee318e146103e557600080fd5b806306fdde0314610282578063095ea7b3146102ad57806318160ddd146102dd5780631b56bbf9146102fc5780631df4ccfc1461031e57600080fd5b3661027d57005b600080fd5b34801561028e57600080fd5b506102976108dc565b6040516102a4919061295c565b60405180910390f35b3480156102b957600080fd5b506102cd6102c836600461276b565b61096e565b60405190151581526020016102a4565b3480156102e957600080fd5b506003545b6040519081526020016102a4565b34801561030857600080fd5b5061031c610317366004612684565b610988565b005b34801561032a57600080fd5b506102ee600b5481565b34801561034057600080fd5b506102ee7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b34801561037457600080fd5b506102cd6103833660046126f7565b6109e1565b34801561039457600080fd5b50604051601281526020016102a4565b3480156103b057600080fd5b506102ee6c0c9f2c9cd04674edea4000000081565b3480156103d157600080fd5b506102cd6103e036600461276b565b610a05565b3480156103f157600080fd5b5061031c6104003660046126be565b610a27565b34801561041157600080fd5b5061031c61042036600461276b565b610ae2565b34801561043157600080fd5b50600f546102cd90610100900460ff1681565b34801561045057600080fd5b5061031c61045f366004612830565b610baf565b34801561047057600080fd5b506102cd61047f366004612684565b6001600160a01b03166000908152600e602052604090205460ff1690565b3480156104a957600080fd5b506104d66104b8366004612684565b6001600160a01b039081166000908152601160205260409020541690565b6040516001600160a01b0390911681526020016102a4565b3480156104fa57600080fd5b5061031c610509366004612684565b610c92565b34801561051a57600080fd5b506006546104d6906001600160a01b031681565b34801561053a57600080fd5b5061031c610549366004612738565b610c9f565b34801561055a57600080fd5b506102ee60095481565b34801561057057600080fd5b5061059761057f366004612684565b60136020526000908152604090205463ffffffff1681565b60405163ffffffff90911681526020016102a4565b3480156105b857600080fd5b506102ee6105c7366004612684565b6001600160a01b031660009081526001602052604090205490565b3480156105ee57600080fd5b5061031c610d68565b34801561060357600080fd5b506102ee61061236600461276b565b610d7c565b34801561062357600080fd5b506102ee610632366004612684565b60146020526000908152604090205481565b34801561065057600080fd5b506000546001600160a01b03166104d6565b34801561066e57600080fd5b50610297610fe1565b34801561068357600080fd5b506102ee600a5481565b34801561069957600080fd5b5061031c6106a836600461276b565b610ff0565b3480156106b957600080fd5b506102cd6106c836600461276b565b611060565b3480156106d957600080fd5b50600d546104d6906001600160a01b031681565b3480156106f957600080fd5b506102ee60105481565b34801561070f57600080fd5b506102cd61071e36600461276b565b6110db565b34801561072f57600080fd5b506102ee61073e366004612684565b6110e9565b34801561074f57600080fd5b5061031c61075e366004612797565b61115e565b34801561076f57600080fd5b50600c546104d6906001600160a01b031681565b34801561078f57600080fd5b5061031c61142c565b3480156107a457600080fd5b506102ee60085481565b3480156107ba57600080fd5b506102ee6107c93660046126be565b6114c8565b3480156107da57600080fd5b506102ee6103e881565b3480156107f057600080fd5b506102ee7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b34801561082457600080fd5b506108606108333660046127f9565b60126020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b6040805163ffffffff90931683526020830191909152016102a4565b34801561088857600080fd5b5061031c610897366004612684565b6114f3565b3480156108a857600080fd5b506007546104d6906001600160a01b031681565b3480156108c857600080fd5b5061031c6108d7366004612902565b611569565b6060600480546108eb90612b1a565b80601f016020809104026020016040519081016040528092919081815260200182805461091790612b1a565b80156109645780601f1061093957610100808354040283529160200191610964565b820191906000526020600020905b81548152906001019060200180831161094757829003601f168201915b5050505050905090565b60003361097c81858561163b565b60019150505b92915050565b61099061175f565b6001600160a01b0381166109bf5760405162461bcd60e51b81526004016109b6906129b1565b60405180910390fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6000336109ef8582856117b9565b6109fa858585611833565b506001949350505050565b60003361097c818585610a1883836114c8565b610a229190612a48565b61163b565b6000546001600160a01b0316331480610a4a5750600c546001600160a01b031633145b80610a5f5750600d546001600160a01b031633145b610a6857600080fd5b6001600160a01b038216610a8e5760405162461bcd60e51b81526004016109b6906129b1565b6001600160a01b038116610ab45760405162461bcd60e51b81526004016109b6906129b1565b600c80546001600160a01b039384166001600160a01b031991821617909155600d8054929093169116179055565b6000546001600160a01b0316331480610b055750600c546001600160a01b031633145b80610b1a5750600d546001600160a01b031633145b610b2357600080fd5b610b2d8282611980565b6001600160a01b03808316600090815260116020526040812054610b52921683611a5f565b6c0c9f2c9cd04674edea40000000610b6960035490565b1115610bab5760405162461bcd60e51b8152602060048201526011602482015270457863656564206d617820737570706c7960781b60448201526064016109b6565b5050565b6000546001600160a01b0316331480610bd25750600c546001600160a01b031633145b80610be75750600d546001600160a01b031633145b610bf057600080fd5b60005b8251811015610c7a57610c1f838281518110610c1157610c11612b9c565b602002602001015183611980565b610c68600060116000868581518110610c3a57610c3a612b9c565b6020908102919091018101516001600160a01b03908116835290820192909252604001600020541684611a5f565b80610c7281612b55565b915050610bf3565b506c0c9f2c9cd04674edea40000000610b6960035490565b610c9c3382611bbe565b50565b6000546001600160a01b0316331480610cc25750600c546001600160a01b031633145b80610cd75750600d546001600160a01b031633145b610ce057600080fd5b6001600160a01b0382166000908152600e602052604090205460ff1615158115151415610d3d5760405162461bcd60e51b815260206004820152600b60248201526a105b1c9958591e481cd95d60aa1b60448201526064016109b6565b6001600160a01b03919091166000908152600e60205260409020805460ff1916911515919091179055565b610d7061175f565b610d7a6000611c38565b565b6000438210610ddd5760405162461bcd60e51b815260206004820152602760248201527f43414b453a3a6765745072696f72566f7465733a206e6f742079657420646574604482015266195c9b5a5b995960ca1b60648201526084016109b6565b6001600160a01b03831660009081526013602052604090205463ffffffff1680610e0b576000915050610982565b6001600160a01b03841660009081526012602052604081208491610e30600185612af5565b63ffffffff90811682526020820192909252604001600020541611610e99576001600160a01b038416600090815260126020526040812090610e73600184612af5565b63ffffffff1663ffffffff16815260200190815260200160002060010154915050610982565b6001600160a01b038416600090815260126020908152604080832083805290915290205463ffffffff16831015610ed4576000915050610982565b600080610ee2600184612af5565b90505b8163ffffffff168163ffffffff161115610faa5760006002610f078484612af5565b610f119190612a9c565b610f1b9083612af5565b6001600160a01b038816600090815260126020908152604080832063ffffffff8086168552908352928190208151808301909252805490931680825260019093015491810191909152919250871415610f7e576020015194506109829350505050565b805163ffffffff16871115610f9557819350610fa3565b610fa0600183612af5565b92505b5050610ee5565b506001600160a01b038516600090815260126020908152604080832063ffffffff9094168352929052206001015491505092915050565b6060600580546108eb90612b1a565b6000546001600160a01b03163314806110135750600c546001600160a01b031633145b806110285750600d546001600160a01b031633145b61103157600080fd5b61103b8282611c88565b6001600160a01b03808316600090815260116020526040812054610bab921683611a5f565b6000338161106e82866114c8565b9050838110156110ce5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016109b6565b6109fa828686840361163b565b60003361097c818585611833565b6001600160a01b03811660009081526013602052604081205463ffffffff1680611114576000611157565b6001600160a01b038316600090815260126020526040812090611138600184612af5565b63ffffffff1663ffffffff168152602001908152602001600020600101545b9392505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a8666111896108dc565b805190602001206111974690565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a90528251808503909101815261014084019092528151919093012061190160f01b610160830152610162820183905261018282018190529192506000906101a20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa1580156112c3573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166113355760405162461bcd60e51b815260206004820152602660248201527f43414b453a3a64656c656761746542795369673a20696e76616c6964207369676044820152656e617475726560d01b60648201526084016109b6565b6001600160a01b038116600090815260146020526040812080549161135983612b55565b9190505589146113b65760405162461bcd60e51b815260206004820152602260248201527f43414b453a3a64656c656761746542795369673a20696e76616c6964206e6f6e604482015261636560f01b60648201526084016109b6565b874211156114155760405162461bcd60e51b815260206004820152602660248201527f43414b453a3a64656c656761746542795369673a207369676e617475726520656044820152651e1c1a5c995960d21b60648201526084016109b6565b61141f818b611bbe565b505050505b505050505050565b6000546001600160a01b031633148061144f5750600c546001600160a01b031633145b806114645750600d546001600160a01b031633145b61146d57600080fd5b600f54610100900460ff16156114b75760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e48195b98589b1959608a1b60448201526064016109b6565b600f805461ff001916610100179055565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6114fb61175f565b6001600160a01b0381166115605760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109b6565b610c9c81611c38565b6000546001600160a01b031633148061158c5750600c546001600160a01b031633145b806115a15750600d546001600160a01b031633145b6115aa57600080fd5b60006115c0826115ba868661162f565b9061162f565b905060c88111156116135760405162461bcd60e51b815260206004820181905260248201527f546f74616c204665652043616e2774206265206d6f7265207468616e2032302560448201526064016109b6565b61161b611dd6565b600893909355600991909155600a55600b55565b60006111578284612a48565b6001600160a01b03831661169d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016109b6565b6001600160a01b0382166116fe5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016109b6565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000546001600160a01b03163314610d7a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109b6565b60006117c584846114c8565b9050600019811461182d57818110156118205760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016109b6565b61182d848484840361163b565b50505050565b6001600160a01b0383166000908152600e602052604090205460ff1615801561187557506001600160a01b0382166000908152600e602052604090205460ff16155b15611970576006546001600160a01b03848116911614806118a357506006546001600160a01b038381169116145b1561193957600f54610100900460ff166118f75760405162461bcd60e51b815260206004820152601560248201527454726164696e67204e6f7420617661696c61626c6560581b60448201526064016109b6565b600061191a6103e8611914600b5485611ed390919063ffffffff16565b90611edf565b9050611927843083611eeb565b61193182826120b9565b915050611970565b30600090815260016020526040902054601054811080159081906119605750600f5460ff16155b1561196d5761196d611dd6565b50505b61197b838383611eeb565b505050565b6001600160a01b0382166119d65760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016109b6565b80600360008282546119e89190612a48565b90915550506001600160a01b03821660009081526001602052604081208054839290611a15908490612a48565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b816001600160a01b0316836001600160a01b031614158015611a815750600081115b1561197b576001600160a01b03831615611b24576001600160a01b03831660009081526013602052604081205463ffffffff169081611ac1576000611b04565b6001600160a01b038516600090815260126020526040812090611ae5600185612af5565b63ffffffff1663ffffffff168152602001908152602001600020600101545b90506000611b1282856120b9565b9050611b20868484846120c5565b5050505b6001600160a01b0382161561197b576001600160a01b03821660009081526013602052604081205463ffffffff169081611b5f576000611ba2565b6001600160a01b038416600090815260126020526040812090611b83600185612af5565b63ffffffff1663ffffffff168152602001908152602001600020600101545b90506000611bb0828561162f565b9050611424858484846120c5565b6001600160a01b03828116600081815260116020818152604080842080546001845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a461182d828483611a5f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216611ce85760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016109b6565b6001600160a01b03821660009081526001602052604090205481811015611d5c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016109b6565b6001600160a01b0383166000908152600160205260408120838303905560038054849290611d8b908490612ade565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600f805460ff1916600117905560008080611e06306001600160a01b031660009081526001602052604090205490565b9050611e23600b54611914600a5484611ed390919063ffffffff16565b9150611e2f81836120b9565b925047611e3b84612267565b6000611e4747836120b9565b90506000611e6260095460085461162f90919063ffffffff16565b90506000611e7f8261191460085486611ed390919063ffffffff16565b600c54909150611e98906001600160a01b0316826123d0565b600d54611eb7906001600160a01b0316611eb285846120b9565b6123d0565b611ec0866124e9565b5050600f805460ff191690555050505050565b60006111578284612abf565b60006111578284612a88565b6001600160a01b038316611f4f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016109b6565b6001600160a01b038216611fb15760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016109b6565b6001600160a01b038316600090815260016020526040902054818110156120295760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016109b6565b6001600160a01b03808516600090815260016020526040808220858503905591851681529081208054849290612060908490612a48565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516120ac91815260200190565b60405180910390a361182d565b60006111578284612ade565b60006120e943604051806060016040528060348152602001612bde60349139612584565b905060008463ffffffff1611801561214357506001600160a01b038516600090815260126020526040812063ffffffff831691612127600188612af5565b63ffffffff908116825260208201929092526040016000205416145b1561218c576001600160a01b0385166000908152601260205260408120839161216d600188612af5565b63ffffffff16815260208101919091526040016000206001015561221c565b60408051808201825263ffffffff838116825260208083018681526001600160a01b038a166000908152601283528581208a851682529092529390209151825463ffffffff1916911617815590516001918201556121eb908590612a60565b6001600160a01b0386166000908152601360205260409020805463ffffffff191663ffffffff929092169190911790555b60408051848152602081018490526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b8061226f5750565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106122a4576122a4612b9c565b6001600160a01b03928316602091820292909201810191909152600754604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b1580156122f857600080fd5b505afa15801561230c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061233091906126a1565b8160018151811061234357612343612b9c565b6001600160a01b039283166020918202929092010152600754612369913091168461163b565b60075460405163791ac94760e01b81526001600160a01b039091169063791ac947906123a29085906000908690309042906004016129d7565b600060405180830381600087803b1580156123bc57600080fd5b505af1158015611424573d6000803e3d6000fd5b804710156124205760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016109b6565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461246d576040519150601f19603f3d011682016040523d82523d6000602084013e612472565b606091505b505090508061197b5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016109b6565b806124f15750565b60006124fe826002611edf565b9050600061250c83836120b9565b90504761251883612267565b600061252447836120b9565b905080612532575050505050565b61253c83826125b4565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a15050505050565b60008164010000000084106125ac5760405162461bcd60e51b81526004016109b6919061295c565b509192915050565b6007546125cc9030906001600160a01b03168461163b565b60075460405163f305d71960e01b8152306004820181905260248201859052600060448301819052606483015260848201524260a48201526001600160a01b039091169063f305d71990839060c4016060604051808303818588803b15801561263457600080fd5b505af1158015612648573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061266d919061292e565b5050505050565b803561267f81612bc8565b919050565b60006020828403121561269657600080fd5b813561115781612bc8565b6000602082840312156126b357600080fd5b815161115781612bc8565b600080604083850312156126d157600080fd5b82356126dc81612bc8565b915060208301356126ec81612bc8565b809150509250929050565b60008060006060848603121561270c57600080fd5b833561271781612bc8565b9250602084013561272781612bc8565b929592945050506040919091013590565b6000806040838503121561274b57600080fd5b823561275681612bc8565b9150602083013580151581146126ec57600080fd5b6000806040838503121561277e57600080fd5b823561278981612bc8565b946020939093013593505050565b60008060008060008060c087890312156127b057600080fd5b86356127bb81612bc8565b95506020870135945060408701359350606087013560ff811681146127df57600080fd5b9598949750929560808101359460a0909101359350915050565b6000806040838503121561280c57600080fd5b823561281781612bc8565b9150602083013563ffffffff811681146126ec57600080fd5b6000806040838503121561284357600080fd5b823567ffffffffffffffff8082111561285b57600080fd5b818501915085601f83011261286f57600080fd5b813560208282111561288357612883612bb2565b8160051b604051601f19603f830116810181811086821117156128a8576128a8612bb2565b604052838152828101945085830182870184018b10156128c757600080fd5b600096505b848710156128f1576128dd81612674565b8652600196909601959483019483016128cc565b509997909101359750505050505050565b60008060006060848603121561291757600080fd5b505081359360208301359350604090920135919050565b60008060006060848603121561294357600080fd5b8351925060208401519150604084015190509250925092565b600060208083528351808285015260005b818110156129895785810183015185820160400152820161296d565b8181111561299b576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252600c908201526b4e756c6c206164647265737360a01b604082015260600190565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612a275784516001600160a01b031683529383019391830191600101612a02565b50506001600160a01b03969096166060850152505050608001529392505050565b60008219821115612a5b57612a5b612b70565b500190565b600063ffffffff808316818516808303821115612a7f57612a7f612b70565b01949350505050565b600082612a9757612a97612b86565b500490565b600063ffffffff80841680612ab357612ab3612b86565b92169190910492915050565b6000816000190483118215151615612ad957612ad9612b70565b500290565b600082821015612af057612af0612b70565b500390565b600063ffffffff83811690831681811015612b1257612b12612b70565b039392505050565b600181811c90821680612b2e57607f821691505b60208210811415612b4f57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612b6957612b69612b70565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610c9c57600080fdfe43414b453a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473a2646970667358221220da61fa16024dd10c1111a51ecfe7543c4cfaa2d50fda3326951fb1dbef0b746464736f6c63430008070033