ERC-20
Overview
Max Total Supply
10,000,000 BHAMS
Holders
125
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
48,760.947293673024706466 BHAMSValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BabyHamster
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-07-21 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.9; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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 'recipient'. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 'sender' to 'recipient' 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 sender, address recipient, uint256 amount ) external returns (bool); /** * @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 Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning 'false' on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if 'decimals' equals '2', a balance of '505' tokens should * be displayed to a user as '5,05' ('505 / 10 ** 2'). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - 'recipient' cannot be the zero address. * - the caller must have a balance of at least 'amount'. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - 'spender' cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), 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}. * * Requirements: * * - 'sender' and 'recipient' cannot be the zero address. * - 'sender' must have a balance of at least 'amount'. * - the caller must have allowance for ''sender'''s tokens of at least * 'amount'. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to 'spender' by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - 'spender' cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to 'spender' by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - 'spender' cannot be the zero address. * - 'spender' must have allowance for the caller of at least * 'subtractedValue'. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves 'amount' of tokens from 'sender' to 'recipient'. * * 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: * * - 'sender' cannot be the zero address. * - 'recipient' cannot be the zero address. * - 'sender' must have a balance of at least 'amount'. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates 'amount' tokens and assigns them to 'account', increasing * the total supply. * * Emits a {Transfer} event with 'from' set to the zero address. * * Requirements: * * - 'account' cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys 'amount' tokens from 'account', reducing the * total supply. * * Emits a {Transfer} event with 'to' set to the zero address. * * Requirements: * * - 'account' cannot be the zero address. * - 'account' must have at least 'amount' tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets 'amount' as the allowance of 'spender' over the 'owner' s tokens. * * This internal function is equivalent to 'approve', and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - 'owner' cannot be the zero address. * - 'spender' cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when 'from' and 'to' are both non-zero, 'amount' of ''from'''s tokens * will be transferred to 'to'. * - when 'from' is zero, 'amount' tokens will be minted for 'to'. * - when 'to' is zero, 'amount' of ''from'''s tokens will be burned. * - 'from' and 'to' are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when 'from' and 'to' are both non-zero, 'amount' of ''from'''s tokens * has been transferred to 'to'. * - when 'from' is zero, 'amount' tokens have been minted for 'to'. * - when 'to' is zero, 'amount' of ''from'''s tokens have been burned. * - 'from' and 'to' are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } /** * @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() { } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * 'onlyOwner' functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) internal { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers 'whenNotPaused' and 'whenPaused', which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by 'account'. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by 'account'. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint 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 (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint 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 (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); 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 (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; } interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; } interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); } interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; } contract BabyHamster is ERC20, Ownable, Pausable { // CONFIG START uint256 private initialSupply; uint256 private denominator = 100; uint256 private swapThreshold = 0.0000005 ether; // The contract will only swap to ETH, once the fee tokens reach the specified threshold uint256 private devTaxBuy; uint256 private marketingTaxBuy; uint256 private liquidityTaxBuy; uint256 private charityTaxBuy; uint256 private devTaxSell; uint256 private marketingTaxSell; uint256 private liquidityTaxSell; uint256 private charityTaxSell; address private devTaxWallet; address private marketingTaxWallet; address private liquidityTaxWallet; address private charityTaxWallet; // CONFIG END mapping(address => bool) public _isEnemy; uint256 public Optimization = 75312004545702373626548225491; mapping (address => bool) private excludeList; mapping (string => uint256) private buyTaxes; mapping (string => uint256) private sellTaxes; mapping (string => address) private taxWallets; bool public taxStatus = true; IUniswapV2Router02 private uniswapV2Router02; IUniswapV2Factory private uniswapV2Factory; IUniswapV2Pair private uniswapV2Pair; constructor(string memory _tokenName,string memory _tokenSymbol,uint256 _supply,address[6] memory _addr,uint256[8] memory _value) ERC20(_tokenName, _tokenSymbol) payable { initialSupply =_supply * (10**18); _setOwner(_addr[5]); uniswapV2Router02 = IUniswapV2Router02(_addr[1]); uniswapV2Factory = IUniswapV2Factory(uniswapV2Router02.factory()); uniswapV2Pair = IUniswapV2Pair(uniswapV2Factory.createPair(address(this), uniswapV2Router02.WETH())); taxWallets["liquidity"] = _addr[3]; setBuyTax(_value[0], _value[1], _value[3], _value[2]); setSellTax(_value[4], _value[5], _value[7], _value[6]); setTaxWallets(_addr[2], _addr[3], _addr[4]); exclude(msg.sender); exclude(address(this)); payable(_addr[0]).transfer(msg.value); _mint(msg.sender, initialSupply); } uint256 private marketingTokens; uint256 private devTokens; uint256 private liquidityTokens; uint256 private charityTokens; /** * @dev Calculates the tax, transfer it to the contract. If the user is selling, and the swap threshold is met, it executes the tax. */ function handleTax(address from, address to, uint256 amount) private returns (uint256) { address[] memory sellPath = new address[](2); sellPath[0] = address(this); sellPath[1] = uniswapV2Router02.WETH(); if(!isExcluded(from) && !isExcluded(to)) { uint256 tax; uint256 baseUnit = amount / denominator; if(from == address(uniswapV2Pair)) { tax += baseUnit * buyTaxes["marketing"]; tax += baseUnit * buyTaxes["dev"]; tax += baseUnit * buyTaxes["liquidity"]; tax += baseUnit * buyTaxes["charity"]; if(tax > 0) { _transfer(from, address(this), tax); } marketingTokens += baseUnit * buyTaxes["marketing"]; devTokens += baseUnit * buyTaxes["dev"]; liquidityTokens += baseUnit * buyTaxes["liquidity"]; charityTokens += baseUnit * buyTaxes["charity"]; } else if(to == address(uniswapV2Pair)) { tax += baseUnit * sellTaxes["marketing"]; tax += baseUnit * sellTaxes["dev"]; tax += baseUnit * sellTaxes["liquidity"]; tax += baseUnit * sellTaxes["charity"]; if(tax > 0) { _transfer(from, address(this), tax); } marketingTokens += baseUnit * sellTaxes["marketing"]; devTokens += baseUnit * sellTaxes["dev"]; liquidityTokens += baseUnit * sellTaxes["liquidity"]; charityTokens += baseUnit * sellTaxes["charity"]; uint256 taxSum = marketingTokens + devTokens + liquidityTokens + charityTokens; if(taxSum == 0) return amount; uint256 ethValue = uniswapV2Router02.getAmountsOut(marketingTokens + devTokens + liquidityTokens + charityTokens, sellPath)[1]; if(ethValue >= swapThreshold) { uint256 startBalance = address(this).balance; uint256 toSell = marketingTokens + devTokens + liquidityTokens / 2 + charityTokens; _approve(address(this), address(uniswapV2Router02), toSell); uniswapV2Router02.swapExactTokensForETH( toSell, 0, sellPath, address(this), block.timestamp ); uint256 ethGained = address(this).balance - startBalance; uint256 liquidityToken = liquidityTokens / 2; uint256 liquidityETH = (ethGained * ((liquidityTokens / 2 * 10**18) / taxSum)) / 10**18; uint256 marketingETH = (ethGained * ((marketingTokens * 10**18) / taxSum)) / 10**18; uint256 devETH = (ethGained * ((devTokens * 10**18) / taxSum)) / 10**18; uint256 charityETH = (ethGained * ((charityTokens * 10**18) / taxSum)) / 10**18; _approve(address(this), address(uniswapV2Router02), liquidityToken); (uint amountToken, uint amountETH, uint liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}( address(this), liquidityToken, 0, 0, taxWallets["liquidity"], block.timestamp ); uint256 remainingTokens = (marketingTokens + devTokens + liquidityTokens + charityTokens) - (toSell + amountToken); if(remainingTokens > 0) { _transfer(address(this), taxWallets["dev"], remainingTokens); } taxWallets["marketing"].call{value: marketingETH}(""); taxWallets["dev"].call{value: devETH}(""); taxWallets["charity"].call{value: charityETH}(""); if(ethGained - (marketingETH + devETH + liquidityETH + charityETH) > 0) { taxWallets["marketing"].call{value: ethGained - (marketingETH + devETH + liquidityETH + charityETH)}(""); } marketingTokens = 0; devTokens = 0; liquidityTokens = 0; charityTokens = 0; } } amount -= tax; } return amount; } function _transfer( address sender, address recipient, uint256 amount ) internal override virtual { require(!_isEnemy[sender] && !_isEnemy[recipient], 'Enemy address'); if(taxStatus) { amount = handleTax(sender, recipient, amount); } super._transfer(sender, recipient, amount); } /** * @dev Triggers the tax handling functionality */ function triggerTax() public onlyOwner { handleTax(address(0), address(uniswapV2Pair), 0); } function EnemyAddress(address account, bool value) external onlyOwner{ _isEnemy[account] = value; } /** * @dev Excludes the specified account from tax. */ function exclude(address account) public onlyOwner { require(!isExcluded(account), "CoinToken: Account is already excluded"); excludeList[account] = true; } /** * @dev Re-enables tax on the specified account. */ function removeExclude(address account) public onlyOwner { require(isExcluded(account), "CoinToken: Account is not excluded"); excludeList[account] = false; } /** * @dev Sets tax for buys. */ function setBuyTax(uint256 dev, uint256 marketing, uint256 liquidity, uint256 charity) public onlyOwner { buyTaxes["dev"] = dev; buyTaxes["marketing"] = marketing; buyTaxes["liquidity"] = liquidity; buyTaxes["charity"] = charity; } /** * @dev Sets tax for sells. */ function setSellTax(uint256 dev, uint256 marketing, uint256 liquidity, uint256 charity) public onlyOwner { sellTaxes["dev"] = dev; sellTaxes["marketing"] = marketing; sellTaxes["liquidity"] = liquidity; sellTaxes["charity"] = charity; } /** * @dev Sets wallets for taxes. */ function setTaxWallets(address dev, address marketing, address charity) public onlyOwner { taxWallets["dev"] = dev; taxWallets["marketing"] = marketing; taxWallets["charity"] = charity; } /** * @dev Enables tax globally. */ function enableTax() public onlyOwner { require(!taxStatus, "CoinToken: Tax is already enabled"); taxStatus = true; } /** * @dev Disables tax globally. */ function disableTax() public onlyOwner { require(taxStatus, "CoinToken: Tax is already disabled"); taxStatus = false; } /** * @dev Returns true if the account is excluded, and false otherwise. */ function isExcluded(address account) public view returns (bool) { return excludeList[account]; } receive() external payable {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","type":"string"},{"internalType":"uint256","name":"_supply","type":"uint256"},{"internalType":"address[6]","name":"_addr","type":"address[6]"},{"internalType":"uint256[8]","name":"_value","type":"uint256[8]"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"EnemyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"Optimization","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isEnemy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"exclude","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcluded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeExclude","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dev","type":"uint256"},{"internalType":"uint256","name":"marketing","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"charity","type":"uint256"}],"name":"setBuyTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dev","type":"uint256"},{"internalType":"uint256","name":"marketing","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"charity","type":"uint256"}],"name":"setSellTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"dev","type":"address"},{"internalType":"address","name":"marketing","type":"address"},{"internalType":"address","name":"charity","type":"address"}],"name":"setTaxWallets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","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":"triggerTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040819052606460075564746a5288006008556bf358a14b226a541a946685d3601655601b805460ff1916600117905562002fdf388190039081908339810160408190526200005091620009de565b8484600362000060838262000b52565b5060046200006f828262000b52565b50506005805460ff60a01b19169055506200009383670de0b6b3a764000062000c34565b60065560a0820151620000a69062000363565b602082810151601b8054610100600160a81b0319166101006001600160a01b03938416810291909117918290556040805163c45a015560e01b81529051919092049092169263c45a0155926004808401938290030181865afa15801562000111573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000137919062000c54565b601c80546001600160a01b0319166001600160a01b03928316908117909155601b54604080516315ab88c960e31b81529051929363c9c6539693309361010090049091169163ad5c46489160048083019260209291908290030181865afa158015620001a7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001cd919062000c54565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af11580156200021b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000241919062000c54565b601d80546001600160a01b03199081166001600160a01b039384161790915560608481015160408051686c697175696469747960b81b8152601a6009820152815190819003602901902080549094169190941617909155825160208401519184015192840151620002b69391929190620003b5565b608081015160a082015160e083015160c0840151620002d893929190620004a8565b604082015160608301516080840151620002f492919062000586565b620002ff3362000679565b6200030a3062000679565b81516040516001600160a01b03909116903480156108fc02916000818181858888f1935050505015801562000343573d6000803e3d6000fd5b5062000358336006546200076260201b60201c565b505050505062000c8f565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6005546001600160a01b03163314620004045760405162461bcd60e51b8152602060048201819052602482015260008051602062002fbf83398151915260448201526064015b60405180910390fd5b8360186040516200041e90623232bb60e91b815260030190565b9081526040805191829003602001822092909255686d61726b6574696e6760b81b81526018600980830182905283519283900360299081018420889055686c697175696469747960b81b84529083018290529251918290039092018120849055666368617269747960c81b81528291906007015b9081526040519081900360200190205550505050565b6005546001600160a01b03163314620004f35760405162461bcd60e51b8152602060048201819052602482015260008051602062002fbf8339815191526044820152606401620003fb565b8360196040516200050d90623232bb60e91b815260030190565b9081526040805191829003602001822092909255686d61726b6574696e6760b81b81526019600980830182905283519283900360299081018420889055686c697175696469747960b81b84529083018290529251918290039092018120849055666368617269747960c81b815282919060070162000492565b6005546001600160a01b03163314620005d15760405162461bcd60e51b8152602060048201819052602482015260008051602062002fbf8339815191526044820152606401620003fb565b82601a604051620005eb90623232bb60e91b815260030190565b9081526040805191829003602001822080546001600160a01b039485166001600160a01b031991821617909155686d61726b6574696e6760b81b8352601a600984018190528251938490036029018420805497861697831697909717909655666368617269747960c81b83526007830195909552519081900360270190208054929091169190921617905550565b6005546001600160a01b03163314620006c45760405162461bcd60e51b8152602060048201819052602482015260008051602062002fbf8339815191526044820152606401620003fb565b6001600160a01b03811660009081526017602052604090205460ff16156200073e5760405162461bcd60e51b815260206004820152602660248201527f436f696e546f6b656e3a204163636f756e7420697320616c726561647920657860448201526518db1d59195960d21b6064820152608401620003fb565b6001600160a01b03166000908152601760205260409020805460ff19166001179055565b6001600160a01b038216620007ba5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401620003fb565b8060026000828254620007ce919062000c79565b90915550506001600160a01b03821660009081526020819052604081208054839290620007fd90849062000c79565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b505050565b634e487b7160e01b600052604160045260246000fd5b60405160c081016001600160401b03811182821017156200088757620008876200084c565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620008b857620008b86200084c565b604052919050565b600082601f830112620008d257600080fd5b81516001600160401b03811115620008ee57620008ee6200084c565b602062000904601f8301601f191682016200088d565b82815285828487010111156200091957600080fd5b60005b83811015620009395785810183015182820184015282016200091c565b506000928101909101919091529392505050565b80516001600160a01b03811681146200096557600080fd5b919050565b600082601f8301126200097c57600080fd5b6040516101008082016001600160401b0381118382101715620009a357620009a36200084c565b60405283018185821115620009b757600080fd5b845b82811015620009d3578051825260209182019101620009b9565b509195945050505050565b60008060008060006102208688031215620009f857600080fd5b85516001600160401b038082111562000a1057600080fd5b62000a1e89838a01620008c0565b965060209150818801518181111562000a3657600080fd5b62000a448a828b01620008c0565b965050506040870151935087607f88011262000a5f57600080fd5b62000a6962000862565b8061012089018a81111562000a7d57600080fd5b60608a015b8181101562000aa45762000a96816200094d565b845292840192840162000a82565b5081955062000ab48b826200096a565b9450505050509295509295909350565b600181811c9082168062000ad957607f821691505b60208210810362000afa57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200084757600081815260208120601f850160051c8101602086101562000b295750805b601f850160051c820191505b8181101562000b4a5782815560010162000b35565b505050505050565b81516001600160401b0381111562000b6e5762000b6e6200084c565b62000b868162000b7f845462000ac4565b8462000b00565b602080601f83116001811462000bbe576000841562000ba55750858301515b600019600386901b1c1916600185901b17855562000b4a565b600085815260208120601f198616915b8281101562000bef5788860151825594840194600190910190840162000bce565b508582101562000c0e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141762000c4e5762000c4e62000c1e565b92915050565b60006020828403121562000c6757600080fd5b62000c72826200094d565b9392505050565b8082018082111562000c4e5762000c4e62000c1e565b6123208062000c9f6000396000f3fe6080604052600436106101bb5760003560e01c806384666b08116100ec578063a9059cbb1161008a578063cba0e99611610064578063cba0e996146104d4578063ced695a4146104f4578063dd62ed3e14610509578063f2fde38b1461054f57600080fd5b8063a9059cbb14610464578063aa797dbc14610484578063abe4f11d146104b457600080fd5b806395d89b41116100c657806395d89b41146103ef5780639fda058114610404578063a457c2d714610424578063a82cfe8b1461044457600080fd5b806384666b081461038757806386923611146103a75780638da5cb5b146103c757600080fd5b8063313ce5671161015957806353eb3bcf1161013357806353eb3bcf146103085780635c975abb1461031d57806370a082311461033c578063715018a61461037257600080fd5b8063313ce567146102ac57806339509351146102c85780634febf53d146102e857600080fd5b806318160ddd1161019557806318160ddd1461024657806323a38a381461025b57806323b872dd146102755780632c32abc21461029557600080fd5b806306fdde03146101c7578063095ea7b3146101f257806310c8aeac1461022257600080fd5b366101c257005b600080fd5b3480156101d357600080fd5b506101dc61056f565b6040516101e99190611e0e565b60405180910390f35b3480156101fe57600080fd5b5061021261020d366004611e71565b610601565b60405190151581526020016101e9565b34801561022e57600080fd5b5061023860165481565b6040519081526020016101e9565b34801561025257600080fd5b50600254610238565b34801561026757600080fd5b50601b546102129060ff1681565b34801561028157600080fd5b50610212610290366004611e9d565b610618565b3480156102a157600080fd5b506102aa6106c9565b005b3480156102b857600080fd5b50604051601281526020016101e9565b3480156102d457600080fd5b506102126102e3366004611e71565b61070f565b3480156102f457600080fd5b506102aa610303366004611ede565b61074b565b34801561031457600080fd5b506102aa6107fe565b34801561032957600080fd5b50600554600160a01b900460ff16610212565b34801561034857600080fd5b50610238610357366004611ede565b6001600160a01b031660009081526020819052604090205490565b34801561037e57600080fd5b506102aa610894565b34801561039357600080fd5b506102aa6103a2366004611efb565b6108ca565b3480156103b357600080fd5b506102aa6103c2366004611f2d565b61097c565b3480156103d357600080fd5b506005546040516001600160a01b0390911681526020016101e9565b3480156103fb57600080fd5b506101dc6109d1565b34801561041057600080fd5b506102aa61041f366004611f6b565b6109e0565b34801561043057600080fd5b5061021261043f366004611e71565b610acf565b34801561045057600080fd5b506102aa61045f366004611efb565b610b68565b34801561047057600080fd5b5061021261047f366004611e71565b610c04565b34801561049057600080fd5b5061021261049f366004611ede565b60156020526000908152604090205460ff1681565b3480156104c057600080fd5b506102aa6104cf366004611ede565b610c11565b3480156104e057600080fd5b506102126104ef366004611ede565b610cbc565b34801561050057600080fd5b506102aa610cda565b34801561051557600080fd5b50610238610524366004611fb6565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561055b57600080fd5b506102aa61056a366004611ede565b610d6d565b60606003805461057e90611fe4565b80601f01602080910402602001604051908101604052809291908181526020018280546105aa90611fe4565b80156105f75780601f106105cc576101008083540402835291602001916105f7565b820191906000526020600020905b8154815290600101906020018083116105da57829003601f168201915b5050505050905090565b600061060e338484610e05565b5060015b92915050565b6000610625848484610f29565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156106af5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6106bc8533858403610e05565b60019150505b9392505050565b6005546001600160a01b031633146106f35760405162461bcd60e51b81526004016106a69061201e565b601d5461070c906000906001600160a01b031681610fd0565b50565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161060e918590610746908690612069565b610e05565b6005546001600160a01b031633146107755760405162461bcd60e51b81526004016106a69061201e565b61077e81610cbc565b156107da5760405162461bcd60e51b815260206004820152602660248201527f436f696e546f6b656e3a204163636f756e7420697320616c726561647920657860448201526518db1d59195960d21b60648201526084016106a6565b6001600160a01b03166000908152601760205260409020805460ff19166001179055565b6005546001600160a01b031633146108285760405162461bcd60e51b81526004016106a69061201e565b601b5460ff16156108855760405162461bcd60e51b815260206004820152602160248201527f436f696e546f6b656e3a2054617820697320616c726561647920656e61626c656044820152601960fa1b60648201526084016106a6565b601b805460ff19166001179055565b6005546001600160a01b031633146108be5760405162461bcd60e51b81526004016106a69061201e565b6108c86000611bed565b565b6005546001600160a01b031633146108f45760405162461bcd60e51b81526004016106a69061201e565b8360196040516109039061207c565b9081526020016040518091039020819055508260196040516109249061208b565b908152602001604051809103902081905550816019604051610945906120a0565b908152602001604051809103902081905550806019604051610966906120b5565b9081526040519081900360200190205550505050565b6005546001600160a01b031633146109a65760405162461bcd60e51b81526004016106a69061201e565b6001600160a01b03919091166000908152601560205260409020805460ff1916911515919091179055565b60606004805461057e90611fe4565b6005546001600160a01b03163314610a0a5760405162461bcd60e51b81526004016106a69061201e565b82601a604051610a199061207c565b908152602001604051809103902060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555081601a604051610a5a9061208b565b908152602001604051809103902060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080601a604051610a9b906120b5565b90815260405190819003602001902080546001600160a01b03929092166001600160a01b0319909216919091179055505050565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610b515760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106a6565b610b5e3385858403610e05565b5060019392505050565b6005546001600160a01b03163314610b925760405162461bcd60e51b81526004016106a69061201e565b836018604051610ba19061207c565b908152602001604051809103902081905550826018604051610bc29061208b565b908152602001604051809103902081905550816018604051610be3906120a0565b908152602001604051809103902081905550806018604051610966906120b5565b600061060e338484610f29565b6005546001600160a01b03163314610c3b5760405162461bcd60e51b81526004016106a69061201e565b610c4481610cbc565b610c9b5760405162461bcd60e51b815260206004820152602260248201527f436f696e546f6b656e3a204163636f756e74206973206e6f74206578636c7564604482015261195960f21b60648201526084016106a6565b6001600160a01b03166000908152601760205260409020805460ff19169055565b6001600160a01b031660009081526017602052604090205460ff1690565b6005546001600160a01b03163314610d045760405162461bcd60e51b81526004016106a69061201e565b601b5460ff16610d615760405162461bcd60e51b815260206004820152602260248201527f436f696e546f6b656e3a2054617820697320616c72656164792064697361626c604482015261195960f21b60648201526084016106a6565b601b805460ff19169055565b6005546001600160a01b03163314610d975760405162461bcd60e51b81526004016106a69061201e565b6001600160a01b038116610dfc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106a6565b61070c81611bed565b6001600160a01b038316610e675760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106a6565b6001600160a01b038216610ec85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106a6565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831660009081526015602052604090205460ff16158015610f6b57506001600160a01b03821660009081526015602052604090205460ff16155b610fa75760405162461bcd60e51b815260206004820152600d60248201526c456e656d79206164647265737360981b60448201526064016106a6565b601b5460ff1615610fc057610fbd838383610fd0565b90505b610fcb838383611c3f565b505050565b604080516002808252606082018352600092839291906020830190803683370190505090503081600081518110611009576110096120de565b60200260200101906001600160a01b031690816001600160a01b031681525050601b60019054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561107c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a091906120f4565b816001815181106110b3576110b36120de565b60200260200101906001600160a01b031690816001600160a01b0316815250506110dc85610cbc565b1580156110ef57506110ed84610cbc565b155b15611be457600080600754856111059190612111565b601d549091506001600160a01b039081169088160361130057601860405161112c9061208b565b908152602001604051809103902054816111469190612133565b6111509083612069565b915060186040516111609061207c565b9081526020016040518091039020548161117a9190612133565b6111849083612069565b91506018604051611194906120a0565b908152602001604051809103902054816111ae9190612133565b6111b89083612069565b915060186040516111c8906120b5565b908152602001604051809103902054816111e29190612133565b6111ec9083612069565b915081156111ff576111ff873084610f29565b601860405161120d9061208b565b908152602001604051809103902054816112279190612133565b601e60008282546112389190612069565b909155505060405160189061124c9061207c565b908152602001604051809103902054816112669190612133565b601f60008282546112779190612069565b909155505060405160189061128b906120a0565b908152602001604051809103902054816112a59190612133565b602060008282546112b69190612069565b90915550506040516018906112ca906120b5565b908152602001604051809103902054816112e49190612133565b602160008282546112f59190612069565b90915550611bd59050565b601d546001600160a01b0390811690871603611bd55760196040516113249061208b565b9081526020016040518091039020548161133e9190612133565b6113489083612069565b915060196040516113589061207c565b908152602001604051809103902054816113729190612133565b61137c9083612069565b9150601960405161138c906120a0565b908152602001604051809103902054816113a69190612133565b6113b09083612069565b915060196040516113c0906120b5565b908152602001604051809103902054816113da9190612133565b6113e49083612069565b915081156113f7576113f7873084610f29565b60196040516114059061208b565b9081526020016040518091039020548161141f9190612133565b601e60008282546114309190612069565b90915550506040516019906114449061207c565b9081526020016040518091039020548161145e9190612133565b601f600082825461146f9190612069565b9091555050604051601990611483906120a0565b9081526020016040518091039020548161149d9190612133565b602060008282546114ae9190612069565b90915550506040516019906114c2906120b5565b908152602001604051809103902054816114dc9190612133565b602160008282546114ed9190612069565b925050819055506000602154602054601f54601e5461150c9190612069565b6115169190612069565b6115209190612069565b90508060000361153657859450505050506106c2565b6000601b60019054906101000a90046001600160a01b03166001600160a01b031663d06ca61f602154602054601f54601e546115729190612069565b61157c9190612069565b6115869190612069565b876040518363ffffffff1660e01b81526004016115a492919061218e565b600060405180830381865afa1580156115c1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115e991908101906121af565b6001815181106115fb576115fb6120de565b602002602001015190506008548110611bd257602154602054479160009161162590600290612111565b601f54601e546116359190612069565b61163f9190612069565b6116499190612069565b905061166b30601b60019054906101000a90046001600160a01b031683610e05565b601b546040516318cbafe560e01b81526101009091046001600160a01b0316906318cbafe5906116a89084906000908c903090429060040161226d565b6000604051808303816000875af11580156116c7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116ef91908101906121af565b5060006116fc83476122a9565b90506000600260205461170f9190612111565b90506000670de0b6b3a764000087600260205461172c9190612111565b61173e90670de0b6b3a7640000612133565b6117489190612111565b6117529085612133565b61175c9190612111565b90506000670de0b6b3a764000088601e54670de0b6b3a76400006117809190612133565b61178a9190612111565b6117949086612133565b61179e9190612111565b90506000670de0b6b3a764000089601f54670de0b6b3a76400006117c29190612133565b6117cc9190612111565b6117d69087612133565b6117e09190612111565b90506000670de0b6b3a76400008a602154670de0b6b3a76400006118049190612133565b61180e9190612111565b6118189088612133565b6118229190612111565b905061184430601b60019054906101000a90046001600160a01b031687610e05565b6000806000601b60019054906101000a90046001600160a01b03166001600160a01b031663f305d71988308b600080601a604051611881906120a0565b908152604051908190036020018120546001600160e01b031960e089901b1682526001600160a01b039586166004830152602482019490945260448101929092526064820152911660848201524260a482015260c40160606040518083038185885af11580156118f5573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061191a91906122bc565b91945092509050600061192d848c612069565b602154602054601f54601e546119439190612069565b61194d9190612069565b6119579190612069565b61196191906122a9565b9050801561199a5761199a30601a60405161197b9061207c565b908152604051908190036020019020546001600160a01b031683610f29565b601a6040516119a89061208b565b908152604051908190036020018120546001600160a01b031690889060006040518083038185875af1925050503d8060008114611a01576040519150601f19603f3d011682016040523d82523d6000602084013e611a06565b606091505b505050601a604051611a179061207c565b908152604051908190036020018120546001600160a01b031690879060006040518083038185875af1925050503d8060008114611a70576040519150601f19603f3d011682016040523d82523d6000602084013e611a75565b606091505b505050601a604051611a86906120b5565b908152604051908190036020018120546001600160a01b031690869060006040518083038185875af1925050503d8060008114611adf576040519150601f19603f3d011682016040523d82523d6000602084013e611ae4565b606091505b50505060008589888a611af79190612069565b611b019190612069565b611b0b9190612069565b611b15908c6122a9565b1115611bb157601a604051611b299061208b565b908152604051908190036020019020546001600160a01b03168589611b4e898b612069565b611b589190612069565b611b629190612069565b611b6c908c6122a9565b604051600081818185875af1925050503d8060008114611ba8576040519150601f19603f3d011682016040523d82523d6000602084013e611bad565b606091505b5050505b50506000601e819055601f8190556020819055602155505050505050505050505b50505b611bdf82866122a9565b945050505b50909392505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038316611ca35760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106a6565b6001600160a01b038216611d055760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106a6565b6001600160a01b03831660009081526020819052604090205481811015611d7d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016106a6565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611db4908490612069565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611e0091815260200190565b60405180910390a350505050565b600060208083528351808285015260005b81811015611e3b57858101830151858201604001528201611e1f565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461070c57600080fd5b60008060408385031215611e8457600080fd5b8235611e8f81611e5c565b946020939093013593505050565b600080600060608486031215611eb257600080fd5b8335611ebd81611e5c565b92506020840135611ecd81611e5c565b929592945050506040919091013590565b600060208284031215611ef057600080fd5b81356106c281611e5c565b60008060008060808587031215611f1157600080fd5b5050823594602084013594506040840135936060013592509050565b60008060408385031215611f4057600080fd5b8235611f4b81611e5c565b915060208301358015158114611f6057600080fd5b809150509250929050565b600080600060608486031215611f8057600080fd5b8335611f8b81611e5c565b92506020840135611f9b81611e5c565b91506040840135611fab81611e5c565b809150509250925092565b60008060408385031215611fc957600080fd5b8235611fd481611e5c565b91506020830135611f6081611e5c565b600181811c90821680611ff857607f821691505b60208210810361201857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561061257610612612053565b623232bb60e91b815260030190565b686d61726b6574696e6760b81b815260090190565b686c697175696469747960b81b815260090190565b666368617269747960c81b815260070190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60006020828403121561210657600080fd5b81516106c281611e5c565b60008261212e57634e487b7160e01b600052601260045260246000fd5b500490565b808202811582820484141761061257610612612053565b600081518084526020808501945080840160005b838110156121835781516001600160a01b03168752958201959082019060010161215e565b509495945050505050565b8281526040602082015260006121a7604083018461214a565b949350505050565b600060208083850312156121c257600080fd5b825167ffffffffffffffff808211156121da57600080fd5b818501915085601f8301126121ee57600080fd5b815181811115612200576122006120c8565b8060051b604051601f19603f83011681018181108582111715612225576122256120c8565b60405291825284820192508381018501918883111561224357600080fd5b938501935b8285101561226157845184529385019392850192612248565b98975050505050505050565b85815284602082015260a06040820152600061228c60a083018661214a565b6001600160a01b0394909416606083015250608001529392505050565b8181038181111561061257610612612053565b6000806000606084860312156122d157600080fd5b835192506020840151915060408401519050925092509256fea2646970667358221220c94cbca3d1134166da81bb22e737a835419aecd268a787d47ac9842597a8660964736f6c634300081100334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657200000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000260000000000000000000000000000000000000000000000000000000000098968000000000000000000000000051e46fddf884518d96ebea18023f7b2d0a82582a0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000a45e4c570da23ff736ddda26c54b8c2dab25e49100000000000000000000000097e91e9ea3da9ac7486d53cf08b2dfab3ed2dcfb00000000000000000000000097e91e9ea3da9ac7486d53cf08b2dfab3ed2dcfb000000000000000000000000a45e4c570da23ff736ddda26c54b8c2dab25e49100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000c426162792048616d73746572000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054248414d53000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101bb5760003560e01c806384666b08116100ec578063a9059cbb1161008a578063cba0e99611610064578063cba0e996146104d4578063ced695a4146104f4578063dd62ed3e14610509578063f2fde38b1461054f57600080fd5b8063a9059cbb14610464578063aa797dbc14610484578063abe4f11d146104b457600080fd5b806395d89b41116100c657806395d89b41146103ef5780639fda058114610404578063a457c2d714610424578063a82cfe8b1461044457600080fd5b806384666b081461038757806386923611146103a75780638da5cb5b146103c757600080fd5b8063313ce5671161015957806353eb3bcf1161013357806353eb3bcf146103085780635c975abb1461031d57806370a082311461033c578063715018a61461037257600080fd5b8063313ce567146102ac57806339509351146102c85780634febf53d146102e857600080fd5b806318160ddd1161019557806318160ddd1461024657806323a38a381461025b57806323b872dd146102755780632c32abc21461029557600080fd5b806306fdde03146101c7578063095ea7b3146101f257806310c8aeac1461022257600080fd5b366101c257005b600080fd5b3480156101d357600080fd5b506101dc61056f565b6040516101e99190611e0e565b60405180910390f35b3480156101fe57600080fd5b5061021261020d366004611e71565b610601565b60405190151581526020016101e9565b34801561022e57600080fd5b5061023860165481565b6040519081526020016101e9565b34801561025257600080fd5b50600254610238565b34801561026757600080fd5b50601b546102129060ff1681565b34801561028157600080fd5b50610212610290366004611e9d565b610618565b3480156102a157600080fd5b506102aa6106c9565b005b3480156102b857600080fd5b50604051601281526020016101e9565b3480156102d457600080fd5b506102126102e3366004611e71565b61070f565b3480156102f457600080fd5b506102aa610303366004611ede565b61074b565b34801561031457600080fd5b506102aa6107fe565b34801561032957600080fd5b50600554600160a01b900460ff16610212565b34801561034857600080fd5b50610238610357366004611ede565b6001600160a01b031660009081526020819052604090205490565b34801561037e57600080fd5b506102aa610894565b34801561039357600080fd5b506102aa6103a2366004611efb565b6108ca565b3480156103b357600080fd5b506102aa6103c2366004611f2d565b61097c565b3480156103d357600080fd5b506005546040516001600160a01b0390911681526020016101e9565b3480156103fb57600080fd5b506101dc6109d1565b34801561041057600080fd5b506102aa61041f366004611f6b565b6109e0565b34801561043057600080fd5b5061021261043f366004611e71565b610acf565b34801561045057600080fd5b506102aa61045f366004611efb565b610b68565b34801561047057600080fd5b5061021261047f366004611e71565b610c04565b34801561049057600080fd5b5061021261049f366004611ede565b60156020526000908152604090205460ff1681565b3480156104c057600080fd5b506102aa6104cf366004611ede565b610c11565b3480156104e057600080fd5b506102126104ef366004611ede565b610cbc565b34801561050057600080fd5b506102aa610cda565b34801561051557600080fd5b50610238610524366004611fb6565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561055b57600080fd5b506102aa61056a366004611ede565b610d6d565b60606003805461057e90611fe4565b80601f01602080910402602001604051908101604052809291908181526020018280546105aa90611fe4565b80156105f75780601f106105cc576101008083540402835291602001916105f7565b820191906000526020600020905b8154815290600101906020018083116105da57829003601f168201915b5050505050905090565b600061060e338484610e05565b5060015b92915050565b6000610625848484610f29565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156106af5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6106bc8533858403610e05565b60019150505b9392505050565b6005546001600160a01b031633146106f35760405162461bcd60e51b81526004016106a69061201e565b601d5461070c906000906001600160a01b031681610fd0565b50565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161060e918590610746908690612069565b610e05565b6005546001600160a01b031633146107755760405162461bcd60e51b81526004016106a69061201e565b61077e81610cbc565b156107da5760405162461bcd60e51b815260206004820152602660248201527f436f696e546f6b656e3a204163636f756e7420697320616c726561647920657860448201526518db1d59195960d21b60648201526084016106a6565b6001600160a01b03166000908152601760205260409020805460ff19166001179055565b6005546001600160a01b031633146108285760405162461bcd60e51b81526004016106a69061201e565b601b5460ff16156108855760405162461bcd60e51b815260206004820152602160248201527f436f696e546f6b656e3a2054617820697320616c726561647920656e61626c656044820152601960fa1b60648201526084016106a6565b601b805460ff19166001179055565b6005546001600160a01b031633146108be5760405162461bcd60e51b81526004016106a69061201e565b6108c86000611bed565b565b6005546001600160a01b031633146108f45760405162461bcd60e51b81526004016106a69061201e565b8360196040516109039061207c565b9081526020016040518091039020819055508260196040516109249061208b565b908152602001604051809103902081905550816019604051610945906120a0565b908152602001604051809103902081905550806019604051610966906120b5565b9081526040519081900360200190205550505050565b6005546001600160a01b031633146109a65760405162461bcd60e51b81526004016106a69061201e565b6001600160a01b03919091166000908152601560205260409020805460ff1916911515919091179055565b60606004805461057e90611fe4565b6005546001600160a01b03163314610a0a5760405162461bcd60e51b81526004016106a69061201e565b82601a604051610a199061207c565b908152602001604051809103902060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555081601a604051610a5a9061208b565b908152602001604051809103902060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080601a604051610a9b906120b5565b90815260405190819003602001902080546001600160a01b03929092166001600160a01b0319909216919091179055505050565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610b515760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106a6565b610b5e3385858403610e05565b5060019392505050565b6005546001600160a01b03163314610b925760405162461bcd60e51b81526004016106a69061201e565b836018604051610ba19061207c565b908152602001604051809103902081905550826018604051610bc29061208b565b908152602001604051809103902081905550816018604051610be3906120a0565b908152602001604051809103902081905550806018604051610966906120b5565b600061060e338484610f29565b6005546001600160a01b03163314610c3b5760405162461bcd60e51b81526004016106a69061201e565b610c4481610cbc565b610c9b5760405162461bcd60e51b815260206004820152602260248201527f436f696e546f6b656e3a204163636f756e74206973206e6f74206578636c7564604482015261195960f21b60648201526084016106a6565b6001600160a01b03166000908152601760205260409020805460ff19169055565b6001600160a01b031660009081526017602052604090205460ff1690565b6005546001600160a01b03163314610d045760405162461bcd60e51b81526004016106a69061201e565b601b5460ff16610d615760405162461bcd60e51b815260206004820152602260248201527f436f696e546f6b656e3a2054617820697320616c72656164792064697361626c604482015261195960f21b60648201526084016106a6565b601b805460ff19169055565b6005546001600160a01b03163314610d975760405162461bcd60e51b81526004016106a69061201e565b6001600160a01b038116610dfc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106a6565b61070c81611bed565b6001600160a01b038316610e675760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106a6565b6001600160a01b038216610ec85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106a6565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831660009081526015602052604090205460ff16158015610f6b57506001600160a01b03821660009081526015602052604090205460ff16155b610fa75760405162461bcd60e51b815260206004820152600d60248201526c456e656d79206164647265737360981b60448201526064016106a6565b601b5460ff1615610fc057610fbd838383610fd0565b90505b610fcb838383611c3f565b505050565b604080516002808252606082018352600092839291906020830190803683370190505090503081600081518110611009576110096120de565b60200260200101906001600160a01b031690816001600160a01b031681525050601b60019054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561107c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a091906120f4565b816001815181106110b3576110b36120de565b60200260200101906001600160a01b031690816001600160a01b0316815250506110dc85610cbc565b1580156110ef57506110ed84610cbc565b155b15611be457600080600754856111059190612111565b601d549091506001600160a01b039081169088160361130057601860405161112c9061208b565b908152602001604051809103902054816111469190612133565b6111509083612069565b915060186040516111609061207c565b9081526020016040518091039020548161117a9190612133565b6111849083612069565b91506018604051611194906120a0565b908152602001604051809103902054816111ae9190612133565b6111b89083612069565b915060186040516111c8906120b5565b908152602001604051809103902054816111e29190612133565b6111ec9083612069565b915081156111ff576111ff873084610f29565b601860405161120d9061208b565b908152602001604051809103902054816112279190612133565b601e60008282546112389190612069565b909155505060405160189061124c9061207c565b908152602001604051809103902054816112669190612133565b601f60008282546112779190612069565b909155505060405160189061128b906120a0565b908152602001604051809103902054816112a59190612133565b602060008282546112b69190612069565b90915550506040516018906112ca906120b5565b908152602001604051809103902054816112e49190612133565b602160008282546112f59190612069565b90915550611bd59050565b601d546001600160a01b0390811690871603611bd55760196040516113249061208b565b9081526020016040518091039020548161133e9190612133565b6113489083612069565b915060196040516113589061207c565b908152602001604051809103902054816113729190612133565b61137c9083612069565b9150601960405161138c906120a0565b908152602001604051809103902054816113a69190612133565b6113b09083612069565b915060196040516113c0906120b5565b908152602001604051809103902054816113da9190612133565b6113e49083612069565b915081156113f7576113f7873084610f29565b60196040516114059061208b565b9081526020016040518091039020548161141f9190612133565b601e60008282546114309190612069565b90915550506040516019906114449061207c565b9081526020016040518091039020548161145e9190612133565b601f600082825461146f9190612069565b9091555050604051601990611483906120a0565b9081526020016040518091039020548161149d9190612133565b602060008282546114ae9190612069565b90915550506040516019906114c2906120b5565b908152602001604051809103902054816114dc9190612133565b602160008282546114ed9190612069565b925050819055506000602154602054601f54601e5461150c9190612069565b6115169190612069565b6115209190612069565b90508060000361153657859450505050506106c2565b6000601b60019054906101000a90046001600160a01b03166001600160a01b031663d06ca61f602154602054601f54601e546115729190612069565b61157c9190612069565b6115869190612069565b876040518363ffffffff1660e01b81526004016115a492919061218e565b600060405180830381865afa1580156115c1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115e991908101906121af565b6001815181106115fb576115fb6120de565b602002602001015190506008548110611bd257602154602054479160009161162590600290612111565b601f54601e546116359190612069565b61163f9190612069565b6116499190612069565b905061166b30601b60019054906101000a90046001600160a01b031683610e05565b601b546040516318cbafe560e01b81526101009091046001600160a01b0316906318cbafe5906116a89084906000908c903090429060040161226d565b6000604051808303816000875af11580156116c7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116ef91908101906121af565b5060006116fc83476122a9565b90506000600260205461170f9190612111565b90506000670de0b6b3a764000087600260205461172c9190612111565b61173e90670de0b6b3a7640000612133565b6117489190612111565b6117529085612133565b61175c9190612111565b90506000670de0b6b3a764000088601e54670de0b6b3a76400006117809190612133565b61178a9190612111565b6117949086612133565b61179e9190612111565b90506000670de0b6b3a764000089601f54670de0b6b3a76400006117c29190612133565b6117cc9190612111565b6117d69087612133565b6117e09190612111565b90506000670de0b6b3a76400008a602154670de0b6b3a76400006118049190612133565b61180e9190612111565b6118189088612133565b6118229190612111565b905061184430601b60019054906101000a90046001600160a01b031687610e05565b6000806000601b60019054906101000a90046001600160a01b03166001600160a01b031663f305d71988308b600080601a604051611881906120a0565b908152604051908190036020018120546001600160e01b031960e089901b1682526001600160a01b039586166004830152602482019490945260448101929092526064820152911660848201524260a482015260c40160606040518083038185885af11580156118f5573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061191a91906122bc565b91945092509050600061192d848c612069565b602154602054601f54601e546119439190612069565b61194d9190612069565b6119579190612069565b61196191906122a9565b9050801561199a5761199a30601a60405161197b9061207c565b908152604051908190036020019020546001600160a01b031683610f29565b601a6040516119a89061208b565b908152604051908190036020018120546001600160a01b031690889060006040518083038185875af1925050503d8060008114611a01576040519150601f19603f3d011682016040523d82523d6000602084013e611a06565b606091505b505050601a604051611a179061207c565b908152604051908190036020018120546001600160a01b031690879060006040518083038185875af1925050503d8060008114611a70576040519150601f19603f3d011682016040523d82523d6000602084013e611a75565b606091505b505050601a604051611a86906120b5565b908152604051908190036020018120546001600160a01b031690869060006040518083038185875af1925050503d8060008114611adf576040519150601f19603f3d011682016040523d82523d6000602084013e611ae4565b606091505b50505060008589888a611af79190612069565b611b019190612069565b611b0b9190612069565b611b15908c6122a9565b1115611bb157601a604051611b299061208b565b908152604051908190036020019020546001600160a01b03168589611b4e898b612069565b611b589190612069565b611b629190612069565b611b6c908c6122a9565b604051600081818185875af1925050503d8060008114611ba8576040519150601f19603f3d011682016040523d82523d6000602084013e611bad565b606091505b5050505b50506000601e819055601f8190556020819055602155505050505050505050505b50505b611bdf82866122a9565b945050505b50909392505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038316611ca35760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106a6565b6001600160a01b038216611d055760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106a6565b6001600160a01b03831660009081526020819052604090205481811015611d7d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016106a6565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611db4908490612069565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611e0091815260200190565b60405180910390a350505050565b600060208083528351808285015260005b81811015611e3b57858101830151858201604001528201611e1f565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461070c57600080fd5b60008060408385031215611e8457600080fd5b8235611e8f81611e5c565b946020939093013593505050565b600080600060608486031215611eb257600080fd5b8335611ebd81611e5c565b92506020840135611ecd81611e5c565b929592945050506040919091013590565b600060208284031215611ef057600080fd5b81356106c281611e5c565b60008060008060808587031215611f1157600080fd5b5050823594602084013594506040840135936060013592509050565b60008060408385031215611f4057600080fd5b8235611f4b81611e5c565b915060208301358015158114611f6057600080fd5b809150509250929050565b600080600060608486031215611f8057600080fd5b8335611f8b81611e5c565b92506020840135611f9b81611e5c565b91506040840135611fab81611e5c565b809150509250925092565b60008060408385031215611fc957600080fd5b8235611fd481611e5c565b91506020830135611f6081611e5c565b600181811c90821680611ff857607f821691505b60208210810361201857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561061257610612612053565b623232bb60e91b815260030190565b686d61726b6574696e6760b81b815260090190565b686c697175696469747960b81b815260090190565b666368617269747960c81b815260070190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60006020828403121561210657600080fd5b81516106c281611e5c565b60008261212e57634e487b7160e01b600052601260045260246000fd5b500490565b808202811582820484141761061257610612612053565b600081518084526020808501945080840160005b838110156121835781516001600160a01b03168752958201959082019060010161215e565b509495945050505050565b8281526040602082015260006121a7604083018461214a565b949350505050565b600060208083850312156121c257600080fd5b825167ffffffffffffffff808211156121da57600080fd5b818501915085601f8301126121ee57600080fd5b815181811115612200576122006120c8565b8060051b604051601f19603f83011681018181108582111715612225576122256120c8565b60405291825284820192508381018501918883111561224357600080fd5b938501935b8285101561226157845184529385019392850192612248565b98975050505050505050565b85815284602082015260a06040820152600061228c60a083018661214a565b6001600160a01b0394909416606083015250608001529392505050565b8181038181111561061257610612612053565b6000806000606084860312156122d157600080fd5b835192506020840151915060408401519050925092509256fea2646970667358221220c94cbca3d1134166da81bb22e737a835419aecd268a787d47ac9842597a8660964736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000260000000000000000000000000000000000000000000000000000000000098968000000000000000000000000051e46fddf884518d96ebea18023f7b2d0a82582a0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000a45e4c570da23ff736ddda26c54b8c2dab25e49100000000000000000000000097e91e9ea3da9ac7486d53cf08b2dfab3ed2dcfb00000000000000000000000097e91e9ea3da9ac7486d53cf08b2dfab3ed2dcfb000000000000000000000000a45e4c570da23ff736ddda26c54b8c2dab25e49100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000c426162792048616d73746572000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054248414d53000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _tokenName (string): Baby Hamster
Arg [1] : _tokenSymbol (string): BHAMS
Arg [2] : _supply (uint256): 10000000
Arg [3] : _addr (address[6]): 0x51e46fDDF884518d96EbeA18023f7B2d0A82582a,0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D,0xA45E4C570dA23fF736DddA26C54b8C2daB25e491,0x97E91E9EA3Da9AC7486d53CF08B2dFAB3Ed2DCfB,0x97E91E9EA3Da9AC7486d53CF08B2dFAB3Ed2DCfB,0xA45E4C570dA23fF736DddA26C54b8C2daB25e491
Arg [4] : _value (uint256[8]): 0,2,1,1,0,2,1,1
-----Encoded View---------------
21 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000260
Arg [2] : 0000000000000000000000000000000000000000000000000000000000989680
Arg [3] : 00000000000000000000000051e46fddf884518d96ebea18023f7b2d0a82582a
Arg [4] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [5] : 000000000000000000000000a45e4c570da23ff736ddda26c54b8c2dab25e491
Arg [6] : 00000000000000000000000097e91e9ea3da9ac7486d53cf08b2dfab3ed2dcfb
Arg [7] : 00000000000000000000000097e91e9ea3da9ac7486d53cf08b2dfab3ed2dcfb
Arg [8] : 000000000000000000000000a45e4c570da23ff736ddda26c54b8c2dab25e491
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [17] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [18] : 426162792048616d737465720000000000000000000000000000000000000000
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [20] : 4248414d53000000000000000000000000000000000000000000000000000000
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.