ERC-20
Overview
Max Total Supply
1,000,000,000 COKE
Holders
11
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.000000000638076867 COKEValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
ERC20Reflections
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/** Cocaine Cats (COKE) Telegram: https://t.me/CocaineCatsCOKE */ // SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <= 0.8.18; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "@openzeppelin/contracts/utils/Context.sol"; contract ERC20Reflections is Context, IERC20, IERC20Metadata, Ownable { uint256 private constant MAX = ~uint256(0); uint256 private _rTotalSupply; // total supply in r-space uint256 private immutable _tTotalSupply; // total supply in t-space string private _name; string private _symbol; address[] private _excludedFromReward; uint256 public txFee = 200; // 200 => 2% uint256 public accumulatedFees; mapping(address => uint256) private _rBalances; // balances in r-space mapping(address => uint256) private _tBalances; // balances in t-space mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) public isExcludedFromFee; mapping(address => bool) public isExcludedFromReward; event SetFee(uint256 value); constructor(string memory name_, string memory symbol_, address owner_) { _name = name_; _symbol = symbol_; _tTotalSupply = 1_000_000_000 * 10 ** decimals(); excludeFromFee(owner_); excludeFromFee(address(this)); _mint(owner_, _tTotalSupply); // for deployer use msg.sender _transferOwnership(owner_); } function name() public view virtual override returns (string memory) { return _name; } function symbol() public view virtual override returns (string memory) { return _symbol; } function decimals() public view virtual override returns (uint8) { return 18; } function totalSupply() public view virtual override returns (uint256) { return _tTotalSupply; } function balanceOf( address account ) public view virtual override returns (uint256) { uint256 rate = _conversionRate(); return _rBalances[account] / rate; } function transfer( address to, uint256 amount ) public virtual override returns (bool) { _transfer(msg.sender, to, amount); return true; } function allowance( address account, address spender ) public view virtual override returns (uint256) { return _allowances[account][spender]; } function approve( address spender, uint256 amount ) public virtual override returns (bool) { _approve(msg.sender, spender, amount); return true; } function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } function increaseAllowance( address spender, uint256 addedValue ) public virtual returns (bool) { _approve( msg.sender, spender, allowance(msg.sender, spender) + addedValue ); return true; } function decreaseAllowance( address spender, uint256 subtractedValue ) public virtual returns (bool) { uint256 currentAllowance = allowance(msg.sender, spender); require( currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero" ); unchecked { _approve(msg.sender, spender, currentAllowance - subtractedValue); } return true; } function setTransactionFee(uint256 newTxFee) public onlyOwner { txFee = newTxFee; emit SetFee(txFee); } function excludeFromReward(address account) public onlyOwner { require(!isExcludedFromReward[account], "Address already excluded"); require(_excludedFromReward.length < 100, "Excluded list is too long"); if (_rBalances[account] > 0) { uint256 rate = _conversionRate(); _tBalances[account] = _rBalances[account] / rate; } isExcludedFromReward[account] = true; _excludedFromReward.push(account); } function includeInReward(address account) public onlyOwner { require(isExcludedFromReward[account], "Account is already included"); uint256 nExcluded = _excludedFromReward.length; for (uint256 i = 0; i < nExcluded; i++) { if (_excludedFromReward[i] == account) { _excludedFromReward[i] = _excludedFromReward[ _excludedFromReward.length - 1 ]; _tBalances[account] = 0; isExcludedFromReward[account] = false; _excludedFromReward.pop(); break; } } } function excludeFromFee(address account) public onlyOwner { isExcludedFromFee[account] = true; } function includeInFee(address account) public onlyOwner { isExcludedFromFee[account] = false; } // withdraw tokens from contract (only owner) function withdrawTokens( address tokenAddress, address receiverAddress ) external onlyOwner returns (bool success) { IERC20 tokenContract = IERC20(tokenAddress); uint256 amount = tokenContract.balanceOf(address(this)); return tokenContract.transfer(receiverAddress, amount); } function _conversionRate() private view returns (uint256) { uint256 rSupply = _rTotalSupply; uint256 tSupply = _tTotalSupply; uint256 nExcluded = _excludedFromReward.length; for (uint256 i = 0; i < nExcluded; i++) { rSupply = rSupply - _rBalances[_excludedFromReward[i]]; tSupply = tSupply - _tBalances[_excludedFromReward[i]]; } if (rSupply < _rTotalSupply / _tTotalSupply) { rSupply = _rTotalSupply; tSupply = _tTotalSupply; } // rSupply always > tSupply (no precision loss) uint256 rate = rSupply / tSupply; return rate; } 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"); require(amount > 0, "Transfer amount must be greater than zero"); _beforeTokenTransfer(from, to, amount); uint256 _txFee; if (isExcludedFromFee[from] || isExcludedFromFee[to]) { _txFee = 0; } else { _txFee = txFee; } // calc t-values uint256 tAmount = amount; uint256 tTxFee = (tAmount * _txFee) / 10000; // fee = 200 / 10000 = 2 uint256 tTransferAmount = tAmount - tTxFee; // calc r-values uint256 rate = _conversionRate(); uint256 rTxFee = tTxFee * rate; uint256 rAmount = tAmount * rate; uint256 rTransferAmount = rAmount - rTxFee; // check balances uint256 rFromBalance = _rBalances[from]; uint256 tFromBalance = _tBalances[from]; if (isExcludedFromReward[from]) { require( tFromBalance >= tAmount, "ERC20: transfer amount exceeds balance" ); } else { require( rFromBalance >= rAmount, "ERC20: transfer amount exceeds balance" ); } // Overflow not possible: the sum of all balances is capped by // rTotalSupply and tTotalSupply, and the sum is preserved by // decrementing then incrementing. unchecked { // udpate balances in r-space _rBalances[from] = rFromBalance - rAmount; _rBalances[to] += rTransferAmount; // update balances in t-space if (isExcludedFromReward[from] && isExcludedFromReward[to]) { _tBalances[from] = tFromBalance - tAmount; _tBalances[to] += tTransferAmount; } else if ( isExcludedFromReward[from] && !isExcludedFromReward[to] ) { _tBalances[from] = tFromBalance - tAmount; } else if ( !isExcludedFromReward[from] && isExcludedFromReward[to] ) { _tBalances[to] += tTransferAmount; } // reflect fee // can never go below zero because rTxFee percentage of // _rTotalSupply _rTotalSupply = _rTotalSupply - rTxFee; accumulatedFees += tTxFee; } emit Transfer(from, to, tTransferAmount); _afterTokenTransfer(from, to, amount); } function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _rTotalSupply += (MAX - (MAX % amount)); unchecked { _rBalances[account] += _rTotalSupply; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } function _approve( address account, address spender, uint256 amount ) internal virtual { require(account != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[account][spender] = amount; emit Approval(account, spender, amount); } function _spendAllowance( address account, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(account, spender); if (currentAllowance != type(uint256).max) { require( currentAllowance >= amount, "ERC20: insufficient allowance" ); unchecked { _approve(account, spender, currentAllowance - amount); } } } function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "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
Contract ABI
API[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"address","name":"owner_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"uint256","name":"value","type":"uint256"}],"name":"SetFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"accumulatedFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","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":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExcludedFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExcludedFromReward","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newTxFee","type":"uint256"}],"name":"setTransactionFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"txFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"address","name":"receiverAddress","type":"address"}],"name":"withdrawTokens","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a060405260c86005553480156200001657600080fd5b5060405162001c7c38038062001c7c83398101604081905262000039916200035c565b6200004433620000c1565b600262000052848262000477565b50600362000061838262000477565b50620000706012600a62000658565b6200008090633b9aca0062000670565b6080526200008e8162000111565b620000993062000111565b620000ad816080516200013f60201b60201c565b620000b881620000c1565b505050620006d9565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6200011b62000234565b6001600160a01b03166000908152600a60205260409020805460ff19166001179055565b6001600160a01b0382166200019b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b620001a9816000196200068a565b620001b790600019620006ad565b60016000828254620001ca9190620006c3565b90915550506001546001600160a01b038316600081815260076020526040808220805490940190935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90620002289085815260200190565b60405180910390a35050565b6000546001600160a01b03163314620002905760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000192565b565b505050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620002bf57600080fd5b81516001600160401b0380821115620002dc57620002dc62000297565b604051601f8301601f19908116603f0116810190828211818310171562000307576200030762000297565b816040528381526020925086838588010111156200032457600080fd5b600091505b8382101562000348578582018301518183018401529082019062000329565b600093810190920192909252949350505050565b6000806000606084860312156200037257600080fd5b83516001600160401b03808211156200038a57600080fd5b6200039887838801620002ad565b94506020860151915080821115620003af57600080fd5b50620003be86828701620002ad565b604086015190935090506001600160a01b0381168114620003de57600080fd5b809150509250925092565b600181811c90821680620003fe57607f821691505b6020821081036200041f57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200029257600081815260208120601f850160051c810160208610156200044e5750805b601f850160051c820191505b818110156200046f578281556001016200045a565b505050505050565b81516001600160401b0381111562000493576200049362000297565b620004ab81620004a48454620003e9565b8462000425565b602080601f831160018114620004e35760008415620004ca5750858301515b600019600386901b1c1916600185901b1785556200046f565b600085815260208120601f198616915b828110156200051457888601518255948401946001909101908401620004f3565b5085821015620005335787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b808511156200059a5781600019048211156200057e576200057e62000543565b808516156200058c57918102915b93841c93908002906200055e565b509250929050565b600082620005b35750600162000652565b81620005c25750600062000652565b8160018114620005db5760028114620005e65762000606565b600191505062000652565b60ff841115620005fa57620005fa62000543565b50506001821b62000652565b5060208310610133831016604e8410600b84101617156200062b575081810a62000652565b62000637838362000559565b80600019048211156200064e576200064e62000543565b0290505b92915050565b60006200066960ff841683620005a2565b9392505050565b808202811582820484141762000652576200065262000543565b600082620006a857634e487b7160e01b600052601260045260246000fd5b500690565b8181038181111562000652576200065262000543565b8082018082111562000652576200065262000543565b6080516115726200070a600039600081816101b501528181611109015281816111d8015261121201526115726000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c806370a08231116100c3578063a522ad251161007c578063a522ad25146102f1578063a9059cbb14610304578063cf82046114610317578063dd62ed3e14610320578063ea2f0b3714610333578063f2fde38b1461034657600080fd5b806370a082311461027d578063715018a61461029057806388f82020146102985780638da5cb5b146102bb57806395d89b41146102d6578063a457c2d7146102de57600080fd5b80633685d419116101155780633685d419146102055780633950935114610218578063437823ec1461022b57806352390c021461023e5780635342acb414610251578063587f5ed71461027457600080fd5b806306fdde031461015d578063095ea7b31461017b578063096a8ab71461019e57806318160ddd146101b357806323b872dd146101e3578063313ce567146101f6575b600080fd5b610165610359565b6040516101729190611290565b60405180910390f35b61018e6101893660046112fa565b6103eb565b6040519015158152602001610172565b6101b16101ac366004611324565b610402565b005b7f00000000000000000000000000000000000000000000000000000000000000005b604051908152602001610172565b61018e6101f136600461133d565b610444565b60405160128152602001610172565b6101b1610213366004611379565b610468565b61018e6102263660046112fa565b610604565b6101b1610239366004611379565b610625565b6101b161024c366004611379565b610651565b61018e61025f366004611379565b600a6020526000908152604090205460ff1681565b6101d560065481565b6101d561028b366004611379565b6107e4565b6101b161081d565b61018e6102a6366004611379565b600b6020526000908152604090205460ff1681565b6000546040516001600160a01b039091168152602001610172565b610165610831565b61018e6102ec3660046112fa565b610840565b61018e6102ff366004611394565b6108c4565b61018e6103123660046112fa565b6109bb565b6101d560055481565b6101d561032e366004611394565b6109c8565b6101b1610341366004611379565b6109f3565b6101b1610354366004611379565b610a1c565b606060028054610368906113c7565b80601f0160208091040260200160405190810160405280929190818152602001828054610394906113c7565b80156103e15780601f106103b6576101008083540402835291602001916103e1565b820191906000526020600020905b8154815290600101906020018083116103c457829003601f168201915b5050505050905090565b60006103f8338484610a95565b5060015b92915050565b61040a610bb9565b60058190556040518181527e172ddfc5ae88d08b3de01a5a187667c37a5a53989e8c175055cb6c993792a79060200160405180910390a150565b600033610452858285610c13565b61045d858585610c8d565b506001949350505050565b610470610bb9565b6001600160a01b0381166000908152600b602052604090205460ff166104dd5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c726561647920696e636c75646564000000000060448201526064015b60405180910390fd5b60045460005b818110156105ff57826001600160a01b03166004828154811061050857610508611401565b6000918252602090912001546001600160a01b0316036105ed57600480546105329060019061142d565b8154811061054257610542611401565b600091825260209091200154600480546001600160a01b03909216918390811061056e5761056e611401565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559185168152600882526040808220829055600b90925220805460ff1916905560048054806105c6576105c6611440565b600082815260209020810160001990810180546001600160a01b0319169055019055505050565b806105f781611456565b9150506104e3565b505050565b60006103f833848461061633886109c8565b610620919061146f565b610a95565b61062d610bb9565b6001600160a01b03166000908152600a60205260409020805460ff19166001179055565b610659610bb9565b6001600160a01b0381166000908152600b602052604090205460ff16156106c25760405162461bcd60e51b815260206004820152601860248201527f4164647265737320616c7265616479206578636c75646564000000000000000060448201526064016104d4565b6004546064116107145760405162461bcd60e51b815260206004820152601960248201527f4578636c75646564206c69737420697320746f6f206c6f6e670000000000000060448201526064016104d4565b6001600160a01b0381166000908152600760205260409020541561077e57600061073c6110fd565b6001600160a01b038316600090815260076020526040902054909150610763908290611482565b6001600160a01b038316600090815260086020526040902055505b6001600160a01b03166000818152600b60205260408120805460ff191660019081179091556004805491820181559091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319169091179055565b6000806107ef6110fd565b6001600160a01b038416600090815260076020526040902054909150610816908290611482565b9392505050565b610825610bb9565b61082f6000611240565b565b606060038054610368906113c7565b60008061084d33856109c8565b9050828110156108ad5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016104d4565b6108ba3385858403610a95565b5060019392505050565b60006108ce610bb9565b6040516370a0823160e01b815230600482015283906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610917573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093b91906114a4565b60405163a9059cbb60e01b81526001600160a01b038681166004830152602482018390529192509083169063a9059cbb906044016020604051808303816000875af115801561098e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b291906114bd565b95945050505050565b60006103f8338484610c8d565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205490565b6109fb610bb9565b6001600160a01b03166000908152600a60205260409020805460ff19169055565b610a24610bb9565b6001600160a01b038116610a895760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104d4565b610a9281611240565b50565b6001600160a01b038316610af75760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104d4565b6001600160a01b038216610b585760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104d4565b6001600160a01b0383811660008181526009602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000546001600160a01b0316331461082f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104d4565b6000610c1f84846109c8565b90506000198114610c875781811015610c7a5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016104d4565b610c878484848403610a95565b50505050565b6001600160a01b038316610cf15760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104d4565b6001600160a01b038216610d535760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104d4565b60008111610db55760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b60648201526084016104d4565b6001600160a01b0383166000908152600a602052604081205460ff1680610df457506001600160a01b0383166000908152600a602052604090205460ff165b15610e0157506000610e06565b506005545b816000612710610e1684846114df565b610e209190611482565b90506000610e2e828461142d565b90506000610e3a6110fd565b90506000610e4882856114df565b90506000610e5683876114df565b90506000610e64838361142d565b6001600160a01b038c166000908152600760209081526040808320546008835281842054600b909352922054929350909160ff1615610ec25788811015610ebd5760405162461bcd60e51b81526004016104d4906114f6565b610ee2565b83821015610ee25760405162461bcd60e51b81526004016104d4906114f6565b838203600760008f6001600160a01b03166001600160a01b031681526020019081526020016000208190555082600760008e6001600160a01b03166001600160a01b0316815260200190815260200160002060008282540192505081905550600b60008e6001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a900460ff168015610f9857506001600160a01b038c166000908152600b602052604090205460ff165b15610fcd576001600160a01b03808e166000908152600860205260408082208c85039055918e1681522080548801905561109a565b6001600160a01b038d166000908152600b602052604090205460ff16801561100e57506001600160a01b038c166000908152600b602052604090205460ff16155b15611035576001600160a01b038d166000908152600860205260409020898203905561109a565b6001600160a01b038d166000908152600b602052604090205460ff1615801561107657506001600160a01b038c166000908152600b602052604090205460ff165b1561109a576001600160a01b038c1660009081526008602052604090208054880190555b60018054869003905560068054890190556040518781526001600160a01b038d811691908f16907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a350505050505050505050505050565b600154600454600091907f000000000000000000000000000000000000000000000000000000000000000090835b818110156111d557600760006004838154811061114a5761114a611401565b60009182526020808320909101546001600160a01b03168352820192909252604001902054611179908561142d565b9350600860006004838154811061119257611192611401565b60009182526020808320909101546001600160a01b031683528201929092526040019020546111c1908461142d565b9250806111cd81611456565b91505061112b565b507f00000000000000000000000000000000000000000000000000000000000000006001546112049190611482565b8310156112345760015492507f000000000000000000000000000000000000000000000000000000000000000091505b60006109b28385611482565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208083528351808285015260005b818110156112bd578581018301518582016040015282016112a1565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146112f557600080fd5b919050565b6000806040838503121561130d57600080fd5b611316836112de565b946020939093013593505050565b60006020828403121561133657600080fd5b5035919050565b60008060006060848603121561135257600080fd5b61135b846112de565b9250611369602085016112de565b9150604084013590509250925092565b60006020828403121561138b57600080fd5b610816826112de565b600080604083850312156113a757600080fd5b6113b0836112de565b91506113be602084016112de565b90509250929050565b600181811c908216806113db57607f821691505b6020821081036113fb57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b818103818111156103fc576103fc611417565b634e487b7160e01b600052603160045260246000fd5b60006001820161146857611468611417565b5060010190565b808201808211156103fc576103fc611417565b60008261149f57634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156114b657600080fd5b5051919050565b6000602082840312156114cf57600080fd5b8151801515811461081657600080fd5b80820281158282048414176103fc576103fc611417565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b60608201526080019056fea2646970667358221220c47bcf0bf5890eda8927721e2b726ee919ebe09b7da134749108a6e303e5625764736f6c63430008120033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000a6e4eb2b5a384d0c9e534d21b633b7557a268de2000000000000000000000000000000000000000000000000000000000000000c436f6361696e65204361747300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004434f4b4500000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101585760003560e01c806370a08231116100c3578063a522ad251161007c578063a522ad25146102f1578063a9059cbb14610304578063cf82046114610317578063dd62ed3e14610320578063ea2f0b3714610333578063f2fde38b1461034657600080fd5b806370a082311461027d578063715018a61461029057806388f82020146102985780638da5cb5b146102bb57806395d89b41146102d6578063a457c2d7146102de57600080fd5b80633685d419116101155780633685d419146102055780633950935114610218578063437823ec1461022b57806352390c021461023e5780635342acb414610251578063587f5ed71461027457600080fd5b806306fdde031461015d578063095ea7b31461017b578063096a8ab71461019e57806318160ddd146101b357806323b872dd146101e3578063313ce567146101f6575b600080fd5b610165610359565b6040516101729190611290565b60405180910390f35b61018e6101893660046112fa565b6103eb565b6040519015158152602001610172565b6101b16101ac366004611324565b610402565b005b7f0000000000000000000000000000000000000000033b2e3c9fd0803ce80000005b604051908152602001610172565b61018e6101f136600461133d565b610444565b60405160128152602001610172565b6101b1610213366004611379565b610468565b61018e6102263660046112fa565b610604565b6101b1610239366004611379565b610625565b6101b161024c366004611379565b610651565b61018e61025f366004611379565b600a6020526000908152604090205460ff1681565b6101d560065481565b6101d561028b366004611379565b6107e4565b6101b161081d565b61018e6102a6366004611379565b600b6020526000908152604090205460ff1681565b6000546040516001600160a01b039091168152602001610172565b610165610831565b61018e6102ec3660046112fa565b610840565b61018e6102ff366004611394565b6108c4565b61018e6103123660046112fa565b6109bb565b6101d560055481565b6101d561032e366004611394565b6109c8565b6101b1610341366004611379565b6109f3565b6101b1610354366004611379565b610a1c565b606060028054610368906113c7565b80601f0160208091040260200160405190810160405280929190818152602001828054610394906113c7565b80156103e15780601f106103b6576101008083540402835291602001916103e1565b820191906000526020600020905b8154815290600101906020018083116103c457829003601f168201915b5050505050905090565b60006103f8338484610a95565b5060015b92915050565b61040a610bb9565b60058190556040518181527e172ddfc5ae88d08b3de01a5a187667c37a5a53989e8c175055cb6c993792a79060200160405180910390a150565b600033610452858285610c13565b61045d858585610c8d565b506001949350505050565b610470610bb9565b6001600160a01b0381166000908152600b602052604090205460ff166104dd5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c726561647920696e636c75646564000000000060448201526064015b60405180910390fd5b60045460005b818110156105ff57826001600160a01b03166004828154811061050857610508611401565b6000918252602090912001546001600160a01b0316036105ed57600480546105329060019061142d565b8154811061054257610542611401565b600091825260209091200154600480546001600160a01b03909216918390811061056e5761056e611401565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559185168152600882526040808220829055600b90925220805460ff1916905560048054806105c6576105c6611440565b600082815260209020810160001990810180546001600160a01b0319169055019055505050565b806105f781611456565b9150506104e3565b505050565b60006103f833848461061633886109c8565b610620919061146f565b610a95565b61062d610bb9565b6001600160a01b03166000908152600a60205260409020805460ff19166001179055565b610659610bb9565b6001600160a01b0381166000908152600b602052604090205460ff16156106c25760405162461bcd60e51b815260206004820152601860248201527f4164647265737320616c7265616479206578636c75646564000000000000000060448201526064016104d4565b6004546064116107145760405162461bcd60e51b815260206004820152601960248201527f4578636c75646564206c69737420697320746f6f206c6f6e670000000000000060448201526064016104d4565b6001600160a01b0381166000908152600760205260409020541561077e57600061073c6110fd565b6001600160a01b038316600090815260076020526040902054909150610763908290611482565b6001600160a01b038316600090815260086020526040902055505b6001600160a01b03166000818152600b60205260408120805460ff191660019081179091556004805491820181559091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319169091179055565b6000806107ef6110fd565b6001600160a01b038416600090815260076020526040902054909150610816908290611482565b9392505050565b610825610bb9565b61082f6000611240565b565b606060038054610368906113c7565b60008061084d33856109c8565b9050828110156108ad5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016104d4565b6108ba3385858403610a95565b5060019392505050565b60006108ce610bb9565b6040516370a0823160e01b815230600482015283906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610917573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093b91906114a4565b60405163a9059cbb60e01b81526001600160a01b038681166004830152602482018390529192509083169063a9059cbb906044016020604051808303816000875af115801561098e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b291906114bd565b95945050505050565b60006103f8338484610c8d565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205490565b6109fb610bb9565b6001600160a01b03166000908152600a60205260409020805460ff19169055565b610a24610bb9565b6001600160a01b038116610a895760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104d4565b610a9281611240565b50565b6001600160a01b038316610af75760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104d4565b6001600160a01b038216610b585760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104d4565b6001600160a01b0383811660008181526009602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000546001600160a01b0316331461082f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104d4565b6000610c1f84846109c8565b90506000198114610c875781811015610c7a5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016104d4565b610c878484848403610a95565b50505050565b6001600160a01b038316610cf15760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104d4565b6001600160a01b038216610d535760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104d4565b60008111610db55760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b60648201526084016104d4565b6001600160a01b0383166000908152600a602052604081205460ff1680610df457506001600160a01b0383166000908152600a602052604090205460ff165b15610e0157506000610e06565b506005545b816000612710610e1684846114df565b610e209190611482565b90506000610e2e828461142d565b90506000610e3a6110fd565b90506000610e4882856114df565b90506000610e5683876114df565b90506000610e64838361142d565b6001600160a01b038c166000908152600760209081526040808320546008835281842054600b909352922054929350909160ff1615610ec25788811015610ebd5760405162461bcd60e51b81526004016104d4906114f6565b610ee2565b83821015610ee25760405162461bcd60e51b81526004016104d4906114f6565b838203600760008f6001600160a01b03166001600160a01b031681526020019081526020016000208190555082600760008e6001600160a01b03166001600160a01b0316815260200190815260200160002060008282540192505081905550600b60008e6001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a900460ff168015610f9857506001600160a01b038c166000908152600b602052604090205460ff165b15610fcd576001600160a01b03808e166000908152600860205260408082208c85039055918e1681522080548801905561109a565b6001600160a01b038d166000908152600b602052604090205460ff16801561100e57506001600160a01b038c166000908152600b602052604090205460ff16155b15611035576001600160a01b038d166000908152600860205260409020898203905561109a565b6001600160a01b038d166000908152600b602052604090205460ff1615801561107657506001600160a01b038c166000908152600b602052604090205460ff165b1561109a576001600160a01b038c1660009081526008602052604090208054880190555b60018054869003905560068054890190556040518781526001600160a01b038d811691908f16907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a350505050505050505050505050565b600154600454600091907f0000000000000000000000000000000000000000033b2e3c9fd0803ce800000090835b818110156111d557600760006004838154811061114a5761114a611401565b60009182526020808320909101546001600160a01b03168352820192909252604001902054611179908561142d565b9350600860006004838154811061119257611192611401565b60009182526020808320909101546001600160a01b031683528201929092526040019020546111c1908461142d565b9250806111cd81611456565b91505061112b565b507f0000000000000000000000000000000000000000033b2e3c9fd0803ce80000006001546112049190611482565b8310156112345760015492507f0000000000000000000000000000000000000000033b2e3c9fd0803ce800000091505b60006109b28385611482565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208083528351808285015260005b818110156112bd578581018301518582016040015282016112a1565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146112f557600080fd5b919050565b6000806040838503121561130d57600080fd5b611316836112de565b946020939093013593505050565b60006020828403121561133657600080fd5b5035919050565b60008060006060848603121561135257600080fd5b61135b846112de565b9250611369602085016112de565b9150604084013590509250925092565b60006020828403121561138b57600080fd5b610816826112de565b600080604083850312156113a757600080fd5b6113b0836112de565b91506113be602084016112de565b90509250929050565b600181811c908216806113db57607f821691505b6020821081036113fb57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b818103818111156103fc576103fc611417565b634e487b7160e01b600052603160045260246000fd5b60006001820161146857611468611417565b5060010190565b808201808211156103fc576103fc611417565b60008261149f57634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156114b657600080fd5b5051919050565b6000602082840312156114cf57600080fd5b8151801515811461081657600080fd5b80820281158282048414176103fc576103fc611417565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b60608201526080019056fea2646970667358221220c47bcf0bf5890eda8927721e2b726ee919ebe09b7da134749108a6e303e5625764736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000a6e4eb2b5a384d0c9e534d21b633b7557a268de2000000000000000000000000000000000000000000000000000000000000000c436f6361696e65204361747300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004434f4b4500000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): Cocaine Cats
Arg [1] : symbol_ (string): COKE
Arg [2] : owner_ (address): 0xA6e4eB2b5a384d0c9e534d21b633b7557a268DE2
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000a6e4eb2b5a384d0c9e534d21b633b7557a268de2
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [4] : 436f6361696e6520436174730000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 434f4b4500000000000000000000000000000000000000000000000000000000
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.