Overview
Max Total Supply
94,554,843.468984906 NEWS
Holders
388 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 9 Decimals)
Balance
0.000000001 NEWSValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Reset
Compiler Version
v0.8.16+commit.07a7930e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: NOLICENSE pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; /* Reset.News: * 100 Billion Supply * *INITIAL TAX: (updatable) *Fees on tx: 5% * divided as: * 0.5% burnt * 4.5% split as: * Liquidity: ~0.5% (11/100) * Development (in eth) : ~ 4% (89/100) * *Total Fee % for buy and sell can change independently (transfer between EOAs treated as sell) *MaxTx on sell: 1% of supply *Maxwallet: 1% of supply (updatable) * */ contract Reset is ERC20Burnable, Ownable { struct status { bool isExcludedFromFees; bool isAutomatedMarketMakerPair; bool isExcludedFromMaxTx; bool isExcludedFromMaxWallet; bool isBot; } event BlacklistedUser(address botAddress, bool indexed value); mapping(address => status) public statuses; uint256 public constant blocksToWait = 2; address payable public immutable devAddress; uint256 public liqAddedBlockNumber; uint256 public maxWalletAmount; struct swapFeesDistribution { uint64 dev_share; uint64 liq_share; } struct Fees { uint64 swap_tot; uint64 burn_tot; } Fees public buyFees = Fees({ swap_tot: 45, burn_tot: 5 }); Fees public sellFees = Fees({ swap_tot: 45, burn_tot: 5 }); swapFeesDistribution public swapFees = swapFeesDistribution({dev_share: 89, liq_share: 11}); address public immutable uniswapV2Pair; uint72 public numTokensToSwap; //9 bytes uint256 private constant supply = 100 * 10**9 * 10**9; //100B uint256 public constant maxTxAmountSell = supply/100; //1B IUniswapV2Router02 public UniswapV2Router; uint96 public unlocktime; constructor( IUniswapV2Router02 _UniswapV2Router, address payable _devAddress ) ERC20("Reset.News", "NEWS") { devAddress = _devAddress; uniswapV2Pair = IUniswapV2Factory(_UniswapV2Router.factory()) .createPair(address(this), _UniswapV2Router.WETH()); _approve( address(this), address(_UniswapV2Router), type(uint256).max ); UniswapV2Router = _UniswapV2Router; statuses[owner()].isExcludedFromFees = true; statuses[owner()].isExcludedFromMaxWallet = true; statuses[owner()].isExcludedFromMaxTx = true; statuses[address(this)].isExcludedFromFees = true; statuses[address(this)].isExcludedFromMaxWallet = true; statuses[address(this)].isExcludedFromMaxTx = true; statuses[uniswapV2Pair].isExcludedFromMaxWallet = true; statuses[uniswapV2Pair].isAutomatedMarketMakerPair = true; maxWalletAmount = maxTxAmountSell; numTokensToSwap = uint72(supply) / 1000; unlocktime = uint96(block.timestamp) + 365 days; _mint(owner(),supply); } function decimals() public view virtual override returns (uint8) { return 9; } function setSwapFeesDistribution(swapFeesDistribution memory _swapFees ) external onlyOwner{ require(_swapFees.dev_share+_swapFees.liq_share==100,"fees do not add up to 100"); swapFees=_swapFees; } receive() external payable {} function setStatus(address user, status memory _status) external onlyOwner{ statuses[user]=_status; } function _transfer( address from, address to, uint256 amount ) internal override { if(liqAddedBlockNumber==0 && statuses[to].isAutomatedMarketMakerPair ) {liqAddedBlockNumber = block.number; } require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(!statuses[from].isBot, "ERC20: address blacklisted (bot)"); require(amount != 0, "Transfer amount must be greater than zero"); require(amount <= balanceOf(from),"You are trying to transfer more than your balance"); bool takeFee = !(statuses[from].isExcludedFromFees || statuses[to].isExcludedFromFees); if(takeFee) { Fees memory appliedRates; if(block.number<liqAddedBlockNumber+blocksToWait && (statuses[from].isAutomatedMarketMakerPair!=statuses[to].isAutomatedMarketMakerPair)) { address toBlacklist = statuses[from].isAutomatedMarketMakerPair ? to : from; statuses[toBlacklist].isBot = true; emit BlacklistedUser(toBlacklist,true); appliedRates = Fees({ swap_tot: 990, burn_tot: 0 }); } else { appliedRates = statuses[from].isAutomatedMarketMakerPair ? buyFees : sellFees; } if(statuses[to].isAutomatedMarketMakerPair) { require(statuses[from].isExcludedFromMaxTx || statuses[to].isExcludedFromMaxTx || amount<=maxTxAmountSell, "amount must be <= maxTxAmountSell"); if (balanceOf(address(this)) >= numTokensToSwap) { swap(numTokensToSwap); } } uint256 toSwap = (amount * appliedRates.swap_tot) / 1000; uint256 toBurn = (amount * appliedRates.burn_tot) / 1000; amount-= (toSwap+toBurn); require(statuses[to].isExcludedFromMaxWallet || (balanceOf(to)+amount) <= maxWalletAmount, "Recipient cannot hold more than maxWalletAmount"); super._transfer(from,address(this),toSwap); if(toBurn!=0) _burn(from,toBurn); } super._transfer(from,to,amount); } function swap(uint256 contractTokenBalance) private { uint256 denominator = 100 * 2; uint256 tokensToAddLiquidityWith = (contractTokenBalance * swapFees.liq_share) / denominator; uint256 toSwap = contractTokenBalance - tokensToAddLiquidityWith; uint256 initialBalance = address(this).balance; swapTokensForETH(toSwap); uint256 deltaBalance = address(this).balance - initialBalance; uint256 ETHToAddLiquidityWith = (deltaBalance * swapFees.liq_share) / (denominator - swapFees.liq_share); // add liq_share to Uniswap addLiquidity(tokensToAddLiquidityWith, ETHToAddLiquidityWith); devAddress.transfer(address(this).balance); } 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(); // make the swap UniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // accept any amount of ETH path, address(this), block.timestamp ); } function addLiquidity(uint256 tokenAmount, uint256 ETHAmount) private { // add the liq_share UniswapV2Router.addLiquidityETH{value: ETHAmount}( address(this), tokenAmount, 0, // slippage is unavoidable 0, // slippage is unavoidable address(this), block.timestamp ); } function setMaxWalletAmount(uint72 amount) external onlyOwner { maxWalletAmount = amount; } function unlock(IERC20 token) public { require(block.timestamp >= unlocktime, "TokenTimelock: current time is before release time"); uint256 amount = token.balanceOf(address(this)); require(amount > 0, "TokenTimelock: no tokens to release"); SafeERC20.safeTransfer(token,devAddress, amount); } function setNumTokensSellToSwap(uint72 amount) external onlyOwner { numTokensToSwap = amount; } function extendLock(uint96 newLockTime) external onlyOwner{ require(newLockTime > block.timestamp, "lock must not be expired"); require(newLockTime > unlocktime, "lock can't be shortened"); unlocktime = newLockTime; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
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, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IUniswapV2Router02","name":"_UniswapV2Router","type":"address"},{"internalType":"address payable","name":"_devAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"botAddress","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"BlacklistedUser","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"UniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blocksToWait","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"buyFees","outputs":[{"internalType":"uint64","name":"swap_tot","type":"uint64"},{"internalType":"uint64","name":"burn_tot","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint96","name":"newLockTime","type":"uint96"}],"name":"extendLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"liqAddedBlockNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTxAmountSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWalletAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numTokensToSwap","outputs":[{"internalType":"uint72","name":"","type":"uint72"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellFees","outputs":[{"internalType":"uint64","name":"swap_tot","type":"uint64"},{"internalType":"uint64","name":"burn_tot","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint72","name":"amount","type":"uint72"}],"name":"setMaxWalletAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint72","name":"amount","type":"uint72"}],"name":"setNumTokensSellToSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"components":[{"internalType":"bool","name":"isExcludedFromFees","type":"bool"},{"internalType":"bool","name":"isAutomatedMarketMakerPair","type":"bool"},{"internalType":"bool","name":"isExcludedFromMaxTx","type":"bool"},{"internalType":"bool","name":"isExcludedFromMaxWallet","type":"bool"},{"internalType":"bool","name":"isBot","type":"bool"}],"internalType":"struct Reset.status","name":"_status","type":"tuple"}],"name":"setStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint64","name":"dev_share","type":"uint64"},{"internalType":"uint64","name":"liq_share","type":"uint64"}],"internalType":"struct Reset.swapFeesDistribution","name":"_swapFees","type":"tuple"}],"name":"setSwapFeesDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"statuses","outputs":[{"internalType":"bool","name":"isExcludedFromFees","type":"bool"},{"internalType":"bool","name":"isAutomatedMarketMakerPair","type":"bool"},{"internalType":"bool","name":"isExcludedFromMaxTx","type":"bool"},{"internalType":"bool","name":"isExcludedFromMaxWallet","type":"bool"},{"internalType":"bool","name":"isBot","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapFees","outputs":[{"internalType":"uint64","name":"dev_share","type":"uint64"},{"internalType":"uint64","name":"liq_share","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlocktime","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
602d60c0819052600560e0819052600980546001600160801b03199081166805000000000000002d9081179092556101009390935261012091909152600a805483169091179055610180604052605961014052600b6101608190528054909116680b00000000000000591790553480156200007957600080fd5b5060405162002e3138038062002e318339810160408190526200009c9162000716565b6040518060400160405280600a81526020016952657365742e4e65777360b01b815250604051806040016040528060048152602001634e45575360e01b8152508160039081620000ed9190620007f9565b506004620000fc8282620007f9565b50505062000119620001136200049160201b60201c565b62000495565b806001600160a01b03166080816001600160a01b031681525050816001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000172573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001989190620008c5565b6001600160a01b031663c9c6539630846001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015620001e6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020c9190620008c5565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af11580156200025a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002809190620008c5565b6001600160a01b031660a0526200029b3083600019620004e7565b600c8054600160481b600160e81b03191669010000000000000000006001600160a01b03851602179055600160066000620002de6005546001600160a01b031690565b6001600160a01b0316815260208101919091526040016000908120805460ff191692151592909217909155600190600690620003226005546001600160a01b031690565b6001600160a01b0316815260208101919091526040016000908120805492151563010000000263ff0000001990931692909217909155600190600690620003716005546001600160a01b031690565b6001600160a01b03908116825260208083019390935260409182016000908120805462ff000019166201000096151596909602959095179094553084526006909252808320805463ffff00ff1916630101000117905560a05190911682529020805463ff00ff0019166301000100179055620003f8606468056bc75e2d6310000062000918565b600855620004126103e868056bc75e2d631000006200092f565b600c80546001600160481b0319166001600160481b039290921691909117905562000442426301e1338062000958565b600d80546001600160601b0319166001600160601b039290921691909117905562000489620004796005546001600160a01b031690565b68056bc75e2d6310000062000613565b50506200099e565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166200054f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084015b60405180910390fd5b6001600160a01b038216620005b25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840162000546565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0382166200066b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000546565b80600260008282546200067f919062000982565b90915550506001600160a01b03821660009081526020819052604081208054839290620006ae90849062000982565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b505050565b6001600160a01b03811681146200071357600080fd5b50565b600080604083850312156200072a57600080fd5b82516200073781620006fd565b60208401519092506200074a81620006fd565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200078057607f821691505b602082108103620007a157634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620006f857600081815260208120601f850160051c81016020861015620007d05750805b601f850160051c820191505b81811015620007f157828155600101620007dc565b505050505050565b81516001600160401b0381111562000815576200081562000755565b6200082d816200082684546200076b565b84620007a7565b602080601f8311600181146200086557600084156200084c5750858301515b600019600386901b1c1916600185901b178555620007f1565b600085815260208120601f198616915b82811015620008965788860151825594840194600190910190840162000875565b5085821015620008b55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215620008d857600080fd5b8151620008e581620006fd565b9392505050565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000826200092a576200092a620008ec565b500490565b60006001600160481b03838116806200094c576200094c620008ec565b92169190910492915050565b6001600160601b038181168382160190808211156200097b576200097b62000902565b5092915050565b8082018082111562000998576200099862000902565b92915050565b60805160a05161245f620009d2600039600061045d0152600081816103e901528181610a7f01526118a9015261245f6000f3fe6080604052600436106102085760003560e01c806378edcbc611610118578063af11c1f0116100a0578063dd62ed3e1161006f578063dd62ed3e146106c8578063e0f3ccf5146106e8578063e10dd73c14610713578063e4748b9e14610733578063f2fde38b1461075e57600080fd5b8063af11c1f0146105c9578063b9ccf21d14610653578063d44e586e1461069e578063d8dcac4f146106b357600080fd5b80638da5cb5b116100e75780638da5cb5b1461054057806395d89b411461055e578063a457c2d714610573578063a9059cbb14610593578063aa4bde28146105b357600080fd5b806378edcbc6146104ca57806379cc6790146104ea5780638a0eef5a1461050a5780638b5f27311461052057600080fd5b8063313ce5671161019b57806342966c681161016a57806342966c681461040b57806346f083e91461042b57806349bd5a5e1461044b57806370a082311461047f578063715018a6146104b557600080fd5b8063313ce56714610363578063323772ee1461037f57806339509351146103b75780633ad10ef6146103d757600080fd5b8063095ea7b3116101d7578063095ea7b3146102d457806318160ddd1461030457806323b872dd146103235780632f6c493c1461034357600080fd5b806301a6c43b146102145780630202703d14610251578063055add0d1461027357806306fdde03146102b257600080fd5b3661020f57005b600080fd5b34801561022057600080fd5b50600c54610234906001600160481b031681565b6040516001600160481b0390911681526020015b60405180910390f35b34801561025d57600080fd5b5061027161026c366004611ea5565b61077e565b005b34801561027f57600080fd5b50600c5461029a90600160481b90046001600160a01b031681565b6040516001600160a01b039091168152602001610248565b3480156102be57600080fd5b506102c7610868565b6040516102489190611ef2565b3480156102e057600080fd5b506102f46102ef366004611f3a565b6108fa565b6040519015158152602001610248565b34801561031057600080fd5b506002545b604051908152602001610248565b34801561032f57600080fd5b506102f461033e366004611f66565b610914565b34801561034f57600080fd5b5061027161035e366004611fa7565b61093a565b34801561036f57600080fd5b5060405160098152602001610248565b34801561038b57600080fd5b50600d5461039f906001600160601b031681565b6040516001600160601b039091168152602001610248565b3480156103c357600080fd5b506102f46103d2366004611f3a565b610aa8565b3480156103e357600080fd5b5061029a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561041757600080fd5b50610271610426366004611fc4565b610aca565b34801561043757600080fd5b50610271610446366004611ff9565b610ad7565b34801561045757600080fd5b5061029a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561048b57600080fd5b5061031561049a366004611fa7565b6001600160a01b031660009081526020819052604090205490565b3480156104c157600080fd5b50610271610b88565b3480156104d657600080fd5b506102716104e5366004612061565b610b9c565b3480156104f657600080fd5b50610271610505366004611f3a565b610bb2565b34801561051657600080fd5b5061031560075481565b34801561052c57600080fd5b5061027161053b366004612061565b610bc7565b34801561054c57600080fd5b506005546001600160a01b031661029a565b34801561056a57600080fd5b506102c7610bf3565b34801561057f57600080fd5b506102f461058e366004611f3a565b610c02565b34801561059f57600080fd5b506102f46105ae366004611f3a565b610c88565b3480156105bf57600080fd5b5061031560085481565b3480156105d557600080fd5b506106216105e4366004611fa7565b60066020526000908152604090205460ff808216916101008104821691620100008204811691630100000081048216916401000000009091041685565b60408051951515865293151560208601529115159284019290925290151560608301521515608082015260a001610248565b34801561065f57600080fd5b50600b5461067e906001600160401b0380821691600160401b90041682565b604080516001600160401b03938416815292909116602083015201610248565b3480156106aa57600080fd5b50610315610c96565b3480156106bf57600080fd5b50610315600281565b3480156106d457600080fd5b506103156106e336600461208a565b610cad565b3480156106f457600080fd5b50600a5461067e906001600160401b0380821691600160401b90041682565b34801561071f57600080fd5b5061027161072e3660046120d1565b610cd8565b34801561073f57600080fd5b5060095461067e906001600160401b0380821691600160401b90041682565b34801561076a57600080fd5b50610271610779366004611fa7565b610d7e565b610786610df4565b42816001600160601b0316116107e35760405162461bcd60e51b815260206004820152601860248201527f6c6f636b206d757374206e6f742062652065787069726564000000000000000060448201526064015b60405180910390fd5b600d546001600160601b03908116908216116108415760405162461bcd60e51b815260206004820152601760248201527f6c6f636b2063616e27742062652073686f7274656e656400000000000000000060448201526064016107da565b600d80546bffffffffffffffffffffffff19166001600160601b0392909216919091179055565b6060600380546108779061219f565b80601f01602080910402602001604051908101604052809291908181526020018280546108a39061219f565b80156108f05780601f106108c5576101008083540402835291602001916108f0565b820191906000526020600020905b8154815290600101906020018083116108d357829003601f168201915b5050505050905090565b600033610908818585610e4e565b60019150505b92915050565b600033610922858285610f72565b61092d858585610fec565b60019150505b9392505050565b600d546001600160601b03164210156109b05760405162461bcd60e51b815260206004820152603260248201527f546f6b656e54696d656c6f636b3a2063757272656e742074696d65206973206260448201527165666f72652072656c656173652074696d6560701b60648201526084016107da565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156109f7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1b91906121d9565b905060008111610a795760405162461bcd60e51b815260206004820152602360248201527f546f6b656e54696d656c6f636b3a206e6f20746f6b656e7320746f2072656c6560448201526261736560e81b60648201526084016107da565b610aa4827f0000000000000000000000000000000000000000000000000000000000000000836115fa565b5050565b600033610908818585610abb8383610cad565b610ac59190612208565b610e4e565b610ad43382611651565b50565b610adf610df4565b60208101518151610af0919061221b565b6001600160401b0316606414610b485760405162461bcd60e51b815260206004820152601960248201527f6665657320646f206e6f742061646420757020746f203130300000000000000060448201526064016107da565b8051600b80546020909301516001600160401b03908116600160401b026fffffffffffffffffffffffffffffffff19909416921691909117919091179055565b610b90610df4565b610b9a600061179f565b565b610ba4610df4565b6001600160481b0316600855565b610bbd823383610f72565b610aa48282611651565b610bcf610df4565b600c805468ffffffffffffffffff19166001600160481b0392909216919091179055565b6060600480546108779061219f565b60003381610c108286610cad565b905083811015610c705760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016107da565b610c7d8286868403610e4e565b506001949350505050565b600033610908818585610fec565b610caa606468056bc75e2d63100000612242565b81565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610ce0610df4565b6001600160a01b03909116600090815260066020908152604091829020835181549285015193850151606086015160809096015115156401000000000264ff000000001996151563010000000263ff0000001992151562010000029290921663ffff0000199615156101000261ff00199415159490941661ffff19909616959095179290921794909416929092179290921792909216919091179055565b610d86610df4565b6001600160a01b038116610deb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107da565b610ad48161179f565b6005546001600160a01b03163314610b9a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107da565b6001600160a01b038316610eb05760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107da565b6001600160a01b038216610f115760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107da565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610f7e8484610cad565b90506000198114610fe65781811015610fd95760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016107da565b610fe68484848403610e4e565b50505050565b60075415801561101957506001600160a01b038216600090815260066020526040902054610100900460ff165b1561102357436007555b6001600160a01b0383166110495760405162461bcd60e51b81526004016107da90612264565b6001600160a01b03821661106f5760405162461bcd60e51b81526004016107da906122a9565b6001600160a01b038316600090815260066020526040902054640100000000900460ff16156110e05760405162461bcd60e51b815260206004820181905260248201527f45524332303a206164647265737320626c61636b6c69737465642028626f742960448201526064016107da565b806000036111425760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b60648201526084016107da565b6001600160a01b0383166000908152602081905260409020548111156111c45760405162461bcd60e51b815260206004820152603160248201527f596f752061726520747279696e6720746f207472616e73666572206d6f7265206044820152707468616e20796f75722062616c616e636560781b60648201526084016107da565b6001600160a01b03831660009081526006602052604081205460ff168061120357506001600160a01b03831660009081526006602052604090205460ff165b15905080156115ef576040805180820190915260008082526020820152600260075461122f9190612208565b4310801561127357506001600160a01b038481166000908152600660205260408082205492881682529020546101009182900460ff90811615159290910416151514155b15611327576001600160a01b038516600090815260066020526040812054610100900460ff166112a357856112a5565b845b6001600160a01b038116600081815260066020908152604091829020805464ff00000000191664010000000017905590519182529192506001917f3159dadbd8e2d720a851b412e3358e7e44bb11734c9bfd5715340e21798e8b25910160405180910390a25050604080518082019091526103de815260006020820152611380565b6001600160a01b038516600090815260066020526040902054610100900460ff1661135357600a611356565b60095b6040805180820190915290546001600160401b038082168352600160401b90910416602082015290505b6001600160a01b038416600090815260066020526040902054610100900460ff16156114aa576001600160a01b03851660009081526006602052604090205462010000900460ff16806113f157506001600160a01b03841660009081526006602052604090205462010000900460ff165b8061140f575061140b606468056bc75e2d63100000612242565b8311155b6114655760405162461bcd60e51b815260206004820152602160248201527f616d6f756e74206d757374206265203c3d206d61785478416d6f756e7453656c6044820152601b60fa1b60648201526084016107da565b600c546001600160481b0316611490306001600160a01b031660009081526020819052604090205490565b106114aa57600c546114aa906001600160481b03166117f1565b80516000906103e8906114c6906001600160401b0316866122ec565b6114d09190612242565b905060006103e883602001516001600160401b0316866114f091906122ec565b6114fa9190612242565b90506115068183612208565b611510908661230b565b6001600160a01b0387166000908152600660205260409020549095506301000000900460ff168061156c57506008548561155f886001600160a01b031660009081526020819052604090205490565b6115699190612208565b11155b6115d05760405162461bcd60e51b815260206004820152602f60248201527f526563697069656e742063616e6e6f7420686f6c64206d6f7265207468616e2060448201526e1b585e15d85b1b195d105b5bdd5b9d608a1b60648201526084016107da565b6115db8730846118fb565b80156115eb576115eb8782611651565b5050505b610fe68484846118fb565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261164c908490611a4f565b505050565b6001600160a01b0382166116b15760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016107da565b6001600160a01b038216600090815260208190526040902054818110156117255760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016107da565b6001600160a01b038316600090815260208190526040812083830390556002805484929061175490849061230b565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600b5460c890600090829061181690600160401b90046001600160401b0316856122ec565b6118209190612242565b9050600061182e828561230b565b90504761183a82611b21565b6000611846824761230b565b600b5490915060009061186990600160401b90046001600160401b03168761230b565b600b5461188690600160401b90046001600160401b0316846122ec565b6118909190612242565b905061189c8582611c85565b6040516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016904780156108fc02916000818181858888f193505050501580156118f1573d6000803e3d6000fd5b5050505050505050565b6001600160a01b0383166119215760405162461bcd60e51b81526004016107da90612264565b6001600160a01b0382166119475760405162461bcd60e51b81526004016107da906122a9565b6001600160a01b038316600090815260208190526040902054818110156119bf5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016107da565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906119f6908490612208565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611a4291815260200190565b60405180910390a3610fe6565b6000611aa4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611d249092919063ffffffff16565b80519091501561164c5780806020019051810190611ac2919061231e565b61164c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016107da565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611b5657611b5661233b565b60200260200101906001600160a01b031690816001600160a01b031681525050600c60099054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bed9190612351565b81600181518110611c0057611c0061233b565b6001600160a01b039283166020918202929092010152600c5460405163791ac94760e01b8152600160481b9091049091169063791ac94790611c4f90859060009086903090429060040161236e565b600060405180830381600087803b158015611c6957600080fd5b505af1158015611c7d573d6000803e3d6000fd5b505050505050565b600c5460405163f305d71960e01b8152306004820181905260248201859052600060448301819052606483015260848201524260a4820152600160481b9091046001600160a01b03169063f305d71990839060c40160606040518083038185885af1158015611cf8573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611d1d91906123df565b5050505050565b6060611d338484600085611d3b565b949350505050565b606082471015611d9c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016107da565b6001600160a01b0385163b611df35760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016107da565b600080866001600160a01b03168587604051611e0f919061240d565b60006040518083038185875af1925050503d8060008114611e4c576040519150601f19603f3d011682016040523d82523d6000602084013e611e51565b606091505b5091509150611e61828286611e6c565b979650505050505050565b60608315611e7b575081610933565b825115611e8b5782518084602001fd5b8160405162461bcd60e51b81526004016107da9190611ef2565b600060208284031215611eb757600080fd5b81356001600160601b038116811461093357600080fd5b60005b83811015611ee9578181015183820152602001611ed1565b50506000910152565b6020815260008251806020840152611f11816040850160208701611ece565b601f01601f19169190910160400192915050565b6001600160a01b0381168114610ad457600080fd5b60008060408385031215611f4d57600080fd5b8235611f5881611f25565b946020939093013593505050565b600080600060608486031215611f7b57600080fd5b8335611f8681611f25565b92506020840135611f9681611f25565b929592945050506040919091013590565b600060208284031215611fb957600080fd5b813561093381611f25565b600060208284031215611fd657600080fd5b5035919050565b80356001600160401b0381168114611ff457600080fd5b919050565b60006040828403121561200b57600080fd5b604051604081018181106001600160401b038211171561203b57634e487b7160e01b600052604160045260246000fd5b60405261204783611fdd565b815261205560208401611fdd565b60208201529392505050565b60006020828403121561207357600080fd5b81356001600160481b038116811461093357600080fd5b6000806040838503121561209d57600080fd5b82356120a881611f25565b915060208301356120b881611f25565b809150509250929050565b8015158114610ad457600080fd5b60008082840360c08112156120e557600080fd5b83356120f081611f25565b925060a0601f198201121561210457600080fd5b5060405160a081018181106001600160401b038211171561213557634e487b7160e01b600052604160045260246000fd5b6040526020840135612146816120c3565b81526040840135612156816120c3565b60208201526060840135612169816120c3565b6040820152608084013561217c816120c3565b606082015260a084013561218f816120c3565b6080820152919491935090915050565b600181811c908216806121b357607f821691505b6020821081036121d357634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156121eb57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561090e5761090e6121f2565b6001600160401b0381811683821601908082111561223b5761223b6121f2565b5092915050565b60008261225f57634e487b7160e01b600052601260045260246000fd5b500490565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6000816000190483118215151615612306576123066121f2565b500290565b8181038181111561090e5761090e6121f2565b60006020828403121561233057600080fd5b8151610933816120c3565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561236357600080fd5b815161093381611f25565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156123be5784516001600160a01b031683529383019391830191600101612399565b50506001600160a01b03969096166060850152505050608001529392505050565b6000806000606084860312156123f457600080fd5b8351925060208401519150604084015190509250925092565b6000825161241f818460208701611ece565b919091019291505056fea264697066735822122070825416b205666c7a04e7356bd586f7ba15c9b93e34594e0745feba144f639264736f6c634300081000330000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000d11d62e98a2485c03827d1af1f4ad8fbe2a04f46
Deployed Bytecode
0x6080604052600436106102085760003560e01c806378edcbc611610118578063af11c1f0116100a0578063dd62ed3e1161006f578063dd62ed3e146106c8578063e0f3ccf5146106e8578063e10dd73c14610713578063e4748b9e14610733578063f2fde38b1461075e57600080fd5b8063af11c1f0146105c9578063b9ccf21d14610653578063d44e586e1461069e578063d8dcac4f146106b357600080fd5b80638da5cb5b116100e75780638da5cb5b1461054057806395d89b411461055e578063a457c2d714610573578063a9059cbb14610593578063aa4bde28146105b357600080fd5b806378edcbc6146104ca57806379cc6790146104ea5780638a0eef5a1461050a5780638b5f27311461052057600080fd5b8063313ce5671161019b57806342966c681161016a57806342966c681461040b57806346f083e91461042b57806349bd5a5e1461044b57806370a082311461047f578063715018a6146104b557600080fd5b8063313ce56714610363578063323772ee1461037f57806339509351146103b75780633ad10ef6146103d757600080fd5b8063095ea7b3116101d7578063095ea7b3146102d457806318160ddd1461030457806323b872dd146103235780632f6c493c1461034357600080fd5b806301a6c43b146102145780630202703d14610251578063055add0d1461027357806306fdde03146102b257600080fd5b3661020f57005b600080fd5b34801561022057600080fd5b50600c54610234906001600160481b031681565b6040516001600160481b0390911681526020015b60405180910390f35b34801561025d57600080fd5b5061027161026c366004611ea5565b61077e565b005b34801561027f57600080fd5b50600c5461029a90600160481b90046001600160a01b031681565b6040516001600160a01b039091168152602001610248565b3480156102be57600080fd5b506102c7610868565b6040516102489190611ef2565b3480156102e057600080fd5b506102f46102ef366004611f3a565b6108fa565b6040519015158152602001610248565b34801561031057600080fd5b506002545b604051908152602001610248565b34801561032f57600080fd5b506102f461033e366004611f66565b610914565b34801561034f57600080fd5b5061027161035e366004611fa7565b61093a565b34801561036f57600080fd5b5060405160098152602001610248565b34801561038b57600080fd5b50600d5461039f906001600160601b031681565b6040516001600160601b039091168152602001610248565b3480156103c357600080fd5b506102f46103d2366004611f3a565b610aa8565b3480156103e357600080fd5b5061029a7f000000000000000000000000d11d62e98a2485c03827d1af1f4ad8fbe2a04f4681565b34801561041757600080fd5b50610271610426366004611fc4565b610aca565b34801561043757600080fd5b50610271610446366004611ff9565b610ad7565b34801561045757600080fd5b5061029a7f000000000000000000000000d5bd3e2b8984c7e553740913cc7c0fd9bb08bae281565b34801561048b57600080fd5b5061031561049a366004611fa7565b6001600160a01b031660009081526020819052604090205490565b3480156104c157600080fd5b50610271610b88565b3480156104d657600080fd5b506102716104e5366004612061565b610b9c565b3480156104f657600080fd5b50610271610505366004611f3a565b610bb2565b34801561051657600080fd5b5061031560075481565b34801561052c57600080fd5b5061027161053b366004612061565b610bc7565b34801561054c57600080fd5b506005546001600160a01b031661029a565b34801561056a57600080fd5b506102c7610bf3565b34801561057f57600080fd5b506102f461058e366004611f3a565b610c02565b34801561059f57600080fd5b506102f46105ae366004611f3a565b610c88565b3480156105bf57600080fd5b5061031560085481565b3480156105d557600080fd5b506106216105e4366004611fa7565b60066020526000908152604090205460ff808216916101008104821691620100008204811691630100000081048216916401000000009091041685565b60408051951515865293151560208601529115159284019290925290151560608301521515608082015260a001610248565b34801561065f57600080fd5b50600b5461067e906001600160401b0380821691600160401b90041682565b604080516001600160401b03938416815292909116602083015201610248565b3480156106aa57600080fd5b50610315610c96565b3480156106bf57600080fd5b50610315600281565b3480156106d457600080fd5b506103156106e336600461208a565b610cad565b3480156106f457600080fd5b50600a5461067e906001600160401b0380821691600160401b90041682565b34801561071f57600080fd5b5061027161072e3660046120d1565b610cd8565b34801561073f57600080fd5b5060095461067e906001600160401b0380821691600160401b90041682565b34801561076a57600080fd5b50610271610779366004611fa7565b610d7e565b610786610df4565b42816001600160601b0316116107e35760405162461bcd60e51b815260206004820152601860248201527f6c6f636b206d757374206e6f742062652065787069726564000000000000000060448201526064015b60405180910390fd5b600d546001600160601b03908116908216116108415760405162461bcd60e51b815260206004820152601760248201527f6c6f636b2063616e27742062652073686f7274656e656400000000000000000060448201526064016107da565b600d80546bffffffffffffffffffffffff19166001600160601b0392909216919091179055565b6060600380546108779061219f565b80601f01602080910402602001604051908101604052809291908181526020018280546108a39061219f565b80156108f05780601f106108c5576101008083540402835291602001916108f0565b820191906000526020600020905b8154815290600101906020018083116108d357829003601f168201915b5050505050905090565b600033610908818585610e4e565b60019150505b92915050565b600033610922858285610f72565b61092d858585610fec565b60019150505b9392505050565b600d546001600160601b03164210156109b05760405162461bcd60e51b815260206004820152603260248201527f546f6b656e54696d656c6f636b3a2063757272656e742074696d65206973206260448201527165666f72652072656c656173652074696d6560701b60648201526084016107da565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156109f7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1b91906121d9565b905060008111610a795760405162461bcd60e51b815260206004820152602360248201527f546f6b656e54696d656c6f636b3a206e6f20746f6b656e7320746f2072656c6560448201526261736560e81b60648201526084016107da565b610aa4827f000000000000000000000000d11d62e98a2485c03827d1af1f4ad8fbe2a04f46836115fa565b5050565b600033610908818585610abb8383610cad565b610ac59190612208565b610e4e565b610ad43382611651565b50565b610adf610df4565b60208101518151610af0919061221b565b6001600160401b0316606414610b485760405162461bcd60e51b815260206004820152601960248201527f6665657320646f206e6f742061646420757020746f203130300000000000000060448201526064016107da565b8051600b80546020909301516001600160401b03908116600160401b026fffffffffffffffffffffffffffffffff19909416921691909117919091179055565b610b90610df4565b610b9a600061179f565b565b610ba4610df4565b6001600160481b0316600855565b610bbd823383610f72565b610aa48282611651565b610bcf610df4565b600c805468ffffffffffffffffff19166001600160481b0392909216919091179055565b6060600480546108779061219f565b60003381610c108286610cad565b905083811015610c705760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016107da565b610c7d8286868403610e4e565b506001949350505050565b600033610908818585610fec565b610caa606468056bc75e2d63100000612242565b81565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610ce0610df4565b6001600160a01b03909116600090815260066020908152604091829020835181549285015193850151606086015160809096015115156401000000000264ff000000001996151563010000000263ff0000001992151562010000029290921663ffff0000199615156101000261ff00199415159490941661ffff19909616959095179290921794909416929092179290921792909216919091179055565b610d86610df4565b6001600160a01b038116610deb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107da565b610ad48161179f565b6005546001600160a01b03163314610b9a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107da565b6001600160a01b038316610eb05760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107da565b6001600160a01b038216610f115760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107da565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610f7e8484610cad565b90506000198114610fe65781811015610fd95760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016107da565b610fe68484848403610e4e565b50505050565b60075415801561101957506001600160a01b038216600090815260066020526040902054610100900460ff165b1561102357436007555b6001600160a01b0383166110495760405162461bcd60e51b81526004016107da90612264565b6001600160a01b03821661106f5760405162461bcd60e51b81526004016107da906122a9565b6001600160a01b038316600090815260066020526040902054640100000000900460ff16156110e05760405162461bcd60e51b815260206004820181905260248201527f45524332303a206164647265737320626c61636b6c69737465642028626f742960448201526064016107da565b806000036111425760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b60648201526084016107da565b6001600160a01b0383166000908152602081905260409020548111156111c45760405162461bcd60e51b815260206004820152603160248201527f596f752061726520747279696e6720746f207472616e73666572206d6f7265206044820152707468616e20796f75722062616c616e636560781b60648201526084016107da565b6001600160a01b03831660009081526006602052604081205460ff168061120357506001600160a01b03831660009081526006602052604090205460ff165b15905080156115ef576040805180820190915260008082526020820152600260075461122f9190612208565b4310801561127357506001600160a01b038481166000908152600660205260408082205492881682529020546101009182900460ff90811615159290910416151514155b15611327576001600160a01b038516600090815260066020526040812054610100900460ff166112a357856112a5565b845b6001600160a01b038116600081815260066020908152604091829020805464ff00000000191664010000000017905590519182529192506001917f3159dadbd8e2d720a851b412e3358e7e44bb11734c9bfd5715340e21798e8b25910160405180910390a25050604080518082019091526103de815260006020820152611380565b6001600160a01b038516600090815260066020526040902054610100900460ff1661135357600a611356565b60095b6040805180820190915290546001600160401b038082168352600160401b90910416602082015290505b6001600160a01b038416600090815260066020526040902054610100900460ff16156114aa576001600160a01b03851660009081526006602052604090205462010000900460ff16806113f157506001600160a01b03841660009081526006602052604090205462010000900460ff165b8061140f575061140b606468056bc75e2d63100000612242565b8311155b6114655760405162461bcd60e51b815260206004820152602160248201527f616d6f756e74206d757374206265203c3d206d61785478416d6f756e7453656c6044820152601b60fa1b60648201526084016107da565b600c546001600160481b0316611490306001600160a01b031660009081526020819052604090205490565b106114aa57600c546114aa906001600160481b03166117f1565b80516000906103e8906114c6906001600160401b0316866122ec565b6114d09190612242565b905060006103e883602001516001600160401b0316866114f091906122ec565b6114fa9190612242565b90506115068183612208565b611510908661230b565b6001600160a01b0387166000908152600660205260409020549095506301000000900460ff168061156c57506008548561155f886001600160a01b031660009081526020819052604090205490565b6115699190612208565b11155b6115d05760405162461bcd60e51b815260206004820152602f60248201527f526563697069656e742063616e6e6f7420686f6c64206d6f7265207468616e2060448201526e1b585e15d85b1b195d105b5bdd5b9d608a1b60648201526084016107da565b6115db8730846118fb565b80156115eb576115eb8782611651565b5050505b610fe68484846118fb565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261164c908490611a4f565b505050565b6001600160a01b0382166116b15760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016107da565b6001600160a01b038216600090815260208190526040902054818110156117255760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016107da565b6001600160a01b038316600090815260208190526040812083830390556002805484929061175490849061230b565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600b5460c890600090829061181690600160401b90046001600160401b0316856122ec565b6118209190612242565b9050600061182e828561230b565b90504761183a82611b21565b6000611846824761230b565b600b5490915060009061186990600160401b90046001600160401b03168761230b565b600b5461188690600160401b90046001600160401b0316846122ec565b6118909190612242565b905061189c8582611c85565b6040516001600160a01b037f000000000000000000000000d11d62e98a2485c03827d1af1f4ad8fbe2a04f4616904780156108fc02916000818181858888f193505050501580156118f1573d6000803e3d6000fd5b5050505050505050565b6001600160a01b0383166119215760405162461bcd60e51b81526004016107da90612264565b6001600160a01b0382166119475760405162461bcd60e51b81526004016107da906122a9565b6001600160a01b038316600090815260208190526040902054818110156119bf5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016107da565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906119f6908490612208565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611a4291815260200190565b60405180910390a3610fe6565b6000611aa4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611d249092919063ffffffff16565b80519091501561164c5780806020019051810190611ac2919061231e565b61164c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016107da565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611b5657611b5661233b565b60200260200101906001600160a01b031690816001600160a01b031681525050600c60099054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bed9190612351565b81600181518110611c0057611c0061233b565b6001600160a01b039283166020918202929092010152600c5460405163791ac94760e01b8152600160481b9091049091169063791ac94790611c4f90859060009086903090429060040161236e565b600060405180830381600087803b158015611c6957600080fd5b505af1158015611c7d573d6000803e3d6000fd5b505050505050565b600c5460405163f305d71960e01b8152306004820181905260248201859052600060448301819052606483015260848201524260a4820152600160481b9091046001600160a01b03169063f305d71990839060c40160606040518083038185885af1158015611cf8573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611d1d91906123df565b5050505050565b6060611d338484600085611d3b565b949350505050565b606082471015611d9c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016107da565b6001600160a01b0385163b611df35760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016107da565b600080866001600160a01b03168587604051611e0f919061240d565b60006040518083038185875af1925050503d8060008114611e4c576040519150601f19603f3d011682016040523d82523d6000602084013e611e51565b606091505b5091509150611e61828286611e6c565b979650505050505050565b60608315611e7b575081610933565b825115611e8b5782518084602001fd5b8160405162461bcd60e51b81526004016107da9190611ef2565b600060208284031215611eb757600080fd5b81356001600160601b038116811461093357600080fd5b60005b83811015611ee9578181015183820152602001611ed1565b50506000910152565b6020815260008251806020840152611f11816040850160208701611ece565b601f01601f19169190910160400192915050565b6001600160a01b0381168114610ad457600080fd5b60008060408385031215611f4d57600080fd5b8235611f5881611f25565b946020939093013593505050565b600080600060608486031215611f7b57600080fd5b8335611f8681611f25565b92506020840135611f9681611f25565b929592945050506040919091013590565b600060208284031215611fb957600080fd5b813561093381611f25565b600060208284031215611fd657600080fd5b5035919050565b80356001600160401b0381168114611ff457600080fd5b919050565b60006040828403121561200b57600080fd5b604051604081018181106001600160401b038211171561203b57634e487b7160e01b600052604160045260246000fd5b60405261204783611fdd565b815261205560208401611fdd565b60208201529392505050565b60006020828403121561207357600080fd5b81356001600160481b038116811461093357600080fd5b6000806040838503121561209d57600080fd5b82356120a881611f25565b915060208301356120b881611f25565b809150509250929050565b8015158114610ad457600080fd5b60008082840360c08112156120e557600080fd5b83356120f081611f25565b925060a0601f198201121561210457600080fd5b5060405160a081018181106001600160401b038211171561213557634e487b7160e01b600052604160045260246000fd5b6040526020840135612146816120c3565b81526040840135612156816120c3565b60208201526060840135612169816120c3565b6040820152608084013561217c816120c3565b606082015260a084013561218f816120c3565b6080820152919491935090915050565b600181811c908216806121b357607f821691505b6020821081036121d357634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156121eb57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561090e5761090e6121f2565b6001600160401b0381811683821601908082111561223b5761223b6121f2565b5092915050565b60008261225f57634e487b7160e01b600052601260045260246000fd5b500490565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6000816000190483118215151615612306576123066121f2565b500290565b8181038181111561090e5761090e6121f2565b60006020828403121561233057600080fd5b8151610933816120c3565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561236357600080fd5b815161093381611f25565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156123be5784516001600160a01b031683529383019391830191600101612399565b50506001600160a01b03969096166060850152505050608001529392505050565b6000806000606084860312156123f457600080fd5b8351925060208401519150604084015190509250925092565b6000825161241f818460208701611ece565b919091019291505056fea264697066735822122070825416b205666c7a04e7356bd586f7ba15c9b93e34594e0745feba144f639264736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000d11d62e98a2485c03827d1af1f4ad8fbe2a04f46
-----Decoded View---------------
Arg [0] : _UniswapV2Router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [1] : _devAddress (address): 0xd11D62e98A2485c03827d1af1F4ad8Fbe2a04f46
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [1] : 000000000000000000000000d11d62e98a2485c03827d1af1f4ad8fbe2a04f46
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.