ETH Price: $2,411.57 (-2.45%)
 

Overview

Max Total Supply

300,000,000 KEX

Holders

4,817 (0.00%)

Market

Price

$0.02 @ 0.000007 ETH (-4.18%)

Onchain Market Cap

$5,046,225.00

Circulating Supply Market Cap

$3,767,849.00

Other Info

Token Contract (WITH 6 Decimals)

Filtered by Token Holder
Fake_Phishing309338
Balance
0 KEX

Value
$0.00
0xab932c0acdf044a76b12737eee55a5aaa18a1f0e
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

KIRA is a base layer network allowing anyone to deploy code that can be trusted without the need for smart contracts, application-specific side-chains, or operating any complex infrastructure.

Market

Volume (24H):$18,331.24
Market Capitalization:$3,767,849.00
Circulating Supply:224,000,000.00 KEX
Market Data Source: Coinmarketcap

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
KiraToken

Compiler Version
v0.6.2+commit.bacdbe57

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-10-16
*/

pragma solidity 0.6.2;


// SPDX-License-Identifier: MIT
/*
 * @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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// SPDX-License-Identifier: MIT
/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// SPDX-License-Identifier: MIT
/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @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) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @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 sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @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) {
        // 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 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts 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 mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// SPDX-License-Identifier: MIT
/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// SPDX-License-Identifier: MIT
/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;
    using Address for address;

    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;
        _decimals = 18;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view 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 {_setupDecimals} is
     * called.
     *
     * 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 returns (uint8) {
        return _decimals;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}

// SPDX-License-Identifier: MIT
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

/**
 * @title KiraToken
 * @dev Simple ERC20 Token with freezing and whitelist feature.
 */
contract KiraToken is ERC20, Ownable {
    using SafeMath for uint256;

    // modify token name
    string public constant NAME = 'KIRA Network';
    // modify token symbol
    string public constant SYMBOL = 'KEX';
    // modify token decimals
    uint8 public constant DECIMALS = 6;
    // modify initial token supply
    uint256 public constant INITIAL_SUPPLY = 300000000 * (10**uint256(DECIMALS)); // 300,000,000 tokens

    // indicate if the token is freezed or not
    bool public freezed;

    struct WhitelistInfo {
        // if account has allow deposit permission then it should be possible to deposit tokens to that account
        // as long as accounts depositing have allow_transfer permission
        bool allow_deposit;
        // if account has allow transfer permission then that account should be able to transfer tokens to other
        // accounts with allow_deposit permission
        bool allow_transfer;
        // deposit to the account should be possible even if account depositing has no permission to transfer
        bool allow_unconditional_deposit;
        // transfer from the account should be possible to any account even if the destination account has no
        // deposit permission
        bool allow_unconditional_transfer;
    }

    // represents if the address is blacklisted with the contract. Blacklist takes priority before all other permissions like whitelist
    mapping(address => bool) private _blacklist;

    // represents if the address is whitelisted or not
    mapping(address => WhitelistInfo) private _whitelist;

    // Events
    event WhitelistConfigured(
        address[] addrs,
        bool allow_deposit,
        bool allow_transfer,
        bool allow_unconditional_deposit,
        bool allow_unconditional_transfer
    );
    event AddedToBlacklist(address[] addrs);
    event RemovedFromBlacklist(address[] addrs);

    /**
     * @dev Constructor that gives msg.sender all of existing tokens.
     */
    constructor() public Ownable() ERC20(NAME, SYMBOL) {
        _setupDecimals(DECIMALS);
        _mint(msg.sender, INITIAL_SUPPLY);
        emit Transfer(address(0x0), msg.sender, INITIAL_SUPPLY);
        freezed = true;

        // owner's whitelist
        _whitelist[msg.sender].allow_deposit = true;
        _whitelist[msg.sender].allow_transfer = true;
        _whitelist[msg.sender].allow_unconditional_deposit = true;
        _whitelist[msg.sender].allow_unconditional_transfer = true;
    }

    /**
     * @dev freeze and unfreeze functions
     */
    function freeze() external onlyOwner {
        require(freezed == false, 'KEX: already freezed');
        freezed = true;
    }

    function unfreeze() external onlyOwner {
        require(freezed == true, 'KEX: already unfreezed');
        freezed = false;
    }

    /**
     * @dev configure whitelist to an address
     * @param addrs the addresses to be whitelisted
     * @param allow_deposit boolean variable to indicate if deposit is allowed
     * @param allow_transfer boolean variable to indicate if transfer is allowed
     * @param allow_unconditional_deposit boolean variable to indicate if unconditional deposit is allowed
     * @param allow_unconditional_transfer boolean variable to indicate if unconditional transfer is allowed
     */
    function whitelist(
        address[] calldata addrs,
        bool allow_deposit,
        bool allow_transfer,
        bool allow_unconditional_deposit,
        bool allow_unconditional_transfer
    ) external onlyOwner returns (bool) {
        for (uint256 i = 0; i < addrs.length; i++) {
            address addr = addrs[i];
            require(addr != address(0), 'KEX: address should not be zero');

            _whitelist[addr].allow_deposit = allow_deposit;
            _whitelist[addr].allow_transfer = allow_transfer;
            _whitelist[addr].allow_unconditional_deposit = allow_unconditional_deposit;
            _whitelist[addr].allow_unconditional_transfer = allow_unconditional_transfer;
        }

        emit WhitelistConfigured(addrs, allow_deposit, allow_transfer, allow_unconditional_deposit, allow_unconditional_transfer);

        return true;
    }

    /**
     * @dev add addresses to blacklist
     */
    function addToBlacklist(address[] calldata addrs) external onlyOwner returns (bool) {
        for (uint256 i = 0; i < addrs.length; i++) {
            address addr = addrs[i];
            require(addr != address(0), 'KEX: address should not be zero');

            _blacklist[addr] = true;
        }

        emit AddedToBlacklist(addrs);

        return true;
    }

    /**
     * @dev remove addresses from blacklist
     */
    function removeFromBlacklist(address[] calldata addrs) external onlyOwner returns (bool) {
        for (uint256 i = 0; i < addrs.length; i++) {
            address addr = addrs[i];
            require(addr != address(0), 'KEX: address should not be zero');

            _blacklist[addr] = false;
        }

        emit RemovedFromBlacklist(addrs);

        return true;
    }

    function multiTransfer(address[] calldata addrs, uint256 amount) external returns (bool) {
        require(amount > 0, 'KEX: amount should not be zero');
        require(balanceOf(msg.sender) >= amount.mul(addrs.length), 'KEX: amount should be less than the balance of the sender');

        for (uint256 i = 0; i < addrs.length; i++) {
            address addr = addrs[i];
            require(addr != msg.sender, 'KEX: address should not be sender');
            require(addr != address(0), 'KEX: address should not be zero');

            transfer(addr, amount);
        }

        return true;
    }

    /**
     * @dev Returns if the address is whitelisted or not.
     */
    function whitelisted(address addr)
        public
        view
        returns (
            bool,
            bool,
            bool,
            bool
        )
    {
        return (
            _whitelist[addr].allow_deposit,
            _whitelist[addr].allow_transfer,
            _whitelist[addr].allow_unconditional_deposit,
            _whitelist[addr].allow_unconditional_transfer
        );
    }

    /**
     * @dev Returns if the address is on the blacklist or not.
     */
    function blacklisted(address addr) public view returns (bool) {
        return _blacklist[addr];
    }

    /**
     * @dev Hook before transfer
     * check from and to are whitelisted when the token is freezed
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, amount);
        require(!_blacklist[from], 'KEX: sender is blacklisted.');
        require(!_blacklist[to], 'KEX: receiver is blacklisted.');
        require(
            !freezed ||
                _whitelist[from].allow_unconditional_transfer ||
                _whitelist[to].allow_unconditional_deposit ||
                (_whitelist[from].allow_transfer && _whitelist[to].allow_deposit),
            'KEX: token transfer while freezed and not whitelisted.'
        );
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"addrs","type":"address[]"}],"name":"AddedToBlacklist","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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"addrs","type":"address[]"}],"name":"RemovedFromBlacklist","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"addrs","type":"address[]"},{"indexed":false,"internalType":"bool","name":"allow_deposit","type":"bool"},{"indexed":false,"internalType":"bool","name":"allow_transfer","type":"bool"},{"indexed":false,"internalType":"bool","name":"allow_unconditional_deposit","type":"bool"},{"indexed":false,"internalType":"bool","name":"allow_unconditional_transfer","type":"bool"}],"name":"WhitelistConfigured","type":"event"},{"inputs":[],"name":"DECIMALS","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INITIAL_SUPPLY","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":"SYMBOL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addrs","type":"address[]"}],"name":"addToBlacklist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"blacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"freeze","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freezed","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":"addrs","type":"address[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"multiTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addrs","type":"address[]"}],"name":"removeFromBlacklist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unfreeze","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addrs","type":"address[]"},{"internalType":"bool","name":"allow_deposit","type":"bool"},{"internalType":"bool","name":"allow_transfer","type":"bool"},{"internalType":"bool","name":"allow_unconditional_deposit","type":"bool"},{"internalType":"bool","name":"allow_unconditional_transfer","type":"bool"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"whitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b506040518060400160405280600c81526020016b4b495241204e6574776f726b60a01b815250604051806040016040528060038152602001620968ab60eb1b81525081600390805190602001906200006b92919062000523565b5080516200008190600490602084019062000523565b50506005805460ff19166012179055506000620000a66001600160e01b03620001b716565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506200011160066001600160e01b03620001bc16565b6200012d33660110d9316ec0006001600160e01b03620001d216565b60408051660110d9316ec000815290513391600091600080516020620021678339815191529181900360200190a36005805460ff60a81b1916600160a81b179055336000908152600760205260409020805463ff0000001962ff00001961ff001960ff199093166001179290921661010017919091166201000017166301000000179055620005c5565b335b90565b6005805460ff191660ff92909216919091179055565b6001600160a01b0382166200022e576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b62000245600083836001600160e01b03620002d916565b6200026181600254620004c160201b620016b71790919060201c565b6002556001600160a01b0382166000908152602081815260409091205462000294918390620016b7620004c1821b17901c565b6001600160a01b038316600081815260208181526040808320949094558351858152935192939192600080516020620021678339815191529281900390910190a35050565b620002f1838383620004bc60201b6200193f1760201c565b6001600160a01b03831660009081526006602052604090205460ff161562000360576040805162461bcd60e51b815260206004820152601b60248201527f4b45583a2073656e64657220697320626c61636b6c69737465642e0000000000604482015290519081900360640190fd5b6001600160a01b03821660009081526006602052604090205460ff1615620003cf576040805162461bcd60e51b815260206004820152601d60248201527f4b45583a20726563656976657220697320626c61636b6c69737465642e000000604482015290519081900360640190fd5b600554600160a81b900460ff1615806200040857506001600160a01b0383166000908152600760205260409020546301000000900460ff165b806200043257506001600160a01b03821660009081526007602052604090205462010000900460ff165b806200047f57506001600160a01b038316600090815260076020526040902054610100900460ff1680156200047f57506001600160a01b03821660009081526007602052604090205460ff165b620004bc5760405162461bcd60e51b8152600401808060200182810382526036815260200180620021876036913960400191505060405180910390fd5b505050565b6000828201838110156200051c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200056657805160ff191683800117855562000596565b8280016001018555821562000596579182015b828111156200059657825182559160200191906001019062000579565b50620005a4929150620005a8565b5090565b620001b991905b80821115620005a45760008155600101620005af565b611b9280620005d56000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c806389daf799116100f9578063a9059cbb11610097578063dbac26e911610071578063dbac26e91461060b578063dd62ed3e14610631578063f2fde38b1461065f578063f76f8d7814610685576101a9565b8063a9059cbb14610587578063b7540d9f146105b3578063d936547e146105bb576101a9565b806395d89b41116100d357806395d89b41146104dd578063a16a3179146104e5578063a3f4df7e14610553578063a457c2d71461055b576101a9565b806389daf799146103dd5780638da5cb5b1461044b578063935eb35f1461046f576101a9565b8063313ce5671161016657806362a5af3b1161014057806362a5af3b1461039d5780636a28f000146103a757806370a08231146103af578063715018a6146103d5576101a9565b8063313ce567146102e15780633371f677146102e95780633950935114610371576101a9565b806306fdde03146101ae578063095ea7b31461022b57806318160ddd1461026b57806323b872dd146102855780632e0f2625146102bb5780632ff2e9dc146102d9575b600080fd5b6101b661068d565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101f05781810151838201526020016101d8565b50505050905090810190601f16801561021d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102576004803603604081101561024157600080fd5b506001600160a01b038135169060200135610723565b604080519115158252519081900360200190f35b610273610741565b60408051918252519081900360200190f35b6102576004803603606081101561029b57600080fd5b506001600160a01b03813581169160208101359091169060400135610747565b6102c36107d4565b6040805160ff9092168252519081900360200190f35b6102736107d9565b6102c36107e4565b610257600480360360a08110156102ff57600080fd5b810190602081018135600160201b81111561031957600080fd5b82018360208201111561032b57600080fd5b803590602001918460208302840111600160201b8311171561034c57600080fd5b91935091508035151590602081013515159060408101351515906060013515156107ed565b6102576004803603604081101561038757600080fd5b506001600160a01b0381351690602001356109c6565b6103a5610a1a565b005b6103a5610ae2565b610273600480360360208110156103c557600080fd5b50356001600160a01b0316610baa565b6103a5610bc5565b610257600480360360208110156103f357600080fd5b810190602081018135600160201b81111561040d57600080fd5b82018360208201111561041f57600080fd5b803590602001918460208302840111600160201b8311171561044057600080fd5b509092509050610c72565b610453610de6565b604080516001600160a01b039092168252519081900360200190f35b6102576004803603602081101561048557600080fd5b810190602081018135600160201b81111561049f57600080fd5b8201836020820111156104b157600080fd5b803590602001918460208302840111600160201b831117156104d257600080fd5b509092509050610dfa565b6101b6610f72565b610257600480360360408110156104fb57600080fd5b810190602081018135600160201b81111561051557600080fd5b82018360208201111561052757600080fd5b803590602001918460208302840111600160201b8311171561054857600080fd5b919350915035610fd3565b6101b6611163565b6102576004803603604081101561057157600080fd5b506001600160a01b03813516906020013561118b565b6102576004803603604081101561059d57600080fd5b506001600160a01b0381351690602001356111f9565b61025761120d565b6105e1600480360360208110156105d157600080fd5b50356001600160a01b031661121d565b60408051941515855292151560208501529015158383015215156060830152519081900360800190f35b6102576004803603602081101561062157600080fd5b50356001600160a01b0316611258565b6102736004803603604081101561064757600080fd5b506001600160a01b0381358116916020013516611276565b6103a56004803603602081101561067557600080fd5b50356001600160a01b03166112a1565b6101b66113aa565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107195780601f106106ee57610100808354040283529160200191610719565b820191906000526020600020905b8154815290600101906020018083116106fc57829003601f168201915b5050505050905090565b60006107376107306113c9565b84846113cd565b5060015b92915050565b60025490565b60006107548484846114b9565b6107ca846107606113c9565b6107c585604051806060016040528060288152602001611a71602891396001600160a01b038a1660009081526001602052604081209061079e6113c9565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61162016565b6113cd565b5060019392505050565b600681565b660110d9316ec00081565b60055460ff1690565b60006107f76113c9565b60055461010090046001600160a01b0390811691161461084c576040805162461bcd60e51b81526020600482018190526024820152600080516020611a99833981519152604482015290519081900360640190fd5b60005b8681101561092557600088888381811061086557fe5b905060200201356001600160a01b0316905060006001600160a01b0316816001600160a01b031614156108cd576040805162461bcd60e51b815260206004820152601f60248201526000805160206119f7833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152600760205260409020805460ff19168715151761ff001916610100871515021762ff0000191662010000861515021763ff000000191663010000008515150217905560010161084f565b507fd9d5453489e2027ccdbf73a1c70b58c5ad0a97796a83135a6560d11ff5ea7c498787878787876040518080602001861515151581526020018515151515815260200184151515158152602001831515151581526020018281038252888882818152602001925060200280828437600083820152604051601f909101601f1916909201829003995090975050505050505050a15060019695505050505050565b60006107376109d36113c9565b846107c585600160006109e46113c9565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6116b716565b610a226113c9565b60055461010090046001600160a01b03908116911614610a77576040805162461bcd60e51b81526020600482018190526024820152600080516020611a99833981519152604482015290519081900360640190fd5b600554600160a81b900460ff1615610acd576040805162461bcd60e51b815260206004820152601460248201527312d1560e88185b1c9958591e48199c99595e995960621b604482015290519081900360640190fd5b6005805460ff60a81b1916600160a81b179055565b610aea6113c9565b60055461010090046001600160a01b03908116911614610b3f576040805162461bcd60e51b81526020600482018190526024820152600080516020611a99833981519152604482015290519081900360640190fd5b600554600160a81b900460ff161515600114610b9b576040805162461bcd60e51b815260206004820152601660248201527512d1560e88185b1c9958591e481d5b999c99595e995960521b604482015290519081900360640190fd5b6005805460ff60a81b19169055565b6001600160a01b031660009081526020819052604090205490565b610bcd6113c9565b60055461010090046001600160a01b03908116911614610c22576040805162461bcd60e51b81526020600482018190526024820152600080516020611a99833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b6000610c7c6113c9565b60055461010090046001600160a01b03908116911614610cd1576040805162461bcd60e51b81526020600482018190526024820152600080516020611a99833981519152604482015290519081900360640190fd5b60005b82811015610d79576000848483818110610cea57fe5b905060200201356001600160a01b0316905060006001600160a01b0316816001600160a01b03161415610d52576040805162461bcd60e51b815260206004820152601f60248201526000805160206119f7833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152600660205260409020805460ff19169055600101610cd4565b507f463c099e0eb5f47ac039b921c8eb3310c95935ac01ae409b02ae2bf523c4d89b838360405180806020018281038252848482818152602001925060200280828437600083820152604051601f909101601f19169092018290039550909350505050a150600192915050565b60055461010090046001600160a01b031690565b6000610e046113c9565b60055461010090046001600160a01b03908116911614610e59576040805162461bcd60e51b81526020600482018190526024820152600080516020611a99833981519152604482015290519081900360640190fd5b60005b82811015610f05576000848483818110610e7257fe5b905060200201356001600160a01b0316905060006001600160a01b0316816001600160a01b03161415610eda576040805162461bcd60e51b815260206004820152601f60248201526000805160206119f7833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152600660205260409020805460ff1916600190811790915501610e5c565b507f63d7cad7d7bf03eb0953683c05e99a341b80bd2539aaa4a0abdb7b864ee41d3f838360405180806020018281038252848482818152602001925060200280828437600083820152604051601f909101601f19169092018290039550909350505050a150600192915050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107195780601f106106ee57610100808354040283529160200191610719565b6000808211611029576040805162461bcd60e51b815260206004820152601e60248201527f4b45583a20616d6f756e742073686f756c64206e6f74206265207a65726f0000604482015290519081900360640190fd5b611039828463ffffffff61171816565b61104233610baa565b101561107f5760405162461bcd60e51b8152600401808060200182810382526039815260200180611a386039913960400191505060405180910390fd5b60005b8381101561115857600085858381811061109857fe5b905060200201356001600160a01b03169050336001600160a01b0316816001600160a01b031614156110fb5760405162461bcd60e51b81526004018080602001828103825260218152602001806119d66021913960400191505060405180910390fd5b6001600160a01b038116611144576040805162461bcd60e51b815260206004820152601f60248201526000805160206119f7833981519152604482015290519081900360640190fd5b61114e81856111f9565b5050600101611082565b506001949350505050565b6040518060400160405280600c81526020016b4b495241204e6574776f726b60a01b81525081565b60006107376111986113c9565b846107c585604051806060016040528060258152602001611b3860259139600160006111c26113c9565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61162016565b60006107376112066113c9565b84846114b9565b600554600160a81b900460ff1681565b6001600160a01b031660009081526007602052604090205460ff80821692610100830482169262010000810483169263010000009091041690565b6001600160a01b031660009081526006602052604090205460ff1690565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6112a96113c9565b60055461010090046001600160a01b039081169116146112fe576040805162461bcd60e51b81526020600482018190526024820152600080516020611a99833981519152604482015290519081900360640190fd5b6001600160a01b0381166113435760405162461bcd60e51b81526004018080602001828103825260268152602001806119686026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b604051806040016040528060038152602001620968ab60eb1b81525081565b3390565b6001600160a01b0383166114125760405162461bcd60e51b8152600401808060200182810382526024815260200180611b146024913960400191505060405180910390fd5b6001600160a01b0382166114575760405162461bcd60e51b815260040180806020018281038252602281526020018061198e6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166114fe5760405162461bcd60e51b8152600401808060200182810382526025815260200180611aef6025913960400191505060405180910390fd5b6001600160a01b0382166115435760405162461bcd60e51b81526004018080602001828103825260238152602001806119456023913960400191505060405180910390fd5b61154e838383611771565b611591816040518060600160405280602681526020016119b0602691396001600160a01b038616600090815260208190526040902054919063ffffffff61162016565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546115c6908263ffffffff6116b716565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156116af5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561167457818101518382015260200161165c565b50505050905090810190601f1680156116a15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611711576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000826117275750600061073b565b8282028284828161173457fe5b04146117115760405162461bcd60e51b8152600401808060200182810382526021815260200180611a176021913960400191505060405180910390fd5b61177c83838361193f565b6001600160a01b03831660009081526006602052604090205460ff16156117ea576040805162461bcd60e51b815260206004820152601b60248201527f4b45583a2073656e64657220697320626c61636b6c69737465642e0000000000604482015290519081900360640190fd5b6001600160a01b03821660009081526006602052604090205460ff1615611858576040805162461bcd60e51b815260206004820152601d60248201527f4b45583a20726563656976657220697320626c61636b6c69737465642e000000604482015290519081900360640190fd5b600554600160a81b900460ff16158061189057506001600160a01b0383166000908152600760205260409020546301000000900460ff165b806118b957506001600160a01b03821660009081526007602052604090205462010000900460ff165b8061190457506001600160a01b038316600090815260076020526040902054610100900460ff16801561190457506001600160a01b03821660009081526007602052604090205460ff165b61193f5760405162461bcd60e51b8152600401808060200182810382526036815260200180611ab96036913960400191505060405180910390fd5b50505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654b45583a20616464726573732073686f756c64206e6f742062652073656e6465724b45583a20616464726573732073686f756c64206e6f74206265207a65726f00536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774b45583a20616d6f756e742073686f756c64206265206c657373207468616e207468652062616c616e6365206f66207468652073656e64657245524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724b45583a20746f6b656e207472616e73666572207768696c6520667265657a656420616e64206e6f742077686974656c69737465642e45524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212205e3e4cacac836900102a960099e025f95ea9ff44b32b2cdab94de478839d600164736f6c63430006020033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef4b45583a20746f6b656e207472616e73666572207768696c6520667265657a656420616e64206e6f742077686974656c69737465642e

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101a95760003560e01c806389daf799116100f9578063a9059cbb11610097578063dbac26e911610071578063dbac26e91461060b578063dd62ed3e14610631578063f2fde38b1461065f578063f76f8d7814610685576101a9565b8063a9059cbb14610587578063b7540d9f146105b3578063d936547e146105bb576101a9565b806395d89b41116100d357806395d89b41146104dd578063a16a3179146104e5578063a3f4df7e14610553578063a457c2d71461055b576101a9565b806389daf799146103dd5780638da5cb5b1461044b578063935eb35f1461046f576101a9565b8063313ce5671161016657806362a5af3b1161014057806362a5af3b1461039d5780636a28f000146103a757806370a08231146103af578063715018a6146103d5576101a9565b8063313ce567146102e15780633371f677146102e95780633950935114610371576101a9565b806306fdde03146101ae578063095ea7b31461022b57806318160ddd1461026b57806323b872dd146102855780632e0f2625146102bb5780632ff2e9dc146102d9575b600080fd5b6101b661068d565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101f05781810151838201526020016101d8565b50505050905090810190601f16801561021d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102576004803603604081101561024157600080fd5b506001600160a01b038135169060200135610723565b604080519115158252519081900360200190f35b610273610741565b60408051918252519081900360200190f35b6102576004803603606081101561029b57600080fd5b506001600160a01b03813581169160208101359091169060400135610747565b6102c36107d4565b6040805160ff9092168252519081900360200190f35b6102736107d9565b6102c36107e4565b610257600480360360a08110156102ff57600080fd5b810190602081018135600160201b81111561031957600080fd5b82018360208201111561032b57600080fd5b803590602001918460208302840111600160201b8311171561034c57600080fd5b91935091508035151590602081013515159060408101351515906060013515156107ed565b6102576004803603604081101561038757600080fd5b506001600160a01b0381351690602001356109c6565b6103a5610a1a565b005b6103a5610ae2565b610273600480360360208110156103c557600080fd5b50356001600160a01b0316610baa565b6103a5610bc5565b610257600480360360208110156103f357600080fd5b810190602081018135600160201b81111561040d57600080fd5b82018360208201111561041f57600080fd5b803590602001918460208302840111600160201b8311171561044057600080fd5b509092509050610c72565b610453610de6565b604080516001600160a01b039092168252519081900360200190f35b6102576004803603602081101561048557600080fd5b810190602081018135600160201b81111561049f57600080fd5b8201836020820111156104b157600080fd5b803590602001918460208302840111600160201b831117156104d257600080fd5b509092509050610dfa565b6101b6610f72565b610257600480360360408110156104fb57600080fd5b810190602081018135600160201b81111561051557600080fd5b82018360208201111561052757600080fd5b803590602001918460208302840111600160201b8311171561054857600080fd5b919350915035610fd3565b6101b6611163565b6102576004803603604081101561057157600080fd5b506001600160a01b03813516906020013561118b565b6102576004803603604081101561059d57600080fd5b506001600160a01b0381351690602001356111f9565b61025761120d565b6105e1600480360360208110156105d157600080fd5b50356001600160a01b031661121d565b60408051941515855292151560208501529015158383015215156060830152519081900360800190f35b6102576004803603602081101561062157600080fd5b50356001600160a01b0316611258565b6102736004803603604081101561064757600080fd5b506001600160a01b0381358116916020013516611276565b6103a56004803603602081101561067557600080fd5b50356001600160a01b03166112a1565b6101b66113aa565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107195780601f106106ee57610100808354040283529160200191610719565b820191906000526020600020905b8154815290600101906020018083116106fc57829003601f168201915b5050505050905090565b60006107376107306113c9565b84846113cd565b5060015b92915050565b60025490565b60006107548484846114b9565b6107ca846107606113c9565b6107c585604051806060016040528060288152602001611a71602891396001600160a01b038a1660009081526001602052604081209061079e6113c9565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61162016565b6113cd565b5060019392505050565b600681565b660110d9316ec00081565b60055460ff1690565b60006107f76113c9565b60055461010090046001600160a01b0390811691161461084c576040805162461bcd60e51b81526020600482018190526024820152600080516020611a99833981519152604482015290519081900360640190fd5b60005b8681101561092557600088888381811061086557fe5b905060200201356001600160a01b0316905060006001600160a01b0316816001600160a01b031614156108cd576040805162461bcd60e51b815260206004820152601f60248201526000805160206119f7833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152600760205260409020805460ff19168715151761ff001916610100871515021762ff0000191662010000861515021763ff000000191663010000008515150217905560010161084f565b507fd9d5453489e2027ccdbf73a1c70b58c5ad0a97796a83135a6560d11ff5ea7c498787878787876040518080602001861515151581526020018515151515815260200184151515158152602001831515151581526020018281038252888882818152602001925060200280828437600083820152604051601f909101601f1916909201829003995090975050505050505050a15060019695505050505050565b60006107376109d36113c9565b846107c585600160006109e46113c9565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6116b716565b610a226113c9565b60055461010090046001600160a01b03908116911614610a77576040805162461bcd60e51b81526020600482018190526024820152600080516020611a99833981519152604482015290519081900360640190fd5b600554600160a81b900460ff1615610acd576040805162461bcd60e51b815260206004820152601460248201527312d1560e88185b1c9958591e48199c99595e995960621b604482015290519081900360640190fd5b6005805460ff60a81b1916600160a81b179055565b610aea6113c9565b60055461010090046001600160a01b03908116911614610b3f576040805162461bcd60e51b81526020600482018190526024820152600080516020611a99833981519152604482015290519081900360640190fd5b600554600160a81b900460ff161515600114610b9b576040805162461bcd60e51b815260206004820152601660248201527512d1560e88185b1c9958591e481d5b999c99595e995960521b604482015290519081900360640190fd5b6005805460ff60a81b19169055565b6001600160a01b031660009081526020819052604090205490565b610bcd6113c9565b60055461010090046001600160a01b03908116911614610c22576040805162461bcd60e51b81526020600482018190526024820152600080516020611a99833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b6000610c7c6113c9565b60055461010090046001600160a01b03908116911614610cd1576040805162461bcd60e51b81526020600482018190526024820152600080516020611a99833981519152604482015290519081900360640190fd5b60005b82811015610d79576000848483818110610cea57fe5b905060200201356001600160a01b0316905060006001600160a01b0316816001600160a01b03161415610d52576040805162461bcd60e51b815260206004820152601f60248201526000805160206119f7833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152600660205260409020805460ff19169055600101610cd4565b507f463c099e0eb5f47ac039b921c8eb3310c95935ac01ae409b02ae2bf523c4d89b838360405180806020018281038252848482818152602001925060200280828437600083820152604051601f909101601f19169092018290039550909350505050a150600192915050565b60055461010090046001600160a01b031690565b6000610e046113c9565b60055461010090046001600160a01b03908116911614610e59576040805162461bcd60e51b81526020600482018190526024820152600080516020611a99833981519152604482015290519081900360640190fd5b60005b82811015610f05576000848483818110610e7257fe5b905060200201356001600160a01b0316905060006001600160a01b0316816001600160a01b03161415610eda576040805162461bcd60e51b815260206004820152601f60248201526000805160206119f7833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152600660205260409020805460ff1916600190811790915501610e5c565b507f63d7cad7d7bf03eb0953683c05e99a341b80bd2539aaa4a0abdb7b864ee41d3f838360405180806020018281038252848482818152602001925060200280828437600083820152604051601f909101601f19169092018290039550909350505050a150600192915050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107195780601f106106ee57610100808354040283529160200191610719565b6000808211611029576040805162461bcd60e51b815260206004820152601e60248201527f4b45583a20616d6f756e742073686f756c64206e6f74206265207a65726f0000604482015290519081900360640190fd5b611039828463ffffffff61171816565b61104233610baa565b101561107f5760405162461bcd60e51b8152600401808060200182810382526039815260200180611a386039913960400191505060405180910390fd5b60005b8381101561115857600085858381811061109857fe5b905060200201356001600160a01b03169050336001600160a01b0316816001600160a01b031614156110fb5760405162461bcd60e51b81526004018080602001828103825260218152602001806119d66021913960400191505060405180910390fd5b6001600160a01b038116611144576040805162461bcd60e51b815260206004820152601f60248201526000805160206119f7833981519152604482015290519081900360640190fd5b61114e81856111f9565b5050600101611082565b506001949350505050565b6040518060400160405280600c81526020016b4b495241204e6574776f726b60a01b81525081565b60006107376111986113c9565b846107c585604051806060016040528060258152602001611b3860259139600160006111c26113c9565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61162016565b60006107376112066113c9565b84846114b9565b600554600160a81b900460ff1681565b6001600160a01b031660009081526007602052604090205460ff80821692610100830482169262010000810483169263010000009091041690565b6001600160a01b031660009081526006602052604090205460ff1690565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6112a96113c9565b60055461010090046001600160a01b039081169116146112fe576040805162461bcd60e51b81526020600482018190526024820152600080516020611a99833981519152604482015290519081900360640190fd5b6001600160a01b0381166113435760405162461bcd60e51b81526004018080602001828103825260268152602001806119686026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b604051806040016040528060038152602001620968ab60eb1b81525081565b3390565b6001600160a01b0383166114125760405162461bcd60e51b8152600401808060200182810382526024815260200180611b146024913960400191505060405180910390fd5b6001600160a01b0382166114575760405162461bcd60e51b815260040180806020018281038252602281526020018061198e6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166114fe5760405162461bcd60e51b8152600401808060200182810382526025815260200180611aef6025913960400191505060405180910390fd5b6001600160a01b0382166115435760405162461bcd60e51b81526004018080602001828103825260238152602001806119456023913960400191505060405180910390fd5b61154e838383611771565b611591816040518060600160405280602681526020016119b0602691396001600160a01b038616600090815260208190526040902054919063ffffffff61162016565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546115c6908263ffffffff6116b716565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156116af5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561167457818101518382015260200161165c565b50505050905090810190601f1680156116a15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611711576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000826117275750600061073b565b8282028284828161173457fe5b04146117115760405162461bcd60e51b8152600401808060200182810382526021815260200180611a176021913960400191505060405180910390fd5b61177c83838361193f565b6001600160a01b03831660009081526006602052604090205460ff16156117ea576040805162461bcd60e51b815260206004820152601b60248201527f4b45583a2073656e64657220697320626c61636b6c69737465642e0000000000604482015290519081900360640190fd5b6001600160a01b03821660009081526006602052604090205460ff1615611858576040805162461bcd60e51b815260206004820152601d60248201527f4b45583a20726563656976657220697320626c61636b6c69737465642e000000604482015290519081900360640190fd5b600554600160a81b900460ff16158061189057506001600160a01b0383166000908152600760205260409020546301000000900460ff165b806118b957506001600160a01b03821660009081526007602052604090205462010000900460ff165b8061190457506001600160a01b038316600090815260076020526040902054610100900460ff16801561190457506001600160a01b03821660009081526007602052604090205460ff165b61193f5760405162461bcd60e51b8152600401808060200182810382526036815260200180611ab96036913960400191505060405180910390fd5b50505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654b45583a20616464726573732073686f756c64206e6f742062652073656e6465724b45583a20616464726573732073686f756c64206e6f74206265207a65726f00536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774b45583a20616d6f756e742073686f756c64206265206c657373207468616e207468652062616c616e6365206f66207468652073656e64657245524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724b45583a20746f6b656e207472616e73666572207768696c6520667265657a656420616e64206e6f742077686974656c69737465642e45524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212205e3e4cacac836900102a960099e025f95ea9ff44b32b2cdab94de478839d600164736f6c63430006020033

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.