Contract Address Details
0x4716269c75C09eaA3Df3Cc1709A88C9Da663f272
- Token
- Konra (KONRA)
- Creator
- 0xc985d1–df274e at 0xa03ce7–942e30
- Balance
- 134.835873366042432743 Doge
- Tokens
-
Fetching tokens...
- Transactions
- 433 Transactions
- Transfers
- 402 Transfers
- Gas Used
- 26,935,912
- Last Balance Update
- 29299517
Transactions
Token Transfers
Tokens
Internal Transactions
Coin Balance History
Logs
Code
Read Contract
Write Contract
- Contract name:
- LiquidityGeneratorToken
- Optimization enabled
- true
- Compiler version
- v0.8.4+commit.c7e474f2
- Optimization runs
- 200
- EVM Version
- default
- Verified at
- 2023-07-03T21:47:17.860147Z
Constructor Arguments
0x0000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000712b9528a000000000000000000000000006258c967337d3faf0c2ba3adae5656ba95419d5f000000000000000000000000c985d172b8258dbd691bcd722317570397df274e00000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000000c8000000000000000000000000000000000000000000000000000000000000012c000000000000000000000000de28c7c4f0021f165681ff7f1c507d3d1e3a223000000000000000000000000000000000000000000000000d8d726b7177a8000000000000000000000000000000000000000000000000000000000000000000064b6f6e726120000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054b4f4e5241000000000000000000000000000000000000000000000000000000
Arg [0] (string) : Konra
Arg [1] (string) : KONRA
Arg [2] (uint256) : 7777000000000
Arg [3] (address) : 0x6258c967337d3faf0c2ba3adae5656ba95419d5f
Arg [4] (address) : 0xc985d172b8258dbd691bcd722317570397df274e
Arg [5] (uint16) : 500
Arg [6] (uint16) : 200
Arg [7] (uint16) : 300
Arg [8] (address) : 0xde28c7c4f0021f165681ff7f1c507d3d1e3a2230
Arg [9] (uint256) : 250000000000000000000
Contract source code
// Sources flattened with hardhat v2.9.3 https://hardhat.org // File @openzeppelin/contracts/token/ERC20/IERC20.sol@v4.6.0 // SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } // File @openzeppelin/contracts/utils/Context.sol@v4.6.0 // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File @openzeppelin/contracts/access/Ownable.sol@v4.6.0 // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File @openzeppelin/contracts/utils/math/SafeMath.sol@v4.6.0 // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } // File @openzeppelin/contracts/utils/Address.sol@v4.6.0 // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File contracts/interfaces/IUniswapV2Router02.sol pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns ( uint256 amountA, uint256 amountB, uint256 liquidity ); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns ( uint256 amountToken, uint256 amountETH, uint256 liquidity ); function removeLiquidity( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETH( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountToken, uint256 amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETHWithPermit( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountToken, uint256 amountETH); function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapTokensForExactTokens( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactETHForTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapTokensForExactETH( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactTokensForETH( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapETHForExactTokens( uint256 amountOut, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function quote( uint256 amountA, uint256 reserveA, uint256 reserveB ) external pure returns (uint256 amountB); function getAmountOut( uint256 amountIn, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountOut); function getAmountIn( uint256 amountOut, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountIn); function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns (uint256[] memory amounts); function getAmountsIn(uint256 amountOut, address[] calldata path) external view returns (uint256[] memory amounts); } interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; } // File contracts/interfaces/IUniswapV2Factory.sol pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated( address indexed token0, address indexed token1, address pair, uint256 ); 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(uint256) external view returns (address pair); function allPairsLength() external view returns (uint256); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; } // File contracts/BaseToken.sol pragma solidity =0.8.4; enum TokenType { standard, antiBotStandard, liquidityGenerator, antiBotLiquidityGenerator, baby, antiBotBaby, buybackBaby, antiBotBuybackBaby } abstract contract BaseToken { event TokenCreated( address indexed owner, address indexed token, TokenType tokenType, uint256 version ); } // File contracts/tokens/LiquidityGeneratorToken.sol pragma solidity =0.8.4; contract LiquidityGeneratorToken is IERC20, Ownable, BaseToken { using SafeMath for uint256; using Address for address; uint256 public constant VERSION = 1; mapping(address => uint256) private _rOwned; mapping(address => uint256) private _tOwned; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _isExcludedFromFee; mapping(address => bool) private _isExcluded; address[] private _excluded; uint256 private constant MAX = ~uint256(0); uint256 private _tTotal; uint256 private _rTotal; uint256 private _tFeeTotal; string private _name; string private _symbol; uint8 private _decimals; uint256 public _taxFee; uint256 private _previousTaxFee = _taxFee; uint256 public _liquidityFee; uint256 private _previousLiquidityFee = _liquidityFee; uint256 public _charityFee; uint256 private _previousCharityFee = _charityFee; IUniswapV2Router02 public uniswapV2Router; address public uniswapV2Pair; address public _charityAddress; bool inSwapAndLiquify; bool public swapAndLiquifyEnabled; uint256 private numTokensSellToAddToLiquidity; event MinTokensBeforeSwapUpdated(uint256 minTokensBeforeSwap); event SwapAndLiquifyEnabledUpdated(bool enabled); event SwapAndLiquify( uint256 tokensSwapped, uint256 ethReceived, uint256 tokensIntoLiqudity ); modifier lockTheSwap() { inSwapAndLiquify = true; _; inSwapAndLiquify = false; } constructor( string memory name_, string memory symbol_, uint256 totalSupply_, address router_, address charityAddress_, uint16 taxFeeBps_, uint16 liquidityFeeBps_, uint16 charityFeeBps_, address serviceFeeReceiver_, uint256 serviceFee_ ) payable { require(taxFeeBps_ >= 0, "Invalid tax fee"); require(liquidityFeeBps_ >= 0, "Invalid liquidity fee"); require(charityFeeBps_ >= 0, "Invalid charity fee"); if (charityAddress_ == address(0)) { require( charityFeeBps_ == 0, "Cant set both charity address to address 0 and charity percent more than 0" ); } require( taxFeeBps_ + liquidityFeeBps_ + charityFeeBps_ <= 10**4 / 4, "Total fee is over 25%" ); _name = name_; _symbol = symbol_; _decimals = 9; _tTotal = totalSupply_; _rTotal = (MAX - (MAX % _tTotal)); _taxFee = taxFeeBps_; _previousTaxFee = _taxFee; _liquidityFee = liquidityFeeBps_; _previousLiquidityFee = _liquidityFee; _charityAddress = charityAddress_; _charityFee = charityFeeBps_; _previousCharityFee = _charityFee; numTokensSellToAddToLiquidity = totalSupply_.mul(5).div(10**4); // 0.05% swapAndLiquifyEnabled = true; _rOwned[owner()] = _rTotal; IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(router_); // Create a uniswap pair for this new token uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()) .createPair(address(this), _uniswapV2Router.WETH()); // set the rest of the contract variables uniswapV2Router = _uniswapV2Router; // exclude owner and this contract from fee _isExcludedFromFee[owner()] = true; _isExcludedFromFee[address(this)] = true; emit Transfer(address(0), owner(), _tTotal); emit TokenCreated( owner(), address(this), TokenType.liquidityGenerator, VERSION ); payable(serviceFeeReceiver_).transfer(serviceFee_); } function name() public view returns (string memory) { return _name; } function symbol() public view returns (string memory) { return _symbol; } function decimals() public view returns (uint8) { return _decimals; } function totalSupply() public view override returns (uint256) { return _tTotal; } function balanceOf(address account) public view override returns (uint256) { if (_isExcluded[account]) return _tOwned[account]; return tokenFromReflection(_rOwned[account]); } function transfer(address recipient, uint256 amount) public override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } function allowance(address owner, address spender) public view override returns (uint256) { return _allowances[owner][spender]; } function approve(address spender, uint256 amount) public override returns (bool) { _approve(_msgSender(), spender, amount); return true; } function transferFrom( address sender, address recipient, uint256 amount ) public override returns (bool) { _transfer(sender, recipient, amount); _approve( sender, _msgSender(), _allowances[sender][_msgSender()].sub( amount, "ERC20: transfer amount exceeds allowance" ) ); return true; } function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve( _msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue) ); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve( _msgSender(), spender, _allowances[_msgSender()][spender].sub( subtractedValue, "ERC20: decreased allowance below zero" ) ); return true; } function isExcludedFromReward(address account) public view returns (bool) { return _isExcluded[account]; } function totalFees() public view returns (uint256) { return _tFeeTotal; } function deliver(uint256 tAmount) public { address sender = _msgSender(); require( !_isExcluded[sender], "Excluded addresses cannot call this function" ); (uint256 rAmount, , , , , , ) = _getValues(tAmount); _rOwned[sender] = _rOwned[sender].sub(rAmount); _rTotal = _rTotal.sub(rAmount); _tFeeTotal = _tFeeTotal.add(tAmount); } function reflectionFromToken(uint256 tAmount, bool deductTransferFee) public view returns (uint256) { require(tAmount <= _tTotal, "Amount must be less than supply"); if (!deductTransferFee) { (uint256 rAmount, , , , , , ) = _getValues(tAmount); return rAmount; } else { (, uint256 rTransferAmount, , , , , ) = _getValues(tAmount); return rTransferAmount; } } function tokenFromReflection(uint256 rAmount) public view returns (uint256) { require( rAmount <= _rTotal, "Amount must be less than total reflections" ); uint256 currentRate = _getRate(); return rAmount.div(currentRate); } function excludeFromReward(address account) public onlyOwner { // require(account != 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D, 'We can not exclude Uniswap router.'); require(!_isExcluded[account], "Account is already excluded"); if (_rOwned[account] > 0) { _tOwned[account] = tokenFromReflection(_rOwned[account]); } _isExcluded[account] = true; _excluded.push(account); } function includeInReward(address account) external onlyOwner { require(_isExcluded[account], "Account is already excluded"); for (uint256 i = 0; i < _excluded.length; i++) { if (_excluded[i] == account) { _excluded[i] = _excluded[_excluded.length - 1]; _tOwned[account] = 0; _isExcluded[account] = false; _excluded.pop(); break; } } } function _transferBothExcluded( address sender, address recipient, uint256 tAmount ) private { ( uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity, uint256 tCharity ) = _getValues(tAmount); _tOwned[sender] = _tOwned[sender].sub(tAmount); _rOwned[sender] = _rOwned[sender].sub(rAmount); _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount); _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount); _takeLiquidity(tLiquidity); _takeCharityFee(tCharity); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } function excludeFromFee(address account) public onlyOwner { _isExcludedFromFee[account] = true; } function includeInFee(address account) public onlyOwner { _isExcludedFromFee[account] = false; } function setTaxFeePercent(uint256 taxFeeBps) external onlyOwner { _taxFee = taxFeeBps; require( _taxFee + _liquidityFee + _charityFee <= 10**4 / 4, "Total fee is over 25%" ); } function setLiquidityFeePercent(uint256 liquidityFeeBps) external onlyOwner { _liquidityFee = liquidityFeeBps; require( _taxFee + _liquidityFee + _charityFee <= 10**4 / 4, "Total fee is over 25%" ); } function setSwapAndLiquifyEnabled(bool _enabled) public onlyOwner { swapAndLiquifyEnabled = _enabled; emit SwapAndLiquifyEnabledUpdated(_enabled); } //to recieve ETH from uniswapV2Router when swaping receive() external payable {} function _reflectFee(uint256 rFee, uint256 tFee) private { _rTotal = _rTotal.sub(rFee); _tFeeTotal = _tFeeTotal.add(tFee); } function _getValues(uint256 tAmount) private view returns ( uint256, uint256, uint256, uint256, uint256, uint256, uint256 ) { ( uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity, uint256 tCharity ) = _getTValues(tAmount); (uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues( tAmount, tFee, tLiquidity, tCharity, _getRate() ); return ( rAmount, rTransferAmount, rFee, tTransferAmount, tFee, tLiquidity, tCharity ); } function _getTValues(uint256 tAmount) private view returns ( uint256, uint256, uint256, uint256 ) { uint256 tFee = calculateTaxFee(tAmount); uint256 tLiquidity = calculateLiquidityFee(tAmount); uint256 tCharityFee = calculateCharityFee(tAmount); uint256 tTransferAmount = tAmount.sub(tFee).sub(tLiquidity).sub( tCharityFee ); return (tTransferAmount, tFee, tLiquidity, tCharityFee); } function _getRValues( uint256 tAmount, uint256 tFee, uint256 tLiquidity, uint256 tCharity, uint256 currentRate ) private pure returns ( uint256, uint256, uint256 ) { uint256 rAmount = tAmount.mul(currentRate); uint256 rFee = tFee.mul(currentRate); uint256 rLiquidity = tLiquidity.mul(currentRate); uint256 rCharity = tCharity.mul(currentRate); uint256 rTransferAmount = rAmount.sub(rFee).sub(rLiquidity).sub( rCharity ); return (rAmount, rTransferAmount, rFee); } function _getRate() private view returns (uint256) { (uint256 rSupply, uint256 tSupply) = _getCurrentSupply(); return rSupply.div(tSupply); } function _getCurrentSupply() private view returns (uint256, uint256) { uint256 rSupply = _rTotal; uint256 tSupply = _tTotal; for (uint256 i = 0; i < _excluded.length; i++) { if ( _rOwned[_excluded[i]] > rSupply || _tOwned[_excluded[i]] > tSupply ) return (_rTotal, _tTotal); rSupply = rSupply.sub(_rOwned[_excluded[i]]); tSupply = tSupply.sub(_tOwned[_excluded[i]]); } if (rSupply < _rTotal.div(_tTotal)) return (_rTotal, _tTotal); return (rSupply, tSupply); } function _takeLiquidity(uint256 tLiquidity) private { uint256 currentRate = _getRate(); uint256 rLiquidity = tLiquidity.mul(currentRate); _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity); if (_isExcluded[address(this)]) _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity); } function _takeCharityFee(uint256 tCharity) private { if (tCharity > 0) { uint256 currentRate = _getRate(); uint256 rCharity = tCharity.mul(currentRate); _rOwned[_charityAddress] = _rOwned[_charityAddress].add(rCharity); if (_isExcluded[_charityAddress]) _tOwned[_charityAddress] = _tOwned[_charityAddress].add( tCharity ); emit Transfer(_msgSender(), _charityAddress, tCharity); } } function calculateTaxFee(uint256 _amount) private view returns (uint256) { return _amount.mul(_taxFee).div(10**4); } function calculateLiquidityFee(uint256 _amount) private view returns (uint256) { return _amount.mul(_liquidityFee).div(10**4); } function calculateCharityFee(uint256 _amount) private view returns (uint256) { if (_charityAddress == address(0)) return 0; return _amount.mul(_charityFee).div(10**4); } function removeAllFee() private { if (_taxFee == 0 && _liquidityFee == 0 && _charityFee == 0) return; _previousTaxFee = _taxFee; _previousLiquidityFee = _liquidityFee; _previousCharityFee = _charityFee; _taxFee = 0; _liquidityFee = 0; _charityFee = 0; } function restoreAllFee() private { _taxFee = _previousTaxFee; _liquidityFee = _previousLiquidityFee; _charityFee = _previousCharityFee; } function isExcludedFromFee(address account) public view returns (bool) { return _isExcludedFromFee[account]; } function _approve( address owner, address spender, uint256 amount ) private { 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); } function _transfer( address from, address to, uint256 amount ) private { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(amount > 0, "Transfer amount must be greater than zero"); // is the token balance of this contract address over the min number of // tokens that we need to initiate a swap + liquidity lock? // also, don't get caught in a circular liquidity event. // also, don't swap & liquify if sender is uniswap pair. uint256 contractTokenBalance = balanceOf(address(this)); bool overMinTokenBalance = contractTokenBalance >= numTokensSellToAddToLiquidity; if ( overMinTokenBalance && !inSwapAndLiquify && from != uniswapV2Pair && swapAndLiquifyEnabled ) { contractTokenBalance = numTokensSellToAddToLiquidity; //add liquidity swapAndLiquify(contractTokenBalance); } //indicates if fee should be deducted from transfer bool takeFee = true; //if any account belongs to _isExcludedFromFee account then remove the fee if (_isExcludedFromFee[from] || _isExcludedFromFee[to]) { takeFee = false; } //transfer amount, it will take tax, burn, liquidity fee _tokenTransfer(from, to, amount, takeFee); } function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap { // split the contract balance into halves uint256 half = contractTokenBalance.div(2); uint256 otherHalf = contractTokenBalance.sub(half); // capture the contract's current ETH balance. // this is so that we can capture exactly the amount of ETH that the // swap creates, and not make the liquidity event include any ETH that // has been manually sent to the contract uint256 initialBalance = address(this).balance; // swap tokens for ETH swapTokensForEth(half); // <- this breaks the ETH -> HATE swap when swap+liquify is triggered // how much ETH did we just swap into? uint256 newBalance = address(this).balance.sub(initialBalance); // add liquidity to uniswap addLiquidity(otherHalf, newBalance); emit SwapAndLiquify(half, newBalance, otherHalf); } function swapTokensForEth(uint256 tokenAmount) private { // generate the uniswap pair path of token -> weth address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); _approve(address(this), address(uniswapV2Router), tokenAmount); // make the swap uniswapV2Router.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(uniswapV2Router), tokenAmount); // add the liquidity uniswapV2Router.addLiquidityETH{value: ethAmount}( address(this), tokenAmount, 0, // slippage is unavoidable 0, // slippage is unavoidable owner(), block.timestamp ); } //this method is responsible for taking all fee, if takeFee is true function _tokenTransfer( address sender, address recipient, uint256 amount, bool takeFee ) private { if (!takeFee) removeAllFee(); if (_isExcluded[sender] && !_isExcluded[recipient]) { _transferFromExcluded(sender, recipient, amount); } else if (!_isExcluded[sender] && _isExcluded[recipient]) { _transferToExcluded(sender, recipient, amount); } else if (!_isExcluded[sender] && !_isExcluded[recipient]) { _transferStandard(sender, recipient, amount); } else if (_isExcluded[sender] && _isExcluded[recipient]) { _transferBothExcluded(sender, recipient, amount); } else { _transferStandard(sender, recipient, amount); } if (!takeFee) restoreAllFee(); } function _transferStandard( address sender, address recipient, uint256 tAmount ) private { ( uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity, uint256 tCharity ) = _getValues(tAmount); _rOwned[sender] = _rOwned[sender].sub(rAmount); _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount); _takeLiquidity(tLiquidity); _takeCharityFee(tCharity); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } function _transferToExcluded( address sender, address recipient, uint256 tAmount ) private { ( uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity, uint256 tCharity ) = _getValues(tAmount); _rOwned[sender] = _rOwned[sender].sub(rAmount); _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount); _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount); _takeLiquidity(tLiquidity); _takeCharityFee(tCharity); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } function _transferFromExcluded( address sender, address recipient, uint256 tAmount ) private { ( uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity, uint256 tCharity ) = _getValues(tAmount); _tOwned[sender] = _tOwned[sender].sub(tAmount); _rOwned[sender] = _rOwned[sender].sub(rAmount); _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount); _takeLiquidity(tLiquidity); _takeCharityFee(tCharity); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } }
Contract ABI
[{"type":"constructor","inputs":[{"type":"string","name":"name_","internalType":"string"},{"type":"string","name":"symbol_","internalType":"string"},{"type":"uint256","name":"totalSupply_","internalType":"uint256"},{"type":"address","name":"router_","internalType":"address"},{"type":"address","name":"charityAddress_","internalType":"address"},{"type":"uint16","name":"taxFeeBps_","internalType":"uint16"},{"type":"uint16","name":"liquidityFeeBps_","internalType":"uint16"},{"type":"uint16","name":"charityFeeBps_","internalType":"uint16"},{"type":"address","name":"serviceFeeReceiver_","internalType":"address"},{"type":"uint256","name":"serviceFee_","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"VERSION","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"_charityAddress","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"_charityFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"_liquidityFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"_taxFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"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":"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":"deliver","inputs":[{"type":"uint256","name":"tAmount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"excludeFromFee","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"excludeFromReward","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"includeInFee","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"includeInReward","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isExcludedFromFee","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isExcludedFromReward","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"reflectionFromToken","inputs":[{"type":"uint256","name":"tAmount","internalType":"uint256"},{"type":"bool","name":"deductTransferFee","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setLiquidityFeePercent","inputs":[{"type":"uint256","name":"liquidityFeeBps","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSwapAndLiquifyEnabled","inputs":[{"type":"bool","name":"_enabled","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setTaxFeePercent","inputs":[{"type":"uint256","name":"taxFeeBps","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"swapAndLiquifyEnabled","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":"tokenFromReflection","inputs":[{"type":"uint256","name":"rAmount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalFees","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"address","name":"recipient","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":"uniswapV2Pair","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IUniswapV2Router02"}],"name":"uniswapV2Router","inputs":[]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"address","name":"spender","indexed":true},{"type":"uint256","name":"value","indexed":false}],"anonymous":false},{"type":"event","name":"MinTokensBeforeSwapUpdated","inputs":[{"type":"uint256","name":"minTokensBeforeSwap","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","indexed":true},{"type":"address","name":"newOwner","indexed":true}],"anonymous":false},{"type":"event","name":"SwapAndLiquify","inputs":[{"type":"uint256","name":"tokensSwapped","indexed":false},{"type":"uint256","name":"ethReceived","indexed":false},{"type":"uint256","name":"tokensIntoLiqudity","indexed":false}],"anonymous":false},{"type":"event","name":"SwapAndLiquifyEnabledUpdated","inputs":[{"type":"bool","name":"enabled","indexed":false}],"anonymous":false},{"type":"event","name":"TokenCreated","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"address","name":"token","indexed":true},{"type":"uint8","name":"tokenType","indexed":false},{"type":"uint256","name":"version","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","indexed":true},{"type":"address","name":"to","indexed":true},{"type":"uint256","name":"value","indexed":false}],"anonymous":false},{"type":"receive"}]
Contract Creation Code
0x6080604052600d54600e55600f5460105560115460125560405162002f3938038062002f398339810160408190526200003891620007aa565b620000433362000591565b62000052565b60405180910390fd5b6001600160a01b038616620000ee5761ffff831615620000ee5760405162461bcd60e51b815260206004820152604a60248201527f43616e742073657420626f74682063686172697479206164647265737320746f60448201527f2061646472657373203020616e6420636861726974792070657263656e74206d60648201526906f7265207468616e20360b41b608482015260a40162000049565b6109c483620000fe8688620008c3565b6200010a9190620008c3565b61ffff1611156200015e5760405162461bcd60e51b815260206004820152601560248201527f546f74616c20666565206973206f766572203235250000000000000000000000604482015260640162000049565b89516200017390600a9060208d019062000604565b5088516200018990600b9060208c019062000604565b50600c805460ff191660091790556007889055620001aa886000196200097c565b620001b89060001962000925565b60085561ffff858116600d819055600e55848116600f819055601055601580546001600160a01b0319166001600160a01b038916179055831660118190556012556200022d612710620002198a6005620005e1602090811b620010d817901c565b620005f660201b620010e41790919060201c565b6016556015805460ff60a81b1916600160a81b179055600854600160006200025d6000546001600160a01b031690565b6001600160a01b03166001600160a01b03168152602001908152602001600020819055506000879050806001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b158015620002c057600080fd5b505afa158015620002d5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002fb91906200078d565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156200034457600080fd5b505afa15801562000359573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200037f91906200078d565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b158015620003c857600080fd5b505af1158015620003dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200040391906200078d565b601480546001600160a01b03199081166001600160a01b0393841617909155601380549091169183169190911790556001600460006200044b6000546001600160a01b031690565b6001600160a01b0316815260208082019290925260409081016000908120805494151560ff1995861617905530815260049092529020805490911660011790556200049e6000546001600160a01b031690565b6001600160a01b031660006001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600754604051620004e691815260200190565b60405180910390a330620005026000546001600160a01b031690565b6001600160a01b03167f56358b41df5fa59f5639228f0930994cbdde383c8a8fd74e06c04e1deebe3562600260016040516200054092919062000896565b60405180910390a36040516001600160a01b0384169083156108fc029084906000818181858888f193505050501580156200057f573d6000803e3d6000fd5b505050505050505050505050620009d5565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000620005ef828462000903565b9392505050565b6000620005ef8284620008ec565b82805462000612906200093f565b90600052602060002090601f01602090048101928262000636576000855562000681565b82601f106200065157805160ff191683800117855562000681565b8280016001018555821562000681579182015b828111156200068157825182559160200191906001019062000664565b506200068f92915062000693565b5090565b5b808211156200068f576000815560010162000694565b80516001600160a01b0381168114620006c257600080fd5b919050565b600082601f830112620006d8578081fd5b81516001600160401b0380821115620006f557620006f5620009bf565b604051601f8301601f19908116603f01168101908282118183101715620007205762000720620009bf565b816040528381526020925086838588010111156200073c578485fd5b8491505b838210156200075f578582018301518183018401529082019062000740565b838211156200077057848385830101525b9695505050505050565b805161ffff81168114620006c257600080fd5b6000602082840312156200079f578081fd5b620005ef82620006aa565b6000806000806000806000806000806101408b8d031215620007ca578586fd5b8a516001600160401b0380821115620007e1578788fd5b620007ef8e838f01620006c7565b9b5060208d015191508082111562000805578788fd5b50620008148d828e01620006c7565b99505060408b015197506200082c60608c01620006aa565b96506200083c60808c01620006aa565b95506200084c60a08c016200077a565b94506200085c60c08c016200077a565b93506200086c60e08c016200077a565b92506200087d6101008c01620006aa565b91506101208b015190509295989b9194979a5092959850565b6040810160088410620008b957634e487b7160e01b600052602160045260246000fd5b9281526020015290565b600061ffff808316818516808303821115620008e357620008e362000993565b01949350505050565b600082620008fe57620008fe620009a9565b500490565b600081600019048311821515161562000920576200092062000993565b500290565b6000828210156200093a576200093a62000993565b500390565b600181811c908216806200095457607f821691505b602082108114156200097657634e487b7160e01b600052602260045260246000fd5b50919050565b6000826200098e576200098e620009a9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b61255480620009e56000396000f3fe6080604052600436106102085760003560e01c806349bd5a5e116101185780638ee88c53116100a0578063c49b9a801161006f578063c49b9a80146105fc578063dd62ed3e1461061c578063ea2f0b3714610662578063f2fde38b14610682578063ffa1ad74146106a257600080fd5b80638ee88c531461058757806395d89b41146105a7578063a457c2d7146105bc578063a9059cbb146105dc57600080fd5b80636bc87c3a116100e75780636bc87c3a146104e557806370a08231146104fb578063715018a61461051b57806388f82020146105305780638da5cb5b1461056957600080fd5b806349bd5a5e1461044b5780634a74bb021461046b57806352390c021461048c5780635342acb4146104ac57600080fd5b80632d8381191161019b5780633b124fe71161016a5780633b124fe7146103bf5780633bd5d173146103d557806340f8007a146103f5578063437823ec1461040b5780634549b0391461042b57600080fd5b80632d8381191461033d578063313ce5671461035d5780633685d4191461037f578063395093511461039f57600080fd5b80631694505e116101d75780631694505e146102b057806318160ddd146102e857806319a8ac9e146102fd57806323b872dd1461031d57600080fd5b8063061c82d01461021457806306fdde0314610236578063095ea7b31461026157806313114a9d1461029157600080fd5b3661020f57005b600080fd5b34801561022057600080fd5b5061023461022f36600461227a565b6106b7565b005b34801561024257600080fd5b5061024b610757565b60405161025891906122ea565b60405180910390f35b34801561026d57600080fd5b5061028161027c366004612235565b6107e9565b6040519015158152602001610258565b34801561029d57600080fd5b506009545b604051908152602001610258565b3480156102bc57600080fd5b506013546102d0906001600160a01b031681565b6040516001600160a01b039091168152602001610258565b3480156102f457600080fd5b506007546102a2565b34801561030957600080fd5b506015546102d0906001600160a01b031681565b34801561032957600080fd5b506102816103383660046121f5565b610800565b34801561034957600080fd5b506102a261035836600461227a565b610869565b34801561036957600080fd5b50600c5460405160ff9091168152602001610258565b34801561038b57600080fd5b5061023461039a366004612185565b6108ed565b3480156103ab57600080fd5b506102816103ba366004612235565b610adc565b3480156103cb57600080fd5b506102a2600d5481565b3480156103e157600080fd5b506102346103f036600461227a565b610b12565b34801561040157600080fd5b506102a260115481565b34801561041757600080fd5b50610234610426366004612185565b610bfe565b34801561043757600080fd5b506102a2610446366004612292565b610c4c565b34801561045757600080fd5b506014546102d0906001600160a01b031681565b34801561047757600080fd5b5060155461028190600160a81b900460ff1681565b34801561049857600080fd5b506102346104a7366004612185565b610cdb565b3480156104b857600080fd5b506102816104c7366004612185565b6001600160a01b031660009081526004602052604090205460ff1690565b3480156104f157600080fd5b506102a2600f5481565b34801561050757600080fd5b506102a2610516366004612185565b610e2e565b34801561052757600080fd5b50610234610e8d565b34801561053c57600080fd5b5061028161054b366004612185565b6001600160a01b031660009081526005602052604090205460ff1690565b34801561057557600080fd5b506000546001600160a01b03166102d0565b34801561059357600080fd5b506102346105a236600461227a565b610ec3565b3480156105b357600080fd5b5061024b610f08565b3480156105c857600080fd5b506102816105d7366004612235565b610f17565b3480156105e857600080fd5b506102816105f7366004612235565b610f66565b34801561060857600080fd5b50610234610617366004612260565b610f73565b34801561062857600080fd5b506102a26106373660046121bd565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b34801561066e57600080fd5b5061023461067d366004612185565b610ff5565b34801561068e57600080fd5b5061023461069d366004612185565b611040565b3480156106ae57600080fd5b506102a2600181565b6000546001600160a01b031633146106ea5760405162461bcd60e51b81526004016106e19061233d565b60405180910390fd5b600d819055601154600f546109c4919061070490846123e2565b61070e91906123e2565b11156107545760405162461bcd60e51b8152602060048201526015602482015274546f74616c20666565206973206f7665722032352560581b60448201526064016106e1565b50565b6060600a805461076690612450565b80601f016020809104026020016040519081016040528092919081815260200182805461079290612450565b80156107df5780601f106107b4576101008083540402835291602001916107df565b820191906000526020600020905b8154815290600101906020018083116107c257829003601f168201915b5050505050905090565b60006107f63384846110f0565b5060015b92915050565b600061080d848484611215565b61085f843361085a856040518060600160405280602881526020016124d2602891396001600160a01b038a166000908152600360209081526040808320338452909152902054919061140a565b6110f0565b5060019392505050565b60006008548211156108d05760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b60648201526084016106e1565b60006108da611436565b90506108e683826110e4565b9392505050565b6000546001600160a01b031633146109175760405162461bcd60e51b81526004016106e19061233d565b6001600160a01b03811660009081526005602052604090205460ff1661097f5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c75646564000000000060448201526064016106e1565b60005b600654811015610ad857816001600160a01b0316600682815481106109b757634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415610ac657600680546109e290600190612439565b81548110610a0057634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600680546001600160a01b039092169183908110610a3a57634e487b7160e01b600052603260045260246000fd5b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152600282526040808220829055600590925220805460ff191690556006805480610aa057634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b03191690550190555050565b80610ad08161248b565b915050610982565b5050565b3360008181526003602090815260408083206001600160a01b038716845290915281205490916107f691859061085a9086611459565b3360008181526005602052604090205460ff1615610b875760405162461bcd60e51b815260206004820152602c60248201527f4578636c75646564206164647265737365732063616e6e6f742063616c6c207460448201526b3434b990333ab731ba34b7b760a11b60648201526084016106e1565b6000610b9283611465565b5050506001600160a01b038616600090815260016020526040902054939450610bc0939250849150506114c0565b6001600160a01b038316600090815260016020526040902055600854610be690826114c0565b600855600954610bf69084611459565b600955505050565b6000546001600160a01b03163314610c285760405162461bcd60e51b81526004016106e19061233d565b6001600160a01b03166000908152600460205260409020805460ff19166001179055565b6000600754831115610ca05760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c790060448201526064016106e1565b81610cc0576000610cb084611465565b509496506107fa95505050505050565b6000610ccb84611465565b509396506107fa95505050505050565b6000546001600160a01b03163314610d055760405162461bcd60e51b81526004016106e19061233d565b6001600160a01b03811660009081526005602052604090205460ff1615610d6e5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c75646564000000000060448201526064016106e1565b6001600160a01b03811660009081526001602052604090205415610dc8576001600160a01b038116600090815260016020526040902054610dae90610869565b6001600160a01b0382166000908152600260205260409020555b6001600160a01b03166000818152600560205260408120805460ff191660019081179091556006805491820181559091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319169091179055565b6001600160a01b03811660009081526005602052604081205460ff1615610e6b57506001600160a01b031660009081526002602052604090205490565b6001600160a01b0382166000908152600160205260409020546107fa90610869565b6000546001600160a01b03163314610eb75760405162461bcd60e51b81526004016106e19061233d565b610ec160006114cc565b565b6000546001600160a01b03163314610eed5760405162461bcd60e51b81526004016106e19061233d565b600f819055601154600d546109c491906107049084906123e2565b6060600b805461076690612450565b60006107f6338461085a856040518060600160405280602581526020016124fa602591393360009081526003602090815260408083206001600160a01b038d168452909152902054919061140a565b60006107f6338484611215565b6000546001600160a01b03163314610f9d5760405162461bcd60e51b81526004016106e19061233d565b60158054821515600160a81b0260ff60a81b199091161790556040517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc15990610fea90831515815260200190565b60405180910390a150565b6000546001600160a01b0316331461101f5760405162461bcd60e51b81526004016106e19061233d565b6001600160a01b03166000908152600460205260409020805460ff19169055565b6000546001600160a01b0316331461106a5760405162461bcd60e51b81526004016106e19061233d565b6001600160a01b0381166110cf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106e1565b610754816114cc565b60006108e6828461241a565b60006108e682846123fa565b6001600160a01b0383166111525760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106e1565b6001600160a01b0382166111b35760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106e1565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166112795760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106e1565b6001600160a01b0382166112db5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106e1565b6000811161133d5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b60648201526084016106e1565b600061134830610e2e565b601654909150811080159081906113695750601554600160a01b900460ff16155b801561138357506014546001600160a01b03868116911614155b80156113985750601554600160a81b900460ff165b156113ab5760165491506113ab8261151c565b6001600160a01b03851660009081526004602052604090205460019060ff16806113ed57506001600160a01b03851660009081526004602052604090205460ff165b156113f6575060005b611402868686846115c3565b505050505050565b6000818484111561142e5760405162461bcd60e51b81526004016106e191906122ea565b505050900390565b6000806000611443611746565b909250905061145282826110e4565b9250505090565b60006108e682846123e2565b600080600080600080600080600080600061147f8c611900565b935093509350935060008060006114a08f87878761149b611436565b611955565b919f509d509b509599509397509195509350505050919395979092949650565b60006108e68284612439565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6015805460ff60a01b1916600160a01b179055600061153c8260026110e4565b9050600061154a83836114c0565b905047611556836119b7565b600061156247836114c0565b905061156e8382611b34565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a150506015805460ff60a01b19169055505050565b806115d0576115d0611c18565b6001600160a01b03841660009081526005602052604090205460ff16801561161157506001600160a01b03831660009081526005602052604090205460ff16155b1561162657611621848484611c5d565b611724565b6001600160a01b03841660009081526005602052604090205460ff1615801561166757506001600160a01b03831660009081526005602052604090205460ff165b1561167757611621848484611da3565b6001600160a01b03841660009081526005602052604090205460ff161580156116b957506001600160a01b03831660009081526005602052604090205460ff16155b156116c957611621848484611e62565b6001600160a01b03841660009081526005602052604090205460ff16801561170957506001600160a01b03831660009081526005602052604090205460ff165b1561171957611621848484611ebc565b611724848484611e62565b8061174057611740600e54600d55601054600f55601254601155565b50505050565b6008546007546000918291825b6006548110156118d05782600160006006848154811061178357634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400190205411806117fc57508160026000600684815481106117d557634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b1561181257600854600754945094505050509091565b611866600160006006848154811061183a57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400190205484906114c0565b92506118bc600260006006848154811061189057634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400190205483906114c0565b9150806118c88161248b565b915050611753565b506007546008546118e0916110e4565b8210156118f7576008546007549350935050509091565b90939092509050565b600080600080600061191186611f45565b9050600061191e87611f68565b9050600061192b88611f85565b905060006119458261193f85818d896114c0565b906114c0565b9993985091965094509092505050565b600080808061196489866110d8565b9050600061197289876110d8565b9050600061198089886110d8565b9050600061198e89896110d8565b905060006119a28261193f858189896114c0565b949d949c50929a509298505050505050505050565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106119fa57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201810191909152601354604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b158015611a4e57600080fd5b505afa158015611a62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a8691906121a1565b81600181518110611aa757634e487b7160e01b600052603260045260246000fd5b6001600160a01b039283166020918202929092010152601354611acd91309116846110f0565b60135460405163791ac94760e01b81526001600160a01b039091169063791ac94790611b06908590600090869030904290600401612372565b600060405180830381600087803b158015611b2057600080fd5b505af1158015611402573d6000803e3d6000fd5b601354611b4c9030906001600160a01b0316846110f0565b6013546001600160a01b031663f305d719823085600080611b756000546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c4016060604051808303818588803b158015611bd857600080fd5b505af1158015611bec573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611c1191906122bd565b5050505050565b600d54158015611c285750600f54155b8015611c345750601154155b15611c3b57565b600d8054600e55600f8054601055601180546012556000928390559082905555565b6000806000806000806000611c7188611465565b9650965096509650965096509650611cb788600260008d6001600160a01b03166001600160a01b03168152602001908152602001600020546114c090919063ffffffff16565b6001600160a01b038b16600090815260026020908152604080832093909355600190522054611ce690886114c0565b6001600160a01b03808c1660009081526001602052604080822093909355908b1681522054611d159087611459565b6001600160a01b038a16600090815260016020526040902055611d3782611fbb565b611d4081612044565b611d4a858461214c565b886001600160a01b03168a6001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef86604051611d8f91815260200190565b60405180910390a350505050505050505050565b6000806000806000806000611db788611465565b9650965096509650965096509650611dfd87600160008d6001600160a01b03166001600160a01b03168152602001908152602001600020546114c090919063ffffffff16565b6001600160a01b03808c16600090815260016020908152604080832094909455918c16815260029091522054611e339085611459565b6001600160a01b038a16600090815260026020908152604080832093909355600190522054611d159087611459565b6000806000806000806000611e7688611465565b9650965096509650965096509650611ce687600160008d6001600160a01b03166001600160a01b03168152602001908152602001600020546114c090919063ffffffff16565b6000806000806000806000611ed088611465565b9650965096509650965096509650611f1688600260008d6001600160a01b03166001600160a01b03168152602001908152602001600020546114c090919063ffffffff16565b6001600160a01b038b16600090815260026020908152604080832093909355600190522054611dfd90886114c0565b60006107fa612710611f62600d54856110d890919063ffffffff16565b906110e4565b60006107fa612710611f62600f54856110d890919063ffffffff16565b6015546000906001600160a01b0316611fa057506000919050565b6107fa612710611f62601154856110d890919063ffffffff16565b6000611fc5611436565b90506000611fd383836110d8565b30600090815260016020526040902054909150611ff09082611459565b3060009081526001602090815260408083209390935560059052205460ff161561203f573060009081526002602052604090205461202e9084611459565b306000908152600260205260409020555b505050565b8015610754576000612054611436565b9050600061206283836110d8565b6015546001600160a01b031660009081526001602052604090205490915061208a9082611459565b601580546001600160a01b03908116600090815260016020908152604080832095909555925490911681526005909152205460ff1615612105576015546001600160a01b03166000908152600260205260409020546120e99084611459565b6015546001600160a01b03166000908152600260205260409020555b6015546001600160a01b0316336001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405161120891815260200190565b60085461215990836114c0565b6008556009546121699082611459565b6009555050565b8035801515811461218057600080fd5b919050565b600060208284031215612196578081fd5b81356108e6816124bc565b6000602082840312156121b2578081fd5b81516108e6816124bc565b600080604083850312156121cf578081fd5b82356121da816124bc565b915060208301356121ea816124bc565b809150509250929050565b600080600060608486031215612209578081fd5b8335612214816124bc565b92506020840135612224816124bc565b929592945050506040919091013590565b60008060408385031215612247578182fd5b8235612252816124bc565b946020939093013593505050565b600060208284031215612271578081fd5b6108e682612170565b60006020828403121561228b578081fd5b5035919050565b600080604083850312156122a4578182fd5b823591506122b460208401612170565b90509250929050565b6000806000606084860312156122d1578283fd5b8351925060208401519150604084015190509250925092565b6000602080835283518082850152825b81811015612316578581018301518582016040015282016122fa565b818111156123275783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b818110156123c15784516001600160a01b03168352938301939183019160010161239c565b50506001600160a01b03969096166060850152505050608001529392505050565b600082198211156123f5576123f56124a6565b500190565b60008261241557634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615612434576124346124a6565b500290565b60008282101561244b5761244b6124a6565b500390565b600181811c9082168061246457607f821691505b6020821081141561248557634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561249f5761249f6124a6565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461075457600080fdfe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212207e3b41b93796c8ebdd21ee5c839e053db14c69048c5516d6ce711d9c6583a48664736f6c634300080400330000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000712b9528a000000000000000000000000006258c967337d3faf0c2ba3adae5656ba95419d5f000000000000000000000000c985d172b8258dbd691bcd722317570397df274e00000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000000c8000000000000000000000000000000000000000000000000000000000000012c000000000000000000000000de28c7c4f0021f165681ff7f1c507d3d1e3a223000000000000000000000000000000000000000000000000d8d726b7177a8000000000000000000000000000000000000000000000000000000000000000000064b6f6e726120000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054b4f4e5241000000000000000000000000000000000000000000000000000000
Deployed ByteCode
0x6080604052600436106102085760003560e01c806349bd5a5e116101185780638ee88c53116100a0578063c49b9a801161006f578063c49b9a80146105fc578063dd62ed3e1461061c578063ea2f0b3714610662578063f2fde38b14610682578063ffa1ad74146106a257600080fd5b80638ee88c531461058757806395d89b41146105a7578063a457c2d7146105bc578063a9059cbb146105dc57600080fd5b80636bc87c3a116100e75780636bc87c3a146104e557806370a08231146104fb578063715018a61461051b57806388f82020146105305780638da5cb5b1461056957600080fd5b806349bd5a5e1461044b5780634a74bb021461046b57806352390c021461048c5780635342acb4146104ac57600080fd5b80632d8381191161019b5780633b124fe71161016a5780633b124fe7146103bf5780633bd5d173146103d557806340f8007a146103f5578063437823ec1461040b5780634549b0391461042b57600080fd5b80632d8381191461033d578063313ce5671461035d5780633685d4191461037f578063395093511461039f57600080fd5b80631694505e116101d75780631694505e146102b057806318160ddd146102e857806319a8ac9e146102fd57806323b872dd1461031d57600080fd5b8063061c82d01461021457806306fdde0314610236578063095ea7b31461026157806313114a9d1461029157600080fd5b3661020f57005b600080fd5b34801561022057600080fd5b5061023461022f36600461227a565b6106b7565b005b34801561024257600080fd5b5061024b610757565b60405161025891906122ea565b60405180910390f35b34801561026d57600080fd5b5061028161027c366004612235565b6107e9565b6040519015158152602001610258565b34801561029d57600080fd5b506009545b604051908152602001610258565b3480156102bc57600080fd5b506013546102d0906001600160a01b031681565b6040516001600160a01b039091168152602001610258565b3480156102f457600080fd5b506007546102a2565b34801561030957600080fd5b506015546102d0906001600160a01b031681565b34801561032957600080fd5b506102816103383660046121f5565b610800565b34801561034957600080fd5b506102a261035836600461227a565b610869565b34801561036957600080fd5b50600c5460405160ff9091168152602001610258565b34801561038b57600080fd5b5061023461039a366004612185565b6108ed565b3480156103ab57600080fd5b506102816103ba366004612235565b610adc565b3480156103cb57600080fd5b506102a2600d5481565b3480156103e157600080fd5b506102346103f036600461227a565b610b12565b34801561040157600080fd5b506102a260115481565b34801561041757600080fd5b50610234610426366004612185565b610bfe565b34801561043757600080fd5b506102a2610446366004612292565b610c4c565b34801561045757600080fd5b506014546102d0906001600160a01b031681565b34801561047757600080fd5b5060155461028190600160a81b900460ff1681565b34801561049857600080fd5b506102346104a7366004612185565b610cdb565b3480156104b857600080fd5b506102816104c7366004612185565b6001600160a01b031660009081526004602052604090205460ff1690565b3480156104f157600080fd5b506102a2600f5481565b34801561050757600080fd5b506102a2610516366004612185565b610e2e565b34801561052757600080fd5b50610234610e8d565b34801561053c57600080fd5b5061028161054b366004612185565b6001600160a01b031660009081526005602052604090205460ff1690565b34801561057557600080fd5b506000546001600160a01b03166102d0565b34801561059357600080fd5b506102346105a236600461227a565b610ec3565b3480156105b357600080fd5b5061024b610f08565b3480156105c857600080fd5b506102816105d7366004612235565b610f17565b3480156105e857600080fd5b506102816105f7366004612235565b610f66565b34801561060857600080fd5b50610234610617366004612260565b610f73565b34801561062857600080fd5b506102a26106373660046121bd565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b34801561066e57600080fd5b5061023461067d366004612185565b610ff5565b34801561068e57600080fd5b5061023461069d366004612185565b611040565b3480156106ae57600080fd5b506102a2600181565b6000546001600160a01b031633146106ea5760405162461bcd60e51b81526004016106e19061233d565b60405180910390fd5b600d819055601154600f546109c4919061070490846123e2565b61070e91906123e2565b11156107545760405162461bcd60e51b8152602060048201526015602482015274546f74616c20666565206973206f7665722032352560581b60448201526064016106e1565b50565b6060600a805461076690612450565b80601f016020809104026020016040519081016040528092919081815260200182805461079290612450565b80156107df5780601f106107b4576101008083540402835291602001916107df565b820191906000526020600020905b8154815290600101906020018083116107c257829003601f168201915b5050505050905090565b60006107f63384846110f0565b5060015b92915050565b600061080d848484611215565b61085f843361085a856040518060600160405280602881526020016124d2602891396001600160a01b038a166000908152600360209081526040808320338452909152902054919061140a565b6110f0565b5060019392505050565b60006008548211156108d05760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b60648201526084016106e1565b60006108da611436565b90506108e683826110e4565b9392505050565b6000546001600160a01b031633146109175760405162461bcd60e51b81526004016106e19061233d565b6001600160a01b03811660009081526005602052604090205460ff1661097f5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c75646564000000000060448201526064016106e1565b60005b600654811015610ad857816001600160a01b0316600682815481106109b757634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415610ac657600680546109e290600190612439565b81548110610a0057634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600680546001600160a01b039092169183908110610a3a57634e487b7160e01b600052603260045260246000fd5b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152600282526040808220829055600590925220805460ff191690556006805480610aa057634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b03191690550190555050565b80610ad08161248b565b915050610982565b5050565b3360008181526003602090815260408083206001600160a01b038716845290915281205490916107f691859061085a9086611459565b3360008181526005602052604090205460ff1615610b875760405162461bcd60e51b815260206004820152602c60248201527f4578636c75646564206164647265737365732063616e6e6f742063616c6c207460448201526b3434b990333ab731ba34b7b760a11b60648201526084016106e1565b6000610b9283611465565b5050506001600160a01b038616600090815260016020526040902054939450610bc0939250849150506114c0565b6001600160a01b038316600090815260016020526040902055600854610be690826114c0565b600855600954610bf69084611459565b600955505050565b6000546001600160a01b03163314610c285760405162461bcd60e51b81526004016106e19061233d565b6001600160a01b03166000908152600460205260409020805460ff19166001179055565b6000600754831115610ca05760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c790060448201526064016106e1565b81610cc0576000610cb084611465565b509496506107fa95505050505050565b6000610ccb84611465565b509396506107fa95505050505050565b6000546001600160a01b03163314610d055760405162461bcd60e51b81526004016106e19061233d565b6001600160a01b03811660009081526005602052604090205460ff1615610d6e5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c75646564000000000060448201526064016106e1565b6001600160a01b03811660009081526001602052604090205415610dc8576001600160a01b038116600090815260016020526040902054610dae90610869565b6001600160a01b0382166000908152600260205260409020555b6001600160a01b03166000818152600560205260408120805460ff191660019081179091556006805491820181559091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319169091179055565b6001600160a01b03811660009081526005602052604081205460ff1615610e6b57506001600160a01b031660009081526002602052604090205490565b6001600160a01b0382166000908152600160205260409020546107fa90610869565b6000546001600160a01b03163314610eb75760405162461bcd60e51b81526004016106e19061233d565b610ec160006114cc565b565b6000546001600160a01b03163314610eed5760405162461bcd60e51b81526004016106e19061233d565b600f819055601154600d546109c491906107049084906123e2565b6060600b805461076690612450565b60006107f6338461085a856040518060600160405280602581526020016124fa602591393360009081526003602090815260408083206001600160a01b038d168452909152902054919061140a565b60006107f6338484611215565b6000546001600160a01b03163314610f9d5760405162461bcd60e51b81526004016106e19061233d565b60158054821515600160a81b0260ff60a81b199091161790556040517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc15990610fea90831515815260200190565b60405180910390a150565b6000546001600160a01b0316331461101f5760405162461bcd60e51b81526004016106e19061233d565b6001600160a01b03166000908152600460205260409020805460ff19169055565b6000546001600160a01b0316331461106a5760405162461bcd60e51b81526004016106e19061233d565b6001600160a01b0381166110cf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106e1565b610754816114cc565b60006108e6828461241a565b60006108e682846123fa565b6001600160a01b0383166111525760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106e1565b6001600160a01b0382166111b35760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106e1565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166112795760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106e1565b6001600160a01b0382166112db5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106e1565b6000811161133d5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b60648201526084016106e1565b600061134830610e2e565b601654909150811080159081906113695750601554600160a01b900460ff16155b801561138357506014546001600160a01b03868116911614155b80156113985750601554600160a81b900460ff165b156113ab5760165491506113ab8261151c565b6001600160a01b03851660009081526004602052604090205460019060ff16806113ed57506001600160a01b03851660009081526004602052604090205460ff165b156113f6575060005b611402868686846115c3565b505050505050565b6000818484111561142e5760405162461bcd60e51b81526004016106e191906122ea565b505050900390565b6000806000611443611746565b909250905061145282826110e4565b9250505090565b60006108e682846123e2565b600080600080600080600080600080600061147f8c611900565b935093509350935060008060006114a08f87878761149b611436565b611955565b919f509d509b509599509397509195509350505050919395979092949650565b60006108e68284612439565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6015805460ff60a01b1916600160a01b179055600061153c8260026110e4565b9050600061154a83836114c0565b905047611556836119b7565b600061156247836114c0565b905061156e8382611b34565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a150506015805460ff60a01b19169055505050565b806115d0576115d0611c18565b6001600160a01b03841660009081526005602052604090205460ff16801561161157506001600160a01b03831660009081526005602052604090205460ff16155b1561162657611621848484611c5d565b611724565b6001600160a01b03841660009081526005602052604090205460ff1615801561166757506001600160a01b03831660009081526005602052604090205460ff165b1561167757611621848484611da3565b6001600160a01b03841660009081526005602052604090205460ff161580156116b957506001600160a01b03831660009081526005602052604090205460ff16155b156116c957611621848484611e62565b6001600160a01b03841660009081526005602052604090205460ff16801561170957506001600160a01b03831660009081526005602052604090205460ff165b1561171957611621848484611ebc565b611724848484611e62565b8061174057611740600e54600d55601054600f55601254601155565b50505050565b6008546007546000918291825b6006548110156118d05782600160006006848154811061178357634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400190205411806117fc57508160026000600684815481106117d557634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b1561181257600854600754945094505050509091565b611866600160006006848154811061183a57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400190205484906114c0565b92506118bc600260006006848154811061189057634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400190205483906114c0565b9150806118c88161248b565b915050611753565b506007546008546118e0916110e4565b8210156118f7576008546007549350935050509091565b90939092509050565b600080600080600061191186611f45565b9050600061191e87611f68565b9050600061192b88611f85565b905060006119458261193f85818d896114c0565b906114c0565b9993985091965094509092505050565b600080808061196489866110d8565b9050600061197289876110d8565b9050600061198089886110d8565b9050600061198e89896110d8565b905060006119a28261193f858189896114c0565b949d949c50929a509298505050505050505050565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106119fa57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201810191909152601354604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b158015611a4e57600080fd5b505afa158015611a62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a8691906121a1565b81600181518110611aa757634e487b7160e01b600052603260045260246000fd5b6001600160a01b039283166020918202929092010152601354611acd91309116846110f0565b60135460405163791ac94760e01b81526001600160a01b039091169063791ac94790611b06908590600090869030904290600401612372565b600060405180830381600087803b158015611b2057600080fd5b505af1158015611402573d6000803e3d6000fd5b601354611b4c9030906001600160a01b0316846110f0565b6013546001600160a01b031663f305d719823085600080611b756000546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c4016060604051808303818588803b158015611bd857600080fd5b505af1158015611bec573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611c1191906122bd565b5050505050565b600d54158015611c285750600f54155b8015611c345750601154155b15611c3b57565b600d8054600e55600f8054601055601180546012556000928390559082905555565b6000806000806000806000611c7188611465565b9650965096509650965096509650611cb788600260008d6001600160a01b03166001600160a01b03168152602001908152602001600020546114c090919063ffffffff16565b6001600160a01b038b16600090815260026020908152604080832093909355600190522054611ce690886114c0565b6001600160a01b03808c1660009081526001602052604080822093909355908b1681522054611d159087611459565b6001600160a01b038a16600090815260016020526040902055611d3782611fbb565b611d4081612044565b611d4a858461214c565b886001600160a01b03168a6001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef86604051611d8f91815260200190565b60405180910390a350505050505050505050565b6000806000806000806000611db788611465565b9650965096509650965096509650611dfd87600160008d6001600160a01b03166001600160a01b03168152602001908152602001600020546114c090919063ffffffff16565b6001600160a01b03808c16600090815260016020908152604080832094909455918c16815260029091522054611e339085611459565b6001600160a01b038a16600090815260026020908152604080832093909355600190522054611d159087611459565b6000806000806000806000611e7688611465565b9650965096509650965096509650611ce687600160008d6001600160a01b03166001600160a01b03168152602001908152602001600020546114c090919063ffffffff16565b6000806000806000806000611ed088611465565b9650965096509650965096509650611f1688600260008d6001600160a01b03166001600160a01b03168152602001908152602001600020546114c090919063ffffffff16565b6001600160a01b038b16600090815260026020908152604080832093909355600190522054611dfd90886114c0565b60006107fa612710611f62600d54856110d890919063ffffffff16565b906110e4565b60006107fa612710611f62600f54856110d890919063ffffffff16565b6015546000906001600160a01b0316611fa057506000919050565b6107fa612710611f62601154856110d890919063ffffffff16565b6000611fc5611436565b90506000611fd383836110d8565b30600090815260016020526040902054909150611ff09082611459565b3060009081526001602090815260408083209390935560059052205460ff161561203f573060009081526002602052604090205461202e9084611459565b306000908152600260205260409020555b505050565b8015610754576000612054611436565b9050600061206283836110d8565b6015546001600160a01b031660009081526001602052604090205490915061208a9082611459565b601580546001600160a01b03908116600090815260016020908152604080832095909555925490911681526005909152205460ff1615612105576015546001600160a01b03166000908152600260205260409020546120e99084611459565b6015546001600160a01b03166000908152600260205260409020555b6015546001600160a01b0316336001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405161120891815260200190565b60085461215990836114c0565b6008556009546121699082611459565b6009555050565b8035801515811461218057600080fd5b919050565b600060208284031215612196578081fd5b81356108e6816124bc565b6000602082840312156121b2578081fd5b81516108e6816124bc565b600080604083850312156121cf578081fd5b82356121da816124bc565b915060208301356121ea816124bc565b809150509250929050565b600080600060608486031215612209578081fd5b8335612214816124bc565b92506020840135612224816124bc565b929592945050506040919091013590565b60008060408385031215612247578182fd5b8235612252816124bc565b946020939093013593505050565b600060208284031215612271578081fd5b6108e682612170565b60006020828403121561228b578081fd5b5035919050565b600080604083850312156122a4578182fd5b823591506122b460208401612170565b90509250929050565b6000806000606084860312156122d1578283fd5b8351925060208401519150604084015190509250925092565b6000602080835283518082850152825b81811015612316578581018301518582016040015282016122fa565b818111156123275783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b818110156123c15784516001600160a01b03168352938301939183019160010161239c565b50506001600160a01b03969096166060850152505050608001529392505050565b600082198211156123f5576123f56124a6565b500190565b60008261241557634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615612434576124346124a6565b500290565b60008282101561244b5761244b6124a6565b500390565b600181811c9082168061246457607f821691505b6020821081141561248557634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561249f5761249f6124a6565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461075457600080fdfe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212207e3b41b93796c8ebdd21ee5c839e053db14c69048c5516d6ce711d9c6583a48664736f6c63430008040033