ERC-20
Overview
Max Total Supply
21,000,000 CORN
Holders
74
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 9 Decimals)
Balance
126,879.373010676 CORNValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
Btcorn
Compiler Version
v0.8.25+commit.b61c2a91
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// https://t.me/bitcorntg pragma solidity ^0.8.17; import "./Erc20.sol"; import "./Erc20.sol"; import "./Ownable.sol"; contract Btcorn is ERC20, Ownable { uint256 public constant rewardPercentMin = 1; // 0.1% uint256 public constant rewardPercentMax = 20; // 2% uint256 public constant rewardInterwal = 6 hours; uint256 public constant startTotalSupply = 21e6 * (10 ** _decimals); uint256 constant _startMaxBuyCount = startTotalSupply / 1000; uint256 constant _addMaxBuyPercentPerSec = 5; // add 0.005%/second bool _inSwap; address pair; uint256 _startTime; bool public canReward; uint256 public rewardVersion; // reward version uint256 public rewardedCurrentVersion; // rewarded on current version uint256 public rewards; // current rewards uint256 public nextRewardTime; uint256 public tokensOnAccounts; // tokens on all accounts uint256 public tokensOnAccountsCurrentVerstion; uint256 _nonce = 1; mapping(address => uint256) _rewardVersionsByAccs; event OnReward(uint256 count); constructor() ERC20("Bitcorn", "CORN") { _mint(msg.sender, startTotalSupply / 2); _mint(address(this), startTotalSupply / 2); } modifier lockTheSwap() { _inSwap = true; _; _inSwap = false; } function _transfer( address from, address to, uint256 amount ) internal override { _updateReward(from); _updateReward(to); if (_inSwap) { super._transfer(from, to, amount); return; } if (to == address(0)) { require( _balances[from] >= amount, "ERC20: transfer amount exceeds balance" ); unchecked { _balances[from] -= amount; _totalSupply -= amount; } emit Transfer(from, to, amount); return; } if (from == pair) { transferFromPair(to, amount); return; } if (to == pair) { transferToPair(from, amount); return; } super._transfer(from, to, amount); } function transferFromPair(address to, uint256 amount) private { require(trading_started(), "trading is not started"); require(amount <= maxBuy(), "maximum buy count limit"); super._transfer(pair, to, amount); if (_isAccount(to)) { tokensOnAccounts += amount; } } function transferToPair(address from, uint256 amount) private { super._transfer(from, pair, amount); if (_isAccount(from)) { tokensOnAccounts -= amount; } } function burned() public view returns (uint256) { return startTotalSupply - totalSupply(); } function maxBuy() public view returns (uint256) { if (pair == address(0)) return startTotalSupply; uint256 count = _startMaxBuyCount + (startTotalSupply * (block.timestamp - _startTime) * _addMaxBuyPercentPerSec) / 100000; if (count > startTotalSupply) count = startTotalSupply; return count; } function maxBuyWithoutDecimals() public view returns (uint256) { return maxBuy() / (10 ** _decimals); } function _rand() private returns (uint256) { return _nonce++ * block.timestamp * block.number; } function _rand(uint256 min, uint256 max) private returns (uint256) { return min + (_rand() % (max - min + 1)); } function balanceOf( address account ) public view virtual override returns (uint256) { if (account == address(this)) return _balances[account] - rewards; return _balances[account] + getReward(account); } function getReward(address account) public view returns (uint256) { if (tokensOnAccountsCurrentVerstion == 0) return 0; if (!_isAccount(account)) return 0; if (rewardVersion == 0) return 0; if (_rewardVersionsByAccs[account] == rewardVersion) return 0; return (rewardedCurrentVersion * _balances[account]) / tokensOnAccountsCurrentVerstion; } function updateReward(address account) external { // updates account reward (for emit events) _updateReward(account); } function _updateReward(address account) private { uint256 reward = getReward(account); _rewardVersionsByAccs[account] = rewardVersion; if (reward == 0) return; rewards -= reward; _balances[address(this)] -= reward; _balances[account] += reward; tokensOnAccounts += reward; emit Transfer(address(this), account, reward); } function _isAccount(address addr) private view returns (bool) { return addr != address(0) && addr != pair && addr != address(this); } function mine_corn() external { require(block.timestamp >= nextRewardTime, "can not grant rewards yet"); nextRewardTime = block.timestamp + rewardInterwal; uint256 addRewards = (balanceOf(address(this)) * _rand(rewardPercentMin, rewardPercentMax)) / 1000; _grantRewards(addRewards); } function _grantRewards(uint256 count) internal { require(canReward, "can not reward yet"); rewards += count; rewardedCurrentVersion = rewards; tokensOnAccountsCurrentVerstion = tokensOnAccounts; ++rewardVersion; emit OnReward(count); } function trading_started() public view returns (bool) { return pair != address(0); } function start_trading(address pair_address) external onlyOwner { pair = pair_address; _startTime = block.timestamp; } function start_mining() external onlyOwner { require(!canReward); canReward = true; } }
// 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; } }
pragma solidity ^0.8.17; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "@openzeppelin/contracts/utils/Context.sol"; contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) internal _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 internal _totalSupply; uint8 internal constant _decimals = 9; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * 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 default value returned by this function, unless * it's 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 pure returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf( address account ) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer( address to, uint256 amount ) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance( address owner, address spender ) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve( address spender, uint256 amount ) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance( address spender, uint256 addedValue ) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance( address spender, uint256 subtractedValue ) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require( currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero" ); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); uint256 fromBalance = _balances[from]; require( fromBalance >= amount, "ERC20: transfer amount exceeds balance" ); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require( currentAllowance >= amount, "ERC20: insufficient allowance" ); unchecked { _approve(owner, spender, currentAllowance - amount); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.23; contract Ownable { address _owner; event RenounceOwnership(); constructor() { _owner = msg.sender; } modifier onlyOwner() { require(_owner == msg.sender, "only owner"); _; } function owner() external view virtual returns (address) { return _owner; } function ownerRenounce() public onlyOwner { _owner = address(0); emit RenounceOwnership(); } function transferOwnership(address newOwner) external onlyOwner { _owner = newOwner; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"count","type":"uint256"}],"name":"OnReward","type":"event"},{"anonymous":false,"inputs":[],"name":"RenounceOwnership","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":[{"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":"burned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","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":"getReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBuyWithoutDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mine_corn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextRewardTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerRenounce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardInterwal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPercentMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPercentMin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardVersion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardedCurrentVersion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"start_mining","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair_address","type":"address"}],"name":"start_trading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensOnAccounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensOnAccountsCurrentVerstion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"trading_started","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"address","name":"account","type":"address"}],"name":"updateReward","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526001600f5534801561001557600080fd5b50604051806040016040528060078152602001662134ba31b7b93760c91b8152506040518060400160405280600481526020016321a7a92760e11b81525081600390816100629190610231565b50600461006f8282610231565b5050600580546001600160a01b031916339081179091556100b6915060026100996009600a6103ec565b6100a7906301406f40610402565b6100b19190610419565b6100cd565b6100c83060026100996009600a6103ec565b61044e565b6001600160a01b0382166101275760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254610139919061043b565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806101ba57607f821691505b6020821081036101da57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561022c576000816000526020600020601f850160051c810160208610156102095750805b601f850160051c820191505b8181101561022857828155600101610215565b5050505b505050565b81516001600160401b0381111561024a5761024a610190565b61025e8161025884546101a6565b846101e0565b602080601f831160018114610293576000841561027b5750858301515b600019600386901b1c1916600185901b178555610228565b600085815260208120601f198616915b828110156102c2578886015182559484019460019091019084016102a3565b50858210156102e05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115610341578160001904821115610327576103276102f0565b8085161561033457918102915b93841c939080029061030b565b509250929050565b600082610358575060016103e6565b81610365575060006103e6565b816001811461037b5760028114610385576103a1565b60019150506103e6565b60ff841115610396576103966102f0565b50506001821b6103e6565b5060208310610133831016604e8410600b84101617156103c4575081810a6103e6565b6103ce8383610306565b80600019048211156103e2576103e26102f0565b0290505b92915050565b60006103fb60ff841683610349565b9392505050565b80820281158282048414176103e6576103e66102f0565b60008261043657634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156103e6576103e66102f0565b6114d28061045d6000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c806370a082311161011a5780639ec5a894116100ad578063ba62b6681161007c578063ba62b668146103b1578063c00007b0146103b9578063dd62ed3e146103cc578063e5a30a7e146103df578063f2fde38b146103e857600080fd5b80639ec5a8941461036f578063a457c2d714610378578063a9059cbb1461038b578063b2c707b41461039e57600080fd5b806389135372116100e9578063891353721461033a5780638da5cb5b1461034357806395d89b411461035e5780639ce0bcde1461036657600080fd5b806370a082311461030e57806370db69d61461032157806373f42561146103295780637f68e1951461033157600080fd5b8063333a00721161019d5780634b673c4b1161016c5780634b673c4b146102ca57806356bc7c92146102d25780635a560984146102e5578063632447c9146102ee57806369d14dc71461030157600080fd5b8063333a00721461029e57806339361e3c146102a657806339509351146102af5780634964cc35146102c257600080fd5b806318160ddd116101d957806318160ddd1461026c57806322194e6a1461027457806323b872dd1461027c578063313ce5671461028f57600080fd5b806306fdde031461020b578063095ea7b31461022957806313a4486c1461024c5780631508022114610262575b600080fd5b6102136103fb565b6040516102209190611141565b60405180910390f35b61023c6102373660046111a7565b61048d565b6040519015158152602001610220565b6102546104a7565b604051908152602001610220565b61026a6104c4565b005b600254610254565b610254610566565b61023c61028a3660046111d1565b61058b565b60405160098152602001610220565b61026a6105af565b610254600a5481565b61023c6102bd3660046111a7565b610614565b610254601481565b610254600181565b61026a6102e036600461120d565b610636565b61025461546081565b61026a6102fc36600461120d565b610686565b60085461023c9060ff1681565b61025461031c36600461120d565b61068f565b6102546106f3565b6102546107e4565b610254600c5481565b610254600d5481565b6005546040516001600160a01b039091168152602001610220565b610213610813565b610254600e5481565b610254600b5481565b61023c6103863660046111a7565b610822565b61023c6103993660046111a7565b61089d565b6006546001600160a01b0316151561023c565b61026a6108ab565b6102546103c736600461120d565b6108f4565b6102546103da366004611228565b61098b565b61025460095481565b61026a6103f636600461120d565b6109b6565b60606003805461040a9061125b565b80601f01602080910402602001604051908101604052809291908181526020018280546104369061125b565b80156104835780601f1061045857610100808354040283529160200191610483565b820191906000526020600020905b81548152906001019060200180831161046657829003601f168201915b5050505050905090565b60003361049b818585610a02565b60019150505b92915050565b6104b36009600a61138f565b6104c1906301406f4061139e565b81565b600c5442101561051b5760405162461bcd60e51b815260206004820152601960248201527f63616e206e6f74206772616e742072657761726473207965740000000000000060448201526064015b60405180910390fd5b610527615460426113b5565b600c5560006103e861053b60016014610b27565b6105443061068f565b61054e919061139e565b61055891906113de565b905061056381610b61565b50565b60006105746009600a61138f565b61057c6106f3565b61058691906113de565b905090565b600033610599858285610c15565b6105a4858585610c8f565b506001949350505050565b6005546001600160a01b031633146105d95760405162461bcd60e51b8152600401610512906113f2565b600580546001600160a01b03191690556040517f6e4ee811a17215345b89e3506064ff2d62f4feedff3566e9d09219cda7e8cadb90600090a1565b60003361049b818585610627838361098b565b61063191906113b5565b610a02565b6005546001600160a01b031633146106605760405162461bcd60e51b8152600401610512906113f2565b600680546001600160a01b0319166001600160a01b039290921691909117905542600755565b61056381610db0565b6000306001600160a01b038316036106c757600b546001600160a01b0383166000908152602081905260409020546104a19190611416565b6106d0826108f4565b6001600160a01b0383166000908152602081905260409020546104a191906113b5565b6006546000906001600160a01b0316610720576107126009600a61138f565b610586906301406f4061139e565b6000620186a06005600754426107369190611416565b6107426009600a61138f565b610750906301406f4061139e565b61075a919061139e565b610764919061139e565b61076e91906113de565b6103e861077d6009600a61138f565b61078b906301406f4061139e565b61079591906113de565b61079f91906113b5565b90506107ad6009600a61138f565b6107bb906301406f4061139e565b8111156107df576107ce6009600a61138f565b6107dc906301406f4061139e565b90505b919050565b60006107ef60025490565b6107fb6009600a61138f565b610809906301406f4061139e565b6105869190611416565b60606004805461040a9061125b565b60003381610830828661098b565b9050838110156108905760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610512565b6105a48286868403610a02565b60003361049b818585610c8f565b6005546001600160a01b031633146108d55760405162461bcd60e51b8152600401610512906113f2565b60085460ff16156108e557600080fd5b6008805460ff19166001179055565b6000600e5460000361090857506000919050565b61091182610ead565b61091d57506000919050565b60095460000361092f57506000919050565b6009546001600160a01b0383166000908152601060205260409020540361095857506000919050565b600e546001600160a01b038316600090815260208190526040902054600a54610981919061139e565b6104a191906113de565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6005546001600160a01b031633146109e05760405162461bcd60e51b8152600401610512906113f2565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038316610a645760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610512565b6001600160a01b038216610ac55760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610512565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000610b338383611416565b610b3e9060016113b5565b610b46610eef565b610b509190611429565b610b5a90846113b5565b9392505050565b60085460ff16610ba85760405162461bcd60e51b815260206004820152601260248201527118d85b881b9bdd081c995dd85c99081e595d60721b6044820152606401610512565b80600b6000828254610bba91906113b5565b9091555050600b54600a55600d54600e5560098054600090610bdb9061143d565b909155506040518181527fe1531f913ce563c965b906a082914158a5a59b6e2bcdd4475556a38efee21da19060200160405180910390a150565b6000610c21848461098b565b90506000198114610c895781811015610c7c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610512565b610c898484848403610a02565b50505050565b610c9883610db0565b610ca182610db0565b600554600160a01b900460ff1615610cc357610cbe838383610f1c565b505050565b6001600160a01b038216610d65576001600160a01b038316600090815260208190526040902054811115610d095760405162461bcd60e51b815260040161051290611456565b6001600160a01b0383811660008181526020818152604091829020805486900390556002805486900390559051848152928516927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610b1a565b6006546001600160a01b0390811690841603610d8557610cbe8282611020565b6006546001600160a01b0390811690831603610da557610cbe8382611109565b610cbe838383610f1c565b6000610dbb826108f4565b6009546001600160a01b038416600090815260106020526040812091909155909150819003610de8575050565b80600b6000828254610dfa9190611416565b90915550503060009081526020819052604081208054839290610e1e908490611416565b90915550506001600160a01b03821660009081526020819052604081208054839290610e4b9084906113b5565b9250508190555080600d6000828254610e6491906113b5565b90915550506040518181526001600160a01b0383169030907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60006001600160a01b03821615801590610ed557506006546001600160a01b03838116911614155b80156104a157506001600160a01b03821630141592915050565b600f80546000914391429184610f048361143d565b91905055610f12919061139e565b610586919061139e565b6001600160a01b038316610f805760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610512565b6001600160a01b03831660009081526020819052604090205481811015610fb95760405162461bcd60e51b815260040161051290611456565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a350505050565b6006546001600160a01b03166110715760405162461bcd60e51b81526020600482015260166024820152751d1c98591a5b99c81a5cc81b9bdd081cdd185c9d195960521b6044820152606401610512565b6110796106f3565b8111156110c85760405162461bcd60e51b815260206004820152601760248201527f6d6178696d756d2062757920636f756e74206c696d69740000000000000000006044820152606401610512565b6006546110df906001600160a01b03168383610f1c565b6110e882610ead565b156111055780600d60008282546110ff91906113b5565b90915550505b5050565b6006546111219083906001600160a01b031683610f1c565b61112a82610ead565b156111055780600d60008282546110ff9190611416565b60006020808352835180602085015260005b8181101561116f57858101830151858201604001528201611153565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146107df57600080fd5b600080604083850312156111ba57600080fd5b6111c383611190565b946020939093013593505050565b6000806000606084860312156111e657600080fd5b6111ef84611190565b92506111fd60208501611190565b9150604084013590509250925092565b60006020828403121561121f57600080fd5b610b5a82611190565b6000806040838503121561123b57600080fd5b61124483611190565b915061125260208401611190565b90509250929050565b600181811c9082168061126f57607f821691505b60208210810361128f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600181815b808511156112e65781600019048211156112cc576112cc611295565b808516156112d957918102915b93841c93908002906112b0565b509250929050565b6000826112fd575060016104a1565b8161130a575060006104a1565b8160018114611320576002811461132a57611346565b60019150506104a1565b60ff84111561133b5761133b611295565b50506001821b6104a1565b5060208310610133831016604e8410600b8410161715611369575081810a6104a1565b61137383836112ab565b806000190482111561138757611387611295565b029392505050565b6000610b5a60ff8416836112ee565b80820281158282048414176104a1576104a1611295565b808201808211156104a1576104a1611295565b634e487b7160e01b600052601260045260246000fd5b6000826113ed576113ed6113c8565b500490565b6020808252600a908201526937b7363c9037bbb732b960b11b604082015260600190565b818103818111156104a1576104a1611295565b600082611438576114386113c8565b500690565b60006001820161144f5761144f611295565b5060010190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b60608201526080019056fea26469706673582212205a25fdbd2c3c872e94151b4eb147a95b67c72d77739d5a688a7d2da10aa5cf8464736f6c63430008190033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102065760003560e01c806370a082311161011a5780639ec5a894116100ad578063ba62b6681161007c578063ba62b668146103b1578063c00007b0146103b9578063dd62ed3e146103cc578063e5a30a7e146103df578063f2fde38b146103e857600080fd5b80639ec5a8941461036f578063a457c2d714610378578063a9059cbb1461038b578063b2c707b41461039e57600080fd5b806389135372116100e9578063891353721461033a5780638da5cb5b1461034357806395d89b411461035e5780639ce0bcde1461036657600080fd5b806370a082311461030e57806370db69d61461032157806373f42561146103295780637f68e1951461033157600080fd5b8063333a00721161019d5780634b673c4b1161016c5780634b673c4b146102ca57806356bc7c92146102d25780635a560984146102e5578063632447c9146102ee57806369d14dc71461030157600080fd5b8063333a00721461029e57806339361e3c146102a657806339509351146102af5780634964cc35146102c257600080fd5b806318160ddd116101d957806318160ddd1461026c57806322194e6a1461027457806323b872dd1461027c578063313ce5671461028f57600080fd5b806306fdde031461020b578063095ea7b31461022957806313a4486c1461024c5780631508022114610262575b600080fd5b6102136103fb565b6040516102209190611141565b60405180910390f35b61023c6102373660046111a7565b61048d565b6040519015158152602001610220565b6102546104a7565b604051908152602001610220565b61026a6104c4565b005b600254610254565b610254610566565b61023c61028a3660046111d1565b61058b565b60405160098152602001610220565b61026a6105af565b610254600a5481565b61023c6102bd3660046111a7565b610614565b610254601481565b610254600181565b61026a6102e036600461120d565b610636565b61025461546081565b61026a6102fc36600461120d565b610686565b60085461023c9060ff1681565b61025461031c36600461120d565b61068f565b6102546106f3565b6102546107e4565b610254600c5481565b610254600d5481565b6005546040516001600160a01b039091168152602001610220565b610213610813565b610254600e5481565b610254600b5481565b61023c6103863660046111a7565b610822565b61023c6103993660046111a7565b61089d565b6006546001600160a01b0316151561023c565b61026a6108ab565b6102546103c736600461120d565b6108f4565b6102546103da366004611228565b61098b565b61025460095481565b61026a6103f636600461120d565b6109b6565b60606003805461040a9061125b565b80601f01602080910402602001604051908101604052809291908181526020018280546104369061125b565b80156104835780601f1061045857610100808354040283529160200191610483565b820191906000526020600020905b81548152906001019060200180831161046657829003601f168201915b5050505050905090565b60003361049b818585610a02565b60019150505b92915050565b6104b36009600a61138f565b6104c1906301406f4061139e565b81565b600c5442101561051b5760405162461bcd60e51b815260206004820152601960248201527f63616e206e6f74206772616e742072657761726473207965740000000000000060448201526064015b60405180910390fd5b610527615460426113b5565b600c5560006103e861053b60016014610b27565b6105443061068f565b61054e919061139e565b61055891906113de565b905061056381610b61565b50565b60006105746009600a61138f565b61057c6106f3565b61058691906113de565b905090565b600033610599858285610c15565b6105a4858585610c8f565b506001949350505050565b6005546001600160a01b031633146105d95760405162461bcd60e51b8152600401610512906113f2565b600580546001600160a01b03191690556040517f6e4ee811a17215345b89e3506064ff2d62f4feedff3566e9d09219cda7e8cadb90600090a1565b60003361049b818585610627838361098b565b61063191906113b5565b610a02565b6005546001600160a01b031633146106605760405162461bcd60e51b8152600401610512906113f2565b600680546001600160a01b0319166001600160a01b039290921691909117905542600755565b61056381610db0565b6000306001600160a01b038316036106c757600b546001600160a01b0383166000908152602081905260409020546104a19190611416565b6106d0826108f4565b6001600160a01b0383166000908152602081905260409020546104a191906113b5565b6006546000906001600160a01b0316610720576107126009600a61138f565b610586906301406f4061139e565b6000620186a06005600754426107369190611416565b6107426009600a61138f565b610750906301406f4061139e565b61075a919061139e565b610764919061139e565b61076e91906113de565b6103e861077d6009600a61138f565b61078b906301406f4061139e565b61079591906113de565b61079f91906113b5565b90506107ad6009600a61138f565b6107bb906301406f4061139e565b8111156107df576107ce6009600a61138f565b6107dc906301406f4061139e565b90505b919050565b60006107ef60025490565b6107fb6009600a61138f565b610809906301406f4061139e565b6105869190611416565b60606004805461040a9061125b565b60003381610830828661098b565b9050838110156108905760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610512565b6105a48286868403610a02565b60003361049b818585610c8f565b6005546001600160a01b031633146108d55760405162461bcd60e51b8152600401610512906113f2565b60085460ff16156108e557600080fd5b6008805460ff19166001179055565b6000600e5460000361090857506000919050565b61091182610ead565b61091d57506000919050565b60095460000361092f57506000919050565b6009546001600160a01b0383166000908152601060205260409020540361095857506000919050565b600e546001600160a01b038316600090815260208190526040902054600a54610981919061139e565b6104a191906113de565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6005546001600160a01b031633146109e05760405162461bcd60e51b8152600401610512906113f2565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038316610a645760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610512565b6001600160a01b038216610ac55760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610512565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000610b338383611416565b610b3e9060016113b5565b610b46610eef565b610b509190611429565b610b5a90846113b5565b9392505050565b60085460ff16610ba85760405162461bcd60e51b815260206004820152601260248201527118d85b881b9bdd081c995dd85c99081e595d60721b6044820152606401610512565b80600b6000828254610bba91906113b5565b9091555050600b54600a55600d54600e5560098054600090610bdb9061143d565b909155506040518181527fe1531f913ce563c965b906a082914158a5a59b6e2bcdd4475556a38efee21da19060200160405180910390a150565b6000610c21848461098b565b90506000198114610c895781811015610c7c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610512565b610c898484848403610a02565b50505050565b610c9883610db0565b610ca182610db0565b600554600160a01b900460ff1615610cc357610cbe838383610f1c565b505050565b6001600160a01b038216610d65576001600160a01b038316600090815260208190526040902054811115610d095760405162461bcd60e51b815260040161051290611456565b6001600160a01b0383811660008181526020818152604091829020805486900390556002805486900390559051848152928516927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610b1a565b6006546001600160a01b0390811690841603610d8557610cbe8282611020565b6006546001600160a01b0390811690831603610da557610cbe8382611109565b610cbe838383610f1c565b6000610dbb826108f4565b6009546001600160a01b038416600090815260106020526040812091909155909150819003610de8575050565b80600b6000828254610dfa9190611416565b90915550503060009081526020819052604081208054839290610e1e908490611416565b90915550506001600160a01b03821660009081526020819052604081208054839290610e4b9084906113b5565b9250508190555080600d6000828254610e6491906113b5565b90915550506040518181526001600160a01b0383169030907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60006001600160a01b03821615801590610ed557506006546001600160a01b03838116911614155b80156104a157506001600160a01b03821630141592915050565b600f80546000914391429184610f048361143d565b91905055610f12919061139e565b610586919061139e565b6001600160a01b038316610f805760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610512565b6001600160a01b03831660009081526020819052604090205481811015610fb95760405162461bcd60e51b815260040161051290611456565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a350505050565b6006546001600160a01b03166110715760405162461bcd60e51b81526020600482015260166024820152751d1c98591a5b99c81a5cc81b9bdd081cdd185c9d195960521b6044820152606401610512565b6110796106f3565b8111156110c85760405162461bcd60e51b815260206004820152601760248201527f6d6178696d756d2062757920636f756e74206c696d69740000000000000000006044820152606401610512565b6006546110df906001600160a01b03168383610f1c565b6110e882610ead565b156111055780600d60008282546110ff91906113b5565b90915550505b5050565b6006546111219083906001600160a01b031683610f1c565b61112a82610ead565b156111055780600d60008282546110ff9190611416565b60006020808352835180602085015260005b8181101561116f57858101830151858201604001528201611153565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146107df57600080fd5b600080604083850312156111ba57600080fd5b6111c383611190565b946020939093013593505050565b6000806000606084860312156111e657600080fd5b6111ef84611190565b92506111fd60208501611190565b9150604084013590509250925092565b60006020828403121561121f57600080fd5b610b5a82611190565b6000806040838503121561123b57600080fd5b61124483611190565b915061125260208401611190565b90509250929050565b600181811c9082168061126f57607f821691505b60208210810361128f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600181815b808511156112e65781600019048211156112cc576112cc611295565b808516156112d957918102915b93841c93908002906112b0565b509250929050565b6000826112fd575060016104a1565b8161130a575060006104a1565b8160018114611320576002811461132a57611346565b60019150506104a1565b60ff84111561133b5761133b611295565b50506001821b6104a1565b5060208310610133831016604e8410600b8410161715611369575081810a6104a1565b61137383836112ab565b806000190482111561138757611387611295565b029392505050565b6000610b5a60ff8416836112ee565b80820281158282048414176104a1576104a1611295565b808201808211156104a1576104a1611295565b634e487b7160e01b600052601260045260246000fd5b6000826113ed576113ed6113c8565b500490565b6020808252600a908201526937b7363c9037bbb732b960b11b604082015260600190565b818103818111156104a1576104a1611295565b600082611438576114386113c8565b500690565b60006001820161144f5761144f611295565b5060010190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b60608201526080019056fea26469706673582212205a25fdbd2c3c872e94151b4eb147a95b67c72d77739d5a688a7d2da10aa5cf8464736f6c63430008190033
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.