Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
321,298,277.84 NOVC
Holders
169
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.730427902878008622 NOVCValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
NOVC
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 201 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import { Address } from "@openzeppelin/contracts/utils/Address.sol"; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import { EnumerableSet } from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import { IPancakeRouter } from "./interfaces/IPancakeRouter.sol"; import { IPancakeFactory } from "./interfaces/IPancakeFactory.sol"; contract NOVC is ERC20, Ownable { using Address for address payable; using EnumerableSet for EnumerableSet.AddressSet; uint256 public constant FEE_DENOMINATOR = 10000; IPancakeRouter public immutable pancekeRouter; address public immutable weth; uint256 public immutable minRewardUserAmt; uint256 public immutable rewardDistTime; uint256 public immutable fee; uint256 public immutable startBlockNumber; uint256 public immutable startBlockTS; uint256 public immutable startLimitBlockCount; uint256 public immutable startLimitAmount; address private immutable forLiquidity; event OnlyBuySellTaxSetted(bool enabled); event EnabledAsRewardAddress(address indexed account, bool indexed enabled); event ExcludedFromRewards(address indexed account, bool indexed excluded); event ExcludedFromFees(address indexed account, bool indexed excluded); event RewardDistributed( address indexed account, uint256 indexed tokenAmount, uint256 indexed nativeAmount, uint256 timeStamp ); event DexAddressAdded(address indexed dex, bool indexed addded); mapping(address => bool) public excludedFromRewards; mapping(address => bool) public excludedFromFees; mapping(address => bool) public isDex; bool public onlyBuySellTax; address public rewardsAddress; uint256 public lastRewardDist; EnumerableSet.AddressSet private rewardAddresses_; constructor( string memory _name, string memory _symbol, address _rewardsAddress, address _forLiquidity, uint256 _initialAmount, IPancakeRouter _pancakeRouter, uint256 _minRewardUserAmt, uint256 _rewardDistTime, uint256 _fee, uint256 _startLimitBlockCount, uint256 _startLimitAmount ) ERC20(_name, _symbol) { uint256 amountforLiquidity = _initialAmount * 4 / 100; uint256 amountforBurn = _initialAmount - amountforLiquidity; _mint(_forLiquidity, amountforLiquidity); _mint(address(this), amountforBurn); _burn(address(this), amountforBurn); forLiquidity = _forLiquidity; minRewardUserAmt = _minRewardUserAmt; rewardsAddress = _rewardsAddress; pancekeRouter = _pancakeRouter; rewardDistTime = _rewardDistTime; fee = _fee; address _weth = _pancakeRouter.WETH(); weth = _weth; require(_fee < FEE_DENOMINATOR, "Unpossible fee amount"); address pair = IPancakeFactory(_pancakeRouter.factory()).createPair(address(this), _weth); _excludeFromRewards(address(this)); _excludeFromFee(_forLiquidity, true); rewardAddresses_.add(_forLiquidity); lastRewardDist = block.timestamp; startBlockNumber = block.number; startBlockTS = block.timestamp; startLimitBlockCount = _startLimitBlockCount; startLimitAmount = _startLimitAmount; _setAsDex(pair, true); _approve(address(this), address(_pancakeRouter), type(uint256).max); emit EnabledAsRewardAddress(_forLiquidity, true); } function excludeFromFee(address _account, bool _exclude) external onlyOwner { _excludeFromFee(_account, _exclude); } function _excludeFromFee(address _account, bool _exclude) internal { excludedFromFees[_account] = _exclude; emit ExcludedFromFees(_account, _exclude); } function setOnlyBuySellTax(bool enable) external onlyOwner { onlyBuySellTax = enable; emit OnlyBuySellTaxSetted(enable); } function setAsDex(address _dex, bool _isDex) external onlyOwner { _setAsDex(_dex, _isDex); } function _setAsDex(address _dex, bool _isDex) internal { isDex[_dex] = _isDex; emit DexAddressAdded(_dex, _isDex); _isDex ? _excludeFromRewards(_dex) : _includeToRewards(_dex); } function excludeFromRewards(address _account) external onlyOwner { _excludeFromRewards(_account); } function includeToRewards(address _account) external onlyOwner { _includeToRewards(_account); } function _excludeFromRewards(address _account) internal { excludedFromRewards[_account] = true; emit ExcludedFromRewards(_account, true); bool removed = rewardAddresses_.remove(_account); if (removed) { emit EnabledAsRewardAddress(_account, false); } } function _includeToRewards(address _account) internal { excludedFromRewards[_account] = false; emit ExcludedFromRewards(_account, false); if (balanceOf(_account) > minRewardUserAmt) { bool added = rewardAddresses_.add(_account); if (added) { emit EnabledAsRewardAddress(_account, true); } } } function _calcFee( address _from, address _to, uint256 _amount ) internal view returns (uint256 _amtWithoutFee, uint256 _feeAmt) { uint _fee = fee; if (onlyBuySellTax && !isDex[_from] && !isDex[_to]) { _fee = 0; } else if (excludedFromFees[_from]) { _fee = 0; } _feeAmt = (_amount * _fee) / FEE_DENOMINATOR; _amtWithoutFee = _amount - _feeAmt; } function _transfer(address _from, address _to, uint256 _amount) internal override { if ( block.number - startBlockNumber <= startLimitBlockCount && (_from != owner() && _to != owner()) && (_from != forLiquidity && _to != forLiquidity) ) { require(_amount <= startLimitAmount, "Big amount transfer in the launch!"); } if(startBlockTS + 3 days > block.timestamp){ super._transfer(_from, _to, _amount); _addToRewardAddressList(_from, _to); return; } if (_from == address(this) || _to == address(this) || _from == owner()) { super._transfer(_from, _to, _amount); _addToRewardAddressList(_from, _to); return; } (uint256 _amtWithoutFee, uint256 _feeAmt) = _calcFee(_from, _to, _amount); if (_feeAmt != 0) { super._transfer(_from, _to, _amtWithoutFee); super._transfer(_from, address(this), _feeAmt); } else { super._transfer(_from, _to, _amtWithoutFee); } _addToRewardAddressList(_from, _to); if(!isDex[_from] && !isDex[_to]){ _distributeRewards(); } } function distributeRewards() external { _distributeRewards(); } function _distributeRewards() internal { uint256 len = rewardAddresses_.length(); if (len == 0 || lastRewardDist + rewardDistTime > block.timestamp) { return; } lastRewardDist = block.timestamp; address[] memory path = new address[](2); path[0] = address(this); path[1] = weth; try pancekeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens( balanceOf(address(this)) / 2, 0, path, address(this), block.timestamp ) {} catch {} uint256 tokenTransferAmt = balanceOf(address(this)) / 2; uint256 nativeTransferAmt = address(this).balance / 2; uint256 rand = block.prevrandao % len; address randUser = rewardAddresses_.at(rand); // transfer the tokens _transfer(address(this), rewardsAddress, tokenTransferAmt); _transfer(address(this), randUser, tokenTransferAmt); // transfer the natives payable(rewardsAddress).sendValue(nativeTransferAmt); payable(randUser).sendValue(nativeTransferAmt); emit RewardDistributed(randUser, tokenTransferAmt, nativeTransferAmt, block.timestamp); } function _addToRewardAddressList(address _from, address _to) internal { uint256 _fromBal = balanceOf(_from); uint256 _toBal = balanceOf(_to); if (!excludedFromRewards[_from] && _fromBal < minRewardUserAmt) { bool removed = rewardAddresses_.remove(_from); if (removed) { emit EnabledAsRewardAddress(_from, false); } } if (!excludedFromRewards[_to] && _toBal >= minRewardUserAmt) { bool added = rewardAddresses_.add(_to); if (added) { emit EnabledAsRewardAddress(_to, true); } } } function withdrawEth() external onlyOwner { uint256 amount = address(this).balance; payable(msg.sender).sendValue(amount); } function withdrawToken(address tokenAddress, uint256 amount) external onlyOwner{ require(tokenAddress != address(this), "Not possible to withdraw this token"); ERC20 token = ERC20(tokenAddress); require(token.balanceOf(address(this)) >= amount, "Insufficient balance"); token.transfer(msg.sender, amount); } receive() external payable {} }
// 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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.openzeppelin.com/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; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _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; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _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; // Overflow not possible: amount <= accountBalance <= totalSupply. _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); }
// 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 (last updated v4.8.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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 (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.8.0) (utils/structs/EnumerableSet.sol) // This file was procedurally generated from scripts/generate/templates/EnumerableSet.js. pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure * unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an * array of EnumerableSet. * ==== */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { bytes32[] memory store = _values(set._inner); bytes32[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values in the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; interface IPancakeFactory { function createPair(address tokenA, address tokenB) external returns (address pair); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; interface IPancakeRouter { function factory() external pure returns (address); // solhint-disable-next-line func-name-mixedcase function WETH() external pure returns (address); function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; }
{ "optimizer": { "enabled": true, "runs": 201 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_rewardsAddress","type":"address"},{"internalType":"address","name":"_forLiquidity","type":"address"},{"internalType":"uint256","name":"_initialAmount","type":"uint256"},{"internalType":"contract IPancakeRouter","name":"_pancakeRouter","type":"address"},{"internalType":"uint256","name":"_minRewardUserAmt","type":"uint256"},{"internalType":"uint256","name":"_rewardDistTime","type":"uint256"},{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"uint256","name":"_startLimitBlockCount","type":"uint256"},{"internalType":"uint256","name":"_startLimitAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"dex","type":"address"},{"indexed":true,"internalType":"bool","name":"addded","type":"bool"}],"name":"DexAddressAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"bool","name":"enabled","type":"bool"}],"name":"EnabledAsRewardAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"bool","name":"excluded","type":"bool"}],"name":"ExcludedFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"bool","name":"excluded","type":"bool"}],"name":"ExcludedFromRewards","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"OnlyBuySellTaxSetted","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":"account","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"nativeAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"RewardDistributed","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":"FEE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributeRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bool","name":"_exclude","type":"bool"}],"name":"excludeFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"excludeFromRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"excludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"excludedFromRewards","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"includeToRewards","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":[{"internalType":"address","name":"","type":"address"}],"name":"isDex","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastRewardDist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minRewardUserAmt","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":"onlyBuySellTax","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pancekeRouter","outputs":[{"internalType":"contract IPancakeRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardDistTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_dex","type":"address"},{"internalType":"bool","name":"_isDex","type":"bool"}],"name":"setAsDex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enable","type":"bool"}],"name":"setOnlyBuySellTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlockNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startBlockTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startLimitAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startLimitBlockCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6101c06040523480156200001257600080fd5b5060405162002f2f38038062002f2f833981016040819052620000359162000b0c565b8a8a600362000045838262000c7f565b50600462000054828262000c7f565b505050620000716200006b6200034a60201b60201c565b6200034e565b600060646200008289600462000d61565b6200008e919062000d7b565b905060006200009e828a62000d9e565b9050620000ac8a83620003a0565b620000b83082620003a0565b620000c4308262000453565b6001600160a01b038a81166101a05260c088905260098054610100600160a81b0319166101008e8416810291909117909155908916608081905260e088905290869052604080516315ab88c960e31b815290516000929163ad5c46489160048083019260209291908290030181865afa15801562000146573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200016c919062000db4565b6001600160a01b03811660a05290506127108610620001d25760405162461bcd60e51b815260206004820152601560248201527f556e706f737369626c652066656520616d6f756e74000000000000000000000060448201526064015b60405180910390fd5b6000896001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000213573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000239919062000db4565b6040516364e329cb60e11b81523060048201526001600160a01b038481166024830152919091169063c9c65396906044016020604051808303816000875af11580156200028a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002b0919062000db4565b9050620002bd306200058c565b620002ca8c60016200060b565b620002d7600b8d6200065f565b5042600a819055436101205261014052610160869052610180859052620003008160016200067f565b6200030f308b600019620006eb565b6040516001906001600160a01b038e169060008051602062002f0f83398151915290600090a350505050505050505050505050505062000e1d565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620003f85760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401620001c9565b80600260008282546200040c919062000ddb565b90915550506001600160a01b0382166000818152602081815260408083208054860190555184815260008051602062002eef833981519152910160405180910390a35b5050565b6001600160a01b038216620004b55760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401620001c9565b6001600160a01b038216600090815260208190526040902054818110156200052b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401620001c9565b6001600160a01b03831660008181526020818152604080832086860390556002805487900390555185815291929160008051602062002eef833981519152910160405180910390a362000587836000846001600160e01b038416565b505050565b6001600160a01b038116600081815260066020526040808220805460ff19166001908117909155905190929160008051602062002ecf83398151915291a36000620005d9600b8362000813565b905080156200044f576040516000906001600160a01b0384169060008051602062002f0f833981519152908390a35050565b6001600160a01b038216600081815260076020526040808220805460ff191685151590811790915590519092917f3499bfcf9673677ba552f3fe2ea274ec7e6246da31c3c87e115b45a9b0db2efb91a35050565b600062000676836001600160a01b0384166200082a565b90505b92915050565b6001600160a01b038216600081815260086020526040808220805460ff191685151590811790915590519092917fef526bdbaf50f96202c6c0dc80b2803b3c9e241b5b22e5eb2335fb35ee09b94291a380620006e0576200044f826200087c565b6200044f826200058c565b6001600160a01b0383166200074f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401620001c9565b6001600160a01b038216620007b25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401620001c9565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600062000676836001600160a01b0384166200091b565b6000818152600183016020526040812054620008735750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000679565b50600062000679565b6001600160a01b038116600081815260066020526040808220805460ff191690555190919060008051602062002ecf833981519152908390a360c0516001600160a01b038216600090815260208190526040902054111562000918576000620008e7600b836200065f565b905080156200044f576040516001906001600160a01b0384169060008051602062002f0f83398151915290600090a3505b50565b6000818152600183016020526040812054801562000a145760006200094260018362000d9e565b8554909150600090620009589060019062000d9e565b9050818114620009c45760008660000182815481106200097c576200097c62000df1565b9060005260206000200154905080876000018481548110620009a257620009a262000df1565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080620009d857620009d862000e07565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505062000679565b600091505062000679565b634e487b7160e01b600052604160045260246000fd5b600082601f83011262000a4757600080fd5b81516001600160401b038082111562000a645762000a6462000a1f565b604051601f8301601f19908116603f0116810190828211818310171562000a8f5762000a8f62000a1f565b8160405283815260209250868385880101111562000aac57600080fd5b600091505b8382101562000ad0578582018301518183018401529082019062000ab1565b600093810190920192909252949350505050565b6001600160a01b03811681146200091857600080fd5b805162000b078162000ae4565b919050565b60008060008060008060008060008060006101608c8e03121562000b2f57600080fd5b8b516001600160401b0381111562000b4657600080fd5b62000b548e828f0162000a35565b60208e0151909c5090506001600160401b0381111562000b7357600080fd5b62000b818e828f0162000a35565b9a505062000b9260408d0162000afa565b985062000ba260608d0162000afa565b975060808c0151965062000bb960a08d0162000afa565b955060c08c0151945060e08c015193506101008c015192506101208c015191506101408c015190509295989b509295989b9093969950565b600181811c9082168062000c0657607f821691505b60208210810362000c2757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200058757600081815260208120601f850160051c8101602086101562000c565750805b601f850160051c820191505b8181101562000c775782815560010162000c62565b505050505050565b81516001600160401b0381111562000c9b5762000c9b62000a1f565b62000cb38162000cac845462000bf1565b8462000c2d565b602080601f83116001811462000ceb576000841562000cd25750858301515b600019600386901b1c1916600185901b17855562000c77565b600085815260208120601f198616915b8281101562000d1c5788860151825594840194600190910190840162000cfb565b508582101562000d3b5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141762000679576200067962000d4b565b60008262000d9957634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111562000679576200067962000d4b565b60006020828403121562000dc757600080fd5b815162000dd48162000ae4565b9392505050565b8082018082111562000679576200067962000d4b565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b60805160a05160c05160e05161010051610120516101405161016051610180516101a051611fe262000eed60003960008181610f720152610faf0152600081816102e30152610feb0152600081816107020152610eeb015260008181610317015261106a0152600081816104230152610f0f0152600081816106ae0152611a0a0152600081816105cf0152611219015260008181610736015281816115230152818161190e01526119970152600081816103d701526112aa01526000818161076a01526112f40152611fe26000f3fe6080604052600436106102295760003560e01c806395d89b4111610123578063d73792a9116100ab578063e27970c41161006f578063e27970c4146106f0578063e2fea2c214610724578063e53cfbb514610758578063f2fde38b1461078c578063f82f235f146107ac57600080fd5b8063d73792a914610636578063dbe66ca01461064c578063dd62ed3e1461067c578063ddca3f431461069c578063df8408fe146106d057600080fd5b8063a457c2d7116100f2578063a457c2d71461057d578063a9059cbb1461059d578063bb5118a6146105bd578063c0973eed146105f1578063c1b42bb11461061657600080fd5b806395d89b411461051357806397441d9b146105285780639e281a9814610548578063a0ef91df1461056857600080fd5b80633c11e12a116101b15780636ffd18a7116101755780636ffd18a71461047a57806370a082311461049457806370de38cf146104ca578063715018a6146104e05780638da5cb5b146104f557600080fd5b80633c11e12a146103955780633fc8cef3146103c5578063498a4c2d1461041157806351ef1154146104455780636f4a2cd01461046557600080fd5b8063220399d7116101f8578063220399d7146102d1578063223d838f1461030557806323b872dd14610339578063313ce56714610359578063395093511461037557600080fd5b806306fdde0314610235578063095ea7b314610260578063111e03761461029057806318160ddd146102b257600080fd5b3661023057005b600080fd5b34801561024157600080fd5b5061024a6107dc565b6040516102579190611c6e565b60405180910390f35b34801561026c57600080fd5b5061028061027b366004611cd8565b61086e565b6040519015158152602001610257565b34801561029c57600080fd5b506102b06102ab366004611d02565b610888565b005b3480156102be57600080fd5b506002545b604051908152602001610257565b3480156102dd57600080fd5b506102c37f000000000000000000000000000000000000000000000000000000000000000081565b34801561031157600080fd5b506102c37f000000000000000000000000000000000000000000000000000000000000000081565b34801561034557600080fd5b50610280610354366004611d1d565b61089c565b34801561036557600080fd5b5060405160128152602001610257565b34801561038157600080fd5b50610280610390366004611cd8565b6108c0565b3480156103a157600080fd5b506102806103b0366004611d02565b60086020526000908152604090205460ff1681565b3480156103d157600080fd5b506103f97f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610257565b34801561041d57600080fd5b506102c37f000000000000000000000000000000000000000000000000000000000000000081565b34801561045157600080fd5b506102b0610460366004611d67565b6108e2565b34801561047157600080fd5b506102b06108f8565b34801561048657600080fd5b506009546102809060ff1681565b3480156104a057600080fd5b506102c36104af366004611d02565b6001600160a01b031660009081526020819052604090205490565b3480156104d657600080fd5b506102c3600a5481565b3480156104ec57600080fd5b506102b0610902565b34801561050157600080fd5b506005546001600160a01b03166103f9565b34801561051f57600080fd5b5061024a610914565b34801561053457600080fd5b506102b0610543366004611d02565b610923565b34801561055457600080fd5b506102b0610563366004611cd8565b610934565b34801561057457600080fd5b506102b0610acd565b34801561058957600080fd5b50610280610598366004611cd8565b610ae0565b3480156105a957600080fd5b506102806105b8366004611cd8565b610b5b565b3480156105c957600080fd5b506102c37f000000000000000000000000000000000000000000000000000000000000000081565b3480156105fd57600080fd5b506009546103f99061010090046001600160a01b031681565b34801561062257600080fd5b506102b0610631366004611d9e565b610b69565b34801561064257600080fd5b506102c361271081565b34801561065857600080fd5b50610280610667366004611d02565b60076020526000908152604090205460ff1681565b34801561068857600080fd5b506102c3610697366004611dbb565b610bb8565b3480156106a857600080fd5b506102c37f000000000000000000000000000000000000000000000000000000000000000081565b3480156106dc57600080fd5b506102b06106eb366004611d67565b610be3565b3480156106fc57600080fd5b506102c37f000000000000000000000000000000000000000000000000000000000000000081565b34801561073057600080fd5b506102c37f000000000000000000000000000000000000000000000000000000000000000081565b34801561076457600080fd5b506103f97f000000000000000000000000000000000000000000000000000000000000000081565b34801561079857600080fd5b506102b06107a7366004611d02565b610bf5565b3480156107b857600080fd5b506102806107c7366004611d02565b60066020526000908152604090205460ff1681565b6060600380546107eb90611dee565b80601f016020809104026020016040519081016040528092919081815260200182805461081790611dee565b80156108645780601f1061083957610100808354040283529160200191610864565b820191906000526020600020905b81548152906001019060200180831161084757829003601f168201915b5050505050905090565b60003361087c818585610c6b565b60019150505b92915050565b610890610d8f565b61089981610de9565b50565b6000336108aa858285610e75565b6108b5858585610ee9565b506001949350505050565b60003361087c8185856108d38383610bb8565b6108dd9190611e3e565b610c6b565b6108ea610d8f565b6108f48282611199565b5050565b610900611200565b565b61090a610d8f565b6109006000611485565b6060600480546107eb90611dee565b61092b610d8f565b610899816114d7565b61093c610d8f565b306001600160a01b038316036109a55760405162461bcd60e51b815260206004820152602360248201527f4e6f7420706f737369626c6520746f207769746864726177207468697320746f60448201526235b2b760e91b60648201526084015b60405180910390fd5b6040516370a0823160e01b8152306004820152829082906001600160a01b038316906370a0823190602401602060405180830381865afa1580156109ed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a119190611e51565b1015610a565760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b604482015260640161099c565b60405163a9059cbb60e01b8152336004820152602481018390526001600160a01b0382169063a9059cbb906044016020604051808303816000875af1158015610aa3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac79190611e6a565b50505050565b610ad5610d8f565b4761089933826115a5565b60003381610aee8286610bb8565b905083811015610b4e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161099c565b6108b58286868403610c6b565b60003361087c818585610ee9565b610b71610d8f565b6009805460ff19168215159081179091556040519081527f03719a880427ee180209bc6a23661a1a26398945f4feeae58aa0f21f971a415f9060200160405180910390a150565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610beb610d8f565b6108f482826116be565b610bfd610d8f565b6001600160a01b038116610c625760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161099c565b61089981611485565b6001600160a01b038316610ccd5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161099c565b6001600160a01b038216610d2e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161099c565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b031633146109005760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161099c565b6001600160a01b038116600081815260066020526040808220805460ff1916600190811790915590519092917f6fb704e328736eb59ac6758cc1df5a98a609cfd47a1877201101c614dffc92e991a36000610e45600b83611712565b905080156108f4576040516000906001600160a01b03841690600080516020611f8d833981519152908390a35050565b6000610e818484610bb8565b90506000198114610ac75781811015610edc5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161099c565b610ac78484848403610c6b565b7f0000000000000000000000000000000000000000000000000000000000000000610f347f000000000000000000000000000000000000000000000000000000000000000043611e87565b11158015610f6957506005546001600160a01b03848116911614801590610f6957506005546001600160a01b03838116911614155b8015610fe457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b031614158015610fe457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614155b15611064577f00000000000000000000000000000000000000000000000000000000000000008111156110645760405162461bcd60e51b815260206004820152602260248201527f42696720616d6f756e74207472616e7366657220696e20746865206c61756e63604482015261682160f01b606482015260840161099c565b426110927f00000000000000000000000000000000000000000000000000000000000000006203f480611e3e565b11156110b2576110a383838361172e565b6110ad83836118d2565b505050565b6001600160a01b0383163014806110d157506001600160a01b03821630145b806110e957506005546001600160a01b038481169116145b156110f9576110a383838361172e565b600080611107858585611a00565b915091508060001461112e5761111e85858461172e565b61112985308361172e565b611139565b61113985858461172e565b61114385856118d2565b6001600160a01b03851660009081526008602052604090205460ff1615801561118557506001600160a01b03841660009081526008602052604090205460ff16155b1561119257611192611200565b5050505050565b6001600160a01b038216600081815260086020526040808220805460ff191685151590811790915590519092917fef526bdbaf50f96202c6c0dc80b2803b3c9e241b5b22e5eb2335fb35ee09b94291a3806111f7576108f4826114d7565b6108f482610de9565b600061120c600b611ad7565b90508015806112475750427f0000000000000000000000000000000000000000000000000000000000000000600a546112459190611e3e565b115b1561124f5750565b42600a55604080516002808252606082018352600092602083019080368337019050509050308160008151811061128857611288611e9a565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000000000000000000000000000000000000000000000816001815181106112dc576112dc611e9a565b6001600160a01b0392831660209182029290920101527f00000000000000000000000000000000000000000000000000000000000000001663791ac947600261133a306001600160a01b031660009081526020819052604090205490565b6113449190611ec6565b60008430426040518663ffffffff1660e01b8152600401611369959493929190611eda565b600060405180830381600087803b15801561138357600080fd5b505af1925050508015611394575060015b50306000908152602081905260408120546113b190600290611ec6565b905060006113c0600247611ec6565b905060006113ce8544611f4b565b905060006113dd600b83611ae1565b90506113ff30600960019054906101000a90046001600160a01b031686610ee9565b61140a308286610ee9565b6009546114259061010090046001600160a01b0316846115a5565b6114386001600160a01b038216846115a5565b8284826001600160a01b03167ff0f44087179a926066b42ce5c1720884709cd0766b995b4595a33c8e4fd3a2b24260405161147591815260200190565b60405180910390a4505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038116600081815260066020526040808220805460ff19169055519091907f6fb704e328736eb59ac6758cc1df5a98a609cfd47a1877201101c614dffc92e9908390a37f0000000000000000000000000000000000000000000000000000000000000000611561826001600160a01b031660009081526020819052604090205490565b1115610899576000611574600b83611aed565b905080156108f4576040516001906001600160a01b03841690600080516020611f8d83398151915290600090a35050565b804710156115f55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161099c565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611642576040519150601f19603f3d011682016040523d82523d6000602084013e611647565b606091505b50509050806110ad5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161099c565b6001600160a01b038216600081815260076020526040808220805460ff191685151590811790915590519092917f3499bfcf9673677ba552f3fe2ea274ec7e6246da31c3c87e115b45a9b0db2efb91a35050565b6000611727836001600160a01b038416611b02565b9392505050565b6001600160a01b0383166117925760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161099c565b6001600160a01b0382166117f45760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161099c565b6001600160a01b0383166000908152602081905260409020548181101561186c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161099c565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610ac7565b6001600160a01b0382811660008181526020818152604080832054948616835280832054938352600690915290205460ff1615801561193057507f000000000000000000000000000000000000000000000000000000000000000082105b15611971576000611942600b86611712565b9050801561196f576040516000906001600160a01b03871690600080516020611f8d833981519152908390a35b505b6001600160a01b03831660009081526006602052604090205460ff161580156119ba57507f00000000000000000000000000000000000000000000000000000000000000008110155b15610ac75760006119cc600b85611aed565b90508015611192576040516001906001600160a01b03861690600080516020611f8d83398151915290600090a35050505050565b60095460009081907f00000000000000000000000000000000000000000000000000000000000000009060ff168015611a5257506001600160a01b03861660009081526008602052604090205460ff16155b8015611a7757506001600160a01b03851660009081526008602052604090205460ff16155b15611a8457506000611aa9565b6001600160a01b03861660009081526007602052604090205460ff1615611aa9575060005b612710611ab68286611f5f565b611ac09190611ec6565b9150611acc8285611e87565b925050935093915050565b6000610882825490565b60006117278383611bf5565b6000611727836001600160a01b038416611c1f565b60008181526001830160205260408120548015611beb576000611b26600183611e87565b8554909150600090611b3a90600190611e87565b9050818114611b9f576000866000018281548110611b5a57611b5a611e9a565b9060005260206000200154905080876000018481548110611b7d57611b7d611e9a565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611bb057611bb0611f76565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610882565b6000915050610882565b6000826000018281548110611c0c57611c0c611e9a565b9060005260206000200154905092915050565b6000818152600183016020526040812054611c6657508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610882565b506000610882565b600060208083528351808285015260005b81811015611c9b57858101830151858201604001528201611c7f565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114611cd357600080fd5b919050565b60008060408385031215611ceb57600080fd5b611cf483611cbc565b946020939093013593505050565b600060208284031215611d1457600080fd5b61172782611cbc565b600080600060608486031215611d3257600080fd5b611d3b84611cbc565b9250611d4960208501611cbc565b9150604084013590509250925092565b801515811461089957600080fd5b60008060408385031215611d7a57600080fd5b611d8383611cbc565b91506020830135611d9381611d59565b809150509250929050565b600060208284031215611db057600080fd5b813561172781611d59565b60008060408385031215611dce57600080fd5b611dd783611cbc565b9150611de560208401611cbc565b90509250929050565b600181811c90821680611e0257607f821691505b602082108103611e2257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561088257610882611e28565b600060208284031215611e6357600080fd5b5051919050565b600060208284031215611e7c57600080fd5b815161172781611d59565b8181038181111561088257610882611e28565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b600082611ed557611ed5611eb0565b500490565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015611f2a5784516001600160a01b031683529383019391830191600101611f05565b50506001600160a01b03969096166060850152505050608001529392505050565b600082611f5a57611f5a611eb0565b500690565b808202811582820484141761088257610882611e28565b634e487b7160e01b600052603160045260246000fdfe615739ffe7e7d026b629eae9905bf0da92d2d95ee396f8dc210e10580ccc5ee4a2646970667358221220d851737ff5bac56369bf6cf58389498837b33d740323b317e88e5291ec62f81f64736f6c634300081300336fb704e328736eb59ac6758cc1df5a98a609cfd47a1877201101c614dffc92e9ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef615739ffe7e7d026b629eae9905bf0da92d2d95ee396f8dc210e10580ccc5ee4000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000066cecf48dd1b2e6d730115fc3b341dc607ff8e3d000000000000000000000000deca7e3aff3f09425feac4fd5924cab5986ffcd0000000000000000000000000000000000000000019f44aeb8ffe4bf07c8800000000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d00000000000000000000000000000000000000000000017b7883c069166000000000000000000000000000000000000000000000000000000000000000093a8000000000000000000000000000000000000000000000000000000000000000c8000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000013da329b633647180000000000000000000000000000000000000000000000000000000000000000000044e4f56430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044e4f564300000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102295760003560e01c806395d89b4111610123578063d73792a9116100ab578063e27970c41161006f578063e27970c4146106f0578063e2fea2c214610724578063e53cfbb514610758578063f2fde38b1461078c578063f82f235f146107ac57600080fd5b8063d73792a914610636578063dbe66ca01461064c578063dd62ed3e1461067c578063ddca3f431461069c578063df8408fe146106d057600080fd5b8063a457c2d7116100f2578063a457c2d71461057d578063a9059cbb1461059d578063bb5118a6146105bd578063c0973eed146105f1578063c1b42bb11461061657600080fd5b806395d89b411461051357806397441d9b146105285780639e281a9814610548578063a0ef91df1461056857600080fd5b80633c11e12a116101b15780636ffd18a7116101755780636ffd18a71461047a57806370a082311461049457806370de38cf146104ca578063715018a6146104e05780638da5cb5b146104f557600080fd5b80633c11e12a146103955780633fc8cef3146103c5578063498a4c2d1461041157806351ef1154146104455780636f4a2cd01461046557600080fd5b8063220399d7116101f8578063220399d7146102d1578063223d838f1461030557806323b872dd14610339578063313ce56714610359578063395093511461037557600080fd5b806306fdde0314610235578063095ea7b314610260578063111e03761461029057806318160ddd146102b257600080fd5b3661023057005b600080fd5b34801561024157600080fd5b5061024a6107dc565b6040516102579190611c6e565b60405180910390f35b34801561026c57600080fd5b5061028061027b366004611cd8565b61086e565b6040519015158152602001610257565b34801561029c57600080fd5b506102b06102ab366004611d02565b610888565b005b3480156102be57600080fd5b506002545b604051908152602001610257565b3480156102dd57600080fd5b506102c37f000000000000000000000000000000000000000000013da329b633647180000081565b34801561031157600080fd5b506102c37f00000000000000000000000000000000000000000000000000000000645e7d0781565b34801561034557600080fd5b50610280610354366004611d1d565b61089c565b34801561036557600080fd5b5060405160128152602001610257565b34801561038157600080fd5b50610280610390366004611cd8565b6108c0565b3480156103a157600080fd5b506102806103b0366004611d02565b60086020526000908152604090205460ff1681565b3480156103d157600080fd5b506103f97f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6040516001600160a01b039091168152602001610257565b34801561041d57600080fd5b506102c37f00000000000000000000000000000000000000000000000000000000010725da81565b34801561045157600080fd5b506102b0610460366004611d67565b6108e2565b34801561047157600080fd5b506102b06108f8565b34801561048657600080fd5b506009546102809060ff1681565b3480156104a057600080fd5b506102c36104af366004611d02565b6001600160a01b031660009081526020819052604090205490565b3480156104d657600080fd5b506102c3600a5481565b3480156104ec57600080fd5b506102b0610902565b34801561050157600080fd5b506005546001600160a01b03166103f9565b34801561051f57600080fd5b5061024a610914565b34801561053457600080fd5b506102b0610543366004611d02565b610923565b34801561055457600080fd5b506102b0610563366004611cd8565b610934565b34801561057457600080fd5b506102b0610acd565b34801561058957600080fd5b50610280610598366004611cd8565b610ae0565b3480156105a957600080fd5b506102806105b8366004611cd8565b610b5b565b3480156105c957600080fd5b506102c37f0000000000000000000000000000000000000000000000000000000000093a8081565b3480156105fd57600080fd5b506009546103f99061010090046001600160a01b031681565b34801561062257600080fd5b506102b0610631366004611d9e565b610b69565b34801561064257600080fd5b506102c361271081565b34801561065857600080fd5b50610280610667366004611d02565b60076020526000908152604090205460ff1681565b34801561068857600080fd5b506102c3610697366004611dbb565b610bb8565b3480156106a857600080fd5b506102c37f00000000000000000000000000000000000000000000000000000000000000c881565b3480156106dc57600080fd5b506102b06106eb366004611d67565b610be3565b3480156106fc57600080fd5b506102c37f000000000000000000000000000000000000000000000000000000000000001e81565b34801561073057600080fd5b506102c37f00000000000000000000000000000000000000000000017b7883c0691660000081565b34801561076457600080fd5b506103f97f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b34801561079857600080fd5b506102b06107a7366004611d02565b610bf5565b3480156107b857600080fd5b506102806107c7366004611d02565b60066020526000908152604090205460ff1681565b6060600380546107eb90611dee565b80601f016020809104026020016040519081016040528092919081815260200182805461081790611dee565b80156108645780601f1061083957610100808354040283529160200191610864565b820191906000526020600020905b81548152906001019060200180831161084757829003601f168201915b5050505050905090565b60003361087c818585610c6b565b60019150505b92915050565b610890610d8f565b61089981610de9565b50565b6000336108aa858285610e75565b6108b5858585610ee9565b506001949350505050565b60003361087c8185856108d38383610bb8565b6108dd9190611e3e565b610c6b565b6108ea610d8f565b6108f48282611199565b5050565b610900611200565b565b61090a610d8f565b6109006000611485565b6060600480546107eb90611dee565b61092b610d8f565b610899816114d7565b61093c610d8f565b306001600160a01b038316036109a55760405162461bcd60e51b815260206004820152602360248201527f4e6f7420706f737369626c6520746f207769746864726177207468697320746f60448201526235b2b760e91b60648201526084015b60405180910390fd5b6040516370a0823160e01b8152306004820152829082906001600160a01b038316906370a0823190602401602060405180830381865afa1580156109ed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a119190611e51565b1015610a565760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b604482015260640161099c565b60405163a9059cbb60e01b8152336004820152602481018390526001600160a01b0382169063a9059cbb906044016020604051808303816000875af1158015610aa3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac79190611e6a565b50505050565b610ad5610d8f565b4761089933826115a5565b60003381610aee8286610bb8565b905083811015610b4e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161099c565b6108b58286868403610c6b565b60003361087c818585610ee9565b610b71610d8f565b6009805460ff19168215159081179091556040519081527f03719a880427ee180209bc6a23661a1a26398945f4feeae58aa0f21f971a415f9060200160405180910390a150565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610beb610d8f565b6108f482826116be565b610bfd610d8f565b6001600160a01b038116610c625760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161099c565b61089981611485565b6001600160a01b038316610ccd5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161099c565b6001600160a01b038216610d2e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161099c565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b031633146109005760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161099c565b6001600160a01b038116600081815260066020526040808220805460ff1916600190811790915590519092917f6fb704e328736eb59ac6758cc1df5a98a609cfd47a1877201101c614dffc92e991a36000610e45600b83611712565b905080156108f4576040516000906001600160a01b03841690600080516020611f8d833981519152908390a35050565b6000610e818484610bb8565b90506000198114610ac75781811015610edc5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161099c565b610ac78484848403610c6b565b7f000000000000000000000000000000000000000000000000000000000000001e610f347f00000000000000000000000000000000000000000000000000000000010725da43611e87565b11158015610f6957506005546001600160a01b03848116911614801590610f6957506005546001600160a01b03838116911614155b8015610fe457507f000000000000000000000000deca7e3aff3f09425feac4fd5924cab5986ffcd06001600160a01b0316836001600160a01b031614158015610fe457507f000000000000000000000000deca7e3aff3f09425feac4fd5924cab5986ffcd06001600160a01b0316826001600160a01b031614155b15611064577f000000000000000000000000000000000000000000013da329b63364718000008111156110645760405162461bcd60e51b815260206004820152602260248201527f42696720616d6f756e74207472616e7366657220696e20746865206c61756e63604482015261682160f01b606482015260840161099c565b426110927f00000000000000000000000000000000000000000000000000000000645e7d076203f480611e3e565b11156110b2576110a383838361172e565b6110ad83836118d2565b505050565b6001600160a01b0383163014806110d157506001600160a01b03821630145b806110e957506005546001600160a01b038481169116145b156110f9576110a383838361172e565b600080611107858585611a00565b915091508060001461112e5761111e85858461172e565b61112985308361172e565b611139565b61113985858461172e565b61114385856118d2565b6001600160a01b03851660009081526008602052604090205460ff1615801561118557506001600160a01b03841660009081526008602052604090205460ff16155b1561119257611192611200565b5050505050565b6001600160a01b038216600081815260086020526040808220805460ff191685151590811790915590519092917fef526bdbaf50f96202c6c0dc80b2803b3c9e241b5b22e5eb2335fb35ee09b94291a3806111f7576108f4826114d7565b6108f482610de9565b600061120c600b611ad7565b90508015806112475750427f0000000000000000000000000000000000000000000000000000000000093a80600a546112459190611e3e565b115b1561124f5750565b42600a55604080516002808252606082018352600092602083019080368337019050509050308160008151811061128857611288611e9a565b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816001815181106112dc576112dc611e9a565b6001600160a01b0392831660209182029290920101527f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d1663791ac947600261133a306001600160a01b031660009081526020819052604090205490565b6113449190611ec6565b60008430426040518663ffffffff1660e01b8152600401611369959493929190611eda565b600060405180830381600087803b15801561138357600080fd5b505af1925050508015611394575060015b50306000908152602081905260408120546113b190600290611ec6565b905060006113c0600247611ec6565b905060006113ce8544611f4b565b905060006113dd600b83611ae1565b90506113ff30600960019054906101000a90046001600160a01b031686610ee9565b61140a308286610ee9565b6009546114259061010090046001600160a01b0316846115a5565b6114386001600160a01b038216846115a5565b8284826001600160a01b03167ff0f44087179a926066b42ce5c1720884709cd0766b995b4595a33c8e4fd3a2b24260405161147591815260200190565b60405180910390a4505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038116600081815260066020526040808220805460ff19169055519091907f6fb704e328736eb59ac6758cc1df5a98a609cfd47a1877201101c614dffc92e9908390a37f00000000000000000000000000000000000000000000017b7883c06916600000611561826001600160a01b031660009081526020819052604090205490565b1115610899576000611574600b83611aed565b905080156108f4576040516001906001600160a01b03841690600080516020611f8d83398151915290600090a35050565b804710156115f55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161099c565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611642576040519150601f19603f3d011682016040523d82523d6000602084013e611647565b606091505b50509050806110ad5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161099c565b6001600160a01b038216600081815260076020526040808220805460ff191685151590811790915590519092917f3499bfcf9673677ba552f3fe2ea274ec7e6246da31c3c87e115b45a9b0db2efb91a35050565b6000611727836001600160a01b038416611b02565b9392505050565b6001600160a01b0383166117925760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161099c565b6001600160a01b0382166117f45760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161099c565b6001600160a01b0383166000908152602081905260409020548181101561186c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161099c565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610ac7565b6001600160a01b0382811660008181526020818152604080832054948616835280832054938352600690915290205460ff1615801561193057507f00000000000000000000000000000000000000000000017b7883c0691660000082105b15611971576000611942600b86611712565b9050801561196f576040516000906001600160a01b03871690600080516020611f8d833981519152908390a35b505b6001600160a01b03831660009081526006602052604090205460ff161580156119ba57507f00000000000000000000000000000000000000000000017b7883c069166000008110155b15610ac75760006119cc600b85611aed565b90508015611192576040516001906001600160a01b03861690600080516020611f8d83398151915290600090a35050505050565b60095460009081907f00000000000000000000000000000000000000000000000000000000000000c89060ff168015611a5257506001600160a01b03861660009081526008602052604090205460ff16155b8015611a7757506001600160a01b03851660009081526008602052604090205460ff16155b15611a8457506000611aa9565b6001600160a01b03861660009081526007602052604090205460ff1615611aa9575060005b612710611ab68286611f5f565b611ac09190611ec6565b9150611acc8285611e87565b925050935093915050565b6000610882825490565b60006117278383611bf5565b6000611727836001600160a01b038416611c1f565b60008181526001830160205260408120548015611beb576000611b26600183611e87565b8554909150600090611b3a90600190611e87565b9050818114611b9f576000866000018281548110611b5a57611b5a611e9a565b9060005260206000200154905080876000018481548110611b7d57611b7d611e9a565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611bb057611bb0611f76565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610882565b6000915050610882565b6000826000018281548110611c0c57611c0c611e9a565b9060005260206000200154905092915050565b6000818152600183016020526040812054611c6657508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610882565b506000610882565b600060208083528351808285015260005b81811015611c9b57858101830151858201604001528201611c7f565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114611cd357600080fd5b919050565b60008060408385031215611ceb57600080fd5b611cf483611cbc565b946020939093013593505050565b600060208284031215611d1457600080fd5b61172782611cbc565b600080600060608486031215611d3257600080fd5b611d3b84611cbc565b9250611d4960208501611cbc565b9150604084013590509250925092565b801515811461089957600080fd5b60008060408385031215611d7a57600080fd5b611d8383611cbc565b91506020830135611d9381611d59565b809150509250929050565b600060208284031215611db057600080fd5b813561172781611d59565b60008060408385031215611dce57600080fd5b611dd783611cbc565b9150611de560208401611cbc565b90509250929050565b600181811c90821680611e0257607f821691505b602082108103611e2257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561088257610882611e28565b600060208284031215611e6357600080fd5b5051919050565b600060208284031215611e7c57600080fd5b815161172781611d59565b8181038181111561088257610882611e28565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b600082611ed557611ed5611eb0565b500490565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015611f2a5784516001600160a01b031683529383019391830191600101611f05565b50506001600160a01b03969096166060850152505050608001529392505050565b600082611f5a57611f5a611eb0565b500690565b808202811582820484141761088257610882611e28565b634e487b7160e01b600052603160045260246000fdfe615739ffe7e7d026b629eae9905bf0da92d2d95ee396f8dc210e10580ccc5ee4a2646970667358221220d851737ff5bac56369bf6cf58389498837b33d740323b317e88e5291ec62f81f64736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000066cecf48dd1b2e6d730115fc3b341dc607ff8e3d000000000000000000000000deca7e3aff3f09425feac4fd5924cab5986ffcd0000000000000000000000000000000000000000019f44aeb8ffe4bf07c8800000000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d00000000000000000000000000000000000000000000017b7883c069166000000000000000000000000000000000000000000000000000000000000000093a8000000000000000000000000000000000000000000000000000000000000000c8000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000013da329b633647180000000000000000000000000000000000000000000000000000000000000000000044e4f56430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044e4f564300000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): NOVC
Arg [1] : _symbol (string): NOVC
Arg [2] : _rewardsAddress (address): 0x66ceCF48DD1b2E6D730115fc3b341dC607fF8e3D
Arg [3] : _forLiquidity (address): 0xdEcA7e3afF3F09425FEAc4fD5924cab5986fFCD0
Arg [4] : _initialAmount (uint256): 8032456946000000000000000000
Arg [5] : _pancakeRouter (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [6] : _minRewardUserAmt (uint256): 7000000000000000000000
Arg [7] : _rewardDistTime (uint256): 604800
Arg [8] : _fee (uint256): 200
Arg [9] : _startLimitBlockCount (uint256): 30
Arg [10] : _startLimitAmount (uint256): 1500000000000000000000000
-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [2] : 00000000000000000000000066cecf48dd1b2e6d730115fc3b341dc607ff8e3d
Arg [3] : 000000000000000000000000deca7e3aff3f09425feac4fd5924cab5986ffcd0
Arg [4] : 000000000000000000000000000000000000000019f44aeb8ffe4bf07c880000
Arg [5] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [6] : 00000000000000000000000000000000000000000000017b7883c06916600000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000093a80
Arg [8] : 00000000000000000000000000000000000000000000000000000000000000c8
Arg [9] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [10] : 000000000000000000000000000000000000000000013da329b6336471800000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [12] : 4e4f564300000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [14] : 4e4f564300000000000000000000000000000000000000000000000000000000
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.