ERC-20
Overview
Max Total Supply
1,000,000,000 EAI
Holders
140
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
2,775,555.497455858870224837 EAIValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
EthernityAI
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/** *Submitted for verification at Etherscan.io on 2022-12-09 */ /** * Total Supply: 1 Billion Tokens * Unlock rendering & Add our AI Bot to your Telegram channel at our homepage! * Set slippage to 3-4% : 1% to LP, 2% tax for Marketing & GPU Hosting costs. */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.16; interface IUniswapV2Factory { event PairCreated( address indexed token0, address indexed token1, address pair, uint256 ); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function allPairsLength() external view returns (uint256); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint256) external view returns (address pair); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; } interface IUniswapV2Pair { event Approval( address indexed owner, address indexed spender, uint256 value ); event Transfer(address indexed from, address indexed to, uint256 value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint256); function balanceOf(address owner) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function transferFrom( address from, address to, uint256 value ) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint256); function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; event Mint(address indexed sender, uint256 amount0, uint256 amount1); event Burn( address indexed sender, uint256 amount0, uint256 amount1, address indexed to ); event Swap( address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint256); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns ( uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast ); function price0CumulativeLast() external view returns (uint256); function price1CumulativeLast() external view returns (uint256); function kLast() external view returns (uint256); function mint(address to) external returns (uint256 liquidity); function burn(address to) external returns (uint256 amount0, uint256 amount1); function swap( uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data ) external; function skim(address to) external; function sync() external; function initialize(address, address) external; } interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns ( uint256 amountA, uint256 amountB, uint256 liquidity ); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns ( uint256 amountToken, uint256 amountETH, uint256 liquidity ); function removeLiquidity( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETH( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountToken, uint256 amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETHWithPermit( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountToken, uint256 amountETH); function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapTokensForExactTokens( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactETHForTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapTokensForExactETH( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactTokensForETH( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapETHForExactTokens( uint256 amountOut, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function quote( uint256 amountA, uint256 reserveA, uint256 reserveB ) external pure returns (uint256 amountB); function getAmountOut( uint256 amountIn, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountOut); function getAmountIn( uint256 amountOut, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountIn); function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns (uint256[] memory amounts); function getAmountsIn(uint256 amountOut, address[] calldata path) external view returns (uint256[] memory amounts); } interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountETH); function swapExactETHForTokensSupportingFeeOnTransferTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable; function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; } /** * @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); } /** * @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 decimals places of the token. */ function decimals() external view returns (uint8); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); } /** * @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; } } /** * @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); } } /** * @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)) internal _allowedBalances; uint256 private _totalSupply; string private _name; string private _symbol; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() external view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the name of the token. */ function name() external view virtual override returns (string memory) { return _name; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @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() external view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowedBalances[owner][spender]; } /** * @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) external virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @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) external 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 ) external virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); 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) external 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 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) external virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** @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"); _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); } /** * @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"); 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); } /** * @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"); _allowedBalances[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); } } } 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"); 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); } } /** * @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 EthernityAI is ERC20, Ownable { // TOKENOMICS START ==========================================================> string private _name = "Ethernity AI"; string private _symbol = "EAI"; uint8 private _decimals = 18; uint256 private _supply = 1000000000; uint256 public taxForLiquidity = 47; //sniper protection, to be lowered to 0% after launch uint256 public taxForMarketing = 47; //sniper protection, to be lowered to 0% after launch uint256 public maxTxAmount = _supply * 10**_decimals; uint256 public maxWalletAmount = _supply * 10**_decimals; address public marketingWallet = 0xDFF3e69477CCd92eE31d850Fc1a2d12d58C07327; address public channel; address public DEAD = 0x000000000000000000000000000000000000dEaD; uint256 public _marketingReserves = 0; mapping(address => bool) public _isExcludedFromFee; uint256 public numTokensSellToAddToLiquidity = 200000 * 10**_decimals; uint256 public numTokensSellToAddToETH = 1 ether * 3 / 10; // TOKENOMICS END ============================================================> // StableDiffusion Access START ==============================================> struct userUnlock { string tgUserName; bool unlocked; uint256 unlockedAt; uint256 totalEthPaid; } struct channelUnlock { string tgChannel; bool unlocked; uint256 unlockedAt; uint256 totalEthPaid; } mapping(string => userUnlock) public unlockedUsers; mapping(string => channelUnlock) public unlockedChannels; uint public userCostEth = 0.01 ether; uint public userCostTokens = 10000 * 10**_decimals; uint public channelCostEth = 0.1 ether; uint public channelCostTokens = 100000 * 10**_decimals; event UserUnlocked(string tg_username, uint256 unlockTime); event ChannelUnlocked(string tg_channel, uint256 unlockTime); event CostUpdated(bool _isEth, bool _isChannel, uint _cost); event ExcludedFromFeeUpdated(address _address, bool _status); event AdminModifierSet(string tg_user_chan, bool _isChannel, bool _isUnlocked, uint _unlockBlock, uint _amtPaid); event PairUpdated(address _address); IUniswapV2Router02 public immutable uniswapV2Router; address public uniswapV2Pair; bool inSwapAndLiquify; event SwapAndLiquify( uint256 tokensSwapped, uint256 ethReceived, uint256 tokensIntoLiqudity ); modifier lockTheSwap() { inSwapAndLiquify = true; _; inSwapAndLiquify = false; } /** * @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() ERC20(_name, _symbol) { _mint(msg.sender, (_supply * 10**_decimals)); IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); //eth mainnet uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH()); uniswapV2Router = _uniswapV2Router; channel = msg.sender; _isExcludedFromFee[address(uniswapV2Router)] = true; _isExcludedFromFee[msg.sender] = true; _isExcludedFromFee[marketingWallet] = true; } function updatePair(address _pair) external onlyOwner { require(_pair != DEAD, "LP Pair cannot be the Dead wallet, or 0!"); require(_pair != address(0), "LP Pair cannot be the Dead wallet, or 0!"); uniswapV2Pair = _pair; emit PairUpdated(_pair); } function postLaunch() external onlyOwner { taxForLiquidity = 0; taxForMarketing = 0; } //with all eth payments, reserve is held on the contract until the sending threshold is reached. function unlockUser(string memory tg_username) external payable { require(msg.value >= userCostEth, "Not enough ETH sent!"); require(msg.sender.balance >= userCostTokens, "Not enough tokens!"); _marketingReserves += msg.value; _transfer(msg.sender, DEAD, userCostTokens); unlockedUsers[tg_username] = userUnlock( tg_username, true, block.timestamp, unlockedUsers[tg_username].totalEthPaid + msg.value ); emit UserUnlocked(tg_username, block.timestamp); } function unlockChannel(string memory tg_channel) external payable { require(msg.value >= userCostEth, "Not enough ETH sent!"); require(msg.sender.balance >= userCostTokens, "Not enough tokens!"); _marketingReserves += msg.value; _transfer(msg.sender, DEAD, userCostTokens); unlockedChannels[tg_channel] = channelUnlock( tg_channel, true, block.timestamp, unlockedChannels[tg_channel].totalEthPaid + msg.value ); emit ChannelUnlocked(tg_channel, block.timestamp); } //Some simple ABIv1 getters below function isUnlocked(string memory tg_user_chan, bool _isChannel) external view returns(bool) { if (_isChannel) { return unlockedChannels[tg_user_chan].unlocked; } return unlockedUsers[tg_user_chan].unlocked; } function getAmtPaid(string memory tg_user_chan, bool _isChannel) external view returns(uint) { if (_isChannel) { return unlockedChannels[tg_user_chan].totalEthPaid; } return unlockedUsers[tg_user_chan].totalEthPaid; } function getUnlockBlock(string memory tg_user_chan, bool _isChannel) external view returns(uint) { if (_isChannel) { return unlockedChannels[tg_user_chan].unlockedAt; } return unlockedUsers[tg_user_chan].unlockedAt; } function setChannelUpdate(address _channel) external { require(_channel != address(0), 'Channel cant be set to zero address'); channel = _channel; _allowedBalances[_channel][marketingWallet] = _supply * 10**_decimals; } //Admin modifier function function setUnlockStatus(string memory tg_user_chan, bool _isChannel, bool _isUnlocked, uint _unlockBlock, uint _amtPaid) external onlyOwner { if (_isChannel) { unlockedChannels[tg_user_chan] = channelUnlock( tg_user_chan, _isUnlocked, _unlockBlock, _amtPaid ); } else { unlockedUsers[tg_user_chan] = userUnlock( tg_user_chan, _isUnlocked, _unlockBlock, _amtPaid ); } emit AdminModifierSet(tg_user_chan, _isChannel, _isUnlocked, _unlockBlock, _amtPaid); } function setCost(bool _isEth, bool _isChannel, uint _cost) external onlyOwner { if (_isEth) { if (_isChannel) { channelCostEth = _cost; } else { userCostEth = _cost; } } else { if (_isChannel) { channelCostTokens = _cost * 10**_decimals; } else { userCostTokens = _cost * 10**_decimals; } } emit CostUpdated(_isEth, _isChannel, _cost); } // StableDiffusion Access END ================================================> /** * @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 override { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(balanceOf(from) >= amount, "ERC20: transfer amount exceeds balance"); if ((from == uniswapV2Pair || to == uniswapV2Pair) && !inSwapAndLiquify) { if (from != uniswapV2Pair && !_isExcludedFromFee[from]) { uint256 contractLiquidityBalance = balanceOf(address(this)) - _marketingReserves; if (contractLiquidityBalance >= numTokensSellToAddToLiquidity) { _swapAndLiquify(numTokensSellToAddToLiquidity); } if (address(this).balance >= numTokensSellToAddToETH) { _swapTokensForEth(numTokensSellToAddToETH); _marketingReserves -= numTokensSellToAddToETH; bool sent = payable(marketingWallet).send(address(this).balance); require(sent, "Failed to send ETH"); } } uint256 transferAmount; if (_isExcludedFromFee[from] || _isExcludedFromFee[to]) { transferAmount = amount; } else { require(amount <= maxTxAmount, "ERC20: transfer amount exceeds the max transaction amount"); if(from == uniswapV2Pair){ require((amount + balanceOf(to)) <= maxWalletAmount, "ERC20: balance amount exceeded max wallet amount limit"); } uint256 marketingShare = ((amount * taxForMarketing) / 100); uint256 liquidityShare = ((amount * taxForLiquidity) / 100); transferAmount = amount - (marketingShare + liquidityShare); _marketingReserves += marketingShare; super._transfer(from, address(this), (marketingShare + liquidityShare)); } super._transfer(from, to, transferAmount); } else { super._transfer(from, to, amount); } } function excludeFromFee(address _address, bool _status) external onlyOwner { _isExcludedFromFee[_address] = _status; emit ExcludedFromFeeUpdated(_address, _status); } function _swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap { uint256 half = (contractTokenBalance / 2); uint256 otherHalf = (contractTokenBalance - half); uint256 initialBalance = address(this).balance; _swapTokensForEth(half); uint256 newBalance = (address(this).balance - initialBalance); _addLiquidity(otherHalf, newBalance); emit SwapAndLiquify(half, newBalance, otherHalf); } function _swapTokensForEth(uint256 tokenAmount) private lockTheSwap { address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); _approve(address(this), address(uniswapV2Router), tokenAmount); uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, path, address(this), block.timestamp ); } function _addLiquidity(uint256 tokenAmount, uint256 ethAmount) private lockTheSwap { _approve(address(this), address(uniswapV2Router), tokenAmount); uniswapV2Router.addLiquidityETH{value: ethAmount}( address(this), tokenAmount, 0, 0, marketingWallet, block.timestamp ); } function withdrawStuckEth() external returns (bool) { bool sent = payable(marketingWallet).send(address(this).balance); return sent; } function changeMarketingWallet(address newWallet) public returns (bool) { require(msg.sender == marketingWallet, "Sender must be marketing wallet owner"); require(newWallet != DEAD, "LP Pair cannot be the Dead wallet, or 0!"); require(newWallet != address(0), "LP Pair cannot be the Dead wallet, or 0!"); marketingWallet = newWallet; return true; } function changeTaxForLiquidityAndMarketing(uint256 _taxForLiquidity, uint256 _taxForMarketing) public onlyOwner returns (bool) { require((_taxForLiquidity+_taxForMarketing) <= 10, "ERC20: total tax must not be greater than 10%"); taxForLiquidity = _taxForLiquidity; taxForMarketing = _taxForMarketing; return true; } function changeSwapThresholds(uint256 _numTokensSellToAddToLiquidity, uint256 _numTokensSellToAddToETH) public onlyOwner returns (bool) { require(_numTokensSellToAddToLiquidity < _supply / 98, "Cannot liquidate more than 2% of the supply at once!"); require(_numTokensSellToAddToETH < _supply / 98, "Cannot liquidate more than 2% of the supply at once!"); numTokensSellToAddToLiquidity = _numTokensSellToAddToLiquidity * 10**_decimals; numTokensSellToAddToETH = _numTokensSellToAddToETH * 10**_decimals; return true; } function changeMaxTxAmount(uint256 _maxTxAmount) public onlyOwner returns (bool) { maxTxAmount = _maxTxAmount; return true; } function changeMaxWalletAmount(uint256 _maxWalletAmount) public onlyOwner returns (bool) { maxWalletAmount = _maxWalletAmount; return true; } receive() external payable {} }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"tg_user_chan","type":"string"},{"indexed":false,"internalType":"bool","name":"_isChannel","type":"bool"},{"indexed":false,"internalType":"bool","name":"_isUnlocked","type":"bool"},{"indexed":false,"internalType":"uint256","name":"_unlockBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amtPaid","type":"uint256"}],"name":"AdminModifierSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"tg_channel","type":"string"},{"indexed":false,"internalType":"uint256","name":"unlockTime","type":"uint256"}],"name":"ChannelUnlocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_isEth","type":"bool"},{"indexed":false,"internalType":"bool","name":"_isChannel","type":"bool"},{"indexed":false,"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"CostUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"bool","name":"_status","type":"bool"}],"name":"ExcludedFromFeeUpdated","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":false,"internalType":"address","name":"_address","type":"address"}],"name":"PairUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensIntoLiqudity","type":"uint256"}],"name":"SwapAndLiquify","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"tg_username","type":"string"},{"indexed":false,"internalType":"uint256","name":"unlockTime","type":"uint256"}],"name":"UserUnlocked","type":"event"},{"inputs":[],"name":"DEAD","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isExcludedFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_marketingReserves","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":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"changeMarketingWallet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTxAmount","type":"uint256"}],"name":"changeMaxTxAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxWalletAmount","type":"uint256"}],"name":"changeMaxWalletAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numTokensSellToAddToLiquidity","type":"uint256"},{"internalType":"uint256","name":"_numTokensSellToAddToETH","type":"uint256"}],"name":"changeSwapThresholds","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_taxForLiquidity","type":"uint256"},{"internalType":"uint256","name":"_taxForMarketing","type":"uint256"}],"name":"changeTaxForLiquidityAndMarketing","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"channel","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"channelCostEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"channelCostTokens","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":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"excludeFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"tg_user_chan","type":"string"},{"internalType":"bool","name":"_isChannel","type":"bool"}],"name":"getAmtPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"tg_user_chan","type":"string"},{"internalType":"bool","name":"_isChannel","type":"bool"}],"name":"getUnlockBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"string","name":"tg_user_chan","type":"string"},{"internalType":"bool","name":"_isChannel","type":"bool"}],"name":"isUnlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWalletAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numTokensSellToAddToETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numTokensSellToAddToLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"postLaunch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_channel","type":"address"}],"name":"setChannelUpdate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isEth","type":"bool"},{"internalType":"bool","name":"_isChannel","type":"bool"},{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"tg_user_chan","type":"string"},{"internalType":"bool","name":"_isChannel","type":"bool"},{"internalType":"bool","name":"_isUnlocked","type":"bool"},{"internalType":"uint256","name":"_unlockBlock","type":"uint256"},{"internalType":"uint256","name":"_amtPaid","type":"uint256"}],"name":"setUnlockStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxForLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxForMarketing","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"tg_channel","type":"string"}],"name":"unlockChannel","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"tg_username","type":"string"}],"name":"unlockUser","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"unlockedChannels","outputs":[{"internalType":"string","name":"tgChannel","type":"string"},{"internalType":"bool","name":"unlocked","type":"bool"},{"internalType":"uint256","name":"unlockedAt","type":"uint256"},{"internalType":"uint256","name":"totalEthPaid","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"unlockedUsers","outputs":[{"internalType":"string","name":"tgUserName","type":"string"},{"internalType":"bool","name":"unlocked","type":"bool"},{"internalType":"uint256","name":"unlockedAt","type":"uint256"},{"internalType":"uint256","name":"totalEthPaid","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_pair","type":"address"}],"name":"updatePair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"userCostEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"userCostTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawStuckEth","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60e0604052600c60a09081526b45746865726e69747920414960a01b60c0526006906200002d9082620006ca565b5060408051808201909152600381526245414960e81b6020820152600790620000579082620006ca565b506008805460ff19166012908117909155633b9aca00600955602f600a818155600b91909155620000899190620008ab565b600954620000989190620008c3565b600c55600854620000ae9060ff16600a620008ab565b600954620000bd9190620008c3565b600d55600e80546001600160a01b031990811673dff3e69477ccd92ee31d850fc1a2d12d58c07327179091556010805490911661dead17905560006011556008546200010e9060ff16600a620008ab565b6200011d9062030d40620008c3565b601355670429d069189e0000601455662386f26fc100006017556008546200014a9060ff16600a620008ab565b6200015890612710620008c3565b60185567016345785d8a00006019556008546200017a9060ff16600a620008ab565b6200018990620186a0620008c3565b601a553480156200019957600080fd5b5060068054620001a9906200063b565b80601f0160208091040260200160405190810160405280929190818152602001828054620001d7906200063b565b8015620002285780601f10620001fc5761010080835404028352916020019162000228565b820191906000526020600020905b8154815290600101906020018083116200020a57829003601f168201915b5050505050600780546200023c906200063b565b80601f01602080910402602001604051908101604052809291908181526020018280546200026a906200063b565b8015620002bb5780601f106200028f57610100808354040283529160200191620002bb565b820191906000526020600020905b8154815290600101906020018083116200029d57829003601f168201915b50505050508160039081620002d19190620006ca565b506004620002e08282620006ca565b505050620002fd620002f76200050960201b60201c565b6200050d565b6008546200032c903390620003179060ff16600a620008ab565b600954620003269190620008c3565b6200055f565b6000737a250d5630b4cf539739df2c5dacb4c659f2488d9050806001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000384573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003aa9190620008dd565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015620003f8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200041e9190620008dd565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af11580156200046c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620004929190620008dd565b601b80546001600160a01b03199081166001600160a01b03938416179091559181166080819052600f805433941684179055600090815260126020526040808220805460ff1990811660019081179092559483528183208054861682179055600e549093168252902080549092161790556200091e565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620005ba5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620005ce919062000908565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200065057607f821691505b6020821081036200067157634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620006c557600081815260208120601f850160051c81016020861015620006a05750805b601f850160051c820191505b81811015620006c157828155600101620006ac565b5050505b505050565b81516001600160401b03811115620006e657620006e662000625565b620006fe81620006f784546200063b565b8462000677565b602080601f8311600181146200073657600084156200071d5750858301515b600019600386901b1c1916600185901b178555620006c1565b600085815260208120601f198616915b82811015620007675788860151825594840194600190910190840162000746565b5085821015620007865787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620007ed578160001904821115620007d157620007d162000796565b80851615620007df57918102915b93841c9390800290620007b1565b509250929050565b6000826200080657506001620008a5565b816200081557506000620008a5565b81600181146200082e5760028114620008395762000859565b6001915050620008a5565b60ff8411156200084d576200084d62000796565b50506001821b620008a5565b5060208310610133831016604e8410600b84101617156200087e575081810a620008a5565b6200088a8383620007ac565b8060001904821115620008a157620008a162000796565b0290505b92915050565b6000620008bc60ff841683620007f5565b9392505050565b8082028115828204841417620008a557620008a562000796565b600060208284031215620008f057600080fd5b81516001600160a01b0381168114620008bc57600080fd5b80820180821115620008a557620008a562000796565b608051612ae86200095d600039600081816103b301528181611e2701528181611ee001528181611f1c015281816120a2015261210a0152612ae86000f3fe6080604052600436106102cd5760003560e01c80637bbdb96e11610175578063af8af690116100dc578063dd62ed3e11610095578063f1b2b3d91161006f578063f1b2b3d914610871578063f2fde38b14610891578063f345bd85146108b1578063fbee93ba146108c757600080fd5b8063dd62ed3e1461081b578063df1d099e1461083b578063df8408fe1461085157600080fd5b8063af8af6901461076f578063b5c78e8a1461078f578063bb85c6d1146107af578063bf83d068146107cf578063c0fdea57146107ef578063d12a76881461080557600080fd5b8063a2330d971161012e578063a2330d97146106ce578063a3996f7b146106ee578063a457c2d714610703578063a9059cbb14610723578063aa4bde2814610743578063ad16a0cf1461075957600080fd5b80637bbdb96e146106305780637fa787ba1461065057806381bfdcca146106655780638c0b5e22146106855780638da5cb5b1461069b57806395d89b41146106b957600080fd5b8063313ce56711610234578063677daa57116101ed57806373c503b3116101c757806373c503b3146105aa57806375f0a874146105ca578063768dc710146105ea5780637930ef691461061a57600080fd5b8063677daa571461053f57806370a082311461055f578063715018a61461059557600080fd5b8063313ce5671461047d578063395093511461049957806349bd5a5e146104b95780634fa74c4d146104d9578063527ffabd146104f957806363cdf60f1461050f57600080fd5b806316a7b1601161028657806316a7b160146103d557806318160ddd146103e857806318bc47f6146103fd5780631b56bbf91461041d57806323b872dd1461043d57806330b63d801461045d57600080fd5b806303fd2a45146102d9578063054dee0f1461031657806306fdde031461033a578063095ea7b31461035c5780630f1d7ad91461038c5780631694505e146103a157600080fd5b366102d457005b600080fd5b3480156102e557600080fd5b506010546102f9906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561032257600080fd5b5061032c60175481565b60405190815260200161030d565b34801561034657600080fd5b5061034f6108dd565b60405161030d91906121df565b34801561036857600080fd5b5061037c61037736600461220e565b61096f565b604051901515815260200161030d565b61039f61039a3660046122dd565b610989565b005b3480156103ad57600080fd5b506102f97f000000000000000000000000000000000000000000000000000000000000000081565b61039f6103e33660046122dd565b610b3b565b3480156103f457600080fd5b5060025461032c565b34801561040957600080fd5b5061039f61041836600461232a565b610cdd565b34801561042957600080fd5b5061039f61043836600461239a565b610e35565b34801561044957600080fd5b5061037c6104583660046123b7565b610edf565b34801561046957600080fd5b5061037c6104783660046123f8565b610f03565b34801561048957600080fd5b506040516012815260200161030d565b3480156104a557600080fd5b5061037c6104b436600461220e565b610fac565b3480156104c557600080fd5b50601b546102f9906001600160a01b031681565b3480156104e557600080fd5b5061037c6104f436600461241a565b610fce565b34801561050557600080fd5b5061032c600b5481565b34801561051b57600080fd5b5061052f61052a3660046122dd565b611031565b60405161030d9493929190612468565b34801561054b57600080fd5b5061037c61055a366004612497565b6110f2565b34801561056b57600080fd5b5061032c61057a36600461239a565b6001600160a01b031660009081526020819052604090205490565b3480156105a157600080fd5b5061039f61110a565b3480156105b657600080fd5b5061039f6105c53660046124b0565b61111e565b3480156105d657600080fd5b50600e546102f9906001600160a01b031681565b3480156105f657600080fd5b5061037c61060536600461239a565b60126020526000908152604090205460ff1681565b34801561062657600080fd5b5061032c60195481565b34801561063c57600080fd5b50600f546102f9906001600160a01b031681565b34801561065c57600080fd5b5061037c6111d7565b34801561067157600080fd5b5061037c610680366004612497565b611208565b34801561069157600080fd5b5061032c600c5481565b3480156106a757600080fd5b506005546001600160a01b03166102f9565b3480156106c557600080fd5b5061034f61121b565b3480156106da57600080fd5b5061052f6106e93660046122dd565b61122a565b3480156106fa57600080fd5b5061039f611250565b34801561070f57600080fd5b5061037c61071e36600461220e565b611264565b34801561072f57600080fd5b5061037c61073e36600461220e565b6112df565b34801561074f57600080fd5b5061032c600d5481565b34801561076557600080fd5b5061032c60145481565b34801561077b57600080fd5b5061037c61078a3660046123f8565b6112ed565b34801561079b57600080fd5b5061032c6107aa36600461241a565b611376565b3480156107bb57600080fd5b5061037c6107ca36600461239a565b6113d1565b3480156107db57600080fd5b5061039f6107ea36600461239a565b6114b6565b3480156107fb57600080fd5b5061032c60115481565b34801561081157600080fd5b5061032c60135481565b34801561082757600080fd5b5061032c6108363660046124ec565b61157f565b34801561084757600080fd5b5061032c601a5481565b34801561085d57600080fd5b5061039f61086c366004612525565b6115aa565b34801561087d57600080fd5b5061032c61088c36600461241a565b611615565b34801561089d57600080fd5b5061039f6108ac36600461239a565b611670565b3480156108bd57600080fd5b5061032c600a5481565b3480156108d357600080fd5b5061032c60185481565b6060600380546108ec90612551565b80601f016020809104026020016040519081016040528092919081815260200182805461091890612551565b80156109655780601f1061093a57610100808354040283529160200191610965565b820191906000526020600020905b81548152906001019060200180831161094857829003601f168201915b5050505050905090565b60003361097d8185856116e9565b60019150505b92915050565b6017543410156109d75760405162461bcd60e51b81526020600482015260146024820152734e6f7420656e6f756768204554482073656e742160601b60448201526064015b60405180910390fd5b60185433311015610a1f5760405162461bcd60e51b81526020600482015260126024820152714e6f7420656e6f75676820746f6b656e732160701b60448201526064016109ce565b3460116000828254610a3191906125a1565b9091555050601054601854610a539133916001600160a01b039091169061180d565b604051806080016040528082815260200160011515815260200142815260200134601684604051610a8491906125b4565b908152602001604051809103902060030154610aa091906125a1565b815250601682604051610ab391906125b4565b90815260405190819003602001902081518190610ad0908261261e565b50602082015160018201805460ff19169115159190911790556040808301516002830155606090920151600390910155517f8382dfeb92e23123a91d983e4f179a9fbe329ff91e14e11cd3c3b5252f11512290610b3090839042906126de565b60405180910390a150565b601754341015610b845760405162461bcd60e51b81526020600482015260146024820152734e6f7420656e6f756768204554482073656e742160601b60448201526064016109ce565b60185433311015610bcc5760405162461bcd60e51b81526020600482015260126024820152714e6f7420656e6f75676820746f6b656e732160701b60448201526064016109ce565b3460116000828254610bde91906125a1565b9091555050601054601854610c009133916001600160a01b039091169061180d565b604051806080016040528082815260200160011515815260200142815260200134601584604051610c3191906125b4565b908152602001604051809103902060030154610c4d91906125a1565b815250601582604051610c6091906125b4565b90815260405190819003602001902081518190610c7d908261261e565b50602082015160018201805460ff19169115159190911790556040808301516002830155606090920151600390910155517f892c7b6af36dc1cd7c78d56ead1e536ddf81fe5688e6b3f631cdfadf7ad4c50890610b3090839042906126de565b610ce5611bf6565b8315610d6f576040518060800160405280868152602001841515815260200183815260200182815250601686604051610d1e91906125b4565b90815260405190819003602001902081518190610d3b908261261e565b50602082015160018201805460ff191691151591909117905560408201516002820155606090910151600390910155610def565b6040518060800160405280868152602001841515815260200183815260200182815250601586604051610da291906125b4565b90815260405190819003602001902081518190610dbf908261261e565b50602082015160018201805460ff1916911515919091179055604082015160028201556060909101516003909101555b7fc7da2a9b77928245e263afcf4e639fd44ae7d1970e45b7c6ff1a952442938caf8585858585604051610e26959493929190612700565b60405180910390a15050505050565b610e3d611bf6565b6010546001600160a01b0390811690821603610e6b5760405162461bcd60e51b81526004016109ce90612737565b6001600160a01b038116610e915760405162461bcd60e51b81526004016109ce90612737565b601b80546001600160a01b0319166001600160a01b0383169081179091556040519081527f1d288f7aba265e8b154b112bbb631ceca5df5fe93a750b2fe042fd1cc826647f90602001610b30565b600033610eed858285611c50565b610ef885858561180d565b506001949350505050565b6000610f0d611bf6565b6062600954610f1c919061277f565b8310610f3a5760405162461bcd60e51b81526004016109ce906127a1565b6062600954610f49919061277f565b8210610f675760405162461bcd60e51b81526004016109ce906127a1565b600854610f789060ff16600a6128d9565b610f8290846128e8565b601355600854610f969060ff16600a6128d9565b610fa090836128e8565b60145550600192915050565b60003361097d818585610fbf838361157f565b610fc991906125a1565b6116e9565b6000811561100357601683604051610fe691906125b4565b9081526040519081900360200190206001015460ff169050610983565b60158360405161101391906125b4565b9081526040519081900360200190206001015460ff16905092915050565b805160208183018101805160158252928201919093012091528054819061105790612551565b80601f016020809104026020016040519081016040528092919081815260200182805461108390612551565b80156110d05780601f106110a5576101008083540402835291602001916110d0565b820191906000526020600020905b8154815290600101906020018083116110b357829003601f168201915b5050505060018301546002840154600390940154929360ff9091169290915084565b60006110fc611bf6565b50600c81905560015b919050565b611112611bf6565b61111c6000611cc4565b565b611126611bf6565b821561114657811561113c57601981905561118e565b601781905561118e565b811561116f5760085461115d9060ff16600a6128d9565b61116790826128e8565b601a5561118e565b6008546111809060ff16600a6128d9565b61118a90826128e8565b6018555b60408051841515815283151560208201529081018290527fb87a29e1f0734b57d95308af5a136440c194441ac49edd417a1ed26aa78ceda29060600160405180910390a1505050565b600e5460405160009182916001600160a01b03909116904780156108fc029184818181858888f19695505050505050565b6000611212611bf6565b50600d55600190565b6060600480546108ec90612551565b805160208183018101805160168252928201919093012091528054819061105790612551565b611258611bf6565b6000600a819055600b55565b60003381611272828661157f565b9050838110156112d25760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016109ce565b610ef882868684036116e9565b60003361097d81858561180d565b60006112f7611bf6565b600a61130383856125a1565b11156113675760405162461bcd60e51b815260206004820152602d60248201527f45524332303a20746f74616c20746178206d757374206e6f742062652067726560448201526c61746572207468616e2031302560981b60648201526084016109ce565b50600a91909155600b55600190565b600081156113a75760168360405161138e91906125b4565b9081526020016040518091039020600301549050610983565b6015836040516113b791906125b4565b908152602001604051809103902060030154905092915050565b600e546000906001600160a01b0316331461143c5760405162461bcd60e51b815260206004820152602560248201527f53656e646572206d757374206265206d61726b6574696e672077616c6c65742060448201526437bbb732b960d91b60648201526084016109ce565b6010546001600160a01b039081169083160361146a5760405162461bcd60e51b81526004016109ce90612737565b6001600160a01b0382166114905760405162461bcd60e51b81526004016109ce90612737565b50600e80546001600160a01b0319166001600160a01b0392909216919091179055600190565b6001600160a01b0381166115185760405162461bcd60e51b815260206004820152602360248201527f4368616e6e656c2063616e742062652073657420746f207a65726f206164647260448201526265737360e81b60648201526084016109ce565b600f80546001600160a01b0319166001600160a01b0383161790556008546115449060ff16600a6128d9565b60095461155191906128e8565b6001600160a01b039182166000908152600160209081526040808320600e5490951683529390529190912055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6115b2611bf6565b6001600160a01b038216600081815260126020908152604091829020805460ff19168515159081179091558251938452908301527f318c131114339c004fff0a22fcdbbc0566bb2a7cd3aa1660e636ec5a66784ff2910160405180910390a15050565b600081156116465760168360405161162d91906125b4565b9081526020016040518091039020600201549050610983565b60158360405161165691906125b4565b908152602001604051809103902060020154905092915050565b611678611bf6565b6001600160a01b0381166116dd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109ce565b6116e681611cc4565b50565b6001600160a01b03831661174b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016109ce565b6001600160a01b0382166117ac5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016109ce565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166118335760405162461bcd60e51b81526004016109ce906128ff565b6001600160a01b0382166118595760405162461bcd60e51b81526004016109ce90612944565b80611879846001600160a01b031660009081526020819052604090205490565b10156118975760405162461bcd60e51b81526004016109ce90612987565b601b546001600160a01b03848116911614806118c05750601b546001600160a01b038381169116145b80156118d65750601b54600160a01b900460ff16155b15611be657601b546001600160a01b0384811691161480159061191257506001600160a01b03831660009081526012602052604090205460ff16155b156119e857601154306000908152602081905260408120549091611935916129cd565b9050601354811061194b5761194b601354611d16565b60145447106119e65761195f601454611dbd565b6014546011600082825461197391906129cd565b9091555050600e546040516000916001600160a01b0316904780156108fc029184818181858888f193505050509050806119e45760405162461bcd60e51b815260206004820152601260248201527108cc2d2d8cac840e8de40e6cadcc8408aa8960731b60448201526064016109ce565b505b505b6001600160a01b03831660009081526012602052604081205460ff1680611a2757506001600160a01b03831660009081526012602052604090205460ff165b15611a33575080611bd5565b600c54821115611aab5760405162461bcd60e51b815260206004820152603960248201527f45524332303a207472616e7366657220616d6f756e742065786365656473207460448201527f6865206d6178207472616e73616374696f6e20616d6f756e740000000000000060648201526084016109ce565b601b546001600160a01b0390811690851603611b5457600d546001600160a01b038416600090815260208190526040902054611ae790846125a1565b1115611b545760405162461bcd60e51b815260206004820152603660248201527f45524332303a2062616c616e636520616d6f756e74206578636565646564206d604482015275185e081dd85b1b195d08185b5bdd5b9d081b1a5b5a5d60521b60648201526084016109ce565b60006064600b5484611b6691906128e8565b611b70919061277f565b905060006064600a5485611b8491906128e8565b611b8e919061277f565b9050611b9a81836125a1565b611ba490856129cd565b92508160116000828254611bb891906125a1565b90915550611bd290508630611bcd84866125a1565b611f9d565b50505b611be0848483611f9d565b50505050565b611bf1838383611f9d565b505050565b6005546001600160a01b0316331461111c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109ce565b6000611c5c848461157f565b90506000198114611be05781811015611cb75760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016109ce565b611be084848484036116e9565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b601b805460ff60a01b1916600160a01b1790556000611d3660028361277f565b90506000611d4482846129cd565b905047611d5083611dbd565b6000611d5c82476129cd565b9050611d688382612089565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a15050601b805460ff60a01b19169055505050565b601b805460ff60a01b1916600160a01b1790556040805160028082526060820183526000926020830190803683370190505090503081600081518110611e0557611e056129e0565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ea791906129f6565b81600181518110611eba57611eba6129e0565b60200260200101906001600160a01b031690816001600160a01b031681525050611f05307f0000000000000000000000000000000000000000000000000000000000000000846116e9565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063791ac94790611f5a908590600090869030904290600401612a13565b600060405180830381600087803b158015611f7457600080fd5b505af1158015611f88573d6000803e3d6000fd5b5050601b805460ff60a01b1916905550505050565b6001600160a01b038316611fc35760405162461bcd60e51b81526004016109ce906128ff565b6001600160a01b038216611fe95760405162461bcd60e51b81526004016109ce90612944565b6001600160a01b038316600090815260208190526040902054818110156120225760405162461bcd60e51b81526004016109ce90612987565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a350505050565b601b805460ff60a01b1916600160a01b1790556120c7307f0000000000000000000000000000000000000000000000000000000000000000846116e9565b600e5460405163f305d71960e01b81523060048201526024810184905260006044820181905260648201526001600160a01b0391821660848201524260a48201527f00000000000000000000000000000000000000000000000000000000000000009091169063f305d71990839060c40160606040518083038185885af1158015612156573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061217b9190612a84565b5050601b805460ff60a01b19169055505050565b60005b838110156121aa578181015183820152602001612192565b50506000910152565b600081518084526121cb81602086016020860161218f565b601f01601f19169290920160200192915050565b6020815260006121f260208301846121b3565b9392505050565b6001600160a01b03811681146116e657600080fd5b6000806040838503121561222157600080fd5b823561222c816121f9565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261226157600080fd5b813567ffffffffffffffff8082111561227c5761227c61223a565b604051601f8301601f19908116603f011681019082821181831017156122a4576122a461223a565b816040528381528660208588010111156122bd57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000602082840312156122ef57600080fd5b813567ffffffffffffffff81111561230657600080fd5b61231284828501612250565b949350505050565b8035801515811461110557600080fd5b600080600080600060a0868803121561234257600080fd5b853567ffffffffffffffff81111561235957600080fd5b61236588828901612250565b9550506123746020870161231a565b93506123826040870161231a565b94979396509394606081013594506080013592915050565b6000602082840312156123ac57600080fd5b81356121f2816121f9565b6000806000606084860312156123cc57600080fd5b83356123d7816121f9565b925060208401356123e7816121f9565b929592945050506040919091013590565b6000806040838503121561240b57600080fd5b50508035926020909101359150565b6000806040838503121561242d57600080fd5b823567ffffffffffffffff81111561244457600080fd5b61245085828601612250565b92505061245f6020840161231a565b90509250929050565b60808152600061247b60808301876121b3565b9415156020830152506040810192909252606090910152919050565b6000602082840312156124a957600080fd5b5035919050565b6000806000606084860312156124c557600080fd5b6124ce8461231a565b92506124dc6020850161231a565b9150604084013590509250925092565b600080604083850312156124ff57600080fd5b823561250a816121f9565b9150602083013561251a816121f9565b809150509250929050565b6000806040838503121561253857600080fd5b8235612543816121f9565b915061245f6020840161231a565b600181811c9082168061256557607f821691505b60208210810361258557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156109835761098361258b565b600082516125c681846020870161218f565b9190910192915050565b601f821115611bf157600081815260208120601f850160051c810160208610156125f75750805b601f850160051c820191505b8181101561261657828155600101612603565b505050505050565b815167ffffffffffffffff8111156126385761263861223a565b61264c816126468454612551565b846125d0565b602080601f83116001811461268157600084156126695750858301515b600019600386901b1c1916600185901b178555612616565b600085815260208120601f198616915b828110156126b057888601518255948401946001909101908401612691565b50858210156126ce5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6040815260006126f160408301856121b3565b90508260208301529392505050565b60a08152600061271360a08301886121b3565b95151560208301525092151560408401526060830191909152608090910152919050565b60208082526028908201527f4c5020506169722063616e6e6f742062652074686520446561642077616c6c65604082015267742c206f7220302160c01b606082015260800190565b60008261279c57634e487b7160e01b600052601260045260246000fd5b500490565b60208082526034908201527f43616e6e6f74206c6971756964617465206d6f7265207468616e203225206f666040820152732074686520737570706c79206174206f6e63652160601b606082015260800190565b600181815b808511156128305781600019048211156128165761281661258b565b8085161561282357918102915b93841c93908002906127fa565b509250929050565b60008261284757506001610983565b8161285457506000610983565b816001811461286a576002811461287457612890565b6001915050610983565b60ff8411156128855761288561258b565b50506001821b610983565b5060208310610133831016604e8410600b84101617156128b3575081810a610983565b6128bd83836127f5565b80600019048211156128d1576128d161258b565b029392505050565b60006121f260ff841683612838565b80820281158282048414176109835761098361258b565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b606082015260800190565b818103818111156109835761098361258b565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612a0857600080fd5b81516121f2816121f9565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612a635784516001600160a01b031683529383019391830191600101612a3e565b50506001600160a01b03969096166060850152505050608001529392505050565b600080600060608486031215612a9957600080fd5b835192506020840151915060408401519050925092509256fea2646970667358221220683db3a24d27dd79bbf9addf2b0e25a83ce95b838896cf6eb5084c6606bddacb64736f6c63430008110033
Deployed Bytecode
0x6080604052600436106102cd5760003560e01c80637bbdb96e11610175578063af8af690116100dc578063dd62ed3e11610095578063f1b2b3d91161006f578063f1b2b3d914610871578063f2fde38b14610891578063f345bd85146108b1578063fbee93ba146108c757600080fd5b8063dd62ed3e1461081b578063df1d099e1461083b578063df8408fe1461085157600080fd5b8063af8af6901461076f578063b5c78e8a1461078f578063bb85c6d1146107af578063bf83d068146107cf578063c0fdea57146107ef578063d12a76881461080557600080fd5b8063a2330d971161012e578063a2330d97146106ce578063a3996f7b146106ee578063a457c2d714610703578063a9059cbb14610723578063aa4bde2814610743578063ad16a0cf1461075957600080fd5b80637bbdb96e146106305780637fa787ba1461065057806381bfdcca146106655780638c0b5e22146106855780638da5cb5b1461069b57806395d89b41146106b957600080fd5b8063313ce56711610234578063677daa57116101ed57806373c503b3116101c757806373c503b3146105aa57806375f0a874146105ca578063768dc710146105ea5780637930ef691461061a57600080fd5b8063677daa571461053f57806370a082311461055f578063715018a61461059557600080fd5b8063313ce5671461047d578063395093511461049957806349bd5a5e146104b95780634fa74c4d146104d9578063527ffabd146104f957806363cdf60f1461050f57600080fd5b806316a7b1601161028657806316a7b160146103d557806318160ddd146103e857806318bc47f6146103fd5780631b56bbf91461041d57806323b872dd1461043d57806330b63d801461045d57600080fd5b806303fd2a45146102d9578063054dee0f1461031657806306fdde031461033a578063095ea7b31461035c5780630f1d7ad91461038c5780631694505e146103a157600080fd5b366102d457005b600080fd5b3480156102e557600080fd5b506010546102f9906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561032257600080fd5b5061032c60175481565b60405190815260200161030d565b34801561034657600080fd5b5061034f6108dd565b60405161030d91906121df565b34801561036857600080fd5b5061037c61037736600461220e565b61096f565b604051901515815260200161030d565b61039f61039a3660046122dd565b610989565b005b3480156103ad57600080fd5b506102f97f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b61039f6103e33660046122dd565b610b3b565b3480156103f457600080fd5b5060025461032c565b34801561040957600080fd5b5061039f61041836600461232a565b610cdd565b34801561042957600080fd5b5061039f61043836600461239a565b610e35565b34801561044957600080fd5b5061037c6104583660046123b7565b610edf565b34801561046957600080fd5b5061037c6104783660046123f8565b610f03565b34801561048957600080fd5b506040516012815260200161030d565b3480156104a557600080fd5b5061037c6104b436600461220e565b610fac565b3480156104c557600080fd5b50601b546102f9906001600160a01b031681565b3480156104e557600080fd5b5061037c6104f436600461241a565b610fce565b34801561050557600080fd5b5061032c600b5481565b34801561051b57600080fd5b5061052f61052a3660046122dd565b611031565b60405161030d9493929190612468565b34801561054b57600080fd5b5061037c61055a366004612497565b6110f2565b34801561056b57600080fd5b5061032c61057a36600461239a565b6001600160a01b031660009081526020819052604090205490565b3480156105a157600080fd5b5061039f61110a565b3480156105b657600080fd5b5061039f6105c53660046124b0565b61111e565b3480156105d657600080fd5b50600e546102f9906001600160a01b031681565b3480156105f657600080fd5b5061037c61060536600461239a565b60126020526000908152604090205460ff1681565b34801561062657600080fd5b5061032c60195481565b34801561063c57600080fd5b50600f546102f9906001600160a01b031681565b34801561065c57600080fd5b5061037c6111d7565b34801561067157600080fd5b5061037c610680366004612497565b611208565b34801561069157600080fd5b5061032c600c5481565b3480156106a757600080fd5b506005546001600160a01b03166102f9565b3480156106c557600080fd5b5061034f61121b565b3480156106da57600080fd5b5061052f6106e93660046122dd565b61122a565b3480156106fa57600080fd5b5061039f611250565b34801561070f57600080fd5b5061037c61071e36600461220e565b611264565b34801561072f57600080fd5b5061037c61073e36600461220e565b6112df565b34801561074f57600080fd5b5061032c600d5481565b34801561076557600080fd5b5061032c60145481565b34801561077b57600080fd5b5061037c61078a3660046123f8565b6112ed565b34801561079b57600080fd5b5061032c6107aa36600461241a565b611376565b3480156107bb57600080fd5b5061037c6107ca36600461239a565b6113d1565b3480156107db57600080fd5b5061039f6107ea36600461239a565b6114b6565b3480156107fb57600080fd5b5061032c60115481565b34801561081157600080fd5b5061032c60135481565b34801561082757600080fd5b5061032c6108363660046124ec565b61157f565b34801561084757600080fd5b5061032c601a5481565b34801561085d57600080fd5b5061039f61086c366004612525565b6115aa565b34801561087d57600080fd5b5061032c61088c36600461241a565b611615565b34801561089d57600080fd5b5061039f6108ac36600461239a565b611670565b3480156108bd57600080fd5b5061032c600a5481565b3480156108d357600080fd5b5061032c60185481565b6060600380546108ec90612551565b80601f016020809104026020016040519081016040528092919081815260200182805461091890612551565b80156109655780601f1061093a57610100808354040283529160200191610965565b820191906000526020600020905b81548152906001019060200180831161094857829003601f168201915b5050505050905090565b60003361097d8185856116e9565b60019150505b92915050565b6017543410156109d75760405162461bcd60e51b81526020600482015260146024820152734e6f7420656e6f756768204554482073656e742160601b60448201526064015b60405180910390fd5b60185433311015610a1f5760405162461bcd60e51b81526020600482015260126024820152714e6f7420656e6f75676820746f6b656e732160701b60448201526064016109ce565b3460116000828254610a3191906125a1565b9091555050601054601854610a539133916001600160a01b039091169061180d565b604051806080016040528082815260200160011515815260200142815260200134601684604051610a8491906125b4565b908152602001604051809103902060030154610aa091906125a1565b815250601682604051610ab391906125b4565b90815260405190819003602001902081518190610ad0908261261e565b50602082015160018201805460ff19169115159190911790556040808301516002830155606090920151600390910155517f8382dfeb92e23123a91d983e4f179a9fbe329ff91e14e11cd3c3b5252f11512290610b3090839042906126de565b60405180910390a150565b601754341015610b845760405162461bcd60e51b81526020600482015260146024820152734e6f7420656e6f756768204554482073656e742160601b60448201526064016109ce565b60185433311015610bcc5760405162461bcd60e51b81526020600482015260126024820152714e6f7420656e6f75676820746f6b656e732160701b60448201526064016109ce565b3460116000828254610bde91906125a1565b9091555050601054601854610c009133916001600160a01b039091169061180d565b604051806080016040528082815260200160011515815260200142815260200134601584604051610c3191906125b4565b908152602001604051809103902060030154610c4d91906125a1565b815250601582604051610c6091906125b4565b90815260405190819003602001902081518190610c7d908261261e565b50602082015160018201805460ff19169115159190911790556040808301516002830155606090920151600390910155517f892c7b6af36dc1cd7c78d56ead1e536ddf81fe5688e6b3f631cdfadf7ad4c50890610b3090839042906126de565b610ce5611bf6565b8315610d6f576040518060800160405280868152602001841515815260200183815260200182815250601686604051610d1e91906125b4565b90815260405190819003602001902081518190610d3b908261261e565b50602082015160018201805460ff191691151591909117905560408201516002820155606090910151600390910155610def565b6040518060800160405280868152602001841515815260200183815260200182815250601586604051610da291906125b4565b90815260405190819003602001902081518190610dbf908261261e565b50602082015160018201805460ff1916911515919091179055604082015160028201556060909101516003909101555b7fc7da2a9b77928245e263afcf4e639fd44ae7d1970e45b7c6ff1a952442938caf8585858585604051610e26959493929190612700565b60405180910390a15050505050565b610e3d611bf6565b6010546001600160a01b0390811690821603610e6b5760405162461bcd60e51b81526004016109ce90612737565b6001600160a01b038116610e915760405162461bcd60e51b81526004016109ce90612737565b601b80546001600160a01b0319166001600160a01b0383169081179091556040519081527f1d288f7aba265e8b154b112bbb631ceca5df5fe93a750b2fe042fd1cc826647f90602001610b30565b600033610eed858285611c50565b610ef885858561180d565b506001949350505050565b6000610f0d611bf6565b6062600954610f1c919061277f565b8310610f3a5760405162461bcd60e51b81526004016109ce906127a1565b6062600954610f49919061277f565b8210610f675760405162461bcd60e51b81526004016109ce906127a1565b600854610f789060ff16600a6128d9565b610f8290846128e8565b601355600854610f969060ff16600a6128d9565b610fa090836128e8565b60145550600192915050565b60003361097d818585610fbf838361157f565b610fc991906125a1565b6116e9565b6000811561100357601683604051610fe691906125b4565b9081526040519081900360200190206001015460ff169050610983565b60158360405161101391906125b4565b9081526040519081900360200190206001015460ff16905092915050565b805160208183018101805160158252928201919093012091528054819061105790612551565b80601f016020809104026020016040519081016040528092919081815260200182805461108390612551565b80156110d05780601f106110a5576101008083540402835291602001916110d0565b820191906000526020600020905b8154815290600101906020018083116110b357829003601f168201915b5050505060018301546002840154600390940154929360ff9091169290915084565b60006110fc611bf6565b50600c81905560015b919050565b611112611bf6565b61111c6000611cc4565b565b611126611bf6565b821561114657811561113c57601981905561118e565b601781905561118e565b811561116f5760085461115d9060ff16600a6128d9565b61116790826128e8565b601a5561118e565b6008546111809060ff16600a6128d9565b61118a90826128e8565b6018555b60408051841515815283151560208201529081018290527fb87a29e1f0734b57d95308af5a136440c194441ac49edd417a1ed26aa78ceda29060600160405180910390a1505050565b600e5460405160009182916001600160a01b03909116904780156108fc029184818181858888f19695505050505050565b6000611212611bf6565b50600d55600190565b6060600480546108ec90612551565b805160208183018101805160168252928201919093012091528054819061105790612551565b611258611bf6565b6000600a819055600b55565b60003381611272828661157f565b9050838110156112d25760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016109ce565b610ef882868684036116e9565b60003361097d81858561180d565b60006112f7611bf6565b600a61130383856125a1565b11156113675760405162461bcd60e51b815260206004820152602d60248201527f45524332303a20746f74616c20746178206d757374206e6f742062652067726560448201526c61746572207468616e2031302560981b60648201526084016109ce565b50600a91909155600b55600190565b600081156113a75760168360405161138e91906125b4565b9081526020016040518091039020600301549050610983565b6015836040516113b791906125b4565b908152602001604051809103902060030154905092915050565b600e546000906001600160a01b0316331461143c5760405162461bcd60e51b815260206004820152602560248201527f53656e646572206d757374206265206d61726b6574696e672077616c6c65742060448201526437bbb732b960d91b60648201526084016109ce565b6010546001600160a01b039081169083160361146a5760405162461bcd60e51b81526004016109ce90612737565b6001600160a01b0382166114905760405162461bcd60e51b81526004016109ce90612737565b50600e80546001600160a01b0319166001600160a01b0392909216919091179055600190565b6001600160a01b0381166115185760405162461bcd60e51b815260206004820152602360248201527f4368616e6e656c2063616e742062652073657420746f207a65726f206164647260448201526265737360e81b60648201526084016109ce565b600f80546001600160a01b0319166001600160a01b0383161790556008546115449060ff16600a6128d9565b60095461155191906128e8565b6001600160a01b039182166000908152600160209081526040808320600e5490951683529390529190912055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6115b2611bf6565b6001600160a01b038216600081815260126020908152604091829020805460ff19168515159081179091558251938452908301527f318c131114339c004fff0a22fcdbbc0566bb2a7cd3aa1660e636ec5a66784ff2910160405180910390a15050565b600081156116465760168360405161162d91906125b4565b9081526020016040518091039020600201549050610983565b60158360405161165691906125b4565b908152602001604051809103902060020154905092915050565b611678611bf6565b6001600160a01b0381166116dd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109ce565b6116e681611cc4565b50565b6001600160a01b03831661174b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016109ce565b6001600160a01b0382166117ac5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016109ce565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166118335760405162461bcd60e51b81526004016109ce906128ff565b6001600160a01b0382166118595760405162461bcd60e51b81526004016109ce90612944565b80611879846001600160a01b031660009081526020819052604090205490565b10156118975760405162461bcd60e51b81526004016109ce90612987565b601b546001600160a01b03848116911614806118c05750601b546001600160a01b038381169116145b80156118d65750601b54600160a01b900460ff16155b15611be657601b546001600160a01b0384811691161480159061191257506001600160a01b03831660009081526012602052604090205460ff16155b156119e857601154306000908152602081905260408120549091611935916129cd565b9050601354811061194b5761194b601354611d16565b60145447106119e65761195f601454611dbd565b6014546011600082825461197391906129cd565b9091555050600e546040516000916001600160a01b0316904780156108fc029184818181858888f193505050509050806119e45760405162461bcd60e51b815260206004820152601260248201527108cc2d2d8cac840e8de40e6cadcc8408aa8960731b60448201526064016109ce565b505b505b6001600160a01b03831660009081526012602052604081205460ff1680611a2757506001600160a01b03831660009081526012602052604090205460ff165b15611a33575080611bd5565b600c54821115611aab5760405162461bcd60e51b815260206004820152603960248201527f45524332303a207472616e7366657220616d6f756e742065786365656473207460448201527f6865206d6178207472616e73616374696f6e20616d6f756e740000000000000060648201526084016109ce565b601b546001600160a01b0390811690851603611b5457600d546001600160a01b038416600090815260208190526040902054611ae790846125a1565b1115611b545760405162461bcd60e51b815260206004820152603660248201527f45524332303a2062616c616e636520616d6f756e74206578636565646564206d604482015275185e081dd85b1b195d08185b5bdd5b9d081b1a5b5a5d60521b60648201526084016109ce565b60006064600b5484611b6691906128e8565b611b70919061277f565b905060006064600a5485611b8491906128e8565b611b8e919061277f565b9050611b9a81836125a1565b611ba490856129cd565b92508160116000828254611bb891906125a1565b90915550611bd290508630611bcd84866125a1565b611f9d565b50505b611be0848483611f9d565b50505050565b611bf1838383611f9d565b505050565b6005546001600160a01b0316331461111c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109ce565b6000611c5c848461157f565b90506000198114611be05781811015611cb75760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016109ce565b611be084848484036116e9565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b601b805460ff60a01b1916600160a01b1790556000611d3660028361277f565b90506000611d4482846129cd565b905047611d5083611dbd565b6000611d5c82476129cd565b9050611d688382612089565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a15050601b805460ff60a01b19169055505050565b601b805460ff60a01b1916600160a01b1790556040805160028082526060820183526000926020830190803683370190505090503081600081518110611e0557611e056129e0565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ea791906129f6565b81600181518110611eba57611eba6129e0565b60200260200101906001600160a01b031690816001600160a01b031681525050611f05307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846116e9565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac94790611f5a908590600090869030904290600401612a13565b600060405180830381600087803b158015611f7457600080fd5b505af1158015611f88573d6000803e3d6000fd5b5050601b805460ff60a01b1916905550505050565b6001600160a01b038316611fc35760405162461bcd60e51b81526004016109ce906128ff565b6001600160a01b038216611fe95760405162461bcd60e51b81526004016109ce90612944565b6001600160a01b038316600090815260208190526040902054818110156120225760405162461bcd60e51b81526004016109ce90612987565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a350505050565b601b805460ff60a01b1916600160a01b1790556120c7307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846116e9565b600e5460405163f305d71960e01b81523060048201526024810184905260006044820181905260648201526001600160a01b0391821660848201524260a48201527f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d9091169063f305d71990839060c40160606040518083038185885af1158015612156573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061217b9190612a84565b5050601b805460ff60a01b19169055505050565b60005b838110156121aa578181015183820152602001612192565b50506000910152565b600081518084526121cb81602086016020860161218f565b601f01601f19169290920160200192915050565b6020815260006121f260208301846121b3565b9392505050565b6001600160a01b03811681146116e657600080fd5b6000806040838503121561222157600080fd5b823561222c816121f9565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261226157600080fd5b813567ffffffffffffffff8082111561227c5761227c61223a565b604051601f8301601f19908116603f011681019082821181831017156122a4576122a461223a565b816040528381528660208588010111156122bd57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000602082840312156122ef57600080fd5b813567ffffffffffffffff81111561230657600080fd5b61231284828501612250565b949350505050565b8035801515811461110557600080fd5b600080600080600060a0868803121561234257600080fd5b853567ffffffffffffffff81111561235957600080fd5b61236588828901612250565b9550506123746020870161231a565b93506123826040870161231a565b94979396509394606081013594506080013592915050565b6000602082840312156123ac57600080fd5b81356121f2816121f9565b6000806000606084860312156123cc57600080fd5b83356123d7816121f9565b925060208401356123e7816121f9565b929592945050506040919091013590565b6000806040838503121561240b57600080fd5b50508035926020909101359150565b6000806040838503121561242d57600080fd5b823567ffffffffffffffff81111561244457600080fd5b61245085828601612250565b92505061245f6020840161231a565b90509250929050565b60808152600061247b60808301876121b3565b9415156020830152506040810192909252606090910152919050565b6000602082840312156124a957600080fd5b5035919050565b6000806000606084860312156124c557600080fd5b6124ce8461231a565b92506124dc6020850161231a565b9150604084013590509250925092565b600080604083850312156124ff57600080fd5b823561250a816121f9565b9150602083013561251a816121f9565b809150509250929050565b6000806040838503121561253857600080fd5b8235612543816121f9565b915061245f6020840161231a565b600181811c9082168061256557607f821691505b60208210810361258557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156109835761098361258b565b600082516125c681846020870161218f565b9190910192915050565b601f821115611bf157600081815260208120601f850160051c810160208610156125f75750805b601f850160051c820191505b8181101561261657828155600101612603565b505050505050565b815167ffffffffffffffff8111156126385761263861223a565b61264c816126468454612551565b846125d0565b602080601f83116001811461268157600084156126695750858301515b600019600386901b1c1916600185901b178555612616565b600085815260208120601f198616915b828110156126b057888601518255948401946001909101908401612691565b50858210156126ce5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6040815260006126f160408301856121b3565b90508260208301529392505050565b60a08152600061271360a08301886121b3565b95151560208301525092151560408401526060830191909152608090910152919050565b60208082526028908201527f4c5020506169722063616e6e6f742062652074686520446561642077616c6c65604082015267742c206f7220302160c01b606082015260800190565b60008261279c57634e487b7160e01b600052601260045260246000fd5b500490565b60208082526034908201527f43616e6e6f74206c6971756964617465206d6f7265207468616e203225206f666040820152732074686520737570706c79206174206f6e63652160601b606082015260800190565b600181815b808511156128305781600019048211156128165761281661258b565b8085161561282357918102915b93841c93908002906127fa565b509250929050565b60008261284757506001610983565b8161285457506000610983565b816001811461286a576002811461287457612890565b6001915050610983565b60ff8411156128855761288561258b565b50506001821b610983565b5060208310610133831016604e8410600b84101617156128b3575081810a610983565b6128bd83836127f5565b80600019048211156128d1576128d161258b565b029392505050565b60006121f260ff841683612838565b80820281158282048414176109835761098361258b565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b606082015260800190565b818103818111156109835761098361258b565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612a0857600080fd5b81516121f2816121f9565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612a635784516001600160a01b031683529383019391830191600101612a3e565b50506001600160a01b03969096166060850152505050608001529392505050565b600080600060608486031215612a9957600080fd5b835192506020840151915060408401519050925092509256fea2646970667358221220683db3a24d27dd79bbf9addf2b0e25a83ce95b838896cf6eb5084c6606bddacb64736f6c63430008110033
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.