Token
Shangesh (SHAN)
ERC-20
Source Code
Overview
Max Total Supply
2,001,850 SHAN
Holders
21
Market
Onchain Market Cap
-
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
150 SHANLoading...
Loading
Loading...
Loading
Loading...
Loading
| # | Exchange | Pair | Price | 24H Volume | % Volume |
|---|
Contract Name:
Shangesh
Compiler Version
v0.8.28+commit.7893614a
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.26;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Capped.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
/**
* @title Shangesh Token (SHAN)
* @dev ERC20 token with capped supply, burnable functionality, and miner rewards.
*/
contract Shangesh is ERC20Capped, ERC20Burnable {
address payable public owner;
uint256 public blockReward;
constructor(
uint256 cap,
uint256 reward
) ERC20("Shangesh", "SHAN") ERC20Capped(cap * (10 ** decimals())) {
owner = payable(msg.sender);
_mint(owner, 2_000_000 * (10 ** decimals()));
blockReward = reward * (10 ** decimals());
}
/**
* @dev Modifier to restrict function calls to contract owner.
*/
modifier onlyOwner() {
require(msg.sender == owner, "Only owner can call this function");
_;
}
/**
* @dev Updates the miner block reward. Only callable by the owner.
*/
function setBlockReward(uint256 reward) external onlyOwner {
blockReward = reward * (10 ** decimals());
}
/**
* @dev Internal function to mint reward to the block miner.
*/
function _mintMinerReward() internal {
_mint(block.coinbase, blockReward);
}
/**
* @dev Internal override: core logic for transfers, minting, and burning.
* Adds miner reward logic but skips rewards for burn operations.
*/
function _update(
address from,
address to,
uint256 value
) internal override(ERC20, ERC20Capped) {
super._update(from, to, value);
if (
from != address(0) &&
to != address(0) && // Skip rewards for burn operations
to != block.coinbase &&
block.coinbase != address(0) &&
blockReward > 0 &&
totalSupply() + blockReward <= cap()
) {
_mintMinerReward();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard ERC-20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a `spender` is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `spender` to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @dev Standard ERC-721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20.
* Used in balance queries.
* @param owner Address of the current owner of a token.
*/
error ERC721InvalidOwner(address owner);
/**
* @dev Indicates a `tokenId` whose `owner` is the zero address.
* @param tokenId Identifier number of a token.
*/
error ERC721NonexistentToken(uint256 tokenId);
/**
* @dev Indicates an error related to the ownership over a particular token. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param tokenId Identifier number of a token.
* @param owner Address of the current owner of a token.
*/
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC721InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC721InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param tokenId Identifier number of a token.
*/
error ERC721InsufficientApproval(address operator, uint256 tokenId);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC721InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC721InvalidOperator(address operator);
}
/**
* @dev Standard ERC-1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.
*/
interface IERC1155Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
* @param tokenId Identifier number of a token.
*/
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC1155InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC1155InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param owner Address of the current owner of a token.
*/
error ERC1155MissingApprovalForAll(address operator, address owner);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC1155InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC1155InvalidOperator(address operator);
/**
* @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
* Used in batch transfers.
* @param idsLength Length of the array of token identifiers
* @param valuesLength Length of the array of token amounts
*/
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC-20
* applications.
*/
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* Both 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 returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual 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 view virtual returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual 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 `value`.
*/
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `value` 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 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Skips emitting an {Approval} event indicating an allowance update. This is not
* required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].
*
* 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 `value`.
* - the caller must have allowance for ``from``'s tokens of at least
* `value`.
*/
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
/**
* @dev Moves a `value` 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.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _transfer(address from, address to, uint256 value) internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
/**
* @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
* (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
* this function.
*
* Emits a {Transfer} event.
*/
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
// Overflow check required: The rest of the code assumes that totalSupply never overflows
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
// Overflow not possible: value <= fromBalance <= totalSupply.
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
_totalSupply -= value;
}
} else {
unchecked {
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
/**
* @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
* Relies on the `_update` mechanism
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
* Relies on the `_update` mechanism.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead
*/
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
/**
* @dev Sets `value` 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.
*
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
*/
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
/**
* @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
*
* By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
* `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
* `Approval` event during `transferFrom` operations.
*
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
* true using the following override:
*
* ```solidity
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
* super._approve(owner, spender, value, true);
* }
* ```
*
* Requirements are the same as {_approve}.
*/
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
/**
* @dev Updates `owner`'s allowance for `spender` based on spent `value`.
*
* Does not update the allowance value in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Does not emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance < type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Burnable.sol)
pragma solidity ^0.8.20;
import {ERC20} from "../ERC20.sol";
import {Context} from "../../../utils/Context.sol";
/**
* @dev Extension of {ERC20} that allows token holders to destroy both their own
* tokens and those that they have an allowance for, in a way that can be
* recognized off-chain (via event analysis).
*/
abstract contract ERC20Burnable is Context, ERC20 {
/**
* @dev Destroys a `value` amount of tokens from the caller.
*
* See {ERC20-_burn}.
*/
function burn(uint256 value) public virtual {
_burn(_msgSender(), value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, deducting from
* the caller's allowance.
*
* See {ERC20-_burn} and {ERC20-allowance}.
*
* Requirements:
*
* - the caller must have allowance for ``accounts``'s tokens of at least
* `value`.
*/
function burnFrom(address account, uint256 value) public virtual {
_spendAllowance(account, _msgSender(), value);
_burn(account, value);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Capped.sol)
pragma solidity ^0.8.20;
import {ERC20} from "../ERC20.sol";
/**
* @dev Extension of {ERC20} that adds a cap to the supply of tokens.
*/
abstract contract ERC20Capped is ERC20 {
uint256 private immutable _cap;
/**
* @dev Total supply cap has been exceeded.
*/
error ERC20ExceededCap(uint256 increasedSupply, uint256 cap);
/**
* @dev The supplied cap is not a valid cap.
*/
error ERC20InvalidCap(uint256 cap);
/**
* @dev Sets the value of the `cap`. This value is immutable, it can only be
* set once during construction.
*/
constructor(uint256 cap_) {
if (cap_ == 0) {
revert ERC20InvalidCap(0);
}
_cap = cap_;
}
/**
* @dev Returns the cap on the token's total supply.
*/
function cap() public view virtual returns (uint256) {
return _cap;
}
/**
* @dev See {ERC20-_update}.
*/
function _update(address from, address to, uint256 value) internal virtual override {
super._update(from, to, value);
if (from == address(0)) {
uint256 maxSupply = cap();
uint256 supply = totalSupply();
if (supply > maxSupply) {
revert ERC20ExceededCap(supply, maxSupply);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC-20 standard.
*/
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 v5.1.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
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 value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` 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 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}{
"evmVersion": "paris",
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract ABI
API[{"inputs":[{"internalType":"uint256","name":"cap","type":"uint256"},{"internalType":"uint256","name":"reward","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"increasedSupply","type":"uint256"},{"internalType":"uint256","name":"cap","type":"uint256"}],"name":"ERC20ExceededCap","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"uint256","name":"cap","type":"uint256"}],"name":"ERC20InvalidCap","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"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":"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":"value","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":"blockReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"setBlockReward","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":"value","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":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a060405234801561001057600080fd5b5060405161246638038061246683398181016040528101906100329190610717565b61004061020060201b60201c565b600a61004c91906108c6565b826100579190610911565b6040518060400160405280600881526020017f5368616e676573680000000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f5348414e0000000000000000000000000000000000000000000000000000000081525081600390816100d29190610b99565b5080600490816100e29190610b99565b5050506000810361012b5760006040517f392e1e270000000000000000000000000000000000000000000000000000000081526004016101229190610ca6565b60405180910390fd5b80608081815250505033600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506101ce600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166101a961020060201b60201c565b600a6101b591906108c6565b621e84806101c39190610911565b61020960201b60201c565b6101dc61020060201b60201c565b600a6101e891906108c6565b816101f39190610911565b6006819055505050610ddb565b60006012905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361027b5760006040517fec442f050000000000000000000000000000000000000000000000000000000081526004016102729190610d02565b60405180910390fd5b61028d6000838361029160201b60201c565b5050565b6102a28383836103d760201b60201c565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561030c5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561034457504173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561037d5750600073ffffffffffffffffffffffffffffffffffffffff164173ffffffffffffffffffffffffffffffffffffffff1614155b801561038b57506000600654115b80156103be57506103a061048f60201b60201c565b6006546103b161049960201b60201c565b6103bb9190610d1d565b11155b156103d2576103d16104a360201b60201c565b5b505050565b6103e88383836104b760201b60201c565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361048a57600061042c61048f60201b60201c565b9050600061043e61049960201b60201c565b9050818111156104875780826040517f9e79f85400000000000000000000000000000000000000000000000000000000815260040161047e929190610d60565b60405180910390fd5b50505b505050565b6000608051905090565b6000600254905090565b6104b54160065461020960201b60201c565b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036105095780600260008282546104fd9190610d1d565b925050819055506105dc565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610595578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161058c93929190610d89565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036106255780600260008282540392505081905550610672565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516106cf9190610dc0565b60405180910390a3505050565b600080fd5b6000819050919050565b6106f4816106e1565b81146106ff57600080fd5b50565b600081519050610711816106eb565b92915050565b6000806040838503121561072e5761072d6106dc565b5b600061073c85828601610702565b925050602061074d85828601610702565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b60018511156107dd578086048111156107b9576107b8610757565b5b60018516156107c85780820291505b80810290506107d685610786565b945061079d565b94509492505050565b6000826107f657600190506108b2565b8161080457600090506108b2565b816001811461081a576002811461082457610853565b60019150506108b2565b60ff84111561083657610835610757565b5b8360020a91508482111561084d5761084c610757565b5b506108b2565b5060208310610133831016604e8410600b84101617156108885782820a90508381111561088357610882610757565b5b6108b2565b6108958484846001610793565b925090508184048111156108ac576108ab610757565b5b81810290505b9392505050565b600060ff82169050919050565b60006108d1826106e1565b91506108dc836108b9565b92506109097fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84846107e6565b905092915050565b600061091c826106e1565b9150610927836106e1565b9250828202610935816106e1565b9150828204841483151761094c5761094b610757565b5b5092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806109d457607f821691505b6020821081036109e7576109e661098d565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302610a4f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82610a12565b610a598683610a12565b95508019841693508086168417925050509392505050565b6000819050919050565b6000610a96610a91610a8c846106e1565b610a71565b6106e1565b9050919050565b6000819050919050565b610ab083610a7b565b610ac4610abc82610a9d565b848454610a1f565b825550505050565b600090565b610ad9610acc565b610ae4818484610aa7565b505050565b5b81811015610b0857610afd600082610ad1565b600181019050610aea565b5050565b601f821115610b4d57610b1e816109ed565b610b2784610a02565b81016020851015610b36578190505b610b4a610b4285610a02565b830182610ae9565b50505b505050565b600082821c905092915050565b6000610b7060001984600802610b52565b1980831691505092915050565b6000610b898383610b5f565b9150826002028217905092915050565b610ba282610953565b67ffffffffffffffff811115610bbb57610bba61095e565b5b610bc582546109bc565b610bd0828285610b0c565b600060209050601f831160018114610c035760008415610bf1578287015190505b610bfb8582610b7d565b865550610c63565b601f198416610c11866109ed565b60005b82811015610c3957848901518255600182019150602085019450602081019050610c14565b86831015610c565784890151610c52601f891682610b5f565b8355505b6001600288020188555050505b505050505050565b6000819050919050565b6000610c90610c8b610c8684610c6b565b610a71565b6106e1565b9050919050565b610ca081610c75565b82525050565b6000602082019050610cbb6000830184610c97565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610cec82610cc1565b9050919050565b610cfc81610ce1565b82525050565b6000602082019050610d176000830184610cf3565b92915050565b6000610d28826106e1565b9150610d33836106e1565b9250828201905080821115610d4b57610d4a610757565b5b92915050565b610d5a816106e1565b82525050565b6000604082019050610d756000830185610d51565b610d826020830184610d51565b9392505050565b6000606082019050610d9e6000830186610cf3565b610dab6020830185610d51565b610db86040830184610d51565b949350505050565b6000602082019050610dd56000830184610d51565b92915050565b608051611670610df660003960006104c901526116706000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c8063355274ea116100975780638da5cb5b116100665780638da5cb5b1461027457806395d89b4114610292578063a9059cbb146102b0578063dd62ed3e146102e0576100f5565b8063355274ea146101ee57806342966c681461020c57806370a082311461022857806379cc679014610258576100f5565b806318160ddd116100d357806318160ddd146101665780631a18e7071461018457806323b872dd146101a0578063313ce567146101d0576100f5565b806306fdde03146100fa578063095ea7b3146101185780630ac168a114610148575b600080fd5b610102610310565b60405161010f9190610fe0565b60405180910390f35b610132600480360381019061012d919061109b565b6103a2565b60405161013f91906110f6565b60405180910390f35b6101506103c5565b60405161015d9190611120565b60405180910390f35b61016e6103cb565b60405161017b9190611120565b60405180910390f35b61019e6004803603810190610199919061113b565b6103d5565b005b6101ba60048036038101906101b59190611168565b61048d565b6040516101c791906110f6565b60405180910390f35b6101d86104bc565b6040516101e591906111d7565b60405180910390f35b6101f66104c5565b6040516102039190611120565b60405180910390f35b6102266004803603810190610221919061113b565b6104ed565b005b610242600480360381019061023d91906111f2565b610501565b60405161024f9190611120565b60405180910390f35b610272600480360381019061026d919061109b565b610549565b005b61027c610569565b6040516102899190611240565b60405180910390f35b61029a61058f565b6040516102a79190610fe0565b60405180910390f35b6102ca60048036038101906102c5919061109b565b610621565b6040516102d791906110f6565b60405180910390f35b6102fa60048036038101906102f5919061125b565b610644565b6040516103079190611120565b60405180910390f35b60606003805461031f906112ca565b80601f016020809104026020016040519081016040528092919081815260200182805461034b906112ca565b80156103985780601f1061036d57610100808354040283529160200191610398565b820191906000526020600020905b81548152906001019060200180831161037b57829003601f168201915b5050505050905090565b6000806103ad6106cb565b90506103ba8185856106d3565b600191505092915050565b60065481565b6000600254905090565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610465576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161045c9061136d565b60405180910390fd5b61046d6104bc565b600a61047991906114ef565b81610484919061153a565b60068190555050565b6000806104986106cb565b90506104a58582856106e5565b6104b085858561077a565b60019150509392505050565b60006012905090565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b6104fe6104f86106cb565b8261086e565b50565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61055b826105556106cb565b836106e5565b610565828261086e565b5050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606004805461059e906112ca565b80601f01602080910402602001604051908101604052809291908181526020018280546105ca906112ca565b80156106175780601f106105ec57610100808354040283529160200191610617565b820191906000526020600020905b8154815290600101906020018083116105fa57829003601f168201915b5050505050905090565b60008061062c6106cb565b905061063981858561077a565b600191505092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600033905090565b6106e083838360016108f0565b505050565b60006106f18484610644565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8110156107745781811015610764578281836040517ffb8f41b200000000000000000000000000000000000000000000000000000000815260040161075b9392919061158b565b60405180910390fd5b610773848484840360006108f0565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036107ec5760006040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016107e391906115c2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361085e5760006040517fec442f0500000000000000000000000000000000000000000000000000000000815260040161085591906115c2565b60405180910390fd5b610869838383610ac7565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036108e05760006040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016108d791906115c2565b60405180910390fd5b6108ec82600083610ac7565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036109625760006040517fe602df0500000000000000000000000000000000000000000000000000000000815260040161095991906115c2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036109d45760006040517f94280d620000000000000000000000000000000000000000000000000000000081526004016109cb91906115c2565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508015610ac1578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610ab89190611120565b60405180910390a35b50505050565b610ad2838383610bf5565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015610b3c5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015610b7457504173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015610bad5750600073ffffffffffffffffffffffffffffffffffffffff164173ffffffffffffffffffffffffffffffffffffffff1614155b8015610bbb57506000600654115b8015610be25750610bca6104c5565b600654610bd56103cb565b610bdf91906115dd565b11155b15610bf057610bef610c9b565b5b505050565b610c00838383610ca9565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c96576000610c3e6104c5565b90506000610c4a6103cb565b905081811115610c935780826040517f9e79f854000000000000000000000000000000000000000000000000000000008152600401610c8a929190611611565b60405180910390fd5b50505b505050565b610ca741600654610ece565b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610cfb578060026000828254610cef91906115dd565b92505081905550610dce565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610d87578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401610d7e9392919061158b565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e175780600260008282540392505081905550610e64565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610ec19190611120565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f405760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610f3791906115c2565b60405180910390fd5b610f4c60008383610ac7565b5050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610f8a578082015181840152602081019050610f6f565b60008484015250505050565b6000601f19601f8301169050919050565b6000610fb282610f50565b610fbc8185610f5b565b9350610fcc818560208601610f6c565b610fd581610f96565b840191505092915050565b60006020820190508181036000830152610ffa8184610fa7565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061103282611007565b9050919050565b61104281611027565b811461104d57600080fd5b50565b60008135905061105f81611039565b92915050565b6000819050919050565b61107881611065565b811461108357600080fd5b50565b6000813590506110958161106f565b92915050565b600080604083850312156110b2576110b1611002565b5b60006110c085828601611050565b92505060206110d185828601611086565b9150509250929050565b60008115159050919050565b6110f0816110db565b82525050565b600060208201905061110b60008301846110e7565b92915050565b61111a81611065565b82525050565b60006020820190506111356000830184611111565b92915050565b60006020828403121561115157611150611002565b5b600061115f84828501611086565b91505092915050565b60008060006060848603121561118157611180611002565b5b600061118f86828701611050565b93505060206111a086828701611050565b92505060406111b186828701611086565b9150509250925092565b600060ff82169050919050565b6111d1816111bb565b82525050565b60006020820190506111ec60008301846111c8565b92915050565b60006020828403121561120857611207611002565b5b600061121684828501611050565b91505092915050565b600061122a82611007565b9050919050565b61123a8161121f565b82525050565b60006020820190506112556000830184611231565b92915050565b6000806040838503121561127257611271611002565b5b600061128085828601611050565b925050602061129185828601611050565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806112e257607f821691505b6020821081036112f5576112f461129b565b5b50919050565b7f4f6e6c79206f776e65722063616e2063616c6c20746869732066756e6374696f60008201527f6e00000000000000000000000000000000000000000000000000000000000000602082015250565b6000611357602183610f5b565b9150611362826112fb565b604082019050919050565b600060208201905081810360008301526113868161134a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115611413578086048111156113ef576113ee61138d565b5b60018516156113fe5780820291505b808102905061140c856113bc565b94506113d3565b94509492505050565b60008261142c57600190506114e8565b8161143a57600090506114e8565b8160018114611450576002811461145a57611489565b60019150506114e8565b60ff84111561146c5761146b61138d565b5b8360020a9150848211156114835761148261138d565b5b506114e8565b5060208310610133831016604e8410600b84101617156114be5782820a9050838111156114b9576114b861138d565b5b6114e8565b6114cb84848460016113c9565b925090508184048111156114e2576114e161138d565b5b81810290505b9392505050565b60006114fa82611065565b9150611505836111bb565b92506115327fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848461141c565b905092915050565b600061154582611065565b915061155083611065565b925082820261155e81611065565b915082820484148315176115755761157461138d565b5b5092915050565b61158581611027565b82525050565b60006060820190506115a0600083018661157c565b6115ad6020830185611111565b6115ba6040830184611111565b949350505050565b60006020820190506115d7600083018461157c565b92915050565b60006115e882611065565b91506115f383611065565b925082820190508082111561160b5761160a61138d565b5b92915050565b60006040820190506116266000830185611111565b6116336020830184611111565b939250505056fea26469706673582212202a66655a19bc6f451272c1a0aa7348a76390b35cb88dc293ca7d11c636acf30164736f6c634300081c003300000000000000000000000000000000000000000000000000000000009896800000000000000000000000000000000000000000000000000000000000000032
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100f55760003560e01c8063355274ea116100975780638da5cb5b116100665780638da5cb5b1461027457806395d89b4114610292578063a9059cbb146102b0578063dd62ed3e146102e0576100f5565b8063355274ea146101ee57806342966c681461020c57806370a082311461022857806379cc679014610258576100f5565b806318160ddd116100d357806318160ddd146101665780631a18e7071461018457806323b872dd146101a0578063313ce567146101d0576100f5565b806306fdde03146100fa578063095ea7b3146101185780630ac168a114610148575b600080fd5b610102610310565b60405161010f9190610fe0565b60405180910390f35b610132600480360381019061012d919061109b565b6103a2565b60405161013f91906110f6565b60405180910390f35b6101506103c5565b60405161015d9190611120565b60405180910390f35b61016e6103cb565b60405161017b9190611120565b60405180910390f35b61019e6004803603810190610199919061113b565b6103d5565b005b6101ba60048036038101906101b59190611168565b61048d565b6040516101c791906110f6565b60405180910390f35b6101d86104bc565b6040516101e591906111d7565b60405180910390f35b6101f66104c5565b6040516102039190611120565b60405180910390f35b6102266004803603810190610221919061113b565b6104ed565b005b610242600480360381019061023d91906111f2565b610501565b60405161024f9190611120565b60405180910390f35b610272600480360381019061026d919061109b565b610549565b005b61027c610569565b6040516102899190611240565b60405180910390f35b61029a61058f565b6040516102a79190610fe0565b60405180910390f35b6102ca60048036038101906102c5919061109b565b610621565b6040516102d791906110f6565b60405180910390f35b6102fa60048036038101906102f5919061125b565b610644565b6040516103079190611120565b60405180910390f35b60606003805461031f906112ca565b80601f016020809104026020016040519081016040528092919081815260200182805461034b906112ca565b80156103985780601f1061036d57610100808354040283529160200191610398565b820191906000526020600020905b81548152906001019060200180831161037b57829003601f168201915b5050505050905090565b6000806103ad6106cb565b90506103ba8185856106d3565b600191505092915050565b60065481565b6000600254905090565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610465576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161045c9061136d565b60405180910390fd5b61046d6104bc565b600a61047991906114ef565b81610484919061153a565b60068190555050565b6000806104986106cb565b90506104a58582856106e5565b6104b085858561077a565b60019150509392505050565b60006012905090565b60007f000000000000000000000000000000000000000000084595161401484a000000905090565b6104fe6104f86106cb565b8261086e565b50565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61055b826105556106cb565b836106e5565b610565828261086e565b5050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606004805461059e906112ca565b80601f01602080910402602001604051908101604052809291908181526020018280546105ca906112ca565b80156106175780601f106105ec57610100808354040283529160200191610617565b820191906000526020600020905b8154815290600101906020018083116105fa57829003601f168201915b5050505050905090565b60008061062c6106cb565b905061063981858561077a565b600191505092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600033905090565b6106e083838360016108f0565b505050565b60006106f18484610644565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8110156107745781811015610764578281836040517ffb8f41b200000000000000000000000000000000000000000000000000000000815260040161075b9392919061158b565b60405180910390fd5b610773848484840360006108f0565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036107ec5760006040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016107e391906115c2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361085e5760006040517fec442f0500000000000000000000000000000000000000000000000000000000815260040161085591906115c2565b60405180910390fd5b610869838383610ac7565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036108e05760006040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016108d791906115c2565b60405180910390fd5b6108ec82600083610ac7565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036109625760006040517fe602df0500000000000000000000000000000000000000000000000000000000815260040161095991906115c2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036109d45760006040517f94280d620000000000000000000000000000000000000000000000000000000081526004016109cb91906115c2565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508015610ac1578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610ab89190611120565b60405180910390a35b50505050565b610ad2838383610bf5565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015610b3c5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015610b7457504173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015610bad5750600073ffffffffffffffffffffffffffffffffffffffff164173ffffffffffffffffffffffffffffffffffffffff1614155b8015610bbb57506000600654115b8015610be25750610bca6104c5565b600654610bd56103cb565b610bdf91906115dd565b11155b15610bf057610bef610c9b565b5b505050565b610c00838383610ca9565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c96576000610c3e6104c5565b90506000610c4a6103cb565b905081811115610c935780826040517f9e79f854000000000000000000000000000000000000000000000000000000008152600401610c8a929190611611565b60405180910390fd5b50505b505050565b610ca741600654610ece565b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610cfb578060026000828254610cef91906115dd565b92505081905550610dce565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610d87578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401610d7e9392919061158b565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e175780600260008282540392505081905550610e64565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610ec19190611120565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f405760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610f3791906115c2565b60405180910390fd5b610f4c60008383610ac7565b5050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610f8a578082015181840152602081019050610f6f565b60008484015250505050565b6000601f19601f8301169050919050565b6000610fb282610f50565b610fbc8185610f5b565b9350610fcc818560208601610f6c565b610fd581610f96565b840191505092915050565b60006020820190508181036000830152610ffa8184610fa7565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061103282611007565b9050919050565b61104281611027565b811461104d57600080fd5b50565b60008135905061105f81611039565b92915050565b6000819050919050565b61107881611065565b811461108357600080fd5b50565b6000813590506110958161106f565b92915050565b600080604083850312156110b2576110b1611002565b5b60006110c085828601611050565b92505060206110d185828601611086565b9150509250929050565b60008115159050919050565b6110f0816110db565b82525050565b600060208201905061110b60008301846110e7565b92915050565b61111a81611065565b82525050565b60006020820190506111356000830184611111565b92915050565b60006020828403121561115157611150611002565b5b600061115f84828501611086565b91505092915050565b60008060006060848603121561118157611180611002565b5b600061118f86828701611050565b93505060206111a086828701611050565b92505060406111b186828701611086565b9150509250925092565b600060ff82169050919050565b6111d1816111bb565b82525050565b60006020820190506111ec60008301846111c8565b92915050565b60006020828403121561120857611207611002565b5b600061121684828501611050565b91505092915050565b600061122a82611007565b9050919050565b61123a8161121f565b82525050565b60006020820190506112556000830184611231565b92915050565b6000806040838503121561127257611271611002565b5b600061128085828601611050565b925050602061129185828601611050565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806112e257607f821691505b6020821081036112f5576112f461129b565b5b50919050565b7f4f6e6c79206f776e65722063616e2063616c6c20746869732066756e6374696f60008201527f6e00000000000000000000000000000000000000000000000000000000000000602082015250565b6000611357602183610f5b565b9150611362826112fb565b604082019050919050565b600060208201905081810360008301526113868161134a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115611413578086048111156113ef576113ee61138d565b5b60018516156113fe5780820291505b808102905061140c856113bc565b94506113d3565b94509492505050565b60008261142c57600190506114e8565b8161143a57600090506114e8565b8160018114611450576002811461145a57611489565b60019150506114e8565b60ff84111561146c5761146b61138d565b5b8360020a9150848211156114835761148261138d565b5b506114e8565b5060208310610133831016604e8410600b84101617156114be5782820a9050838111156114b9576114b861138d565b5b6114e8565b6114cb84848460016113c9565b925090508184048111156114e2576114e161138d565b5b81810290505b9392505050565b60006114fa82611065565b9150611505836111bb565b92506115327fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848461141c565b905092915050565b600061154582611065565b915061155083611065565b925082820261155e81611065565b915082820484148315176115755761157461138d565b5b5092915050565b61158581611027565b82525050565b60006060820190506115a0600083018661157c565b6115ad6020830185611111565b6115ba6040830184611111565b949350505050565b60006020820190506115d7600083018461157c565b92915050565b60006115e882611065565b91506115f383611065565b925082820190508082111561160b5761160a61138d565b5b92915050565b60006040820190506116266000830185611111565b6116336020830184611111565b939250505056fea26469706673582212202a66655a19bc6f451272c1a0aa7348a76390b35cb88dc293ca7d11c636acf30164736f6c634300081c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000009896800000000000000000000000000000000000000000000000000000000000000032
-----Decoded View---------------
Arg [0] : cap (uint256): 10000000
Arg [1] : reward (uint256): 50
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000989680
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000032
[ 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.