Overview
Max Total Supply
1,000,000,000 KOMPETE
Holders
7,044 (0.00%)
Market
Price
$0.01 @ 0.000004 ETH (+6.19%)
Onchain Market Cap
$11,159,990.00
Circulating Supply Market Cap
$7,547,054.00
Other Info
Token Contract (WITH 10 Decimals)
Balance
7,066.4304780979 KOMPETEValue
$78.86 ( ~0.0300127096649018 Eth) [0.0007%]Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
KOMPETE
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 500 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /* ██╗░░██╗░█████╗░███╗░░░███╗██████╗░███████╗████████╗███████╗ ██║░██╔╝██╔══██╗████╗░████║██╔══██╗██╔════╝╚══██╔══╝██╔════╝ █████═╝░██║░░██║██╔████╔██║██████╔╝█████╗░░░░░██║░░░█████╗░░ ██╔═██╗░██║░░██║██║╚██╔╝██║██╔═══╝░██╔══╝░░░░░██║░░░██╔══╝░░ ██║░╚██╗╚█████╔╝██║░╚═╝░██║██║░░░░░███████╗░░░██║░░░███████╗ ╚═╝░░╚═╝░╚════╝░╚═╝░░░░░╚═╝╚═╝░░░░░╚══════╝░░░╚═╝░░░╚══════╝ KOMPETE is an all-in-one sports game with an ERC-20 utility token (KOMPETE Token). At launch KOMPETE will have Basketball, Battle Royale, Golf, and Kart Racing. More sports to be released as the game grows into the future. KOMPETE is set to be released on PC, XBOX, Playstation, Android, and iOS. Our goal is simple...Create a mass-market scalable game that utilizes the blockchain to provide fair monetization. https://KOMPETE.game https://t.me/KOMPETEGameEntryPortal https://twitter.com/KOMPETEgame */ // File @openzeppelin/contracts/token/ERC20/[email protected] // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) 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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @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); } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @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); } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File @openzeppelin/contracts/token/ERC20/[email protected] // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @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 Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, _allowances[owner][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = _allowances[owner][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Spend `amount` form the allowance of `owner` toward `spender`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File @openzeppelin/contracts/token/ERC20/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @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 {AccessControl-_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 Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @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) external; /** * @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) external; /** * @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) external; } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "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] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } // File @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) 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); } // File @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @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; } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol) pragma solidity ^0.8.0; /** * @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 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]{40}) is missing role (0x[0-9a-f]{64})$/ * * _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 virtual 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]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { 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 virtual 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 revoked `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}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ 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 { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } // File @openzeppelin/contracts/utils/math/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) 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 generally not needed starting with Solidity 0.8, since 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. 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; } } } // File @uniswap/v2-core/contracts/interfaces/[email protected] pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; } // File @uniswap/v2-periphery/contracts/interfaces/[email protected] pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); } // File @uniswap/v2-periphery/contracts/interfaces/[email protected] pragma solidity >=0.6.2; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; } // File contracts/KOMPETE.sol pragma solidity ^0.8.0; contract KOMPETE is ERC20, AccessControl { using SafeMath for uint256; using SafeERC20 for ERC20; uint8 private constant DECIMALS = 10; uint256 public liquidityFee = 200; // 2% uint256 public marketingFee = 1000; // 10% uint16 public constant MAX_FEE = 2000; // 20% uint256 public constant MAX_TOKEN_PER_WALLET = 10000000 * 10**DECIMALS; // Max holding limit, 1.00% of supply bytes32 public constant EXCLUDED_FROM_FEE_ROLE = keccak256("EXCLUDED_FROM_FEE_ROLE"); bytes32 public constant EXCLUDED_FROM_ANTIWHALE_ROLE = keccak256("EXCLUDED_FROM_ANTIWHALE_ROLE"); bytes32 public constant DENIED_ROLE = keccak256("DENIED_ROLE"); address public marketingAddress = 0xFEF90843630d43869877769DE31fC9Aa8D6252F8; address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD; IUniswapV2Router02 public swapRouter; address public swapPair; address public liquidityOwner; bool public processFeesEnabled = true; bool private _processingFees; uint256 public numTokensToSwap = 4000000 * 10**DECIMALS; mapping(address => bool) private _lpPools; event SwapRouterUpdated(address indexed router, address indexed pair); event AddLiquidity(uint256 amountToken, uint256 amountETH); event SendToMarketing(address indexed recipient, uint256 amountToken); modifier notDenied(address account) { require(!hasRole(DENIED_ROLE, account), "Address denied"); _; } modifier lockTheSwap() { _processingFees = true; _; _processingFees = false; } modifier antiWhale( address sender, address recipient, uint256 amount ) { if (!hasRole(EXCLUDED_FROM_ANTIWHALE_ROLE, recipient)) { require(balanceOf(recipient).add(amount) <= MAX_TOKEN_PER_WALLET, "Wallet exceeds max"); } _; } constructor() ERC20("KOMPETE Token", "KOMPETE") { liquidityOwner = _msgSender(); // Create a uniswap pair for this new token swapRouter = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); swapPair = IUniswapV2Factory(swapRouter.factory()).createPair(address(this), swapRouter.WETH()); _lpPools[address(swapPair)] = true; // configure admin roles _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); // configure excluded from fee role _setupRole(EXCLUDED_FROM_FEE_ROLE, _msgSender()); _setupRole(EXCLUDED_FROM_FEE_ROLE, address(this)); _setupRole(EXCLUDED_FROM_FEE_ROLE, marketingAddress); _setupRole(EXCLUDED_FROM_FEE_ROLE, 0xFd7d7a2175706E5555aAB0aAAF2251C6BC691ffC); _setupRole(EXCLUDED_FROM_FEE_ROLE, 0x30Ea798cB8Aa2392F3016F4962e69365E50CD001); _setupRole(EXCLUDED_FROM_FEE_ROLE, 0x5D2c31eEAc483000Dd6120233AfAAA0535e9C6Ed); _setupRole(EXCLUDED_FROM_FEE_ROLE, 0x5623225F296BE00Ec9dB43f3DeD96804f24b062d); _setupRole(EXCLUDED_FROM_FEE_ROLE, 0x99B3208625e252eA0fBBe9B63e6004B06489D094); _setupRole(EXCLUDED_FROM_FEE_ROLE, 0x596e5556cF23b30e6c2C4c60dE216F66551c0220); _setupRole(EXCLUDED_FROM_FEE_ROLE, 0x9406609b3057053573f8d5418C1cbfaAc5161f21); _setupRole(EXCLUDED_FROM_FEE_ROLE, 0x71FC956eee0C97B095B70f6B1B263147a6d6799A); // configure excluded from antiwhale role _setupRole(EXCLUDED_FROM_ANTIWHALE_ROLE, _msgSender()); _setupRole(EXCLUDED_FROM_ANTIWHALE_ROLE, address(this)); _setupRole(EXCLUDED_FROM_ANTIWHALE_ROLE, swapPair); _setupRole(EXCLUDED_FROM_ANTIWHALE_ROLE, marketingAddress); _setupRole(EXCLUDED_FROM_ANTIWHALE_ROLE, BURN_ADDRESS); _setupRole(EXCLUDED_FROM_ANTIWHALE_ROLE, 0xFd7d7a2175706E5555aAB0aAAF2251C6BC691ffC); _setupRole(EXCLUDED_FROM_ANTIWHALE_ROLE, 0x30Ea798cB8Aa2392F3016F4962e69365E50CD001); _setupRole(EXCLUDED_FROM_ANTIWHALE_ROLE, 0x5D2c31eEAc483000Dd6120233AfAAA0535e9C6Ed); _setupRole(EXCLUDED_FROM_ANTIWHALE_ROLE, 0x5623225F296BE00Ec9dB43f3DeD96804f24b062d); _setupRole(EXCLUDED_FROM_ANTIWHALE_ROLE, 0x99B3208625e252eA0fBBe9B63e6004B06489D094); _setupRole(EXCLUDED_FROM_ANTIWHALE_ROLE, 0x596e5556cF23b30e6c2C4c60dE216F66551c0220); _setupRole(EXCLUDED_FROM_ANTIWHALE_ROLE, 0x9406609b3057053573f8d5418C1cbfaAc5161f21); _setupRole(EXCLUDED_FROM_ANTIWHALE_ROLE, 0x71FC956eee0C97B095B70f6B1B263147a6d6799A); // mint supply to owner _mint(_msgSender(), 1000000000 * 10**DECIMALS); } // receive ETH when swaping receive() external payable {} function decimals() public view virtual override returns (uint8) { return DECIMALS; } function totalFees() public view returns (uint256) { return liquidityFee + marketingFee; } function setLiquidityFee(uint256 _liquidityFee) external onlyRole(DEFAULT_ADMIN_ROLE) { require(totalFees() - liquidityFee + _liquidityFee <= MAX_FEE, "Tax too high"); liquidityFee = _liquidityFee; } function setMarketingFee(uint256 _marketingFee) external onlyRole(DEFAULT_ADMIN_ROLE) { require(totalFees() - marketingFee + _marketingFee <= MAX_FEE, "Tax too high"); marketingFee = _marketingFee; } /// @dev Roles must be granted manually after changing the address function setMarketingAddress(address newAddress) external onlyRole(DEFAULT_ADMIN_ROLE) { marketingAddress = newAddress; } function setLiquidityOwner(address newOwner) external onlyRole(DEFAULT_ADMIN_ROLE) { liquidityOwner = newOwner; } function updateSwapRouter(address _newRouter) external onlyRole(DEFAULT_ADMIN_ROLE) { swapRouter = IUniswapV2Router02(_newRouter); swapPair = IUniswapV2Factory(swapRouter.factory()).createPair(address(this), swapRouter.WETH()); require(swapPair != address(0), "Invalid pair address."); emit SwapRouterUpdated(address(swapRouter), swapPair); } function setProcessFeesEnabled(bool _enabled) external onlyRole(DEFAULT_ADMIN_ROLE) { processFeesEnabled = _enabled; } function processFees(uint256 amount, uint256 minAmountOut) external onlyRole(DEFAULT_ADMIN_ROLE) { require(amount <= balanceOf(address(this)), "Amount too high"); _processFees(amount, minAmountOut); } function isExcludedFromFee(address account) public view returns (bool) { return hasRole(EXCLUDED_FROM_FEE_ROLE, account); } function isExcludedAntiWhale(address account) public view returns (bool) { return hasRole(EXCLUDED_FROM_ANTIWHALE_ROLE, account); } function isLpPool(address pairAddress) public view returns (bool) { return _lpPools[pairAddress]; } function setIsLpPool(address pairAddress, bool isLp) external onlyRole(DEFAULT_ADMIN_ROLE) { _lpPools[pairAddress] = isLp; } function setNumTokensToSwap(uint256 amount) external onlyRole(DEFAULT_ADMIN_ROLE) { numTokensToSwap = amount; } function _transfer( address from, address to, uint256 amount ) internal override notDenied(from) notDenied(to) antiWhale(from, to, amount) { require(amount > 0, "Transfer <= 0"); uint256 taxFee = 0; bool sendFee = false; if (!_processingFees) { if (_lpPools[to] && !isExcludedFromFee(from) && !isExcludedFromFee(to)) { // sell fee taxFee = totalFees(); sendFee = processFeesEnabled; } else if (_lpPools[from] && !isExcludedFromFee(to) && to != address(swapRouter)) { // buy fee taxFee = totalFees(); } // else: no fee on transfer } // process fees if (sendFee) { uint256 contractTokenBalance = balanceOf(address(this)); if (contractTokenBalance >= numTokensToSwap) { _processFees(numTokensToSwap, 0); } } bool takeFee = !_processingFees && taxFee > 0; if (takeFee) { uint256 taxAmount = amount.mul(taxFee).div(10000); if (taxAmount > 0) { super._transfer(from, address(this), taxAmount); } uint256 sendAmount = amount.sub(taxAmount); if (sendAmount > 0) { super._transfer(from, to, sendAmount); } } else { super._transfer(from, to, amount); } } function _processFees(uint256 tokenAmount, uint256 minAmountOut) private lockTheSwap { uint256 contractTokenBalance = balanceOf(address(this)); uint256 totalTax = totalFees(); if (contractTokenBalance >= tokenAmount && totalTax > 0) { uint256 liquidityAmount = tokenAmount.mul(liquidityFee).div(totalTax); uint256 liquidityTokens = liquidityAmount.div(2); uint256 marketingAmount = tokenAmount.sub(liquidityAmount); uint256 liquifyAmount = liquidityAmount.sub(liquidityTokens).add(marketingAmount); // capture the contract's current balance. uint256 initialBalance = address(this).balance; // swap tokens swapTokensForEth(liquifyAmount, minAmountOut); // how much did we just swap into? uint256 newBalance = address(this).balance.sub(initialBalance); // add liquidity uint256 liquidityETH = newBalance.mul(liquidityTokens).div(liquifyAmount); addLiquidity(liquidityTokens, liquidityETH); // send remaining ETH to marketing sendToMarketing(address(this).balance); } } /// @dev Swap tokens for eth function swapTokensForEth(uint256 tokenAmount, uint256 minAmountOut) private { // generate the swap pair path of token -> weth address[] memory path = new address[](2); path[0] = address(this); path[1] = swapRouter.WETH(); _approve(address(this), address(swapRouter), tokenAmount); // make the swap swapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, minAmountOut, path, address(this), block.timestamp ); } /// @dev Add liquidity function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private { // approve token transfer to cover all possible scenarios _approve(address(this), address(swapRouter), tokenAmount); // add the liquidity swapRouter.addLiquidityETH{value: ethAmount}( address(this), tokenAmount, 0, // slippage is unavoidable 0, // slippage is unavoidable liquidityOwner, block.timestamp ); emit AddLiquidity(tokenAmount, ethAmount); } function sendToMarketing(uint256 amount) private { payable(marketingAddress).transfer(amount); emit SendToMarketing(marketingAddress, amount); } }
{ "optimizer": { "enabled": true, "runs": 500 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountToken","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountETH","type":"uint256"}],"name":"AddLiquidity","type":"event"},{"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":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountToken","type":"uint256"}],"name":"SendToMarketing","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"router","type":"address"},{"indexed":true,"internalType":"address","name":"pair","type":"address"}],"name":"SwapRouterUpdated","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":"BURN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DENIED_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EXCLUDED_FROM_ANTIWHALE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EXCLUDED_FROM_FEE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FEE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKEN_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":"account","type":"address"}],"name":"isExcludedAntiWhale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pairAddress","type":"address"}],"name":"isLpPool","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numTokensToSwap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"}],"name":"processFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"processFeesEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"address","name":"pairAddress","type":"address"},{"internalType":"bool","name":"isLp","type":"bool"}],"name":"setIsLpPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_liquidityFee","type":"uint256"}],"name":"setLiquidityFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setLiquidityOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"setMarketingAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_marketingFee","type":"uint256"}],"name":"setMarketingFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setNumTokensToSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setProcessFeesEnabled","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":"swapPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapRouter","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newRouter","type":"address"}],"name":"updateSwapRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405260c86006556103e8600755600880546001600160a01b03191673fef90843630d43869877769de31fc9aa8d6252f8179055600b805460ff60a01b1916600160a01b17905562000055600a8062000a5d565b6200006490623d090062000a75565b600c553480156200007457600080fd5b50604080518082018252600d81526c25a7a6a822aa22902a37b5b2b760991b6020808301918252835180850190945260078452664b4f4d5045544560c81b908401528151919291620000c991600391620008a4565b508051620000df906004906020840190620008a4565b50620000eb9150503390565b600b80546001600160a01b03929092166001600160a01b031992831617905560098054909116737a250d5630b4cf539739df2c5dacb4c659f2488d9081179091556040805163c45a015560e01b8152905163c45a0155916004808201926020929091908290030181865afa15801562000168573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200018e919062000a97565b6001600160a01b031663c9c6539630600960009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015620001f1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000217919062000a97565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801562000265573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200028b919062000a97565b600a80546001600160a01b0319166001600160a01b039290921691821790556000908152600d60205260408120805460ff19166001179055620002d690620002d03390565b620006f5565b620002f16000805160206200301883398151915233620006f5565b6200030c6000805160206200301883398151915230620006f5565b600854620003349060008051602062003018833981519152906001600160a01b0316620006f5565b620003636000805160206200301883398151915273fd7d7a2175706e5555aab0aaaf2251c6bc691ffc620006f5565b62000392600080516020620030188339815191527330ea798cb8aa2392f3016f4962e69365e50cd001620006f5565b620003c160008051602062003018833981519152735d2c31eeac483000dd6120233afaaa0535e9c6ed620006f5565b620003f060008051602062003018833981519152735623225f296be00ec9db43f3ded96804f24b062d620006f5565b6200041f600080516020620030188339815191527399b3208625e252ea0fbbe9b63e6004b06489d094620006f5565b6200044e6000805160206200301883398151915273596e5556cf23b30e6c2c4c60de216f66551c0220620006f5565b6200047d60008051602062003018833981519152739406609b3057053573f8d5418c1cbfaac5161f21620006f5565b620004ac600080516020620030188339815191527371fc956eee0c97b095b70f6b1b263147a6d6799a620006f5565b620004c76000805160206200303883398151915233620006f5565b620004e26000805160206200303883398151915230620006f5565b600a546200050a9060008051602062003038833981519152906001600160a01b0316620006f5565b600854620005329060008051602062003038833981519152906001600160a01b0316620006f5565b6200054f6000805160206200303883398151915261dead620006f5565b6200057e6000805160206200303883398151915273fd7d7a2175706e5555aab0aaaf2251c6bc691ffc620006f5565b620005ad600080516020620030388339815191527330ea798cb8aa2392f3016f4962e69365e50cd001620006f5565b620005dc60008051602062003038833981519152735d2c31eeac483000dd6120233afaaa0535e9c6ed620006f5565b6200060b60008051602062003038833981519152735623225f296be00ec9db43f3ded96804f24b062d620006f5565b6200063a600080516020620030388339815191527399b3208625e252ea0fbbe9b63e6004b06489d094620006f5565b620006696000805160206200303883398151915273596e5556cf23b30e6c2c4c60de216f66551c0220620006f5565b6200069860008051602062003038833981519152739406609b3057053573f8d5418c1cbfaac5161f21620006f5565b620006c7600080516020620030388339815191527371fc956eee0c97b095b70f6b1b263147a6d6799a620006f5565b620006ef33620006d9600a8062000a5d565b620006e990633b9aca0062000a75565b62000705565b62000b1a565b620007018282620007ed565b5050565b6001600160a01b038216620007605760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b806002600082825462000774919062000ac2565b90915550506001600160a01b03821660009081526020819052604081208054839290620007a390849062000ac2565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b620007f9828262000877565b620007015760008281526005602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620008333390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff165b92915050565b828054620008b29062000add565b90600052602060002090601f016020900481019282620008d6576000855562000921565b82601f10620008f157805160ff191683800117855562000921565b8280016001018555821562000921579182015b828111156200092157825182559160200191906001019062000904565b506200092f92915062000933565b5090565b5b808211156200092f576000815560010162000934565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620009a15781600019048211156200098557620009856200094a565b808516156200099357918102915b93841c939080029062000965565b509250929050565b600082620009ba575060016200089e565b81620009c9575060006200089e565b8160018114620009e25760028114620009ed5762000a0d565b60019150506200089e565b60ff84111562000a015762000a016200094a565b50506001821b6200089e565b5060208310610133831016604e8410600b841016171562000a32575081810a6200089e565b62000a3e838362000960565b806000190482111562000a555762000a556200094a565b029392505050565b600062000a6e60ff841683620009a9565b9392505050565b600081600019048311821515161562000a925762000a926200094a565b500290565b60006020828403121562000aaa57600080fd5b81516001600160a01b038116811462000a6e57600080fd5b6000821982111562000ad85762000ad86200094a565b500190565b600181811c9082168062000af257607f821691505b6020821081141562000b1457634e487b7160e01b600052602260045260246000fd5b50919050565b6124ee8062000b2a6000396000f3fe6080604052600436106102c65760003560e01c8063625e764c1161017f578063a457c2d7116100e1578063c9e482331161008a578063dd62ed3e11610064578063dd62ed3e146108a3578063e55096b0146108e9578063fccc28131461090957600080fd5b8063c9e482331461084e578063d547741f14610863578063dca74a191461088357600080fd5b8063b98b677f116100bb578063b98b677f146107e5578063bc063e1a14610805578063c31c9c071461082e57600080fd5b8063a457c2d714610785578063a5ece941146107a5578063a9059cbb146107c557600080fd5b80638e3166bc1161014357806395d89b411161011d57806395d89b411461074557806398118cb41461075a578063a217fddf1461077057600080fd5b80638e3166bc146106ab578063906e9dd0146106df57806391d14854146106ff57600080fd5b8063625e764c146105e65780636b67c4df146106065780636f741f2a1461061c57806370a082311461065557806372bc55831461068b57600080fd5b806326991cc8116102285780633935ebf9116101ec5780633dafaa9c116101c65780633dafaa9c146105715780635342acb4146105a557806361421784146105c557600080fd5b80633935ebf9146104fd578063395093511461051d5780633b46f8691461053d57600080fd5b806326991cc8146104495780632f2ff15d14610481578063313ce567146104a1578063357bf15c146104bd57806336568abe146104dd57600080fd5b80630f569dad1161028a578063194f8f8011610264578063194f8f80146103d957806323b872dd146103f9578063248a9ca31461041957600080fd5b80630f569dad1461038f57806313114a9d146103af57806318160ddd146103c457600080fd5b806301a6c43b146102d257806301ffc9a7146102fb57806306fdde031461032b578063095ea7b31461034d5780630a4e42ef1461036d57600080fd5b366102cd57005b600080fd5b3480156102de57600080fd5b506102e8600c5481565b6040519081526020015b60405180910390f35b34801561030757600080fd5b5061031b610316366004611f5b565b61091f565b60405190151581526020016102f2565b34801561033757600080fd5b50610340610956565b6040516102f29190611fb1565b34801561035957600080fd5b5061031b610368366004611ffc565b6109e8565b34801561037957600080fd5b5061038d610388366004612028565b610a00565b005b34801561039b57600080fd5b5061038d6103aa36600461204a565b610a7f565b3480156103bb57600080fd5b506102e8610a91565b3480156103d057600080fd5b506002546102e8565b3480156103e557600080fd5b5061031b6103f4366004612063565b610aa8565b34801561040557600080fd5b5061031b610414366004612080565b610ae8565b34801561042557600080fd5b506102e861043436600461204a565b60009081526005602052604090206001015490565b34801561045557600080fd5b50600a54610469906001600160a01b031681565b6040516001600160a01b0390911681526020016102f2565b34801561048d57600080fd5b5061038d61049c3660046120c1565b610b0c565b3480156104ad57600080fd5b50604051600a81526020016102f2565b3480156104c957600080fd5b5061038d6104d836600461204a565b610b32565b3480156104e957600080fd5b5061038d6104f83660046120c1565b610ba8565b34801561050957600080fd5b50600b54610469906001600160a01b031681565b34801561052957600080fd5b5061031b610538366004611ffc565b610c34565b34801561054957600080fd5b506102e87fe26365870a4fc4941079bb663ce6252b0cf41101ec800616561f5c0f30dcf7ef81565b34801561057d57600080fd5b506102e87faa2bf0f18a184595f311714f88137302cdcad3d20639b5595c7fe0d3db0658fa81565b3480156105b157600080fd5b5061031b6105c0366004612063565b610c73565b3480156105d157600080fd5b50600b5461031b90600160a01b900460ff1681565b3480156105f257600080fd5b5061038d61060136600461204a565b610cb3565b34801561061257600080fd5b506102e860075481565b34801561062857600080fd5b5061031b610637366004612063565b6001600160a01b03166000908152600d602052604090205460ff1690565b34801561066157600080fd5b506102e8610670366004612063565b6001600160a01b031660009081526020819052604090205490565b34801561069757600080fd5b5061038d6106a6366004612063565b610d29565b3480156106b757600080fd5b506102e87f5df7ebf31955a926cc63dac31c1a31bc588cdae5c3e13e63b89ebfe0eaba875381565b3480156106eb57600080fd5b5061038d6106fa366004612063565b610d58565b34801561070b57600080fd5b5061031b61071a3660046120c1565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561075157600080fd5b50610340610d87565b34801561076657600080fd5b506102e860065481565b34801561077c57600080fd5b506102e8600081565b34801561079157600080fd5b5061031b6107a0366004611ffc565b610d96565b3480156107b157600080fd5b50600854610469906001600160a01b031681565b3480156107d157600080fd5b5061031b6107e0366004611ffc565b610e28565b3480156107f157600080fd5b5061038d610800366004612063565b610e36565b34801561081157600080fd5b5061081b6107d081565b60405161ffff90911681526020016102f2565b34801561083a57600080fd5b50600954610469906001600160a01b031681565b34801561085a57600080fd5b506102e8611064565b34801561086f57600080fd5b5061038d61087e3660046120c1565b61107f565b34801561088f57600080fd5b5061038d61089e366004612106565b6110a5565b3480156108af57600080fd5b506102e86108be366004612121565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156108f557600080fd5b5061038d61090436600461214f565b6110d0565b34801561091557600080fd5b5061046961dead81565b60006001600160e01b03198216637965db0b60e01b148061095057506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606003805461096590612184565b80601f016020809104026020016040519081016040528092919081815260200182805461099190612184565b80156109de5780601f106109b3576101008083540402835291602001916109de565b820191906000526020600020905b8154815290600101906020018083116109c157829003601f168201915b5050505050905090565b6000336109f6818585611108565b5060019392505050565b6000610a0c813361122c565b30600090815260208190526040902054831115610a705760405162461bcd60e51b815260206004820152600f60248201527f416d6f756e7420746f6f2068696768000000000000000000000000000000000060448201526064015b60405180910390fd5b610a7a83836112ac565b505050565b6000610a8b813361122c565b50600c55565b6000600754600654610aa391906121d5565b905090565b6001600160a01b03811660009081527fd6caba9cdcf37e1c9a5d786ad119c56d8efcfe60e764f279728d5644450a1e31602052604081205460ff16610950565b600033610af68582856113a3565b610b01858585611435565b506001949350505050565b600082815260056020526040902060010154610b28813361122c565b610a7a83836117c1565b6000610b3e813361122c565b6107d061ffff1682600654610b51610a91565b610b5b91906121ed565b610b6591906121d5565b1115610ba25760405162461bcd60e51b815260206004820152600c60248201526b0a8c2f040e8dede40d0d2ced60a31b6044820152606401610a67565b50600655565b6001600160a01b0381163314610c265760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610a67565b610c308282611863565b5050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906109f69082908690610c6e9087906121d5565b611108565b6001600160a01b03811660009081527f60cacd871d19a7ccab985c49d09249086dbbf2eb28ad48a29f42c0b838c3535d602052604081205460ff16610950565b6000610cbf813361122c565b6107d061ffff1682600754610cd2610a91565b610cdc91906121ed565b610ce691906121d5565b1115610d235760405162461bcd60e51b815260206004820152600c60248201526b0a8c2f040e8dede40d0d2ced60a31b6044820152606401610a67565b50600755565b6000610d35813361122c565b50600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000610d64813361122c565b50600880546001600160a01b0319166001600160a01b0392909216919091179055565b60606004805461096590612184565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610e1b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610a67565b610b018286868403611108565b6000336109f6818585611435565b6000610e42813361122c565b600980546001600160a01b0319166001600160a01b0384169081179091556040805163c45a015560e01b8152905163c45a0155916004808201926020929091908290030181865afa158015610e9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ebf9190612204565b6001600160a01b031663c9c6539630600960009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f459190612204565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015610f92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb69190612204565b600a80546001600160a01b0319166001600160a01b039290921691821790556110215760405162461bcd60e51b815260206004820152601560248201527f496e76616c6964207061697220616464726573732e00000000000000000000006044820152606401610a67565b600a546009546040516001600160a01b0392831692909116907fca394f95d8dbf1e8b2e76b9a8da90cacce1da85181a65508dab13212dc1df53b90600090a35050565b61106f600a80612305565b61107c9062989680612314565b81565b60008281526005602052604090206001015461109b813361122c565b610a7a8383611863565b60006110b1813361122c565b50600b8054911515600160a01b0260ff60a01b19909216919091179055565b60006110dc813361122c565b506001600160a01b03919091166000908152600d60205260409020805460ff1916911515919091179055565b6001600160a01b03831661116a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a67565b6001600160a01b0382166111cb5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a67565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff16610c305761126a816001600160a01b031660146118e6565b6112758360206118e6565b604051602001611286929190612333565b60408051601f198184030181529082905262461bcd60e51b8252610a6791600401611fb1565b600b805460ff60a81b1916600160a81b17905530600090815260208190526040812054905060006112db610a91565b90508382101580156112ed5750600081115b156113905760006113138261130d60065488611a9690919063ffffffff16565b90611aa2565b90506000611322826002611aa2565b905060006113308784611aae565b90506000611348826113428686611aae565b90611aba565b9050476113558289611ac6565b60006113614783611aae565b905060006113738461130d8489611a96565b905061137f8682611c20565b61138847611d0d565b505050505050505b5050600b805460ff60a81b191690555050565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811461142f57818110156114225760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610a67565b61142f8484848403611108565b50505050565b6001600160a01b03831660009081527f2043a6a2db33ba3d58654fd7f3770cb9319aa7f0f306e78cbc287c4c1a9f20156020526040902054839060ff16156114b05760405162461bcd60e51b815260206004820152600e60248201526d1059191c995cdcc819195b9a595960921b6044820152606401610a67565b6001600160a01b03831660009081527f2043a6a2db33ba3d58654fd7f3770cb9319aa7f0f306e78cbc287c4c1a9f20156020526040902054839060ff161561152b5760405162461bcd60e51b815260206004820152600e60248201526d1059191c995cdcc819195b9a595960921b6044820152606401610a67565b6001600160a01b03841660009081527fd6caba9cdcf37e1c9a5d786ad119c56d8efcfe60e764f279728d5644450a1e31602052604090205485908590859060ff166115f95761157b600a80612305565b6115889062989680612314565b6115ab82611342856001600160a01b031660009081526020819052604090205490565b11156115f95760405162461bcd60e51b815260206004820152601260248201527f57616c6c65742065786365656473206d617800000000000000000000000000006044820152606401610a67565b600086116116395760405162461bcd60e51b815260206004820152600d60248201526c05472616e73666572203c3d203609c1b6044820152606401610a67565b600b546000908190600160a81b900460ff1661170b576001600160a01b0389166000908152600d602052604090205460ff16801561167d575061167b8a610c73565b155b801561168f575061168d89610c73565b155b156116b35761169c610a91565b600b54909250600160a01b900460ff16905061170b565b6001600160a01b038a166000908152600d602052604090205460ff1680156116e157506116df89610c73565b155b80156116fb57506009546001600160a01b038a8116911614155b1561170b57611708610a91565b91505b80156117395730600090815260208190526040902054600c54811061173757611737600c5460006112ac565b505b600b54600090600160a81b900460ff161580156117565750600083115b905080156117a957600061177061271061130d8c87611a96565b90508015611783576117838c3083611d8d565b600061178f8b83611aae565b905080156117a2576117a28d8d83611d8d565b50506117b4565b6117b48b8b8b611d8d565b5050505050505050505050565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff16610c305760008281526005602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561181f3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff1615610c305760008281526005602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b606060006118f5836002612314565b6119009060026121d5565b67ffffffffffffffff811115611918576119186123b4565b6040519080825280601f01601f191660200182016040528015611942576020820181803683370190505b509050600360fc1b8160008151811061195d5761195d6123ca565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061198c5761198c6123ca565b60200101906001600160f81b031916908160001a90535060006119b0846002612314565b6119bb9060016121d5565b90505b6001811115611a40577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106119fc576119fc6123ca565b1a60f81b828281518110611a1257611a126123ca565b60200101906001600160f81b031916908160001a90535060049490941c93611a39816123e0565b90506119be565b508315611a8f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a67565b9392505050565b6000611a8f8284612314565b6000611a8f82846123f7565b6000611a8f82846121ed565b6000611a8f82846121d5565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611afb57611afb6123ca565b6001600160a01b03928316602091820292909201810191909152600954604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611b54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b789190612204565b81600181518110611b8b57611b8b6123ca565b6001600160a01b039283166020918202929092010152600954611bb19130911685611108565b60095460405163791ac94760e01b81526001600160a01b039091169063791ac94790611be99086908690869030904290600401612419565b600060405180830381600087803b158015611c0357600080fd5b505af1158015611c17573d6000803e3d6000fd5b50505050505050565b600954611c389030906001600160a01b031684611108565b600954600b5460405163f305d71960e01b81523060048201526024810185905260006044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c40160606040518083038185885af1158015611ca8573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611ccd919061248a565b505060408051848152602081018490527fcb1652de9aeec38545fc281847b3dbfc89aab56dfa907b1ab68466f602c36fb492500160405180910390a15050565b6008546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015611d47573d6000803e3d6000fd5b506008546040518281526001600160a01b03909116907f7281e2208e56b97e2118a4c1f31dc4badd530977cce4e1985af4f68f316b4ee99060200160405180910390a250565b6001600160a01b038316611df15760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610a67565b6001600160a01b038216611e535760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610a67565b6001600160a01b03831660009081526020819052604090205481811015611ecb5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610a67565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611f029084906121d5565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611f4e91815260200190565b60405180910390a361142f565b600060208284031215611f6d57600080fd5b81356001600160e01b031981168114611a8f57600080fd5b60005b83811015611fa0578181015183820152602001611f88565b8381111561142f5750506000910152565b6020815260008251806020840152611fd0816040850160208701611f85565b601f01601f19169190910160400192915050565b6001600160a01b0381168114611ff957600080fd5b50565b6000806040838503121561200f57600080fd5b823561201a81611fe4565b946020939093013593505050565b6000806040838503121561203b57600080fd5b50508035926020909101359150565b60006020828403121561205c57600080fd5b5035919050565b60006020828403121561207557600080fd5b8135611a8f81611fe4565b60008060006060848603121561209557600080fd5b83356120a081611fe4565b925060208401356120b081611fe4565b929592945050506040919091013590565b600080604083850312156120d457600080fd5b8235915060208301356120e681611fe4565b809150509250929050565b8035801515811461210157600080fd5b919050565b60006020828403121561211857600080fd5b611a8f826120f1565b6000806040838503121561213457600080fd5b823561213f81611fe4565b915060208301356120e681611fe4565b6000806040838503121561216257600080fd5b823561216d81611fe4565b915061217b602084016120f1565b90509250929050565b600181811c9082168061219857607f821691505b602082108114156121b957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156121e8576121e86121bf565b500190565b6000828210156121ff576121ff6121bf565b500390565b60006020828403121561221657600080fd5b8151611a8f81611fe4565b600181815b8085111561225c578160001904821115612242576122426121bf565b8085161561224f57918102915b93841c9390800290612226565b509250929050565b60008261227357506001610950565b8161228057506000610950565b816001811461229657600281146122a0576122bc565b6001915050610950565b60ff8411156122b1576122b16121bf565b50506001821b610950565b5060208310610133831016604e8410600b84101617156122df575081810a610950565b6122e98383612221565b80600019048211156122fd576122fd6121bf565b029392505050565b6000611a8f60ff841683612264565b600081600019048311821515161561232e5761232e6121bf565b500290565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161236b816017850160208801611f85565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516123a8816028840160208801611f85565b01602801949350505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000816123ef576123ef6121bf565b506000190190565b60008261241457634e487b7160e01b600052601260045260246000fd5b500490565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156124695784516001600160a01b031683529383019391830191600101612444565b50506001600160a01b03969096166060850152505050608001529392505050565b60008060006060848603121561249f57600080fd5b835192506020840151915060408401519050925092509256fea2646970667358221220453d2a68257fe404ef2c17fb1a4e09bef0d69c1b148839aaa384d743b04d16e564736f6c634300080b0033aa2bf0f18a184595f311714f88137302cdcad3d20639b5595c7fe0d3db0658fa5df7ebf31955a926cc63dac31c1a31bc588cdae5c3e13e63b89ebfe0eaba8753
Deployed Bytecode
0x6080604052600436106102c65760003560e01c8063625e764c1161017f578063a457c2d7116100e1578063c9e482331161008a578063dd62ed3e11610064578063dd62ed3e146108a3578063e55096b0146108e9578063fccc28131461090957600080fd5b8063c9e482331461084e578063d547741f14610863578063dca74a191461088357600080fd5b8063b98b677f116100bb578063b98b677f146107e5578063bc063e1a14610805578063c31c9c071461082e57600080fd5b8063a457c2d714610785578063a5ece941146107a5578063a9059cbb146107c557600080fd5b80638e3166bc1161014357806395d89b411161011d57806395d89b411461074557806398118cb41461075a578063a217fddf1461077057600080fd5b80638e3166bc146106ab578063906e9dd0146106df57806391d14854146106ff57600080fd5b8063625e764c146105e65780636b67c4df146106065780636f741f2a1461061c57806370a082311461065557806372bc55831461068b57600080fd5b806326991cc8116102285780633935ebf9116101ec5780633dafaa9c116101c65780633dafaa9c146105715780635342acb4146105a557806361421784146105c557600080fd5b80633935ebf9146104fd578063395093511461051d5780633b46f8691461053d57600080fd5b806326991cc8146104495780632f2ff15d14610481578063313ce567146104a1578063357bf15c146104bd57806336568abe146104dd57600080fd5b80630f569dad1161028a578063194f8f8011610264578063194f8f80146103d957806323b872dd146103f9578063248a9ca31461041957600080fd5b80630f569dad1461038f57806313114a9d146103af57806318160ddd146103c457600080fd5b806301a6c43b146102d257806301ffc9a7146102fb57806306fdde031461032b578063095ea7b31461034d5780630a4e42ef1461036d57600080fd5b366102cd57005b600080fd5b3480156102de57600080fd5b506102e8600c5481565b6040519081526020015b60405180910390f35b34801561030757600080fd5b5061031b610316366004611f5b565b61091f565b60405190151581526020016102f2565b34801561033757600080fd5b50610340610956565b6040516102f29190611fb1565b34801561035957600080fd5b5061031b610368366004611ffc565b6109e8565b34801561037957600080fd5b5061038d610388366004612028565b610a00565b005b34801561039b57600080fd5b5061038d6103aa36600461204a565b610a7f565b3480156103bb57600080fd5b506102e8610a91565b3480156103d057600080fd5b506002546102e8565b3480156103e557600080fd5b5061031b6103f4366004612063565b610aa8565b34801561040557600080fd5b5061031b610414366004612080565b610ae8565b34801561042557600080fd5b506102e861043436600461204a565b60009081526005602052604090206001015490565b34801561045557600080fd5b50600a54610469906001600160a01b031681565b6040516001600160a01b0390911681526020016102f2565b34801561048d57600080fd5b5061038d61049c3660046120c1565b610b0c565b3480156104ad57600080fd5b50604051600a81526020016102f2565b3480156104c957600080fd5b5061038d6104d836600461204a565b610b32565b3480156104e957600080fd5b5061038d6104f83660046120c1565b610ba8565b34801561050957600080fd5b50600b54610469906001600160a01b031681565b34801561052957600080fd5b5061031b610538366004611ffc565b610c34565b34801561054957600080fd5b506102e87fe26365870a4fc4941079bb663ce6252b0cf41101ec800616561f5c0f30dcf7ef81565b34801561057d57600080fd5b506102e87faa2bf0f18a184595f311714f88137302cdcad3d20639b5595c7fe0d3db0658fa81565b3480156105b157600080fd5b5061031b6105c0366004612063565b610c73565b3480156105d157600080fd5b50600b5461031b90600160a01b900460ff1681565b3480156105f257600080fd5b5061038d61060136600461204a565b610cb3565b34801561061257600080fd5b506102e860075481565b34801561062857600080fd5b5061031b610637366004612063565b6001600160a01b03166000908152600d602052604090205460ff1690565b34801561066157600080fd5b506102e8610670366004612063565b6001600160a01b031660009081526020819052604090205490565b34801561069757600080fd5b5061038d6106a6366004612063565b610d29565b3480156106b757600080fd5b506102e87f5df7ebf31955a926cc63dac31c1a31bc588cdae5c3e13e63b89ebfe0eaba875381565b3480156106eb57600080fd5b5061038d6106fa366004612063565b610d58565b34801561070b57600080fd5b5061031b61071a3660046120c1565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561075157600080fd5b50610340610d87565b34801561076657600080fd5b506102e860065481565b34801561077c57600080fd5b506102e8600081565b34801561079157600080fd5b5061031b6107a0366004611ffc565b610d96565b3480156107b157600080fd5b50600854610469906001600160a01b031681565b3480156107d157600080fd5b5061031b6107e0366004611ffc565b610e28565b3480156107f157600080fd5b5061038d610800366004612063565b610e36565b34801561081157600080fd5b5061081b6107d081565b60405161ffff90911681526020016102f2565b34801561083a57600080fd5b50600954610469906001600160a01b031681565b34801561085a57600080fd5b506102e8611064565b34801561086f57600080fd5b5061038d61087e3660046120c1565b61107f565b34801561088f57600080fd5b5061038d61089e366004612106565b6110a5565b3480156108af57600080fd5b506102e86108be366004612121565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156108f557600080fd5b5061038d61090436600461214f565b6110d0565b34801561091557600080fd5b5061046961dead81565b60006001600160e01b03198216637965db0b60e01b148061095057506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606003805461096590612184565b80601f016020809104026020016040519081016040528092919081815260200182805461099190612184565b80156109de5780601f106109b3576101008083540402835291602001916109de565b820191906000526020600020905b8154815290600101906020018083116109c157829003601f168201915b5050505050905090565b6000336109f6818585611108565b5060019392505050565b6000610a0c813361122c565b30600090815260208190526040902054831115610a705760405162461bcd60e51b815260206004820152600f60248201527f416d6f756e7420746f6f2068696768000000000000000000000000000000000060448201526064015b60405180910390fd5b610a7a83836112ac565b505050565b6000610a8b813361122c565b50600c55565b6000600754600654610aa391906121d5565b905090565b6001600160a01b03811660009081527fd6caba9cdcf37e1c9a5d786ad119c56d8efcfe60e764f279728d5644450a1e31602052604081205460ff16610950565b600033610af68582856113a3565b610b01858585611435565b506001949350505050565b600082815260056020526040902060010154610b28813361122c565b610a7a83836117c1565b6000610b3e813361122c565b6107d061ffff1682600654610b51610a91565b610b5b91906121ed565b610b6591906121d5565b1115610ba25760405162461bcd60e51b815260206004820152600c60248201526b0a8c2f040e8dede40d0d2ced60a31b6044820152606401610a67565b50600655565b6001600160a01b0381163314610c265760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610a67565b610c308282611863565b5050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906109f69082908690610c6e9087906121d5565b611108565b6001600160a01b03811660009081527f60cacd871d19a7ccab985c49d09249086dbbf2eb28ad48a29f42c0b838c3535d602052604081205460ff16610950565b6000610cbf813361122c565b6107d061ffff1682600754610cd2610a91565b610cdc91906121ed565b610ce691906121d5565b1115610d235760405162461bcd60e51b815260206004820152600c60248201526b0a8c2f040e8dede40d0d2ced60a31b6044820152606401610a67565b50600755565b6000610d35813361122c565b50600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000610d64813361122c565b50600880546001600160a01b0319166001600160a01b0392909216919091179055565b60606004805461096590612184565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610e1b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610a67565b610b018286868403611108565b6000336109f6818585611435565b6000610e42813361122c565b600980546001600160a01b0319166001600160a01b0384169081179091556040805163c45a015560e01b8152905163c45a0155916004808201926020929091908290030181865afa158015610e9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ebf9190612204565b6001600160a01b031663c9c6539630600960009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f459190612204565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015610f92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb69190612204565b600a80546001600160a01b0319166001600160a01b039290921691821790556110215760405162461bcd60e51b815260206004820152601560248201527f496e76616c6964207061697220616464726573732e00000000000000000000006044820152606401610a67565b600a546009546040516001600160a01b0392831692909116907fca394f95d8dbf1e8b2e76b9a8da90cacce1da85181a65508dab13212dc1df53b90600090a35050565b61106f600a80612305565b61107c9062989680612314565b81565b60008281526005602052604090206001015461109b813361122c565b610a7a8383611863565b60006110b1813361122c565b50600b8054911515600160a01b0260ff60a01b19909216919091179055565b60006110dc813361122c565b506001600160a01b03919091166000908152600d60205260409020805460ff1916911515919091179055565b6001600160a01b03831661116a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a67565b6001600160a01b0382166111cb5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a67565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff16610c305761126a816001600160a01b031660146118e6565b6112758360206118e6565b604051602001611286929190612333565b60408051601f198184030181529082905262461bcd60e51b8252610a6791600401611fb1565b600b805460ff60a81b1916600160a81b17905530600090815260208190526040812054905060006112db610a91565b90508382101580156112ed5750600081115b156113905760006113138261130d60065488611a9690919063ffffffff16565b90611aa2565b90506000611322826002611aa2565b905060006113308784611aae565b90506000611348826113428686611aae565b90611aba565b9050476113558289611ac6565b60006113614783611aae565b905060006113738461130d8489611a96565b905061137f8682611c20565b61138847611d0d565b505050505050505b5050600b805460ff60a81b191690555050565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811461142f57818110156114225760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610a67565b61142f8484848403611108565b50505050565b6001600160a01b03831660009081527f2043a6a2db33ba3d58654fd7f3770cb9319aa7f0f306e78cbc287c4c1a9f20156020526040902054839060ff16156114b05760405162461bcd60e51b815260206004820152600e60248201526d1059191c995cdcc819195b9a595960921b6044820152606401610a67565b6001600160a01b03831660009081527f2043a6a2db33ba3d58654fd7f3770cb9319aa7f0f306e78cbc287c4c1a9f20156020526040902054839060ff161561152b5760405162461bcd60e51b815260206004820152600e60248201526d1059191c995cdcc819195b9a595960921b6044820152606401610a67565b6001600160a01b03841660009081527fd6caba9cdcf37e1c9a5d786ad119c56d8efcfe60e764f279728d5644450a1e31602052604090205485908590859060ff166115f95761157b600a80612305565b6115889062989680612314565b6115ab82611342856001600160a01b031660009081526020819052604090205490565b11156115f95760405162461bcd60e51b815260206004820152601260248201527f57616c6c65742065786365656473206d617800000000000000000000000000006044820152606401610a67565b600086116116395760405162461bcd60e51b815260206004820152600d60248201526c05472616e73666572203c3d203609c1b6044820152606401610a67565b600b546000908190600160a81b900460ff1661170b576001600160a01b0389166000908152600d602052604090205460ff16801561167d575061167b8a610c73565b155b801561168f575061168d89610c73565b155b156116b35761169c610a91565b600b54909250600160a01b900460ff16905061170b565b6001600160a01b038a166000908152600d602052604090205460ff1680156116e157506116df89610c73565b155b80156116fb57506009546001600160a01b038a8116911614155b1561170b57611708610a91565b91505b80156117395730600090815260208190526040902054600c54811061173757611737600c5460006112ac565b505b600b54600090600160a81b900460ff161580156117565750600083115b905080156117a957600061177061271061130d8c87611a96565b90508015611783576117838c3083611d8d565b600061178f8b83611aae565b905080156117a2576117a28d8d83611d8d565b50506117b4565b6117b48b8b8b611d8d565b5050505050505050505050565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff16610c305760008281526005602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561181f3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff1615610c305760008281526005602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b606060006118f5836002612314565b6119009060026121d5565b67ffffffffffffffff811115611918576119186123b4565b6040519080825280601f01601f191660200182016040528015611942576020820181803683370190505b509050600360fc1b8160008151811061195d5761195d6123ca565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061198c5761198c6123ca565b60200101906001600160f81b031916908160001a90535060006119b0846002612314565b6119bb9060016121d5565b90505b6001811115611a40577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106119fc576119fc6123ca565b1a60f81b828281518110611a1257611a126123ca565b60200101906001600160f81b031916908160001a90535060049490941c93611a39816123e0565b90506119be565b508315611a8f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a67565b9392505050565b6000611a8f8284612314565b6000611a8f82846123f7565b6000611a8f82846121ed565b6000611a8f82846121d5565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611afb57611afb6123ca565b6001600160a01b03928316602091820292909201810191909152600954604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611b54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b789190612204565b81600181518110611b8b57611b8b6123ca565b6001600160a01b039283166020918202929092010152600954611bb19130911685611108565b60095460405163791ac94760e01b81526001600160a01b039091169063791ac94790611be99086908690869030904290600401612419565b600060405180830381600087803b158015611c0357600080fd5b505af1158015611c17573d6000803e3d6000fd5b50505050505050565b600954611c389030906001600160a01b031684611108565b600954600b5460405163f305d71960e01b81523060048201526024810185905260006044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c40160606040518083038185885af1158015611ca8573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611ccd919061248a565b505060408051848152602081018490527fcb1652de9aeec38545fc281847b3dbfc89aab56dfa907b1ab68466f602c36fb492500160405180910390a15050565b6008546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015611d47573d6000803e3d6000fd5b506008546040518281526001600160a01b03909116907f7281e2208e56b97e2118a4c1f31dc4badd530977cce4e1985af4f68f316b4ee99060200160405180910390a250565b6001600160a01b038316611df15760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610a67565b6001600160a01b038216611e535760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610a67565b6001600160a01b03831660009081526020819052604090205481811015611ecb5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610a67565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611f029084906121d5565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611f4e91815260200190565b60405180910390a361142f565b600060208284031215611f6d57600080fd5b81356001600160e01b031981168114611a8f57600080fd5b60005b83811015611fa0578181015183820152602001611f88565b8381111561142f5750506000910152565b6020815260008251806020840152611fd0816040850160208701611f85565b601f01601f19169190910160400192915050565b6001600160a01b0381168114611ff957600080fd5b50565b6000806040838503121561200f57600080fd5b823561201a81611fe4565b946020939093013593505050565b6000806040838503121561203b57600080fd5b50508035926020909101359150565b60006020828403121561205c57600080fd5b5035919050565b60006020828403121561207557600080fd5b8135611a8f81611fe4565b60008060006060848603121561209557600080fd5b83356120a081611fe4565b925060208401356120b081611fe4565b929592945050506040919091013590565b600080604083850312156120d457600080fd5b8235915060208301356120e681611fe4565b809150509250929050565b8035801515811461210157600080fd5b919050565b60006020828403121561211857600080fd5b611a8f826120f1565b6000806040838503121561213457600080fd5b823561213f81611fe4565b915060208301356120e681611fe4565b6000806040838503121561216257600080fd5b823561216d81611fe4565b915061217b602084016120f1565b90509250929050565b600181811c9082168061219857607f821691505b602082108114156121b957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156121e8576121e86121bf565b500190565b6000828210156121ff576121ff6121bf565b500390565b60006020828403121561221657600080fd5b8151611a8f81611fe4565b600181815b8085111561225c578160001904821115612242576122426121bf565b8085161561224f57918102915b93841c9390800290612226565b509250929050565b60008261227357506001610950565b8161228057506000610950565b816001811461229657600281146122a0576122bc565b6001915050610950565b60ff8411156122b1576122b16121bf565b50506001821b610950565b5060208310610133831016604e8410600b84101617156122df575081810a610950565b6122e98383612221565b80600019048211156122fd576122fd6121bf565b029392505050565b6000611a8f60ff841683612264565b600081600019048311821515161561232e5761232e6121bf565b500290565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161236b816017850160208801611f85565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516123a8816028840160208801611f85565b01602801949350505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000816123ef576123ef6121bf565b506000190190565b60008261241457634e487b7160e01b600052601260045260246000fd5b500490565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156124695784516001600160a01b031683529383019391830191600101612444565b50506001600160a01b03969096166060850152505050608001529392505050565b60008060006060848603121561249f57600080fd5b835192506020840151915060408401519050925092509256fea2646970667358221220453d2a68257fe404ef2c17fb1a4e09bef0d69c1b148839aaa384d743b04d16e564736f6c634300080b0033
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.