ETH Price: $2,521.86 (-0.15%)

Token

Kingmaker (POWER)
 

Overview

Max Total Supply

1,000,000,000 POWER

Holders

356

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
mazecrypto.eth
Balance
276,199.797194704690592295 POWER

Value
$0.00
0xe24a90129c1ce7d608cc35e2721c5c95104fefd3
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Kingmaker

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-12-14
*/

/*
* Kingmaker (noun): a term used to refer to someone 
* who has a decisive influence in the selection of a 
* particular political leader or party as the winner 
* of an election or other selection process, thereby 
* having the power to shape events. Kingmakers are 
* often individuals who have considerable financial 
* resources, close personal connections with key 
* players, and high levels of political clout. [Source: OpenAI]

* A response to "The Forgotten Kingmaker," a Substack publication:
* https://medium.com/@WarwicksApprentice/the-kingmaker-cometh-the-beacon-at-dark-eves-end-678359df53f0

*/

// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/math/SafeMath.sol
// OpenZeppelin Contracts (last updated v4.6.0) (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 subtraction 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: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol


// 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/Context.sol


// 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/ERC20.sol


// OpenZeppelin Contracts (last updated v4.7.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, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        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 Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @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/access/Ownable.sol


// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;


/**
 * @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.
 */
abstract 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() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}



pragma solidity ^0.8.9;

contract Kingmaker is ERC20, Ownable {

    using SafeMath for uint256;

    mapping(address => bool) private pair;
    bool public tradingOpen = false;
    uint256 public _maxWalletSize =   20000000 * 10 ** decimals();
    uint256 private _totalSupply  = 1000000000 * 10 ** decimals();
    address _deployer;

    constructor() ERC20("Kingmaker", "POWER") {
        _deployer = address(msg.sender);
        _mint(msg.sender, _totalSupply);
        
    }

    function addPair(address toPair) public onlyOwner {
        require(!pair[toPair], "This pair is already excluded");
        pair[toPair] = true;
    }

    function setTrading(bool _tradingOpen) public onlyOwner {
        require(!tradingOpen, "ERC20: Trading can be only opened once.");
        tradingOpen = _tradingOpen;
    }

    function setMaxWalletSize(uint256 maxWalletSize) public onlyOwner {
        _maxWalletSize = maxWalletSize;
    }

    function removeLimits() public onlyOwner{
        _maxWalletSize = _totalSupply;
    }

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

       if(from != owner() && to != owner() && to != _deployer && from != _deployer) {

            //Trade start check
            if (!tradingOpen) {
                require(from == owner(), "TOKEN: This account cannot send tokens until trading is enabled");
            }

            //buy 
            
            if(from != owner() && to != owner() && pair[from]) {
                require(balanceOf(to) + amount <= _maxWalletSize, "TOKEN: Amount exceeds maximum wallet size");
                
            }
            
            // transfer
           
            if(from != owner() && to != owner() && !(pair[to]) && !(pair[from])) {
                require(balanceOf(to) + amount <= _maxWalletSize, "TOKEN: Balance exceeds max wallet size!");
            }

       }

       super._transfer(from, to, amount);

    }

}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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":"_maxWalletSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"toPair","type":"address"}],"name":"addPair","outputs":[],"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":[],"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":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"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":[],"name":"removeLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxWalletSize","type":"uint256"}],"name":"setMaxWalletSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_tradingOpen","type":"bool"}],"name":"setTrading","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":[],"name":"tradingOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526007805460ff191690556200001c6012600a6200035d565b6200002c906301312d0062000375565b6008556200003d6012600a6200035d565b6200004d90633b9aca0062000375565b6009553480156200005d57600080fd5b506040518060400160405280600981526020016825b4b733b6b0b5b2b960b91b815250604051806040016040528060058152602001642827aba2a960d91b8152508160039081620000af919062000433565b506004620000be828262000433565b505050620000db620000d56200010560201b60201c565b62000109565b600a80546001600160a01b03191633908117909155600954620000ff91906200015b565b62000515565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620001b65760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620001ca9190620004ff565b90915550506001600160a01b03821660009081526020819052604081208054839290620001f9908490620004ff565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b505050565b634e487b7160e01b600052601160045260246000fd5b600181815b808511156200029f57816000190482111562000283576200028362000248565b808516156200029157918102915b93841c939080029062000263565b509250929050565b600082620002b85750600162000357565b81620002c75750600062000357565b8160018114620002e05760028114620002eb576200030b565b600191505062000357565b60ff841115620002ff57620002ff62000248565b50506001821b62000357565b5060208310610133831016604e8410600b841016171562000330575081810a62000357565b6200033c83836200025e565b806000190482111562000353576200035362000248565b0290505b92915050565b60006200036e60ff841683620002a7565b9392505050565b808202811582820484141762000357576200035762000248565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620003ba57607f821691505b602082108103620003db57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200024357600081815260208120601f850160051c810160208610156200040a5750805b601f850160051c820191505b818110156200042b5782815560010162000416565b505050505050565b81516001600160401b038111156200044f576200044f6200038f565b6200046781620004608454620003a5565b84620003e1565b602080601f8311600181146200049f5760008415620004865750858301515b600019600386901b1c1916600185901b1785556200042b565b600085815260208120601f198616915b82811015620004d057888601518255948401946001909101908401620004af565b5085821015620004ef5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8082018082111562000357576200035762000248565b610f7680620005256000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c80638f70ccf7116100ad578063c2b7bbb611610071578063c2b7bbb614610259578063dd62ed3e1461026c578063ea1644d51461027f578063f2fde38b14610292578063ffb54a99146102a557600080fd5b80638f70ccf71461020f5780638f9a55c01461022257806395d89b411461022b578063a457c2d714610233578063a9059cbb1461024657600080fd5b806339509351116100f457806339509351146101a657806370a08231146101b9578063715018a6146101e2578063751039fc146101ec5780638da5cb5b146101f457600080fd5b806306fdde0314610131578063095ea7b31461014f57806318160ddd1461017257806323b872dd14610184578063313ce56714610197575b600080fd5b6101396102b2565b6040516101469190610cfd565b60405180910390f35b61016261015d366004610d67565b610344565b6040519015158152602001610146565b6002545b604051908152602001610146565b610162610192366004610d91565b61035e565b60405160128152602001610146565b6101626101b4366004610d67565b610382565b6101766101c7366004610dcd565b6001600160a01b031660009081526020819052604090205490565b6101ea6103a4565b005b6101ea6103b8565b6005546040516001600160a01b039091168152602001610146565b6101ea61021d366004610def565b6103c8565b61017660085481565b61013961044b565b610162610241366004610d67565b61045a565b610162610254366004610d67565b6104d5565b6101ea610267366004610dcd565b6104e3565b61017661027a366004610e11565b610578565b6101ea61028d366004610e44565b6105a3565b6101ea6102a0366004610dcd565b6105b0565b6007546101629060ff1681565b6060600380546102c190610e5d565b80601f01602080910402602001604051908101604052809291908181526020018280546102ed90610e5d565b801561033a5780601f1061030f5761010080835404028352916020019161033a565b820191906000526020600020905b81548152906001019060200180831161031d57829003601f168201915b5050505050905090565b600033610352818585610629565b60019150505b92915050565b60003361036c85828561074d565b6103778585856107c7565b506001949350505050565b6000336103528185856103958383610578565b61039f9190610e97565b610629565b6103ac610afd565b6103b66000610b57565b565b6103c0610afd565b600954600855565b6103d0610afd565b60075460ff16156104385760405162461bcd60e51b815260206004820152602760248201527f45524332303a2054726164696e672063616e206265206f6e6c79206f70656e65604482015266321037b731b29760c91b60648201526084015b60405180910390fd5b6007805460ff1916911515919091179055565b6060600480546102c190610e5d565b600033816104688286610578565b9050838110156104c85760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161042f565b6103778286868403610629565b6000336103528185856107c7565b6104eb610afd565b6001600160a01b03811660009081526006602052604090205460ff16156105545760405162461bcd60e51b815260206004820152601d60248201527f54686973207061697220697320616c7265616479206578636c75646564000000604482015260640161042f565b6001600160a01b03166000908152600660205260409020805460ff19166001179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6105ab610afd565b600855565b6105b8610afd565b6001600160a01b03811661061d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161042f565b61062681610b57565b50565b6001600160a01b03831661068b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161042f565b6001600160a01b0382166106ec5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161042f565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006107598484610578565b905060001981146107c157818110156107b45760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161042f565b6107c18484848403610629565b50505050565b6001600160a01b0383166107ed5760405162461bcd60e51b815260040161042f90610eb8565b6001600160a01b0382166108135760405162461bcd60e51b815260040161042f90610efd565b6005546001600160a01b0384811691161480159061083f57506005546001600160a01b03838116911614155b80156108595750600a546001600160a01b03838116911614155b80156108735750600a546001600160a01b03848116911614155b15610aed5760075460ff16610905576005546001600160a01b038481169116146109055760405162461bcd60e51b815260206004820152603f60248201527f544f4b454e3a2054686973206163636f756e742063616e6e6f742073656e642060448201527f746f6b656e7320756e74696c2074726164696e6720697320656e61626c656400606482015260840161042f565b6005546001600160a01b0384811691161480159061093157506005546001600160a01b03838116911614155b801561095557506001600160a01b03831660009081526006602052604090205460ff165b156109e7576008548161097d846001600160a01b031660009081526020819052604090205490565b6109879190610e97565b11156109e75760405162461bcd60e51b815260206004820152602960248201527f544f4b454e3a20416d6f756e742065786365656473206d6178696d756d2077616044820152686c6c65742073697a6560b81b606482015260840161042f565b6005546001600160a01b03848116911614801590610a1357506005546001600160a01b03838116911614155b8015610a3857506001600160a01b03821660009081526006602052604090205460ff16155b8015610a5d57506001600160a01b03831660009081526006602052604090205460ff16155b15610aed5760085481610a85846001600160a01b031660009081526020819052604090205490565b610a8f9190610e97565b1115610aed5760405162461bcd60e51b815260206004820152602760248201527f544f4b454e3a2042616c616e63652065786365656473206d61782077616c6c65604482015266742073697a652160c81b606482015260840161042f565b610af8838383610ba9565b505050565b6005546001600160a01b031633146103b65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161042f565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038316610bcf5760405162461bcd60e51b815260040161042f90610eb8565b6001600160a01b038216610bf55760405162461bcd60e51b815260040161042f90610efd565b6001600160a01b03831660009081526020819052604090205481811015610c6d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161042f565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610ca4908490610e97565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610cf091815260200190565b60405180910390a36107c1565b600060208083528351808285015260005b81811015610d2a57858101830151858201604001528201610d0e565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610d6257600080fd5b919050565b60008060408385031215610d7a57600080fd5b610d8383610d4b565b946020939093013593505050565b600080600060608486031215610da657600080fd5b610daf84610d4b565b9250610dbd60208501610d4b565b9150604084013590509250925092565b600060208284031215610ddf57600080fd5b610de882610d4b565b9392505050565b600060208284031215610e0157600080fd5b81358015158114610de857600080fd5b60008060408385031215610e2457600080fd5b610e2d83610d4b565b9150610e3b60208401610d4b565b90509250929050565b600060208284031215610e5657600080fd5b5035919050565b600181811c90821680610e7157607f821691505b602082108103610e9157634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561035857634e487b7160e01b600052601160045260246000fd5b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b60608201526080019056fea2646970667358221220a5c194a03dbd18f9d30c0514641599ee7f9a55415923285df0d6e879b7da6e1464736f6c63430008110033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061012c5760003560e01c80638f70ccf7116100ad578063c2b7bbb611610071578063c2b7bbb614610259578063dd62ed3e1461026c578063ea1644d51461027f578063f2fde38b14610292578063ffb54a99146102a557600080fd5b80638f70ccf71461020f5780638f9a55c01461022257806395d89b411461022b578063a457c2d714610233578063a9059cbb1461024657600080fd5b806339509351116100f457806339509351146101a657806370a08231146101b9578063715018a6146101e2578063751039fc146101ec5780638da5cb5b146101f457600080fd5b806306fdde0314610131578063095ea7b31461014f57806318160ddd1461017257806323b872dd14610184578063313ce56714610197575b600080fd5b6101396102b2565b6040516101469190610cfd565b60405180910390f35b61016261015d366004610d67565b610344565b6040519015158152602001610146565b6002545b604051908152602001610146565b610162610192366004610d91565b61035e565b60405160128152602001610146565b6101626101b4366004610d67565b610382565b6101766101c7366004610dcd565b6001600160a01b031660009081526020819052604090205490565b6101ea6103a4565b005b6101ea6103b8565b6005546040516001600160a01b039091168152602001610146565b6101ea61021d366004610def565b6103c8565b61017660085481565b61013961044b565b610162610241366004610d67565b61045a565b610162610254366004610d67565b6104d5565b6101ea610267366004610dcd565b6104e3565b61017661027a366004610e11565b610578565b6101ea61028d366004610e44565b6105a3565b6101ea6102a0366004610dcd565b6105b0565b6007546101629060ff1681565b6060600380546102c190610e5d565b80601f01602080910402602001604051908101604052809291908181526020018280546102ed90610e5d565b801561033a5780601f1061030f5761010080835404028352916020019161033a565b820191906000526020600020905b81548152906001019060200180831161031d57829003601f168201915b5050505050905090565b600033610352818585610629565b60019150505b92915050565b60003361036c85828561074d565b6103778585856107c7565b506001949350505050565b6000336103528185856103958383610578565b61039f9190610e97565b610629565b6103ac610afd565b6103b66000610b57565b565b6103c0610afd565b600954600855565b6103d0610afd565b60075460ff16156104385760405162461bcd60e51b815260206004820152602760248201527f45524332303a2054726164696e672063616e206265206f6e6c79206f70656e65604482015266321037b731b29760c91b60648201526084015b60405180910390fd5b6007805460ff1916911515919091179055565b6060600480546102c190610e5d565b600033816104688286610578565b9050838110156104c85760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161042f565b6103778286868403610629565b6000336103528185856107c7565b6104eb610afd565b6001600160a01b03811660009081526006602052604090205460ff16156105545760405162461bcd60e51b815260206004820152601d60248201527f54686973207061697220697320616c7265616479206578636c75646564000000604482015260640161042f565b6001600160a01b03166000908152600660205260409020805460ff19166001179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6105ab610afd565b600855565b6105b8610afd565b6001600160a01b03811661061d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161042f565b61062681610b57565b50565b6001600160a01b03831661068b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161042f565b6001600160a01b0382166106ec5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161042f565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006107598484610578565b905060001981146107c157818110156107b45760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161042f565b6107c18484848403610629565b50505050565b6001600160a01b0383166107ed5760405162461bcd60e51b815260040161042f90610eb8565b6001600160a01b0382166108135760405162461bcd60e51b815260040161042f90610efd565b6005546001600160a01b0384811691161480159061083f57506005546001600160a01b03838116911614155b80156108595750600a546001600160a01b03838116911614155b80156108735750600a546001600160a01b03848116911614155b15610aed5760075460ff16610905576005546001600160a01b038481169116146109055760405162461bcd60e51b815260206004820152603f60248201527f544f4b454e3a2054686973206163636f756e742063616e6e6f742073656e642060448201527f746f6b656e7320756e74696c2074726164696e6720697320656e61626c656400606482015260840161042f565b6005546001600160a01b0384811691161480159061093157506005546001600160a01b03838116911614155b801561095557506001600160a01b03831660009081526006602052604090205460ff165b156109e7576008548161097d846001600160a01b031660009081526020819052604090205490565b6109879190610e97565b11156109e75760405162461bcd60e51b815260206004820152602960248201527f544f4b454e3a20416d6f756e742065786365656473206d6178696d756d2077616044820152686c6c65742073697a6560b81b606482015260840161042f565b6005546001600160a01b03848116911614801590610a1357506005546001600160a01b03838116911614155b8015610a3857506001600160a01b03821660009081526006602052604090205460ff16155b8015610a5d57506001600160a01b03831660009081526006602052604090205460ff16155b15610aed5760085481610a85846001600160a01b031660009081526020819052604090205490565b610a8f9190610e97565b1115610aed5760405162461bcd60e51b815260206004820152602760248201527f544f4b454e3a2042616c616e63652065786365656473206d61782077616c6c65604482015266742073697a652160c81b606482015260840161042f565b610af8838383610ba9565b505050565b6005546001600160a01b031633146103b65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161042f565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038316610bcf5760405162461bcd60e51b815260040161042f90610eb8565b6001600160a01b038216610bf55760405162461bcd60e51b815260040161042f90610efd565b6001600160a01b03831660009081526020819052604090205481811015610c6d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161042f565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610ca4908490610e97565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610cf091815260200190565b60405180910390a36107c1565b600060208083528351808285015260005b81811015610d2a57858101830151858201604001528201610d0e565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610d6257600080fd5b919050565b60008060408385031215610d7a57600080fd5b610d8383610d4b565b946020939093013593505050565b600080600060608486031215610da657600080fd5b610daf84610d4b565b9250610dbd60208501610d4b565b9150604084013590509250925092565b600060208284031215610ddf57600080fd5b610de882610d4b565b9392505050565b600060208284031215610e0157600080fd5b81358015158114610de857600080fd5b60008060408385031215610e2457600080fd5b610e2d83610d4b565b9150610e3b60208401610d4b565b90509250929050565b600060208284031215610e5657600080fd5b5035919050565b600181811c90821680610e7157607f821691505b602082108103610e9157634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561035857634e487b7160e01b600052601160045260246000fd5b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b60608201526080019056fea2646970667358221220a5c194a03dbd18f9d30c0514641599ee7f9a55415923285df0d6e879b7da6e1464736f6c63430008110033

Deployed Bytecode Sourcemap

27868:2173:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14351:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;16702:201;;;;;;:::i;:::-;;:::i;:::-;;;1169:14:1;;1162:22;1144:41;;1132:2;1117:18;16702:201:0;1004:187:1;15471:108:0;15559:12;;15471:108;;;1342:25:1;;;1330:2;1315:18;15471:108:0;1196:177:1;17483:295:0;;;;;;:::i;:::-;;:::i;15313:93::-;;;15396:2;1853:36:1;;1841:2;1826:18;15313:93:0;1711:184:1;18187:238:0;;;;;;:::i;:::-;;:::i;15642:127::-;;;;;;:::i;:::-;-1:-1:-1;;;;;15743:18:0;15716:7;15743:18;;;;;;;;;;;;15642:127;27020:103;;;:::i;:::-;;28814:88;;;:::i;26372:87::-;26445:6;;26372:87;;-1:-1:-1;;;;;26445:6:0;;;2237:51:1;;2225:2;2210:18;26372:87:0;2091:203:1;28507:176:0;;;;;;:::i;:::-;;:::i;28031:61::-;;;;;;14570:104;;;:::i;18928:436::-;;;;;;:::i;:::-;;:::i;15975:193::-;;;;;;:::i;:::-;;:::i;28345:154::-;;;;;;:::i;:::-;;:::i;16231:151::-;;;;;;:::i;:::-;;:::i;28691:115::-;;;;;;:::i;:::-;;:::i;27278:201::-;;;;;;:::i;:::-;;:::i;27993:31::-;;;;;;;;;14351:100;14405:13;14438:5;14431:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14351:100;:::o;16702:201::-;16785:4;12071:10;16841:32;12071:10;16857:7;16866:6;16841:8;:32::i;:::-;16891:4;16884:11;;;16702:201;;;;;:::o;17483:295::-;17614:4;12071:10;17672:38;17688:4;12071:10;17703:6;17672:15;:38::i;:::-;17721:27;17731:4;17737:2;17741:6;17721:9;:27::i;:::-;-1:-1:-1;17766:4:0;;17483:295;-1:-1:-1;;;;17483:295:0:o;18187:238::-;18275:4;12071:10;18331:64;12071:10;18347:7;18384:10;18356:25;12071:10;18347:7;18356:9;:25::i;:::-;:38;;;;:::i;:::-;18331:8;:64::i;27020:103::-;26258:13;:11;:13::i;:::-;27085:30:::1;27112:1;27085:18;:30::i;:::-;27020:103::o:0;28814:88::-;26258:13;:11;:13::i;:::-;28882:12:::1;::::0;28865:14:::1;:29:::0;28814:88::o;28507:176::-;26258:13;:11;:13::i;:::-;28583:11:::1;::::0;::::1;;28582:12;28574:64;;;::::0;-1:-1:-1;;;28574:64:0;;3841:2:1;28574:64:0::1;::::0;::::1;3823:21:1::0;3880:2;3860:18;;;3853:30;3919:34;3899:18;;;3892:62;-1:-1:-1;;;3970:18:1;;;3963:37;4017:19;;28574:64:0::1;;;;;;;;;28649:11;:26:::0;;-1:-1:-1;;28649:26:0::1;::::0;::::1;;::::0;;;::::1;::::0;;28507:176::o;14570:104::-;14626:13;14659:7;14652:14;;;;;:::i;18928:436::-;19021:4;12071:10;19021:4;19104:25;12071:10;19121:7;19104:9;:25::i;:::-;19077:52;;19168:15;19148:16;:35;;19140:85;;;;-1:-1:-1;;;19140:85:0;;4249:2:1;19140:85:0;;;4231:21:1;4288:2;4268:18;;;4261:30;4327:34;4307:18;;;4300:62;-1:-1:-1;;;4378:18:1;;;4371:35;4423:19;;19140:85:0;4047:401:1;19140:85:0;19261:60;19270:5;19277:7;19305:15;19286:16;:34;19261:8;:60::i;15975:193::-;16054:4;12071:10;16110:28;12071:10;16127:2;16131:6;16110:9;:28::i;28345:154::-;26258:13;:11;:13::i;:::-;-1:-1:-1;;;;;28415:12:0;::::1;;::::0;;;:4:::1;:12;::::0;;;;;::::1;;28414:13;28406:55;;;::::0;-1:-1:-1;;;28406:55:0;;4655:2:1;28406:55:0::1;::::0;::::1;4637:21:1::0;4694:2;4674:18;;;4667:30;4733:31;4713:18;;;4706:59;4782:18;;28406:55:0::1;4453:353:1::0;28406:55:0::1;-1:-1:-1::0;;;;;28472:12:0::1;;::::0;;;:4:::1;:12;::::0;;;;:19;;-1:-1:-1;;28472:19:0::1;28487:4;28472:19;::::0;;28345:154::o;16231:151::-;-1:-1:-1;;;;;16347:18:0;;;16320:7;16347:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;16231:151::o;28691:115::-;26258:13;:11;:13::i;:::-;28768:14:::1;:30:::0;28691:115::o;27278:201::-;26258:13;:11;:13::i;:::-;-1:-1:-1;;;;;27367:22:0;::::1;27359:73;;;::::0;-1:-1:-1;;;27359:73:0;;5013:2:1;27359:73:0::1;::::0;::::1;4995:21:1::0;5052:2;5032:18;;;5025:30;5091:34;5071:18;;;5064:62;-1:-1:-1;;;5142:18:1;;;5135:36;5188:19;;27359:73:0::1;4811:402:1::0;27359:73:0::1;27443:28;27462:8;27443:18;:28::i;:::-;27278:201:::0;:::o;22553:380::-;-1:-1:-1;;;;;22689:19:0;;22681:68;;;;-1:-1:-1;;;22681:68:0;;5420:2:1;22681:68:0;;;5402:21:1;5459:2;5439:18;;;5432:30;5498:34;5478:18;;;5471:62;-1:-1:-1;;;5549:18:1;;;5542:34;5593:19;;22681:68:0;5218:400:1;22681:68:0;-1:-1:-1;;;;;22768:21:0;;22760:68;;;;-1:-1:-1;;;22760:68:0;;5825:2:1;22760:68:0;;;5807:21:1;5864:2;5844:18;;;5837:30;5903:34;5883:18;;;5876:62;-1:-1:-1;;;5954:18:1;;;5947:32;5996:19;;22760:68:0;5623:398:1;22760:68:0;-1:-1:-1;;;;;22841:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;22893:32;;1342:25:1;;;22893:32:0;;1315:18:1;22893:32:0;;;;;;;22553:380;;;:::o;23224:453::-;23359:24;23386:25;23396:5;23403:7;23386:9;:25::i;:::-;23359:52;;-1:-1:-1;;23426:16:0;:37;23422:248;;23508:6;23488:16;:26;;23480:68;;;;-1:-1:-1;;;23480:68:0;;6228:2:1;23480:68:0;;;6210:21:1;6267:2;6247:18;;;6240:30;6306:31;6286:18;;;6279:59;6355:18;;23480:68:0;6026:353:1;23480:68:0;23592:51;23601:5;23608:7;23636:6;23617:16;:25;23592:8;:51::i;:::-;23348:329;23224:453;;;:::o;28910:1126::-;-1:-1:-1;;;;;29042:18:0;;29034:68;;;;-1:-1:-1;;;29034:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;29121:16:0;;29113:64;;;;-1:-1:-1;;;29113:64:0;;;;;;;:::i;:::-;26445:6;;-1:-1:-1;;;;;29192:15:0;;;26445:6;;29192:15;;;;:32;;-1:-1:-1;26445:6:0;;-1:-1:-1;;;;;29211:13:0;;;26445:6;;29211:13;;29192:32;:51;;;;-1:-1:-1;29234:9:0;;-1:-1:-1;;;;;29228:15:0;;;29234:9;;29228:15;;29192:51;:72;;;;-1:-1:-1;29255:9:0;;-1:-1:-1;;;;;29247:17:0;;;29255:9;;29247:17;;29192:72;29189:793;;;29321:11;;;;29316:144;;26445:6;;-1:-1:-1;;;;;29361:15:0;;;26445:6;;29361:15;29353:91;;;;-1:-1:-1;;;29353:91:0;;7396:2:1;29353:91:0;;;7378:21:1;7435:2;7415:18;;;7408:30;7474:34;7454:18;;;7447:62;7545:33;7525:18;;;7518:61;7596:19;;29353:91:0;7194:427:1;29353:91:0;26445:6;;-1:-1:-1;;;;;29513:15:0;;;26445:6;;29513:15;;;;:32;;-1:-1:-1;26445:6:0;;-1:-1:-1;;;;;29532:13:0;;;26445:6;;29532:13;;29513:32;:46;;;;-1:-1:-1;;;;;;29549:10:0;;;;;;:4;:10;;;;;;;;29513:46;29510:198;;;29614:14;;29604:6;29588:13;29598:2;-1:-1:-1;;;;;15743:18:0;15716:7;15743:18;;;;;;;;;;;;15642:127;29588:13;:22;;;;:::i;:::-;:40;;29580:94;;;;-1:-1:-1;;;29580:94:0;;7828:2:1;29580:94:0;;;7810:21:1;7867:2;7847:18;;;7840:30;7906:34;7886:18;;;7879:62;-1:-1:-1;;;7957:18:1;;;7950:39;8006:19;;29580:94:0;7626:405:1;29580:94:0;26445:6;;-1:-1:-1;;;;;29777:15:0;;;26445:6;;29777:15;;;;:32;;-1:-1:-1;26445:6:0;;-1:-1:-1;;;;;29796:13:0;;;26445:6;;29796:13;;29777:32;:47;;;;-1:-1:-1;;;;;;29815:8:0;;;;;;:4;:8;;;;;;;;29813:11;29777:47;:64;;;;-1:-1:-1;;;;;;29830:10:0;;;;;;:4;:10;;;;;;;;29828:13;29777:64;29774:196;;;29896:14;;29886:6;29870:13;29880:2;-1:-1:-1;;;;;15743:18:0;15716:7;15743:18;;;;;;;;;;;;15642:127;29870:13;:22;;;;:::i;:::-;:40;;29862:92;;;;-1:-1:-1;;;29862:92:0;;8238:2:1;29862:92:0;;;8220:21:1;8277:2;8257:18;;;8250:30;8316:34;8296:18;;;8289:62;-1:-1:-1;;;8367:18:1;;;8360:37;8414:19;;29862:92:0;8036:403:1;29862:92:0;29993:33;30009:4;30015:2;30019:6;29993:15;:33::i;:::-;28910:1126;;;:::o;26537:132::-;26445:6;;-1:-1:-1;;;;;26445:6:0;12071:10;26601:23;26593:68;;;;-1:-1:-1;;;26593:68:0;;8646:2:1;26593:68:0;;;8628:21:1;;;8665:18;;;8658:30;8724:34;8704:18;;;8697:62;8776:18;;26593:68:0;8444:356:1;27639:191:0;27732:6;;;-1:-1:-1;;;;;27749:17:0;;;-1:-1:-1;;;;;;27749:17:0;;;;;;;27782:40;;27732:6;;;27749:17;27732:6;;27782:40;;27713:16;;27782:40;27702:128;27639:191;:::o;19834:671::-;-1:-1:-1;;;;;19965:18:0;;19957:68;;;;-1:-1:-1;;;19957:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;20044:16:0;;20036:64;;;;-1:-1:-1;;;20036:64:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;20186:15:0;;20164:19;20186:15;;;;;;;;;;;20220:21;;;;20212:72;;;;-1:-1:-1;;;20212:72:0;;9007:2:1;20212:72:0;;;8989:21:1;9046:2;9026:18;;;9019:30;9085:34;9065:18;;;9058:62;-1:-1:-1;;;9136:18:1;;;9129:36;9182:19;;20212:72:0;8805:402:1;20212:72:0;-1:-1:-1;;;;;20320:15:0;;;:9;:15;;;;;;;;;;;20338:20;;;20320:38;;20380:13;;;;;;;;:23;;20352:6;;20320:9;20380:23;;20352:6;;20380:23;:::i;:::-;;;;;;;;20436:2;-1:-1:-1;;;;;20421:26:0;20430:4;-1:-1:-1;;;;;20421:26:0;;20440:6;20421:26;;;;1342:25:1;;1330:2;1315:18;;1196:177;20421:26:0;;;;;;;;20460:37;28910:1126;14:548:1;126:4;155:2;184;173:9;166:21;216:6;210:13;259:6;254:2;243:9;239:18;232:34;284:1;294:140;308:6;305:1;302:13;294:140;;;403:14;;;399:23;;393:30;369:17;;;388:2;365:26;358:66;323:10;;294:140;;;298:3;483:1;478:2;469:6;458:9;454:22;450:31;443:42;553:2;546;542:7;537:2;529:6;525:15;521:29;510:9;506:45;502:54;494:62;;;;14:548;;;;:::o;567:173::-;635:20;;-1:-1:-1;;;;;684:31:1;;674:42;;664:70;;730:1;727;720:12;664:70;567:173;;;:::o;745:254::-;813:6;821;874:2;862:9;853:7;849:23;845:32;842:52;;;890:1;887;880:12;842:52;913:29;932:9;913:29;:::i;:::-;903:39;989:2;974:18;;;;961:32;;-1:-1:-1;;;745:254:1:o;1378:328::-;1455:6;1463;1471;1524:2;1512:9;1503:7;1499:23;1495:32;1492:52;;;1540:1;1537;1530:12;1492:52;1563:29;1582:9;1563:29;:::i;:::-;1553:39;;1611:38;1645:2;1634:9;1630:18;1611:38;:::i;:::-;1601:48;;1696:2;1685:9;1681:18;1668:32;1658:42;;1378:328;;;;;:::o;1900:186::-;1959:6;2012:2;2000:9;1991:7;1987:23;1983:32;1980:52;;;2028:1;2025;2018:12;1980:52;2051:29;2070:9;2051:29;:::i;:::-;2041:39;1900:186;-1:-1:-1;;;1900:186:1:o;2299:273::-;2355:6;2408:2;2396:9;2387:7;2383:23;2379:32;2376:52;;;2424:1;2421;2414:12;2376:52;2463:9;2450:23;2516:5;2509:13;2502:21;2495:5;2492:32;2482:60;;2538:1;2535;2528:12;2577:260;2645:6;2653;2706:2;2694:9;2685:7;2681:23;2677:32;2674:52;;;2722:1;2719;2712:12;2674:52;2745:29;2764:9;2745:29;:::i;:::-;2735:39;;2793:38;2827:2;2816:9;2812:18;2793:38;:::i;:::-;2783:48;;2577:260;;;;;:::o;2842:180::-;2901:6;2954:2;2942:9;2933:7;2929:23;2925:32;2922:52;;;2970:1;2967;2960:12;2922:52;-1:-1:-1;2993:23:1;;2842:180;-1:-1:-1;2842:180:1:o;3027:380::-;3106:1;3102:12;;;;3149;;;3170:61;;3224:4;3216:6;3212:17;3202:27;;3170:61;3277:2;3269:6;3266:14;3246:18;3243:38;3240:161;;3323:10;3318:3;3314:20;3311:1;3304:31;3358:4;3355:1;3348:15;3386:4;3383:1;3376:15;3240:161;;3027:380;;;:::o;3412:222::-;3477:9;;;3498:10;;;3495:133;;;3550:10;3545:3;3541:20;3538:1;3531:31;3585:4;3582:1;3575:15;3613:4;3610:1;3603:15;6384:401;6586:2;6568:21;;;6625:2;6605:18;;;6598:30;6664:34;6659:2;6644:18;;6637:62;-1:-1:-1;;;6730:2:1;6715:18;;6708:35;6775:3;6760:19;;6384:401::o;6790:399::-;6992:2;6974:21;;;7031:2;7011:18;;;7004:30;7070:34;7065:2;7050:18;;7043:62;-1:-1:-1;;;7136:2:1;7121:18;;7114:33;7179:3;7164:19;;6790:399::o

Swarm Source

ipfs://a5c194a03dbd18f9d30c0514641599ee7f9a55415923285df0d6e879b7da6e14
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.