Feature Tip: Add private address tag to any address under My Name Tag !
Overview
Max Total Supply
193,981,500 ELIMU
Holders
2,101 ( -0.048%)
Market
Onchain Market Cap
-
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
407,054.953426426381102069 ELIMUValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
| # | Exchange | Pair | Price | 24H Volume | % Volume |
|---|
Contract Name:
ElimuToken
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
// https://docs.soliditylang.org/en/v0.8.0/layout-of-source-files.html#pragma
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Capped.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Snapshot.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
contract ElimuToken is ERC20Capped, ERC20Burnable, ERC20Snapshot, AccessControl {
bytes32 public constant SNAPSHOT_ROLE = keccak256("SNAPSHOT_ROLE");
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
/**
* @dev {ERC20-_mint} is used instead of {_mint} in order to prevent TypeError:
* "Immutable variables cannot be read during contract creation time." For details, see
* https://github.com/OpenZeppelin/openzeppelin-contracts/issues/2580
*/
constructor() ERC20("elimu.ai", "ELIMU") ERC20Capped(387_000_000 * 10 ** decimals()) {
// Configure access control
_setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
_setupRole(SNAPSHOT_ROLE, msg.sender);
_setupRole(MINTER_ROLE, msg.sender);
// Pre-mint 38,700,000 tokens (10% of the total supply cap)
ERC20._mint(msg.sender, 38_700_000 * 10 ** decimals());
}
function snapshot() public {
require(hasRole(SNAPSHOT_ROLE, msg.sender));
_snapshot();
}
function mint(address to, uint256 amount) public {
require(hasRole(MINTER_ROLE, msg.sender));
require(SafeMath.add(totalSupply(), amount) <= getMaxTotalSupplyForTimestamp(block.timestamp), "ElimuToken: max total supply exceeded for current timestamp");
_mint(to, amount);
}
/**
* @dev Calculates the maximum total supply for the current time.
*
* 90% of the total supply cap will be minted between 2021-07-01 and 2030-07-01.
*
* No more than 10% of the total supply cap can be minted per year. This corresponds to
* 10% / 12 months = ~0.83% per month (~0.03% per day).
*/
function getMaxTotalSupplyForTimestamp(uint256 timestampInSeconds) public view returns (uint256) {
uint256 startTimeInSeconds = 1625097600; // 2021-07-01 00:00:00 UTC
if (timestampInSeconds <= startTimeInSeconds) {
// The current time is not after the start time
// Return the amount of tokens that were pre-minted (see constructor)
return totalSupply();
} else {
// The current time is after the start time
uint256 totalSupplyPreMinted = SafeMath.div(SafeMath.mul(cap(), 10), 100); // 10% of the total supply cap
uint256 totalSupplyInMintingPeriod = SafeMath.div(SafeMath.mul(cap(), 90), 100); // 90% of the total supply cap
uint256 numberOfSecondsPassedSinceStartTime = SafeMath.sub(timestampInSeconds, startTimeInSeconds);
uint256 totalNumberOfSecondsInMintingPeriod = SafeMath.mul(365 days, 9); // 9 years (2021 --> 2030)
if (numberOfSecondsPassedSinceStartTime < totalNumberOfSecondsInMintingPeriod) {
// The minting period is still on-going
// Calculate the mintable amount based on how many days have passed since the start time
uint256 supplyUnlockedForMinting = SafeMath.div(SafeMath.mul(totalSupplyInMintingPeriod, numberOfSecondsPassedSinceStartTime), totalNumberOfSecondsInMintingPeriod);
// Return the amount of tokens that were pre-minted plus the amount unlocked for minting
return SafeMath.add(totalSupplyPreMinted, supplyUnlockedForMinting);
} else {
// The minting period has ended
return cap();
}
}
}
/**
* @dev Overrides {_mint} function defined in two base classes. See
* https://docs.soliditylang.org/en/develop/contracts.html#inheritance
*/
function _mint(address account, uint256 amount) internal virtual override(ERC20, ERC20Capped) {
super._mint(account, amount);
}
/**
* @dev Overrides {_beforeTokenTransfer} function defined in two base classes. See
* https://docs.soliditylang.org/en/develop/contracts.html#inheritance
*/
function _beforeTokenTransfer(address from, address to, uint256 amount) internal override(ERC20, ERC20Snapshot) {
super._beforeTokenTransfer(from, to, amount);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControl {
function hasRole(bytes32 role, address account) external view returns (bool);
function getRoleAdmin(bytes32 role) external view returns (bytes32);
function grantRole(bytes32 role, address account) external;
function revokeRole(bytes32 role, address account) external;
function renounceRole(bytes32 role, address account) external;
}
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms. This is a lightweight version that doesn't allow enumerating role
* members except through off-chain means by accessing the contract event logs. Some
* applications may benefit from on-chain enumerability, for those cases see
* {AccessControlEnumerable}.
*
* Roles are referred to by their `bytes32` identifier. These should be exposed
* in the external API and be unique. The best way to achieve this is by
* using `public constant` hash digests:
*
* ```
* bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
* ```
*
* Roles can be used to represent a set of permissions. To restrict access to a
* function call, use {hasRole}:
*
* ```
* function foo() public {
* require(hasRole(MY_ROLE, msg.sender));
* ...
* }
* ```
*
* Roles can be granted and revoked dynamically via the {grantRole} and
* {revokeRole} functions. Each role has an associated admin role, and only
* accounts that have a role's admin role can call {grantRole} and {revokeRole}.
*
* By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
* that only accounts with this role will be able to grant or revoke other
* roles. More complex role relationships can be created by using
* {_setRoleAdmin}.
*
* WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
* grant and revoke this role. Extra precautions should be taken to secure
* accounts that have been granted it.
*/
abstract contract AccessControl is Context, IAccessControl, ERC165 {
struct RoleData {
mapping (address => bool) members;
bytes32 adminRole;
}
mapping (bytes32 => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted signaling this.
*
* _Available since v3.1._
*/
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
/**
* @dev Emitted when `account` is granted `role`.
*
* `sender` is the account that originated the contract call, an admin role
* bearer except when using {_setupRole}.
*/
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Emitted when `account` is revoked `role`.
*
* `sender` is the account that originated the contract call:
* - if using `revokeRole`, it is the admin role bearer
* - if using `renounceRole`, it is the role bearer (i.e. `account`)
*/
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Modifier that checks that an account has a specific role. Reverts
* with a standardized message including the required role.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/
*
* _Available since v4.1._
*/
modifier onlyRole(bytes32 role) {
_checkRole(role, _msgSender());
_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControl).interfaceId
|| super.supportsInterface(interfaceId);
}
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) public view override returns (bool) {
return _roles[role].members[account];
}
/**
* @dev Revert with a standard message if `account` is missing `role`.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/
*/
function _checkRole(bytes32 role, address account) internal view {
if(!hasRole(role, account)) {
revert(string(abi.encodePacked(
"AccessControl: account ",
Strings.toHexString(uint160(account), 20),
" is missing role ",
Strings.toHexString(uint256(role), 32)
)));
}
}
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
return _roles[role].adminRole;
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
_grantRole(role, account);
}
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
_revokeRole(role, account);
}
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been granted `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*/
function renounceRole(bytes32 role, address account) public virtual override {
require(account == _msgSender(), "AccessControl: can only renounce roles for self");
_revokeRole(role, account);
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event. Note that unlike {grantRole}, this function doesn't perform any
* checks on the calling account.
*
* [WARNING]
* ====
* This function should only be called from the constructor when setting
* up the initial roles for the system.
*
* Using this function in any other way is effectively circumventing the admin
* system imposed by {AccessControl}.
* ====
*/
function _setupRole(bytes32 role, address account) internal virtual {
_grantRole(role, account);
}
/**
* @dev Sets `adminRole` as ``role``'s admin role.
*
* Emits a {RoleAdminChanged} event.
*/
function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
emit RoleAdminChanged(role, getRoleAdmin(role), adminRole);
_roles[role].adminRole = adminRole;
}
function _grantRole(bytes32 role, address account) private {
if (!hasRole(role, account)) {
_roles[role].members[account] = true;
emit RoleGranted(role, account, _msgSender());
}
}
function _revokeRole(bytes32 role, address account) private {
if (hasRole(role, account)) {
_roles[role].members[account] = false;
emit RoleRevoked(role, account, _msgSender());
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.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}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin guidelines: functions revert instead
* of returning `false` on failure. This behavior is nonetheless conventional
* and does not conflict with the expectations of ERC20 applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The defaut value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor (string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5,05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
_approve(sender, _msgSender(), currentAllowance - amount);
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
return true;
}
/**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(address sender, address recipient, uint256 amount) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
_balances[sender] = senderBalance - amount;
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `to` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
_balances[account] = accountBalance - amount;
_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 Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be to transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../ERC20.sol";
import "../../../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 `amount` tokens from the caller.
*
* See {ERC20-_burn}.
*/
function burn(uint256 amount) public virtual {
_burn(_msgSender(), amount);
}
/**
* @dev Destroys `amount` 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
* `amount`.
*/
function burnFrom(address account, uint256 amount) public virtual {
uint256 currentAllowance = allowance(account, _msgSender());
require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
_approve(account, _msgSender(), currentAllowance - amount);
_burn(account, amount);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../ERC20.sol";
/**
* @dev Extension of {ERC20} that adds a cap to the supply of tokens.
*/
abstract contract ERC20Capped is ERC20 {
uint256 immutable private _cap;
/**
* @dev Sets the value of the `cap`. This value is immutable, it can only be
* set once during construction.
*/
constructor (uint256 cap_) {
require(cap_ > 0, "ERC20Capped: cap is 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-_mint}.
*/
function _mint(address account, uint256 amount) internal virtual override {
require(ERC20.totalSupply() + amount <= cap(), "ERC20Capped: cap exceeded");
super._mint(account, amount);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../ERC20.sol";
import "../../../utils/Arrays.sol";
import "../../../utils/Counters.sol";
/**
* @dev This contract extends an ERC20 token with a snapshot mechanism. When a snapshot is created, the balances and
* total supply at the time are recorded for later access.
*
* This can be used to safely create mechanisms based on token balances such as trustless dividends or weighted voting.
* In naive implementations it's possible to perform a "double spend" attack by reusing the same balance from different
* accounts. By using snapshots to calculate dividends or voting power, those attacks no longer apply. It can also be
* used to create an efficient ERC20 forking mechanism.
*
* Snapshots are created by the internal {_snapshot} function, which will emit the {Snapshot} event and return a
* snapshot id. To get the total supply at the time of a snapshot, call the function {totalSupplyAt} with the snapshot
* id. To get the balance of an account at the time of a snapshot, call the {balanceOfAt} function with the snapshot id
* and the account address.
*
* ==== Gas Costs
*
* Snapshots are efficient. Snapshot creation is _O(1)_. Retrieval of balances or total supply from a snapshot is _O(log
* n)_ in the number of snapshots that have been created, although _n_ for a specific account will generally be much
* smaller since identical balances in subsequent snapshots are stored as a single entry.
*
* There is a constant overhead for normal ERC20 transfers due to the additional snapshot bookkeeping. This overhead is
* only significant for the first transfer that immediately follows a snapshot for a particular account. Subsequent
* transfers will have normal cost until the next snapshot, and so on.
*/
abstract contract ERC20Snapshot is ERC20 {
// Inspired by Jordi Baylina's MiniMeToken to record historical balances:
// https://github.com/Giveth/minimd/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.sol
using Arrays for uint256[];
using Counters for Counters.Counter;
// Snapshotted values have arrays of ids and the value corresponding to that id. These could be an array of a
// Snapshot struct, but that would impede usage of functions that work on an array.
struct Snapshots {
uint256[] ids;
uint256[] values;
}
mapping (address => Snapshots) private _accountBalanceSnapshots;
Snapshots private _totalSupplySnapshots;
// Snapshot ids increase monotonically, with the first value being 1. An id of 0 is invalid.
Counters.Counter private _currentSnapshotId;
/**
* @dev Emitted by {_snapshot} when a snapshot identified by `id` is created.
*/
event Snapshot(uint256 id);
/**
* @dev Creates a new snapshot and returns its snapshot id.
*
* Emits a {Snapshot} event that contains the same id.
*
* {_snapshot} is `internal` and you have to decide how to expose it externally. Its usage may be restricted to a
* set of accounts, for example using {AccessControl}, or it may be open to the public.
*
* [WARNING]
* ====
* While an open way of calling {_snapshot} is required for certain trust minimization mechanisms such as forking,
* you must consider that it can potentially be used by attackers in two ways.
*
* First, it can be used to increase the cost of retrieval of values from snapshots, although it will grow
* logarithmically thus rendering this attack ineffective in the long term. Second, it can be used to target
* specific accounts and increase the cost of ERC20 transfers for them, in the ways specified in the Gas Costs
* section above.
*
* We haven't measured the actual numbers; if this is something you're interested in please reach out to us.
* ====
*/
function _snapshot() internal virtual returns (uint256) {
_currentSnapshotId.increment();
uint256 currentId = _currentSnapshotId.current();
emit Snapshot(currentId);
return currentId;
}
/**
* @dev Retrieves the balance of `account` at the time `snapshotId` was created.
*/
function balanceOfAt(address account, uint256 snapshotId) public view virtual returns (uint256) {
(bool snapshotted, uint256 value) = _valueAt(snapshotId, _accountBalanceSnapshots[account]);
return snapshotted ? value : balanceOf(account);
}
/**
* @dev Retrieves the total supply at the time `snapshotId` was created.
*/
function totalSupplyAt(uint256 snapshotId) public view virtual returns(uint256) {
(bool snapshotted, uint256 value) = _valueAt(snapshotId, _totalSupplySnapshots);
return snapshotted ? value : totalSupply();
}
// Update balance and/or total supply snapshots before the values are modified. This is implemented
// in the _beforeTokenTransfer hook, which is executed for _mint, _burn, and _transfer operations.
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {
super._beforeTokenTransfer(from, to, amount);
if (from == address(0)) {
// mint
_updateAccountSnapshot(to);
_updateTotalSupplySnapshot();
} else if (to == address(0)) {
// burn
_updateAccountSnapshot(from);
_updateTotalSupplySnapshot();
} else {
// transfer
_updateAccountSnapshot(from);
_updateAccountSnapshot(to);
}
}
function _valueAt(uint256 snapshotId, Snapshots storage snapshots)
private view returns (bool, uint256)
{
require(snapshotId > 0, "ERC20Snapshot: id is 0");
// solhint-disable-next-line max-line-length
require(snapshotId <= _currentSnapshotId.current(), "ERC20Snapshot: nonexistent id");
// When a valid snapshot is queried, there are three possibilities:
// a) The queried value was not modified after the snapshot was taken. Therefore, a snapshot entry was never
// created for this id, and all stored snapshot ids are smaller than the requested one. The value that corresponds
// to this id is the current one.
// b) The queried value was modified after the snapshot was taken. Therefore, there will be an entry with the
// requested id, and its value is the one to return.
// c) More snapshots were created after the requested one, and the queried value was later modified. There will be
// no entry for the requested id: the value that corresponds to it is that of the smallest snapshot id that is
// larger than the requested one.
//
// In summary, we need to find an element in an array, returning the index of the smallest value that is larger if
// it is not found, unless said value doesn't exist (e.g. when all values are smaller). Arrays.findUpperBound does
// exactly this.
uint256 index = snapshots.ids.findUpperBound(snapshotId);
if (index == snapshots.ids.length) {
return (false, 0);
} else {
return (true, snapshots.values[index]);
}
}
function _updateAccountSnapshot(address account) private {
_updateSnapshot(_accountBalanceSnapshots[account], balanceOf(account));
}
function _updateTotalSupplySnapshot() private {
_updateSnapshot(_totalSupplySnapshots, totalSupply());
}
function _updateSnapshot(Snapshots storage snapshots, uint256 currentValue) private {
uint256 currentId = _currentSnapshotId.current();
if (_lastSnapshotId(snapshots.ids) < currentId) {
snapshots.ids.push(currentId);
snapshots.values.push(currentValue);
}
}
function _lastSnapshotId(uint256[] storage ids) private view returns (uint256) {
if (ids.length == 0) {
return 0;
} else {
return ids[ids.length - 1];
}
}
}// SPDX-License-Identifier: MIT
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
pragma solidity ^0.8.0;
import "./math/Math.sol";
/**
* @dev Collection of functions related to array types.
*/
library Arrays {
/**
* @dev Searches a sorted `array` and returns the first index that contains
* a value greater or equal to `element`. If no such index exists (i.e. all
* values in the array are strictly less than `element`), the array length is
* returned. Time complexity O(log n).
*
* `array` is expected to be sorted in ascending order, and to contain no
* repeated elements.
*/
function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) {
if (array.length == 0) {
return 0;
}
uint256 low = 0;
uint256 high = array.length;
while (low < high) {
uint256 mid = Math.average(low, high);
// Note that mid will always be strictly less than high (i.e. it will be a valid array index)
// because Math.average rounds down (it does integer division with truncation).
if (array[mid] > element) {
high = mid;
} else {
low = mid + 1;
}
}
// At this point `low` is the exclusive upper bound. We will return the inclusive upper bound.
if (low > 0 && array[low - 1] == element) {
return low - 1;
} else {
return low;
}
}
}// SPDX-License-Identifier: MIT
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) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
*/
library Counters {
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
unchecked {
counter._value += 1;
}
}
function decrement(Counter storage counter) internal {
uint256 value = counter._value;
require(value > 0, "Counter: decrement overflow");
unchecked {
counter._value = value - 1;
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant alphabet = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = alphabet[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow, so we distribute
return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}{
"remappings": [],
"optimizer": {
"enabled": false,
"runs": 200
},
"evmVersion": "istanbul",
"libraries": {},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"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":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Snapshot","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SNAPSHOT_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"name":"balanceOfAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","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":[{"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":"uint256","name":"timestampInSeconds","type":"uint256"}],"name":"getMaxTotalSupplyForTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"snapshot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"uint256","name":"snapshotId","type":"uint256"}],"name":"totalSupplyAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a06040523480156200001157600080fd5b5062000022620001f460201b60201c565b600a62000030919062000a5b565b63171126c062000041919062000b98565b6040518060400160405280600881526020017f656c696d752e61690000000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f454c494d550000000000000000000000000000000000000000000000000000008152508160039080519060200190620000c5929190620007ec565b508060049080519060200190620000de929190620007ec565b5050506000811162000127576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200011e9062000931565b60405180910390fd5b806080818152505050620001456000801b33620001fd60201b60201c565b620001777f5fdbd35e8da83ee755d5e62a539e5ed7f47126abede0b8b10f9ea43dc6eed07f33620001fd60201b60201c565b620001a97f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633620001fd60201b60201c565b620001ee33620001be620001f460201b60201c565b600a620001cc919062000a5b565b63024e83e0620001dd919062000b98565b6200021360201b62000fef1760201c565b62000cec565b60006012905090565b6200020f82826200037860201b60201c565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000286576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200027d9062000953565b60405180910390fd5b6200029a600083836200046a60201b60201c565b8060026000828254620002ae9190620009a3565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254620003059190620009a3565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516200036c919062000975565b60405180910390a35050565b6200038a82826200048760201b60201c565b620004665760016009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200040b620004f260201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b62000482838383620004fa60201b620011431760201c565b505050565b60006009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b62000512838383620005f560201b620011fd1760201c565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156200056f576200055982620005fa60201b60201c565b620005696200065d60201b60201c565b620005f0565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415620005cc57620005b683620005fa60201b60201c565b620005c66200065d60201b60201c565b620005ef565b620005dd83620005fa60201b60201c565b620005ee82620005fa60201b60201c565b5b5b505050565b505050565b6200065a600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206200064e836200068160201b60201c565b620006c960201b60201c565b50565b6200067f6006620006736200075c60201b60201c565b620006c960201b60201c565b565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000620006e260086200076660201b620012021760201c565b905080620006f9846000016200077460201b60201c565b1015620007575782600001819080600181540180825580915050600190039060005260206000200160009091909190915055826001018290806001815401808255809150506001900390600052602060002001600090919091909150555b505050565b6000600254905090565b600081600001549050919050565b600080828054905014156200078d5760009050620007e7565b8160018380549050620007a1919062000bf9565b81548110620007d9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490505b919050565b828054620007fa9062000c4b565b90600052602060002090601f0160209004810192826200081e57600085556200086a565b82601f106200083957805160ff19168380011785556200086a565b828001600101855582156200086a579182015b82811115620008695782518255916020019190600101906200084c565b5b5090506200087991906200087d565b5090565b5b80821115620008985760008160009055506001016200087e565b5090565b6000620008ab60158362000992565b91507f45524332304361707065643a20636170206973203000000000000000000000006000830152602082019050919050565b6000620008ed601f8362000992565b91507f45524332303a206d696e7420746f20746865207a65726f2061646472657373006000830152602082019050919050565b6200092b8162000c34565b82525050565b600060208201905081810360008301526200094c816200089c565b9050919050565b600060208201905081810360008301526200096e81620008de565b9050919050565b60006020820190506200098c600083018462000920565b92915050565b600082825260208201905092915050565b6000620009b08262000c34565b9150620009bd8362000c34565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115620009f557620009f462000c81565b5b828201905092915050565b6000808291508390505b600185111562000a525780860481111562000a2a5762000a2962000c81565b5b600185161562000a3a5780820291505b808102905062000a4a8562000cdf565b945062000a0a565b94509492505050565b600062000a688262000c34565b915062000a758362000c3e565b925062000aa47fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848462000aac565b905092915050565b60008262000abe576001905062000b91565b8162000ace576000905062000b91565b816001811462000ae7576002811462000af25762000b28565b600191505062000b91565b60ff84111562000b075762000b0662000c81565b5b8360020a91508482111562000b215762000b2062000c81565b5b5062000b91565b5060208310610133831016604e8410600b841016171562000b625782820a90508381111562000b5c5762000b5b62000c81565b5b62000b91565b62000b71848484600162000a00565b9250905081840481111562000b8b5762000b8a62000c81565b5b81810290505b9392505050565b600062000ba58262000c34565b915062000bb28362000c34565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161562000bee5762000bed62000c81565b5b828202905092915050565b600062000c068262000c34565b915062000c138362000c34565b92508282101562000c295762000c2862000c81565b5b828203905092915050565b6000819050919050565b600060ff82169050919050565b6000600282049050600182168062000c6457607f821691505b6020821081141562000c7b5762000c7a62000cb0565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60008160011c9050919050565b60805161331262000d08600039600061086601526133126000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c80637028e2cd116100f9578063a1f70acc11610097578063a9059cbb11610071578063a9059cbb14610541578063d539139314610571578063d547741f1461058f578063dd62ed3e146105ab576101c4565b8063a1f70acc146104c3578063a217fddf146104f3578063a457c2d714610511576101c4565b806391d14854116100d357806391d148541461043b57806395d89b411461046b5780639711715a14610489578063981b24d014610493576101c4565b80637028e2cd146103d157806370a08231146103ef57806379cc67901461041f576101c4565b8063313ce567116101665780633950935111610140578063395093511461033957806340c10f191461036957806342966c68146103855780634ee2cd7e146103a1576101c4565b8063313ce567146102e1578063355274ea146102ff57806336568abe1461031d576101c4565b806318160ddd116101a257806318160ddd1461024757806323b872dd14610265578063248a9ca3146102955780632f2ff15d146102c5576101c4565b806301ffc9a7146101c957806306fdde03146101f9578063095ea7b314610217575b600080fd5b6101e360048036038101906101de91906124f3565b6105db565b6040516101f09190612cad565b60405180910390f35b610201610655565b60405161020e9190612ce3565b60405180910390f35b610231600480360381019061022c9190612452565b6106e7565b60405161023e9190612cad565b60405180910390f35b61024f610705565b60405161025c9190612f25565b60405180910390f35b61027f600480360381019061027a9190612403565b61070f565b60405161028c9190612cad565b60405180910390f35b6102af60048036038101906102aa919061248e565b610810565b6040516102bc9190612cc8565b60405180910390f35b6102df60048036038101906102da91906124b7565b610830565b005b6102e9610859565b6040516102f69190612f40565b60405180910390f35b610307610862565b6040516103149190612f25565b60405180910390f35b610337600480360381019061033291906124b7565b61088a565b005b610353600480360381019061034e9190612452565b61090d565b6040516103609190612cad565b60405180910390f35b610383600480360381019061037e9190612452565b6109b9565b005b61039f600480360381019061039a919061251c565b610a55565b005b6103bb60048036038101906103b69190612452565b610a69565b6040516103c89190612f25565b60405180910390f35b6103d9610ad9565b6040516103e69190612cc8565b60405180910390f35b6104096004803603810190610404919061239e565b610afd565b6040516104169190612f25565b60405180910390f35b61043960048036038101906104349190612452565b610b45565b005b610455600480360381019061045091906124b7565b610bc9565b6040516104629190612cad565b60405180910390f35b610473610c34565b6040516104809190612ce3565b60405180910390f35b610491610cc6565b005b6104ad60048036038101906104a8919061251c565b610d04565b6040516104ba9190612f25565b60405180910390f35b6104dd60048036038101906104d8919061251c565b610d35565b6040516104ea9190612f25565b60405180910390f35b6104fb610e02565b6040516105089190612cc8565b60405180910390f35b61052b60048036038101906105269190612452565b610e09565b6040516105389190612cad565b60405180910390f35b61055b60048036038101906105569190612452565b610efd565b6040516105689190612cad565b60405180910390f35b610579610f1b565b6040516105869190612cc8565b60405180910390f35b6105a960048036038101906105a491906124b7565b610f3f565b005b6105c560048036038101906105c091906123c7565b610f68565b6040516105d29190612f25565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061064e575061064d82611210565b5b9050919050565b6060600380546106649061317f565b80601f01602080910402602001604051908101604052809291908181526020018280546106909061317f565b80156106dd5780601f106106b2576101008083540402835291602001916106dd565b820191906000526020600020905b8154815290600101906020018083116106c057829003601f168201915b5050505050905090565b60006106fb6106f461127a565b8484611282565b6001905092915050565b6000600254905090565b600061071c84848461144d565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061076761127a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050828110156107e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107de90612dc5565b60405180910390fd5b610804856107f361127a565b85846107ff9190613063565b611282565b60019150509392505050565b600060096000838152602001908152602001600020600101549050919050565b61083982610810565b61084a8161084561127a565b6116cc565b6108548383611769565b505050565b60006012905090565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b61089261127a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146108ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f690612ee5565b60405180910390fd5b610909828261184a565b5050565b60006109af61091a61127a565b84846001600061092861127a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546109aa9190612f82565b611282565b6001905092915050565b6109e37f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610bc9565b6109ec57600080fd5b6109f542610d35565b610a06610a00610705565b8361192c565b1115610a47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3e90612e85565b60405180910390fd5b610a518282611942565b5050565b610a66610a6061127a565b82611950565b50565b6000806000610ab684600560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611b24565b9150915081610acd57610ac885610afd565b610acf565b805b9250505092915050565b7f5fdbd35e8da83ee755d5e62a539e5ed7f47126abede0b8b10f9ea43dc6eed07f81565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000610b5883610b5361127a565b610f68565b905081811015610b9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9490612de5565b60405180910390fd5b610bba83610ba961127a565b8484610bb59190613063565b611282565b610bc48383611950565b505050565b60006009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060048054610c439061317f565b80601f0160208091040260200160405190810160405280929190818152602001828054610c6f9061317f565b8015610cbc5780601f10610c9157610100808354040283529160200191610cbc565b820191906000526020600020905b815481529060010190602001808311610c9f57829003601f168201915b5050505050905090565b610cf07f5fdbd35e8da83ee755d5e62a539e5ed7f47126abede0b8b10f9ea43dc6eed07f33610bc9565b610cf957600080fd5b610d01611c42565b50565b6000806000610d14846006611b24565b9150915081610d2a57610d25610705565b610d2c565b805b92505050919050565b6000806360dd05809050808311610d5657610d4e610705565b915050610dfd565b6000610d74610d6d610d66610862565b600a611c9a565b6064611cb0565b90506000610d94610d8d610d86610862565b605a611c9a565b6064611cb0565b90506000610da28685611cc6565b90506000610db56301e133806009611c9a565b905080821015610ded576000610dd4610dce8585611c9a565b83611cb0565b9050610de0858261192c565b9650505050505050610dfd565b610df5610862565b955050505050505b919050565b6000801b81565b60008060016000610e1861127a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610ed5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ecc90612ec5565b60405180910390fd5b610ef2610ee061127a565b858584610eed9190613063565b611282565b600191505092915050565b6000610f11610f0a61127a565b848461144d565b6001905092915050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b610f4882610810565b610f5981610f5461127a565b6116cc565b610f63838361184a565b505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561105f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105690612f05565b60405180910390fd5b61106b60008383611cdc565b806002600082825461107d9190612f82565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546110d29190612f82565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516111379190612f25565b60405180910390a35050565b61114e8383836111fd565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156111995761118c82611cec565b611194611d3f565b6111f8565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111e4576111d783611cec565b6111df611d3f565b6111f7565b6111ed83611cec565b6111f682611cec565b5b5b505050565b505050565b600081600001549050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156112f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e990612e65565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611362576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135990612d85565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516114409190612f25565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156114bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b490612e25565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561152d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152490612d45565b60405180910390fd5b611538838383611cdc565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156115be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b590612da5565b60405180910390fd5b81816115ca9190613063565b6000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461165a9190612f82565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516116be9190612f25565b60405180910390a350505050565b6116d68282610bc9565b611765576116fb8173ffffffffffffffffffffffffffffffffffffffff166014611d53565b6117098360001c6020611d53565b60405160200161171a929190612c73565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175c9190612ce3565b60405180910390fd5b5050565b6117738282610bc9565b6118465760016009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506117eb61127a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6118548282610bc9565b156119285760006009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506118cd61127a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000818361193a9190612f82565b905092915050565b61194c828261204d565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b790612e05565b60405180910390fd5b6119cc82600083611cdc565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611a52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4990612d65565b60405180910390fd5b8181611a5e9190613063565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160026000828254611ab29190613063565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611b179190612f25565b60405180910390a3505050565b60008060008411611b6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6190612ea5565b60405180910390fd5b611b746008611202565b841115611bb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bad90612d05565b60405180910390fd5b6000611bce85856000016120b790919063ffffffff16565b90508360000180549050811415611bec576000809250925050611c3b565b6001846001018281548110611c2a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015492509250505b9250929050565b6000611c4e60086121dd565b6000611c5a6008611202565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb6781604051611c8b9190612f25565b60405180910390a18091505090565b60008183611ca89190613009565b905092915050565b60008183611cbe9190612fd8565b905092915050565b60008183611cd49190613063565b905092915050565b611ce7838383611143565b505050565b611d3c600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611d3783610afd565b6121f3565b50565b611d516006611d4c610705565b6121f3565b565b606060006002836002611d669190613009565b611d709190612f82565b67ffffffffffffffff811115611daf577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611de15781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611e3f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611ec9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002611f099190613009565b611f139190612f82565b90505b6001811115611fff577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611f7b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110611fb8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611ff890613155565b9050611f16565b5060008414612043576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203a90612d25565b60405180910390fd5b8091505092915050565b612055610862565b8161205e610705565b6120689190612f82565b11156120a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a090612e45565b60405180910390fd5b6120b38282610fef565b5050565b600080838054905014156120ce57600090506121d7565b600080848054905090505b808210156121585760006120ed8383612270565b905084868281548110612129577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154111561214257809150612152565b60018161214f9190612f82565b92505b506120d9565b6000821180156121b6575083856001846121729190613063565b815481106121a9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154145b156121d1576001826121c89190613063565b925050506121d7565b81925050505b92915050565b6001816000016000828254019250508190555050565b60006121ff6008611202565b90508061220e846000016122d7565b101561226b5782600001819080600181540180825580915050600190039060005260206000200160009091909190915055826001018290806001815401808255809150506001900390600052602060002001600090919091909150555b505050565b60006002808361228091906131b1565b60028561228d91906131b1565b6122979190612f82565b6122a19190612fd8565b6002836122ae9190612fd8565b6002856122bb9190612fd8565b6122c59190612f82565b6122cf9190612f82565b905092915050565b600080828054905014156122ee5760009050612345565b81600183805490506123009190613063565b81548110612337577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490505b919050565b60008135905061235981613280565b92915050565b60008135905061236e81613297565b92915050565b600081359050612383816132ae565b92915050565b600081359050612398816132c5565b92915050565b6000602082840312156123b057600080fd5b60006123be8482850161234a565b91505092915050565b600080604083850312156123da57600080fd5b60006123e88582860161234a565b92505060206123f98582860161234a565b9150509250929050565b60008060006060848603121561241857600080fd5b60006124268682870161234a565b93505060206124378682870161234a565b925050604061244886828701612389565b9150509250925092565b6000806040838503121561246557600080fd5b60006124738582860161234a565b925050602061248485828601612389565b9150509250929050565b6000602082840312156124a057600080fd5b60006124ae8482850161235f565b91505092915050565b600080604083850312156124ca57600080fd5b60006124d88582860161235f565b92505060206124e98582860161234a565b9150509250929050565b60006020828403121561250557600080fd5b600061251384828501612374565b91505092915050565b60006020828403121561252e57600080fd5b600061253c84828501612389565b91505092915050565b61254e816130a9565b82525050565b61255d816130b5565b82525050565b600061256e82612f5b565b6125788185612f66565b9350612588818560208601613122565b6125918161326f565b840191505092915050565b60006125a782612f5b565b6125b18185612f77565b93506125c1818560208601613122565b80840191505092915050565b60006125da601d83612f66565b91507f4552433230536e617073686f743a206e6f6e6578697374656e742069640000006000830152602082019050919050565b600061261a602083612f66565b91507f537472696e67733a20686578206c656e67746820696e73756666696369656e746000830152602082019050919050565b600061265a602383612f66565b91507f45524332303a207472616e7366657220746f20746865207a65726f206164647260008301527f65737300000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006126c0602283612f66565b91507f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008301527f63650000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612726602283612f66565b91507f45524332303a20617070726f766520746f20746865207a65726f20616464726560008301527f73730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061278c602683612f66565b91507f45524332303a207472616e7366657220616d6f756e742065786365656473206260008301527f616c616e636500000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006127f2602883612f66565b91507f45524332303a207472616e7366657220616d6f756e742065786365656473206160008301527f6c6c6f77616e63650000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612858602483612f66565b91507f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760008301527f616e6365000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006128be602183612f66565b91507f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008301527f73000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612924602583612f66565b91507f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061298a601983612f66565b91507f45524332304361707065643a20636170206578636565646564000000000000006000830152602082019050919050565b60006129ca602483612f66565b91507f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612a30603b83612f66565b91507f456c696d75546f6b656e3a206d617820746f74616c20737570706c792065786360008301527f656564656420666f722063757272656e742074696d657374616d7000000000006020830152604082019050919050565b6000612a96601683612f66565b91507f4552433230536e617073686f743a2069642069732030000000000000000000006000830152602082019050919050565b6000612ad6601783612f77565b91507f416363657373436f6e74726f6c3a206163636f756e74200000000000000000006000830152601782019050919050565b6000612b16602583612f66565b91507f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008301527f207a65726f0000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612b7c601183612f77565b91507f206973206d697373696e6720726f6c65200000000000000000000000000000006000830152601182019050919050565b6000612bbc602f83612f66565b91507f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008301527f20726f6c657320666f722073656c6600000000000000000000000000000000006020830152604082019050919050565b6000612c22601f83612f66565b91507f45524332303a206d696e7420746f20746865207a65726f2061646472657373006000830152602082019050919050565b612c5e8161310b565b82525050565b612c6d81613115565b82525050565b6000612c7e82612ac9565b9150612c8a828561259c565b9150612c9582612b6f565b9150612ca1828461259c565b91508190509392505050565b6000602082019050612cc26000830184612545565b92915050565b6000602082019050612cdd6000830184612554565b92915050565b60006020820190508181036000830152612cfd8184612563565b905092915050565b60006020820190508181036000830152612d1e816125cd565b9050919050565b60006020820190508181036000830152612d3e8161260d565b9050919050565b60006020820190508181036000830152612d5e8161264d565b9050919050565b60006020820190508181036000830152612d7e816126b3565b9050919050565b60006020820190508181036000830152612d9e81612719565b9050919050565b60006020820190508181036000830152612dbe8161277f565b9050919050565b60006020820190508181036000830152612dde816127e5565b9050919050565b60006020820190508181036000830152612dfe8161284b565b9050919050565b60006020820190508181036000830152612e1e816128b1565b9050919050565b60006020820190508181036000830152612e3e81612917565b9050919050565b60006020820190508181036000830152612e5e8161297d565b9050919050565b60006020820190508181036000830152612e7e816129bd565b9050919050565b60006020820190508181036000830152612e9e81612a23565b9050919050565b60006020820190508181036000830152612ebe81612a89565b9050919050565b60006020820190508181036000830152612ede81612b09565b9050919050565b60006020820190508181036000830152612efe81612baf565b9050919050565b60006020820190508181036000830152612f1e81612c15565b9050919050565b6000602082019050612f3a6000830184612c55565b92915050565b6000602082019050612f556000830184612c64565b92915050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b6000612f8d8261310b565b9150612f988361310b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612fcd57612fcc6131e2565b5b828201905092915050565b6000612fe38261310b565b9150612fee8361310b565b925082612ffe57612ffd613211565b5b828204905092915050565b60006130148261310b565b915061301f8361310b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613058576130576131e2565b5b828202905092915050565b600061306e8261310b565b91506130798361310b565b92508282101561308c5761308b6131e2565b5b828203905092915050565b60006130a2826130eb565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015613140578082015181840152602081019050613125565b8381111561314f576000848401525b50505050565b60006131608261310b565b91506000821415613174576131736131e2565b5b600182039050919050565b6000600282049050600182168061319757607f821691505b602082108114156131ab576131aa613240565b5b50919050565b60006131bc8261310b565b91506131c78361310b565b9250826131d7576131d6613211565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b61328981613097565b811461329457600080fd5b50565b6132a0816130b5565b81146132ab57600080fd5b50565b6132b7816130bf565b81146132c257600080fd5b50565b6132ce8161310b565b81146132d957600080fd5b5056fea2646970667358221220b67bc3f036be9ad875b3468deff4e4427f233e727d9b62a2217a21a88f8f506164736f6c63430008000033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101c45760003560e01c80637028e2cd116100f9578063a1f70acc11610097578063a9059cbb11610071578063a9059cbb14610541578063d539139314610571578063d547741f1461058f578063dd62ed3e146105ab576101c4565b8063a1f70acc146104c3578063a217fddf146104f3578063a457c2d714610511576101c4565b806391d14854116100d357806391d148541461043b57806395d89b411461046b5780639711715a14610489578063981b24d014610493576101c4565b80637028e2cd146103d157806370a08231146103ef57806379cc67901461041f576101c4565b8063313ce567116101665780633950935111610140578063395093511461033957806340c10f191461036957806342966c68146103855780634ee2cd7e146103a1576101c4565b8063313ce567146102e1578063355274ea146102ff57806336568abe1461031d576101c4565b806318160ddd116101a257806318160ddd1461024757806323b872dd14610265578063248a9ca3146102955780632f2ff15d146102c5576101c4565b806301ffc9a7146101c957806306fdde03146101f9578063095ea7b314610217575b600080fd5b6101e360048036038101906101de91906124f3565b6105db565b6040516101f09190612cad565b60405180910390f35b610201610655565b60405161020e9190612ce3565b60405180910390f35b610231600480360381019061022c9190612452565b6106e7565b60405161023e9190612cad565b60405180910390f35b61024f610705565b60405161025c9190612f25565b60405180910390f35b61027f600480360381019061027a9190612403565b61070f565b60405161028c9190612cad565b60405180910390f35b6102af60048036038101906102aa919061248e565b610810565b6040516102bc9190612cc8565b60405180910390f35b6102df60048036038101906102da91906124b7565b610830565b005b6102e9610859565b6040516102f69190612f40565b60405180910390f35b610307610862565b6040516103149190612f25565b60405180910390f35b610337600480360381019061033291906124b7565b61088a565b005b610353600480360381019061034e9190612452565b61090d565b6040516103609190612cad565b60405180910390f35b610383600480360381019061037e9190612452565b6109b9565b005b61039f600480360381019061039a919061251c565b610a55565b005b6103bb60048036038101906103b69190612452565b610a69565b6040516103c89190612f25565b60405180910390f35b6103d9610ad9565b6040516103e69190612cc8565b60405180910390f35b6104096004803603810190610404919061239e565b610afd565b6040516104169190612f25565b60405180910390f35b61043960048036038101906104349190612452565b610b45565b005b610455600480360381019061045091906124b7565b610bc9565b6040516104629190612cad565b60405180910390f35b610473610c34565b6040516104809190612ce3565b60405180910390f35b610491610cc6565b005b6104ad60048036038101906104a8919061251c565b610d04565b6040516104ba9190612f25565b60405180910390f35b6104dd60048036038101906104d8919061251c565b610d35565b6040516104ea9190612f25565b60405180910390f35b6104fb610e02565b6040516105089190612cc8565b60405180910390f35b61052b60048036038101906105269190612452565b610e09565b6040516105389190612cad565b60405180910390f35b61055b60048036038101906105569190612452565b610efd565b6040516105689190612cad565b60405180910390f35b610579610f1b565b6040516105869190612cc8565b60405180910390f35b6105a960048036038101906105a491906124b7565b610f3f565b005b6105c560048036038101906105c091906123c7565b610f68565b6040516105d29190612f25565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061064e575061064d82611210565b5b9050919050565b6060600380546106649061317f565b80601f01602080910402602001604051908101604052809291908181526020018280546106909061317f565b80156106dd5780601f106106b2576101008083540402835291602001916106dd565b820191906000526020600020905b8154815290600101906020018083116106c057829003601f168201915b5050505050905090565b60006106fb6106f461127a565b8484611282565b6001905092915050565b6000600254905090565b600061071c84848461144d565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061076761127a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050828110156107e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107de90612dc5565b60405180910390fd5b610804856107f361127a565b85846107ff9190613063565b611282565b60019150509392505050565b600060096000838152602001908152602001600020600101549050919050565b61083982610810565b61084a8161084561127a565b6116cc565b6108548383611769565b505050565b60006012905090565b60007f000000000000000000000000000000000000000001401e70099fcb3a63000000905090565b61089261127a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146108ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f690612ee5565b60405180910390fd5b610909828261184a565b5050565b60006109af61091a61127a565b84846001600061092861127a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546109aa9190612f82565b611282565b6001905092915050565b6109e37f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610bc9565b6109ec57600080fd5b6109f542610d35565b610a06610a00610705565b8361192c565b1115610a47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3e90612e85565b60405180910390fd5b610a518282611942565b5050565b610a66610a6061127a565b82611950565b50565b6000806000610ab684600560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611b24565b9150915081610acd57610ac885610afd565b610acf565b805b9250505092915050565b7f5fdbd35e8da83ee755d5e62a539e5ed7f47126abede0b8b10f9ea43dc6eed07f81565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000610b5883610b5361127a565b610f68565b905081811015610b9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9490612de5565b60405180910390fd5b610bba83610ba961127a565b8484610bb59190613063565b611282565b610bc48383611950565b505050565b60006009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060048054610c439061317f565b80601f0160208091040260200160405190810160405280929190818152602001828054610c6f9061317f565b8015610cbc5780601f10610c9157610100808354040283529160200191610cbc565b820191906000526020600020905b815481529060010190602001808311610c9f57829003601f168201915b5050505050905090565b610cf07f5fdbd35e8da83ee755d5e62a539e5ed7f47126abede0b8b10f9ea43dc6eed07f33610bc9565b610cf957600080fd5b610d01611c42565b50565b6000806000610d14846006611b24565b9150915081610d2a57610d25610705565b610d2c565b805b92505050919050565b6000806360dd05809050808311610d5657610d4e610705565b915050610dfd565b6000610d74610d6d610d66610862565b600a611c9a565b6064611cb0565b90506000610d94610d8d610d86610862565b605a611c9a565b6064611cb0565b90506000610da28685611cc6565b90506000610db56301e133806009611c9a565b905080821015610ded576000610dd4610dce8585611c9a565b83611cb0565b9050610de0858261192c565b9650505050505050610dfd565b610df5610862565b955050505050505b919050565b6000801b81565b60008060016000610e1861127a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610ed5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ecc90612ec5565b60405180910390fd5b610ef2610ee061127a565b858584610eed9190613063565b611282565b600191505092915050565b6000610f11610f0a61127a565b848461144d565b6001905092915050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b610f4882610810565b610f5981610f5461127a565b6116cc565b610f63838361184a565b505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561105f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105690612f05565b60405180910390fd5b61106b60008383611cdc565b806002600082825461107d9190612f82565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546110d29190612f82565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516111379190612f25565b60405180910390a35050565b61114e8383836111fd565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156111995761118c82611cec565b611194611d3f565b6111f8565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111e4576111d783611cec565b6111df611d3f565b6111f7565b6111ed83611cec565b6111f682611cec565b5b5b505050565b505050565b600081600001549050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156112f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e990612e65565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611362576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135990612d85565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516114409190612f25565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156114bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b490612e25565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561152d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152490612d45565b60405180910390fd5b611538838383611cdc565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156115be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b590612da5565b60405180910390fd5b81816115ca9190613063565b6000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461165a9190612f82565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516116be9190612f25565b60405180910390a350505050565b6116d68282610bc9565b611765576116fb8173ffffffffffffffffffffffffffffffffffffffff166014611d53565b6117098360001c6020611d53565b60405160200161171a929190612c73565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175c9190612ce3565b60405180910390fd5b5050565b6117738282610bc9565b6118465760016009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506117eb61127a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6118548282610bc9565b156119285760006009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506118cd61127a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000818361193a9190612f82565b905092915050565b61194c828261204d565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b790612e05565b60405180910390fd5b6119cc82600083611cdc565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611a52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4990612d65565b60405180910390fd5b8181611a5e9190613063565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160026000828254611ab29190613063565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611b179190612f25565b60405180910390a3505050565b60008060008411611b6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6190612ea5565b60405180910390fd5b611b746008611202565b841115611bb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bad90612d05565b60405180910390fd5b6000611bce85856000016120b790919063ffffffff16565b90508360000180549050811415611bec576000809250925050611c3b565b6001846001018281548110611c2a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015492509250505b9250929050565b6000611c4e60086121dd565b6000611c5a6008611202565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb6781604051611c8b9190612f25565b60405180910390a18091505090565b60008183611ca89190613009565b905092915050565b60008183611cbe9190612fd8565b905092915050565b60008183611cd49190613063565b905092915050565b611ce7838383611143565b505050565b611d3c600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611d3783610afd565b6121f3565b50565b611d516006611d4c610705565b6121f3565b565b606060006002836002611d669190613009565b611d709190612f82565b67ffffffffffffffff811115611daf577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611de15781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611e3f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611ec9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002611f099190613009565b611f139190612f82565b90505b6001811115611fff577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611f7b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110611fb8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611ff890613155565b9050611f16565b5060008414612043576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203a90612d25565b60405180910390fd5b8091505092915050565b612055610862565b8161205e610705565b6120689190612f82565b11156120a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a090612e45565b60405180910390fd5b6120b38282610fef565b5050565b600080838054905014156120ce57600090506121d7565b600080848054905090505b808210156121585760006120ed8383612270565b905084868281548110612129577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154111561214257809150612152565b60018161214f9190612f82565b92505b506120d9565b6000821180156121b6575083856001846121729190613063565b815481106121a9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154145b156121d1576001826121c89190613063565b925050506121d7565b81925050505b92915050565b6001816000016000828254019250508190555050565b60006121ff6008611202565b90508061220e846000016122d7565b101561226b5782600001819080600181540180825580915050600190039060005260206000200160009091909190915055826001018290806001815401808255809150506001900390600052602060002001600090919091909150555b505050565b60006002808361228091906131b1565b60028561228d91906131b1565b6122979190612f82565b6122a19190612fd8565b6002836122ae9190612fd8565b6002856122bb9190612fd8565b6122c59190612f82565b6122cf9190612f82565b905092915050565b600080828054905014156122ee5760009050612345565b81600183805490506123009190613063565b81548110612337577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490505b919050565b60008135905061235981613280565b92915050565b60008135905061236e81613297565b92915050565b600081359050612383816132ae565b92915050565b600081359050612398816132c5565b92915050565b6000602082840312156123b057600080fd5b60006123be8482850161234a565b91505092915050565b600080604083850312156123da57600080fd5b60006123e88582860161234a565b92505060206123f98582860161234a565b9150509250929050565b60008060006060848603121561241857600080fd5b60006124268682870161234a565b93505060206124378682870161234a565b925050604061244886828701612389565b9150509250925092565b6000806040838503121561246557600080fd5b60006124738582860161234a565b925050602061248485828601612389565b9150509250929050565b6000602082840312156124a057600080fd5b60006124ae8482850161235f565b91505092915050565b600080604083850312156124ca57600080fd5b60006124d88582860161235f565b92505060206124e98582860161234a565b9150509250929050565b60006020828403121561250557600080fd5b600061251384828501612374565b91505092915050565b60006020828403121561252e57600080fd5b600061253c84828501612389565b91505092915050565b61254e816130a9565b82525050565b61255d816130b5565b82525050565b600061256e82612f5b565b6125788185612f66565b9350612588818560208601613122565b6125918161326f565b840191505092915050565b60006125a782612f5b565b6125b18185612f77565b93506125c1818560208601613122565b80840191505092915050565b60006125da601d83612f66565b91507f4552433230536e617073686f743a206e6f6e6578697374656e742069640000006000830152602082019050919050565b600061261a602083612f66565b91507f537472696e67733a20686578206c656e67746820696e73756666696369656e746000830152602082019050919050565b600061265a602383612f66565b91507f45524332303a207472616e7366657220746f20746865207a65726f206164647260008301527f65737300000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006126c0602283612f66565b91507f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008301527f63650000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612726602283612f66565b91507f45524332303a20617070726f766520746f20746865207a65726f20616464726560008301527f73730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061278c602683612f66565b91507f45524332303a207472616e7366657220616d6f756e742065786365656473206260008301527f616c616e636500000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006127f2602883612f66565b91507f45524332303a207472616e7366657220616d6f756e742065786365656473206160008301527f6c6c6f77616e63650000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612858602483612f66565b91507f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760008301527f616e6365000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006128be602183612f66565b91507f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008301527f73000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612924602583612f66565b91507f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061298a601983612f66565b91507f45524332304361707065643a20636170206578636565646564000000000000006000830152602082019050919050565b60006129ca602483612f66565b91507f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612a30603b83612f66565b91507f456c696d75546f6b656e3a206d617820746f74616c20737570706c792065786360008301527f656564656420666f722063757272656e742074696d657374616d7000000000006020830152604082019050919050565b6000612a96601683612f66565b91507f4552433230536e617073686f743a2069642069732030000000000000000000006000830152602082019050919050565b6000612ad6601783612f77565b91507f416363657373436f6e74726f6c3a206163636f756e74200000000000000000006000830152601782019050919050565b6000612b16602583612f66565b91507f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008301527f207a65726f0000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612b7c601183612f77565b91507f206973206d697373696e6720726f6c65200000000000000000000000000000006000830152601182019050919050565b6000612bbc602f83612f66565b91507f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008301527f20726f6c657320666f722073656c6600000000000000000000000000000000006020830152604082019050919050565b6000612c22601f83612f66565b91507f45524332303a206d696e7420746f20746865207a65726f2061646472657373006000830152602082019050919050565b612c5e8161310b565b82525050565b612c6d81613115565b82525050565b6000612c7e82612ac9565b9150612c8a828561259c565b9150612c9582612b6f565b9150612ca1828461259c565b91508190509392505050565b6000602082019050612cc26000830184612545565b92915050565b6000602082019050612cdd6000830184612554565b92915050565b60006020820190508181036000830152612cfd8184612563565b905092915050565b60006020820190508181036000830152612d1e816125cd565b9050919050565b60006020820190508181036000830152612d3e8161260d565b9050919050565b60006020820190508181036000830152612d5e8161264d565b9050919050565b60006020820190508181036000830152612d7e816126b3565b9050919050565b60006020820190508181036000830152612d9e81612719565b9050919050565b60006020820190508181036000830152612dbe8161277f565b9050919050565b60006020820190508181036000830152612dde816127e5565b9050919050565b60006020820190508181036000830152612dfe8161284b565b9050919050565b60006020820190508181036000830152612e1e816128b1565b9050919050565b60006020820190508181036000830152612e3e81612917565b9050919050565b60006020820190508181036000830152612e5e8161297d565b9050919050565b60006020820190508181036000830152612e7e816129bd565b9050919050565b60006020820190508181036000830152612e9e81612a23565b9050919050565b60006020820190508181036000830152612ebe81612a89565b9050919050565b60006020820190508181036000830152612ede81612b09565b9050919050565b60006020820190508181036000830152612efe81612baf565b9050919050565b60006020820190508181036000830152612f1e81612c15565b9050919050565b6000602082019050612f3a6000830184612c55565b92915050565b6000602082019050612f556000830184612c64565b92915050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b6000612f8d8261310b565b9150612f988361310b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612fcd57612fcc6131e2565b5b828201905092915050565b6000612fe38261310b565b9150612fee8361310b565b925082612ffe57612ffd613211565b5b828204905092915050565b60006130148261310b565b915061301f8361310b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613058576130576131e2565b5b828202905092915050565b600061306e8261310b565b91506130798361310b565b92508282101561308c5761308b6131e2565b5b828203905092915050565b60006130a2826130eb565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015613140578082015181840152602081019050613125565b8381111561314f576000848401525b50505050565b60006131608261310b565b91506000821415613174576131736131e2565b5b600182039050919050565b6000600282049050600182168061319757607f821691505b602082108114156131ab576131aa613240565b5b50919050565b60006131bc8261310b565b91506131c78361310b565b9250826131d7576131d6613211565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b61328981613097565b811461329457600080fd5b50565b6132a0816130b5565b81146132ab57600080fd5b50565b6132b7816130bf565b81146132c257600080fd5b50565b6132ce8161310b565b81146132d957600080fd5b5056fea2646970667358221220b67bc3f036be9ad875b3468deff4e4427f233e727d9b62a2217a21a88f8f506164736f6c63430008000033
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.
Add Token to MetaMask (Web3)