ETH Price: $3,278.07 (-3.88%)
Gas: 14 Gwei

Token

Baby Psyop (BPSYOP)
 

Overview

Max Total Supply

100,000,000,000 BPSYOP

Holders

237

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
whoisprince.eth
Balance
0.000000001437884971 BPSYOP

Value
$0.00
0xd7edd01e048d00019671df50d529f35b13fa8234
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:
BabyPsyop

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion
File 1 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @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. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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);
    }
}

File 2 of 10 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of 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}.
     *
     * 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 default value returned by this function, unless
     * it's overridden.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual 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;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _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;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _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;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _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 3 of 10 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 4 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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 5 of 10 : Context.sol
// SPDX-License-Identifier: MIT
// 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 6 of 10 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```solidity
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
 * unusable.
 * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
 * array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        bytes32[] memory store = _values(set._inner);
        bytes32[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

File 7 of 10 : IUniswapV2Factory.sol
pragma solidity >=0.5.0;

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

File 8 of 10 : IUniswapV2Router01.sol
pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

File 9 of 10 : IUniswapV2Router02.sol
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

File 10 of 10 : BabyPsyop.sol
/* 
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&BB##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&&BY??YG#&P5PGB#&&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@&B&BYJJJ5GGY7?JPG7.::^^~7J5G#&@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@#PJ!~:?PBG5Y?7?5P??JYB5^::...:::^~?5B&@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@BY7^:::.::~?G#GYJ?7?J7???5P55J?~^:::::::~JG&@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@&P!:.::::^7YPP5YJ?777777777777?J5PGGPJ!:.:::.:~JB@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@#Y~..::::7PG5J7777777777777777777777?JYPGGY!:::::.:7G@@@@@@@@@@@@@
@@@@@@@@@@@@&Y^.:::::7GGJ77777777777JY5YYY55J77777777?JY5BP7:::::::7B@@@@@@@@@@@
@@@@@@@@@@@G~.:::::^5#Y77777777777YPJ~.....^?PY7777777?JJJ5BP~:::::.:J&@@@@@@@@@
@@@@@@@@@&J:::::^^~BB777777777777YG^  !JY5J: .P5!777777?JJJJGB7^^::::.~G@@@@@@@@
@@@@@@@@#7.::::^^~GG7777777777777B!  :#GB&@5  ^#?7777777?JJJJP#7^^::::::5@@@@@@@
@@@@@@@#!.::::^^^5#77??JJJJJ?7777GJ   7PBB5^  !B77777????YJJJJP#!^^^:::::5@@@@@@
@@@@@@&!.::::^^^7&J77?GGPPPPGG?77JBJ:       :?BJ777YBGPGGGBPJJJBG^^^^:::::5@@@@@
@@@@@&?.::::^^^^GB??J?JYYYYYYJ7777?5P5?7!!?YP5?7777?YY55PPP5YYY5&7^^^^::::^B@@@@
@@@@@G:::::~?5PPBGGGGGGGGGGGGP55J7777JYYYYJ?77!7JY5PPGGGGGGGGGGGBGP5J!^:::.7&@@@
@@@@&7.:::7BBY?5P5YJ?77!!!77J5PPPPY7777!!!!777YP5PG5Y?7!!!77?JY5PP5?5#5:::::B@@@
@@@@#^::::5&G5JG5:::::::::::::JPG5GP?JYYYYYJ?PP5GGP~::::::::::::~PPY5B#^:::.Y@@@
@@@@G:::::~?G#5B!::::::::::::!!:7G5BGPPPPPPPBGYG77^~:::::::::::::JGP#5!^::::7&@@
@@@@P:::::^^J&PG?::::::::::::7^::G5GGY5PPP55BPP5:~:~:::::::::::::5PG&~^^::::!&@@
@@@@P:::::^^~#BPP:::::::::::::::^B5G#G5Y55PB#P5P::::::::::::::::^GP#G^^^::::7&@@
@@@@B:::::^^^J&GG5~::::::::::::^5P5#PJ~^~!?5GB5BY::::::::::::::~PGB#7^^^:::.?@@@
@@@@&!::::^^^^Y#BGGY?~^^:::^~!JGG5PJ~~~~~~!!!JPPBGJ!^::::::^~?5GB&B7^^^::::.5@@@
@@@@@5.::::^^^^7G&#BBBBGPPGGBBG5YJ?JYJJJ???JJJJYYPGBGGPPPPGGBBB&&5~^^^^::::~#@@@
@@@@@&!::::^^^^^^?GB5YJ5PPP555Y555GP5J?7777?Y5PGP555PPPGGPP55G#P!^^^^^::::.5@@@@
@@@@@@G:::::^^^^^^^?5GPYJJ???777777?JYY5YYYYJJ???????JJJYYPGGY!^^^^^^::::.7&@@@@
@@@@@@@P::::::^^^^^^^~?YPGGP5YYJ???????????????JJJYY5PGGGPY7~^^^^^^^::::.~#@@@@@
@@@@@@@@P^:::::^^^^^^^^^^~!?JY5B###BG5YJJJYY5G#####5J?7!~^^^^^^^^^:::::.~B@@@@@@
@@@@@@@@@B~.:::::^^^^^^^^^^^!YGGB57^.        .^?PBGG5!^^^^^^^^^^^:::::.7#@@@@@@@
@@@@@@@@@@&J:.:::::^^!YY!~?PB5JG7               .?BJ5BG?^7Y?^^::::::.:Y&@@@@@@@@
@@@@@@@@@@@@G!::::::~#BGB##G#PP!                 :?GP#BBB#G&5:.:::::7B@@@@@@@@@@
@@@@@@@@@@@@@@P!:.:YGG7~!J5PP#B                  ^^##PP5J!~JGGJ:.:7G@@@@@@@@@@@@
@@@@@@@@@@@@@@@@G77@5?J?~~!7!5&~                :^?&J~7!~!?J?G#~?G@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@#&G!!JY!~~~?&J              .:^:P#!!~!?YJ!7B&#@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@G?!7Y?!~7BG~.      ....::^:^7#P~~!JY7!?B@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@&#BBGPP5Y5BGY??J77#B#GY7~^^^:^^^^~7YGB#G77J??YGG555PGB##&@@@@@@@@@@@
@@@@@@@@@@@5?!!~~~~~!!!?5GGPPGB5Y?Y5PPPP5555PPP5?JYBGPPGG5?!~~~~~~!!?Y#@@@@@@@@@
@@@@@@@@@@@&#BGPP5YYJJ??777???!!!!!!!!777?777!!!!!!!7???77?JJYY5PPGB#&@@@@@@@@@@

BabyPsyop is a deflationary token that rewards holders with ETH.
$BPSYOP Twitter: https://twitter.com/bpsyopeth
$BPSYOP Telegram: https://t.me/bpsyoptoken
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import {IUniswapV2Factory} from "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import {IUniswapV2Router02} from "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";

contract BabyPsyop is ERC20, Ownable {
    using EnumerableSet for EnumerableSet.AddressSet;

    address constant DEAD_ADDRESS = 0x000000000000000000000000000000000000dEaD;
    address constant ZERO_ADDRESS = address(0);
    address constant MARKETING_ADDRESS = 0x49B8bEbfB16427eE7189E889685f8f7e530f33A3;
    address constant ROUTER_ADDRESS = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
    uint256 constant MAGNITUDE = 2 ** 128;

    IUniswapV2Router02 immutable ROUTER;
    address immutable WETH_ADDRESS;
    address immutable PAIR_ADDRESS;

    /**
     * Initializes the contract upon deployment.
     * Mints an initial supply of 100,000,000,000 BPSYOP tokens to the deployer's address.
     * Sets up the Uniswap router and retrieves the WETH address.
     * Creates a Uniswap pair for BPSYOP tokens and WETH.
     */
    constructor() payable ERC20("Baby Psyop", "BPSYOP") {
        _mint(msg.sender, 100_000_000_000 * 1e18);
        ROUTER = IUniswapV2Router02(ROUTER_ADDRESS);
        WETH_ADDRESS = ROUTER.WETH();
        PAIR_ADDRESS = IUniswapV2Factory(ROUTER.factory()).createPair(address(this), WETH_ADDRESS);

        address contractAddress = address(this);
        isExcludedFromTaxes[msg.sender] = true;
        isExcludedFromTaxes[contractAddress] = true;
        isExcludedFromTaxes[MARKETING_ADDRESS] = true;
        isExcludedFromRewards.add(msg.sender);
        isExcludedFromRewards.add(contractAddress);
        isExcludedFromRewards.add(MARKETING_ADDRESS);
        isExcludedFromRewards.add(PAIR_ADDRESS);
        isExcludedFromRewards.add(ROUTER_ADDRESS);
    }

    struct Rewards {
        uint256 lifetimeRewards;
        uint256 lastRewardBalance;
    }

    bool public tradingEnabled;
    mapping(address => bool) isExcludedFromTaxes;
    EnumerableSet.AddressSet isExcludedFromRewards;
    mapping(address => Rewards) public rewards;
    uint256 public lifetimeRewardBalance;
    uint256 public marketingBalance;

    error Blocked();

    /**
     * Hook function called before every token transfer.
     * Overrides the same function from the inherited ERC20 contract.
     * Checks if the transfer amount is zero and if the receiver has a zero balance to update their last reward balance.
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal override {
        if (amount == 0) {
            revert Blocked();
        }
        if (balanceOf(to) == 0) {
            rewards[to].lastRewardBalance = lifetimeRewardBalance;
        }
    }

    /*
     * Hook function called during token transfers.
     * Overrides the same function from the inherited ERC20 contract.
     * Handles the logic for token transfers, including buy, sell, and regular transfers.
     * Applies a 2% tax to transfers, splits the taxed tokens between lifetime rewards and marketing, and processes rewards for sellers if applicable.
     */
    function _transfer(address from, address to, uint256 amount) internal override {
        bool isBuy = from == PAIR_ADDRESS;
        bool isSell = to == PAIR_ADDRESS;
        bool isTransfer = !isBuy && !isSell;

        if (isExcludedFromTaxes[from] || isExcludedFromTaxes[to]) {
            super._transfer(from, to, amount);
            return;
        }

        if (!tradingEnabled) {
            revert Blocked();
        }

        if (isTransfer) {
            super._transfer(from, to, amount);
            return;
        }
        
        uint256 taxedTokensAmount = (amount * 2) / 100;
        amount -= taxedTokensAmount;
        uint256 split = taxedTokensAmount / 2;
        lifetimeRewardBalance += split;
        marketingBalance += split;
        super._transfer(from, address(this), taxedTokensAmount);

       if (isSell && !isExcludedFromRewards.contains(from)) {
            processRewards(from, balanceOf(from), rewards[from], getAdjustedSupply());
            if (marketingBalance > 0) {
                swapTokensForETH(MARKETING_ADDRESS, marketingBalance);
                marketingBalance = 0;
            }
        }

        super._transfer(from, to, amount);
    }

    /*
     * Calculates and distributes pending rewards to a user based on their balance, eligible rewards, and adjusted supply.
     * Swaps the rewarded tokens for ETH using Uniswap's router.
     */
    function processRewards(address _address, uint256 balance, Rewards storage reward, uint256 adjustedSupply) internal {
        uint256 pendingRewards;
        if (balance != 0) {
            // Calculates the eligible balance by subtracting the user's last recorded reward balance
            // from the current lifetime reward balance (lifetimeRewardBalance - reward.lastRewardBalance).
            uint256 eligibleBalance = lifetimeRewardBalance - reward.lastRewardBalance;
            if (eligibleBalance != 0) {
                // Multiplies the user's token balance by the MAGNITUDE constant (balance * MAGNITUDE).
                uint256 magnifiedBalance = balance * MAGNITUDE;
                // Calculates the percentage of the user's magnified balance relative to the adjusted supply.
                // It divides magnifiedBalance by adjustedSupply, then multiplies by 100 to get a percentage (((magnifiedBalance / adjustedSupply) * 100) / MAGNITUDE).
                uint256 percent = ((magnifiedBalance / adjustedSupply) * 100) / MAGNITUDE;
                // Calculates the pending rewards by multiplying the eligible balance by the calculated percentage (eligibleBalance * percent / 100).
                pendingRewards = (eligibleBalance * percent) / 100;
            }
        }
        // Updates the user's lastRewardBalance to the current lifetimeRewardBalance.
        reward.lastRewardBalance = lifetimeRewardBalance;
        // Retrieves the current balance of the contract.
        uint256 contractBalance = balanceOf(address(this));
        // Checks if the pending rewards exceed the contract's balance.
        if (pendingRewards > contractBalance) {
            // If the pending rewards exceed the contract's balance, sets the pending rewards to be equal to the contract's balance.
            pendingRewards = contractBalance;
        }
        // If there are no pending rewards (pendingRewards == 0), the function returns early.
        if (pendingRewards == 0) {
            return;
        }
        // Adds the pending rewards to the user's lifetime rewards.
        reward.lifetimeRewards += pendingRewards;
        // Calls swapTokensForETH to swap the rewarded tokens for ETH.
        swapTokensForETH(_address, pendingRewards);
    }

    /**
     * ProcessRewards Review:
     * The function uses safe integer arithmetic since it performs multiplication and division on uint256 variables, which do not suffer from overflow or underflow issues.
     * Division is performed in a safe manner. The divisor (100 and MAGNITUDE) is not zero, so no division-by-zero errors should occur.
     * The logic flow appears to handle all possible cases and returns early if there are no pending rewards.
     */

    /*
     * Swaps the specified amount of BPSYOP tokens for ETH using Uniswap's router.
     * Transfers the obtained ETH to the specified recipient address.
     */
    function swapTokensForETH(address to, uint256 tokenAmount) internal {
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = WETH_ADDRESS;
        _approve(address(this), ROUTER_ADDRESS, tokenAmount);
        ROUTER.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount, 0, path, to, block.timestamp);
    }

    /*
     * Allows the contract owner to perform a batch transfer of tokens to multiple addresses.
     * Requires the caller to be the contract owner (onlyOwner modifier).
     * Accepts an array of recipient addresses and an array of corresponding token amounts to transfer.
     */
    function drop(address[] calldata addresses, uint256[] calldata amounts) external onlyOwner {
        uint256 length = addresses.length;
        if (length != amounts.length) {
            revert Blocked();
        }
        for (uint256 i = 0; i < length; i++) {
            super.transfer(addresses[i], amounts[i] * 1 ether);
        }
    }

    /*
     * Calculates the adjusted token supply by subtracting the balance of excluded addresses from the total supply.
     * Excluded addresses are those added to the isExcludedFromRewards set.
     */
    function getAdjustedSupply() internal view returns (uint256) {
        uint256 length = isExcludedFromRewards.length();
        uint256 excludedBalance;
        for (uint256 i = 0; i < length; i++) {
            excludedBalance += balanceOf(isExcludedFromRewards.at(i));
        }
        return totalSupply() - excludedBalance;
    }

    /*
     * Allows users to claim their pending rewards if they are not excluded from rewards.
     * Calls the internal processRewards function to calculate and distribute rewards based on the user's balance, eligible rewards, and adjusted supply.
     */
    function claim() external {
        if (isExcludedFromRewards.contains(msg.sender)) {
            revert Blocked();
        }
        processRewards(msg.sender, balanceOf(msg.sender), rewards[msg.sender], getAdjustedSupply());
    }

    function release() external onlyOwner {
        tradingEnabled = true;
    }
}

Settings
{
  "viaIR": true,
  "optimizer": {
    "enabled": true,
    "runs": 1000000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"payable","type":"constructor"},{"inputs":[],"name":"Blocked","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":[{"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":"claim","outputs":[],"stateMutability":"nonpayable","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":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"drop","outputs":[],"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":"lifetimeRewardBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingBalance","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":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"lifetimeRewards","type":"uint256"},{"internalType":"uint256","name":"lastRewardBalance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingEnabled","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"}]

60e060408181526200001182620005f0565b600a8252602069042616279205073796f760b41b818401528151926200003784620005f0565b60068452650425053594f560d41b828501528051906001600160401b03808311620004fb576003908154936001938486811c96168015620005e5575b87871014620005d1578190601f968781116200057e575b5087908783116001146200051b575f926200050f575b50505f1982851b1c191690841b1782555b8651908111620004fb5760049182548481811c91168015620004f0575b87821014620004dd5785811162000495575b50858583116001146200042c57829394959697985f9362000420575b505082851b925f19911b1c19161781555b60058054336001600160a01b03198216811790925586516001600160a01b03959092909186167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a33315620003e3575050335f525f8452845f205415620003d0575b6002546c01431e0fae6d7217caa000000090818101809111620003bd57600255335f525f8552855f2081815401905585519081525f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef863393a38084737a250d5630b4cf539739df2c5dacb4c659f2488d806080528751928380926315ab88c960e31b82525afa90811562000391575f916200039b575b5060a0528084846080511687519283809263c45a015560e01b82525afa918215620003915785915f936200036d575b5060448560a05116915f878a5196879586946364e329cb60e11b865230908601526024850152165af19384156200036357620002ec946006925f916200032f575b5060c052335f5252835f209060ff19918183825416179055305f52845f2081838254161790557349b8bebfb16427ee7189e889685f8f7e530f33a35f52845f2091825416179055620002ca3362000655565b50620002d63062000655565b50620002e1620006e2565b5060c0511662000655565b50620002f762000774565b5051611bd890816200080782396080518181816113a0015261185d015260a051818181611371015261182e015260c051816112420152f35b620003549150823d84116200035b575b6200034b81836200060c565b81019062000630565b5f62000278565b503d6200033f565b85513d5f823e3d90fd5b62000389919350823d84116200035b576200034b81836200060c565b915f62000237565b86513d5f823e3d90fd5b620003b69150853d87116200035b576200034b81836200060c565b5f62000208565b601183634e487b7160e01b5f525260245ffd5b600a546009855282865f20015562000171565b8560649362461bcd60e51b845283015260248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152fd5b015191505f80620000fc565b90601f19831691845f52875f20925f5b8181106200047f575099848798999a9b9796971062000465575b50505050811b0181556200010d565b01519060f8845f19921b161c191690555f80808062000456565b8b8301518555938701939189019189016200043c565b835f52865f208680850160051c820192898610620004d3575b0160051c019085905b828110620004c7575050620000e0565b5f8155018590620004b7565b92508192620004ae565b602284634e487b7160e01b5f525260245ffd5b90607f1690620000ce565b634e487b7160e01b5f52604160045260245ffd5b015190505f80620000a0565b90869350601f19831691865f52895f20925f5b8b8282106200056757505084116200054f575b505050811b018255620000b1565b01515f1983871b60f8161c191690555f808062000541565b8385015186558a979095019493840193016200052e565b909150845f52875f208780850160051c8201928a8610620005c7575b918891869594930160051c01915b828110620005b85750506200008a565b5f8155859450889101620005a8565b925081926200059a565b634e487b7160e01b5f52602260045260245ffd5b95607f169562000073565b604081019081106001600160401b03821117620004fb57604052565b601f909101601f19168101906001600160401b03821190821017620004fb57604052565b908160209103126200065157516001600160a01b0381168103620006515790565b5f80fd5b5f81815260086020526040812054620006dd5760075468010000000000000000811015620006c9576001810180600755811015620006b5575f80516020620023df8339815191520182905560075491815260086020526040902055600190565b634e487b7160e01b82526032600452602482fd5b634e487b7160e01b82526041600452602482fd5b905090565b7349b8bebfb16427ee7189e889685f8f7e530f33a35f81815260086020527fd582999906a690420895f00192b44a353b6732147170afeaa6f4e19677279a3954620006dd5760075468010000000000000000811015620006c9576001810180600755811015620006b5575f80516020620023df8339815191520182905560075491815260086020526040902055600190565b737a250d5630b4cf539739df2c5dacb4c659f2488d5f81815260086020527f226e7c4e32ba0cd918c39b21526eb23f3f5958fcfd83d5cf69b9510bf01e2e1754620006dd5760075468010000000000000000811015620006c9576001810180600755811015620006b5575f80516020620023df833981519152018290556007549181526008602052604090205560019056fe60806040818152600480361015610014575f80fd5b5f92833560e01c90816306fdde0314610cb1575080630700037d14610c45578063095ea7b314610bfd57806318160ddd14610bc057806323b872dd14610a9257806325879fca14610a55578063313ce56714610a1b57806339509351146109a15780634ada218b1461095c5780634e71d92d146108cc57806358e553651461088f57806370a0823114610825578063715018a61461078757806386d1a69f1461070e5780638da5cb5b146106bb57806395d89b4114610562578063a457c2d71461045d578063a9059cbb1461040e578063c01ae5d3146102ba578063dd62ed3e146102425763f2fde38b14610107575f80fd5b3461023e5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261023e5761013e610e60565b90610147610edb565b73ffffffffffffffffffffffffffffffffffffffff8092169283156101bb575050600554827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600555167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b90602060849251917f08c379a0000000000000000000000000000000000000000000000000000000008352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b8280fd5b5050346102b657807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b6578060209261027e610e60565b610286610e87565b73ffffffffffffffffffffffffffffffffffffffff91821683526001865283832091168252845220549051908152f35b5080fd5b50903461023e57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261023e5767ffffffffffffffff90823582811161040a5761030a9036908501610eaa565b6024939193918235908111610406576103269036908701610eaa565b919093610331610edb565b8282036103de5750865b818110610346578780f35b610351818388611aea565b3573ffffffffffffffffffffffffffffffffffffffff811681036103da5761037a828588611aea565b3590670de0b6b3a7640000918281029281840414901517156103af576103aa92916103a59133611226565b611abd565b61033b565b858a60118b7f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b8880fd5b8690517fa5baf151000000000000000000000000000000000000000000000000000000008152fd5b8680fd5b8480fd5b5050346102b657807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b65760209061045661044c610e60565b6024359033611226565b5160018152f35b50823461055f57827ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261055f57610495610e60565b918360243592338152600160205281812073ffffffffffffffffffffffffffffffffffffffff861682526020522054908282106104dc57602085610456858503873361112b565b60849060208651917f08c379a0000000000000000000000000000000000000000000000000000000008352820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152fd5b80fd5b509190346102b657817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b657805191809380549160019083821c928285169485156106b1575b60209586861081146106855785895290811561064357506001146105eb575b6105e787876105dd828c0383610fb7565b5191829182610dfc565b0390f35b81529295507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b82841061063057505050826105e7946105dd92820101945f806105cc565b8054868501880152928601928101610612565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168887015250505050151560051b83010192506105dd826105e75f806105cc565b6024846022857f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b93607f16936105ad565b5050346102b657817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b65760209073ffffffffffffffffffffffffffffffffffffffff600554169051908152f35b833461055f57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261055f57610745610edb565b740100000000000000000000000000000000000000007fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff600554161760055580f35b833461055f57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261055f576107be610edb565b8073ffffffffffffffffffffffffffffffffffffffff6005547fffffffffffffffffffffffff00000000000000000000000000000000000000008116600555167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b5050346102b65760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b657602090610888610864610e60565b73ffffffffffffffffffffffffffffffffffffffff165f525f60205260405f205490565b9051908152f35b5050346102b657817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b657602090600b549051908152f35b503461023e57827ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261023e573383526008602052818320546109355750610932903383528260205280832054906009602052832061092b611afa565b91336117a0565b80f35b90517fa5baf151000000000000000000000000000000000000000000000000000000008152fd5b5050346102b657817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b65760209060ff60055460a01c1690519015158152f35b5050346102b657807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b657610456602092610a146109e2610e60565b913381526001865284812073ffffffffffffffffffffffffffffffffffffffff84168252865284602435912054610ff8565b903361112b565b5050346102b657817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b6576020905160128152f35b5050346102b657817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b657602090600a549051908152f35b508290346102b65760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b657610acc610e60565b610ad4610e87565b91846044359473ffffffffffffffffffffffffffffffffffffffff8416815260016020528181203382526020522054907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610b3a575b602086610456878787611226565b848210610b635750918391610b58602096956104569503338361112b565b919394819350610b2c565b60649060208751917f08c379a0000000000000000000000000000000000000000000000000000000008352820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152fd5b5050346102b657817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b6576020906002549051908152f35b5050346102b657807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b657602090610456610c3b610e60565b602435903361112b565b5050346102b65760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b657809173ffffffffffffffffffffffffffffffffffffffff610c95610e60565b1681526009602052206001815491015482519182526020820152f35b9291905034610df857837ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610df857600354600181811c9186908281168015610dee575b6020958686108214610dc25750848852908115610d825750600114610d29575b6105e786866105dd828b0383610fb7565b929550600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b828410610d6f57505050826105e7946105dd92820101945f610d18565b8054868501880152928601928101610d52565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001687860152505050151560051b83010192506105dd826105e75f610d18565b8360226024927f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b93607f1693610cf8565b8380fd5b6020808252825181830181905293925f5b858110610e4c575050507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f845f6040809697860101520116010190565b818101830151848201604001528201610e0d565b6004359073ffffffffffffffffffffffffffffffffffffffff82168203610e8357565b5f80fd5b6024359073ffffffffffffffffffffffffffffffffffffffff82168203610e8357565b9181601f84011215610e835782359167ffffffffffffffff8311610e83576020808501948460051b010111610e8357565b73ffffffffffffffffffffffffffffffffffffffff600554163303610efc57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b67ffffffffffffffff8111610f6e57604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6060810190811067ffffffffffffffff821117610f6e57604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff821117610f6e57604052565b9190820180921161100557565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b73ffffffffffffffffffffffffffffffffffffffff1680156110a857805f5260016020527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925602060405f2093737a250d5630b4cf539739df2c5dacb4c659f2488d94855f5282528060405f2055604051908152a3565b60846040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152fd5b73ffffffffffffffffffffffffffffffffffffffff8091169182156110a857169182156111955760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591835f526001825260405f20855f5282528060405f2055604051908152a3565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152fd5b9190820391821161100557565b92919073ffffffffffffffffffffffffffffffffffffffff93847f00000000000000000000000000000000000000000000000000000000000000001685821690868416968188149183141580611536575b5f938085526020916006835260409a60ff8c88205416908115611526575b506115155760ff60055460a01c16156114ec576113045760019388851b8981046002148a1517156114bf576112d160646112f99204809b611219565b996112ef81881c6112e481600a54610ff8565b600a55600b54610ff8565b600b55308961153e565b806114ad575b611316575b505050505061131493945061153e565b565b845283815261133889852054600983528a8620611331611afa565b91886117a0565b600b549283156113045789519361134e85610f9b565b60028552828501928b3685373061136487611a73565b5261136e86611aad565b857f000000000000000000000000000000000000000000000000000000000000000016905261139d8230611032565b847f00000000000000000000000000000000000000000000000000000000000000001694853b156114a95790959391928795938d519788967f791ac94700000000000000000000000000000000000000000000000000000000885260a4880192600489015288602489015260a060448901525180925260c48701949388905b83821061148c57505050505050838380927349b8bebfb16427ee7189e889685f8f7e530f33a3606483015242608483015203925af196871561148157506113149596611472575b50600b5584935f808080611304565b61147b90610f5a565b5f611463565b51913d9150823e3d90fd5b8551811687528b99508a985095820195948201949084019061141c565b8780fd5b508085526008825289852054156112ff565b6024877f4e487b710000000000000000000000000000000000000000000000000000000081526011600452fd5b60048b517fa5baf151000000000000000000000000000000000000000000000000000000008152fd5b50505050505061131493945061153e565b8752508a86205460ff165f611295565b508115611277565b73ffffffffffffffffffffffffffffffffffffffff80911691821561171c571691821561169857801561166e575f90838252602091808352604090818120541561165b575b848152808452818120548381106115d8579181847fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9695948884955282875203828220558781522082815401905551908152a3565b6084858451907f08c379a00000000000000000000000000000000000000000000000000000000082526004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152fd5b600a546009855260018383200155611583565b60046040517fa5baf151000000000000000000000000000000000000000000000000000000008152fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152fd5b925f908215908115611943575b50509050600a549060019182840155305f526020925f845260405f205480831161193b575b508115611934576117e4828254610ff8565b9055604051936117f385610f9b565b600285528385019260403685373061180a87611a73565b5261181486611aad565b9273ffffffffffffffffffffffffffffffffffffffff93847f000000000000000000000000000000000000000000000000000000000000000016905261185a8130611032565b837f00000000000000000000000000000000000000000000000000000000000000001695863b15610e83579096949392916040519788967f791ac94700000000000000000000000000000000000000000000000000000000885260a488019160048901525f602489015260a060448901525180915260c4870195925f5b82811061191c575050505050835f95938193879316606483015242608483015203925af18015611911576119085750565b61131490610f5a565b6040513d5f823e3d90fd5b8451871688528a9850968101969381019383016118d7565b5050505050565b91505f6117d2565b611954600a54600187015490611219565b938415928315611966575b50506117ad565b8160801b918204700100000000000000000000000000000000141715611a46578115611a1957046064810290808204606414901517156119ec5760801c8084029384041417156119bf575060649004805f80808061195f565b807f4e487b7100000000000000000000000000000000000000000000000000000000602492526011600452fd5b6024837f4e487b710000000000000000000000000000000000000000000000000000000081526011600452fd5b6024847f4e487b710000000000000000000000000000000000000000000000000000000081526012600452fd5b6024847f4e487b710000000000000000000000000000000000000000000000000000000081526011600452fd5b805115611a805760200190565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b805160011015611a805760400190565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146110055760010190565b9190811015611a805760051b0190565b60078054905f918291835b828510611b1f57505050611b1c9150600254611219565b90565b909192611b93611b9991848452611b8d73ffffffffffffffffffffffffffffffffffffffff887fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68801541673ffffffffffffffffffffffffffffffffffffffff165f525f60205260405f205490565b90610ff8565b94611abd565b93929190611b0556fea2646970667358221220c32fce1ddb895dd81f7e6bfaebd184a7e172fcf685106ad54ad33e0e6db06dde64736f6c63430008140033a66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688

Deployed Bytecode

0x60806040818152600480361015610014575f80fd5b5f92833560e01c90816306fdde0314610cb1575080630700037d14610c45578063095ea7b314610bfd57806318160ddd14610bc057806323b872dd14610a9257806325879fca14610a55578063313ce56714610a1b57806339509351146109a15780634ada218b1461095c5780634e71d92d146108cc57806358e553651461088f57806370a0823114610825578063715018a61461078757806386d1a69f1461070e5780638da5cb5b146106bb57806395d89b4114610562578063a457c2d71461045d578063a9059cbb1461040e578063c01ae5d3146102ba578063dd62ed3e146102425763f2fde38b14610107575f80fd5b3461023e5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261023e5761013e610e60565b90610147610edb565b73ffffffffffffffffffffffffffffffffffffffff8092169283156101bb575050600554827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600555167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b90602060849251917f08c379a0000000000000000000000000000000000000000000000000000000008352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b8280fd5b5050346102b657807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b6578060209261027e610e60565b610286610e87565b73ffffffffffffffffffffffffffffffffffffffff91821683526001865283832091168252845220549051908152f35b5080fd5b50903461023e57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261023e5767ffffffffffffffff90823582811161040a5761030a9036908501610eaa565b6024939193918235908111610406576103269036908701610eaa565b919093610331610edb565b8282036103de5750865b818110610346578780f35b610351818388611aea565b3573ffffffffffffffffffffffffffffffffffffffff811681036103da5761037a828588611aea565b3590670de0b6b3a7640000918281029281840414901517156103af576103aa92916103a59133611226565b611abd565b61033b565b858a60118b7f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b8880fd5b8690517fa5baf151000000000000000000000000000000000000000000000000000000008152fd5b8680fd5b8480fd5b5050346102b657807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b65760209061045661044c610e60565b6024359033611226565b5160018152f35b50823461055f57827ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261055f57610495610e60565b918360243592338152600160205281812073ffffffffffffffffffffffffffffffffffffffff861682526020522054908282106104dc57602085610456858503873361112b565b60849060208651917f08c379a0000000000000000000000000000000000000000000000000000000008352820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152fd5b80fd5b509190346102b657817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b657805191809380549160019083821c928285169485156106b1575b60209586861081146106855785895290811561064357506001146105eb575b6105e787876105dd828c0383610fb7565b5191829182610dfc565b0390f35b81529295507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b82841061063057505050826105e7946105dd92820101945f806105cc565b8054868501880152928601928101610612565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168887015250505050151560051b83010192506105dd826105e75f806105cc565b6024846022857f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b93607f16936105ad565b5050346102b657817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b65760209073ffffffffffffffffffffffffffffffffffffffff600554169051908152f35b833461055f57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261055f57610745610edb565b740100000000000000000000000000000000000000007fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff600554161760055580f35b833461055f57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261055f576107be610edb565b8073ffffffffffffffffffffffffffffffffffffffff6005547fffffffffffffffffffffffff00000000000000000000000000000000000000008116600555167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b5050346102b65760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b657602090610888610864610e60565b73ffffffffffffffffffffffffffffffffffffffff165f525f60205260405f205490565b9051908152f35b5050346102b657817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b657602090600b549051908152f35b503461023e57827ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261023e573383526008602052818320546109355750610932903383528260205280832054906009602052832061092b611afa565b91336117a0565b80f35b90517fa5baf151000000000000000000000000000000000000000000000000000000008152fd5b5050346102b657817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b65760209060ff60055460a01c1690519015158152f35b5050346102b657807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b657610456602092610a146109e2610e60565b913381526001865284812073ffffffffffffffffffffffffffffffffffffffff84168252865284602435912054610ff8565b903361112b565b5050346102b657817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b6576020905160128152f35b5050346102b657817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b657602090600a549051908152f35b508290346102b65760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b657610acc610e60565b610ad4610e87565b91846044359473ffffffffffffffffffffffffffffffffffffffff8416815260016020528181203382526020522054907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610b3a575b602086610456878787611226565b848210610b635750918391610b58602096956104569503338361112b565b919394819350610b2c565b60649060208751917f08c379a0000000000000000000000000000000000000000000000000000000008352820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152fd5b5050346102b657817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b6576020906002549051908152f35b5050346102b657807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b657602090610456610c3b610e60565b602435903361112b565b5050346102b65760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102b657809173ffffffffffffffffffffffffffffffffffffffff610c95610e60565b1681526009602052206001815491015482519182526020820152f35b9291905034610df857837ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610df857600354600181811c9186908281168015610dee575b6020958686108214610dc25750848852908115610d825750600114610d29575b6105e786866105dd828b0383610fb7565b929550600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b828410610d6f57505050826105e7946105dd92820101945f610d18565b8054868501880152928601928101610d52565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001687860152505050151560051b83010192506105dd826105e75f610d18565b8360226024927f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b93607f1693610cf8565b8380fd5b6020808252825181830181905293925f5b858110610e4c575050507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f845f6040809697860101520116010190565b818101830151848201604001528201610e0d565b6004359073ffffffffffffffffffffffffffffffffffffffff82168203610e8357565b5f80fd5b6024359073ffffffffffffffffffffffffffffffffffffffff82168203610e8357565b9181601f84011215610e835782359167ffffffffffffffff8311610e83576020808501948460051b010111610e8357565b73ffffffffffffffffffffffffffffffffffffffff600554163303610efc57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b67ffffffffffffffff8111610f6e57604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6060810190811067ffffffffffffffff821117610f6e57604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff821117610f6e57604052565b9190820180921161100557565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b73ffffffffffffffffffffffffffffffffffffffff1680156110a857805f5260016020527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925602060405f2093737a250d5630b4cf539739df2c5dacb4c659f2488d94855f5282528060405f2055604051908152a3565b60846040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152fd5b73ffffffffffffffffffffffffffffffffffffffff8091169182156110a857169182156111955760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591835f526001825260405f20855f5282528060405f2055604051908152a3565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152fd5b9190820391821161100557565b92919073ffffffffffffffffffffffffffffffffffffffff93847f0000000000000000000000008dfcd0988d3de8e5eba16292174295b749a8f7ec1685821690868416968188149183141580611536575b5f938085526020916006835260409a60ff8c88205416908115611526575b506115155760ff60055460a01c16156114ec576113045760019388851b8981046002148a1517156114bf576112d160646112f99204809b611219565b996112ef81881c6112e481600a54610ff8565b600a55600b54610ff8565b600b55308961153e565b806114ad575b611316575b505050505061131493945061153e565b565b845283815261133889852054600983528a8620611331611afa565b91886117a0565b600b549283156113045789519361134e85610f9b565b60028552828501928b3685373061136487611a73565b5261136e86611aad565b857f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216905261139d8230611032565b847f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d1694853b156114a95790959391928795938d519788967f791ac94700000000000000000000000000000000000000000000000000000000885260a4880192600489015288602489015260a060448901525180925260c48701949388905b83821061148c57505050505050838380927349b8bebfb16427ee7189e889685f8f7e530f33a3606483015242608483015203925af196871561148157506113149596611472575b50600b5584935f808080611304565b61147b90610f5a565b5f611463565b51913d9150823e3d90fd5b8551811687528b99508a985095820195948201949084019061141c565b8780fd5b508085526008825289852054156112ff565b6024877f4e487b710000000000000000000000000000000000000000000000000000000081526011600452fd5b60048b517fa5baf151000000000000000000000000000000000000000000000000000000008152fd5b50505050505061131493945061153e565b8752508a86205460ff165f611295565b508115611277565b73ffffffffffffffffffffffffffffffffffffffff80911691821561171c571691821561169857801561166e575f90838252602091808352604090818120541561165b575b848152808452818120548381106115d8579181847fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9695948884955282875203828220558781522082815401905551908152a3565b6084858451907f08c379a00000000000000000000000000000000000000000000000000000000082526004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152fd5b600a546009855260018383200155611583565b60046040517fa5baf151000000000000000000000000000000000000000000000000000000008152fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152fd5b925f908215908115611943575b50509050600a549060019182840155305f526020925f845260405f205480831161193b575b508115611934576117e4828254610ff8565b9055604051936117f385610f9b565b600285528385019260403685373061180a87611a73565b5261181486611aad565b9273ffffffffffffffffffffffffffffffffffffffff93847f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216905261185a8130611032565b837f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d1695863b15610e83579096949392916040519788967f791ac94700000000000000000000000000000000000000000000000000000000885260a488019160048901525f602489015260a060448901525180915260c4870195925f5b82811061191c575050505050835f95938193879316606483015242608483015203925af18015611911576119085750565b61131490610f5a565b6040513d5f823e3d90fd5b8451871688528a9850968101969381019383016118d7565b5050505050565b91505f6117d2565b611954600a54600187015490611219565b938415928315611966575b50506117ad565b8160801b918204700100000000000000000000000000000000141715611a46578115611a1957046064810290808204606414901517156119ec5760801c8084029384041417156119bf575060649004805f80808061195f565b807f4e487b7100000000000000000000000000000000000000000000000000000000602492526011600452fd5b6024837f4e487b710000000000000000000000000000000000000000000000000000000081526011600452fd5b6024847f4e487b710000000000000000000000000000000000000000000000000000000081526012600452fd5b6024847f4e487b710000000000000000000000000000000000000000000000000000000081526011600452fd5b805115611a805760200190565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b805160011015611a805760400190565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146110055760010190565b9190811015611a805760051b0190565b60078054905f918291835b828510611b1f57505050611b1c9150600254611219565b90565b909192611b93611b9991848452611b8d73ffffffffffffffffffffffffffffffffffffffff887fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68801541673ffffffffffffffffffffffffffffffffffffffff165f525f60205260405f205490565b90610ff8565b94611abd565b93929190611b0556fea2646970667358221220c32fce1ddb895dd81f7e6bfaebd184a7e172fcf685106ad54ad33e0e6db06dde64736f6c63430008140033

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.