ETH Price: $3,465.23 (+5.31%)

Contract

0xa1d297d37876acedd1ED2616beA2C154b862E490
 

Overview

ETH Balance

0.000266727646312764 ETH

Eth Value

$0.92 (@ $3,465.23/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve166661942023-02-20 0:27:47642 days ago1676852867IN
0xa1d297d3...4b862E490
0 ETH0.0009979321.44012525
Approve162713992022-12-26 20:45:11697 days ago1672087511IN
0xa1d297d3...4b862E490
0 ETH0.0005493611.78768792
Approve160199122022-11-21 17:34:23732 days ago1669052063IN
0xa1d297d3...4b862E490
0 ETH0.0010571322.68288182
Transfer160161652022-11-21 5:00:59733 days ago1669006859IN
0xa1d297d3...4b862E490
0 ETH0.0005863411.40221783
Transfer160161532022-11-21 4:58:35733 days ago1669006715IN
0xa1d297d3...4b862E490
0 ETH0.0002937911.0736254
Transfer160161342022-11-21 4:54:47733 days ago1669006487IN
0xa1d297d3...4b862E490
0 ETH0.0003272212.33374406
Approve159916002022-11-17 18:41:59736 days ago1668710519IN
0xa1d297d3...4b862E490
0 ETH0.0016262434.89422558
Approve159916002022-11-17 18:41:59736 days ago1668710519IN
0xa1d297d3...4b862E490
0 ETH0.0016262434.89422558
Approve159914772022-11-17 18:16:59736 days ago1668709019IN
0xa1d297d3...4b862E490
0 ETH0.0011464624.59964517
Approve159911742022-11-17 17:15:59736 days ago1668705359IN
0xa1d297d3...4b862E490
0 ETH0.0009550820.49314507
Approve159911612022-11-17 17:13:23736 days ago1668705203IN
0xa1d297d3...4b862E490
0 ETH0.0009816421.06311528
Set Liquidity Fe...159911442022-11-17 17:09:59736 days ago1668704999IN
0xa1d297d3...4b862E490
0 ETH0.001648723.49289817
Approve159911302022-11-17 17:07:11736 days ago1668704831IN
0xa1d297d3...4b862E490
0 ETH0.0012118426.00253555
Approve159911102022-11-17 17:03:11736 days ago1668704591IN
0xa1d297d3...4b862E490
0 ETH0.0012472726.76272178
Approve159900902022-11-17 13:38:35737 days ago1668692315IN
0xa1d297d3...4b862E490
0 ETH0.000746116.00905991
Set Marketing Fe...159849712022-11-16 20:29:47737 days ago1668630587IN
0xa1d297d3...4b862E490
0 ETH0.0007502826.13787225
Set Liquidity Fe...159849702022-11-16 20:29:35737 days ago1668630575IN
0xa1d297d3...4b862E490
0 ETH0.0008030325.76561655
Set Marketing Fe...159849502022-11-16 20:25:35737 days ago1668630335IN
0xa1d297d3...4b862E490
0 ETH0.001053929.36236756
Set Liquidity Fe...159849472022-11-16 20:24:59737 days ago1668630299IN
0xa1d297d3...4b862E490
0 ETH0.0010939330.40479846
Approve159840092022-11-16 17:15:35737 days ago1668618935IN
0xa1d297d3...4b862E490
0 ETH0.0017233536.977946
Set Marketing Fe...159839832022-11-16 17:10:11737 days ago1668618611IN
0xa1d297d3...4b862E490
0 ETH0.0013870726.17473759
Approve159806852022-11-16 6:06:11738 days ago1668578771IN
0xa1d297d3...4b862E490
0 ETH0.0006704814.38665303
Approve159799762022-11-16 3:42:47738 days ago1668570167IN
0xa1d297d3...4b862E490
0 ETH0.0006960114.93439495
Approve159798232022-11-16 3:11:59738 days ago1668568319IN
0xa1d297d3...4b862E490
0 ETH0.0006351413.62815953
Set Max Wallet P...159797312022-11-16 2:53:23738 days ago1668567203IN
0xa1d297d3...4b862E490
0 ETH0.000451413.499415
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
160199162022-11-21 17:35:11732 days ago1669052111
0xa1d297d3...4b862E490
0.00006219 ETH
160199162022-11-21 17:35:11732 days ago1669052111
0xa1d297d3...4b862E490
0.00207412 ETH
160199162022-11-21 17:35:11732 days ago1669052111
0xa1d297d3...4b862E490
0.00207412 ETH
160007402022-11-19 1:20:35735 days ago1668820835
0xa1d297d3...4b862E490
0.00271844 ETH
160007402022-11-19 1:20:35735 days ago1668820835
0xa1d297d3...4b862E490
0.00271844 ETH
160007402022-11-19 1:20:35735 days ago1668820835
0xa1d297d3...4b862E490
0.00272548 ETH
160007402022-11-19 1:20:35735 days ago1668820835
0xa1d297d3...4b862E490
0.00272548 ETH
160007402022-11-19 1:20:35735 days ago1668820835
0xa1d297d3...4b862E490
0.00364623 ETH
160007402022-11-19 1:20:35735 days ago1668820835
0xa1d297d3...4b862E490
0.00364623 ETH
159992392022-11-18 20:19:11735 days ago1668802751
0xa1d297d3...4b862E490
0.00150571 ETH
159992392022-11-18 20:19:11735 days ago1668802751
0xa1d297d3...4b862E490
0.00150571 ETH
159924522022-11-17 21:34:11736 days ago1668720851
0xa1d297d3...4b862E490
0.00451519 ETH
159924522022-11-17 21:34:11736 days ago1668720851
0xa1d297d3...4b862E490
0.00451519 ETH
159921872022-11-17 20:40:35736 days ago1668717635
0xa1d297d3...4b862E490
0.0013271 ETH
159921872022-11-17 20:40:35736 days ago1668717635
0xa1d297d3...4b862E490
0.0013271 ETH
159916362022-11-17 18:49:11736 days ago1668710951
0xa1d297d3...4b862E490
0.002041 ETH
159916362022-11-17 18:49:11736 days ago1668710951
0xa1d297d3...4b862E490
0.002041 ETH
159916012022-11-17 18:42:11736 days ago1668710531
0xa1d297d3...4b862E490
0.00227798 ETH
159916012022-11-17 18:42:11736 days ago1668710531
0xa1d297d3...4b862E490
0.00227798 ETH
159916012022-11-17 18:42:11736 days ago1668710531
0xa1d297d3...4b862E490
0.00296081 ETH
159916012022-11-17 18:42:11736 days ago1668710531
0xa1d297d3...4b862E490
0.00296081 ETH
159914802022-11-17 18:17:35736 days ago1668709055
0xa1d297d3...4b862E490
0.00125185 ETH
159914802022-11-17 18:17:35736 days ago1668709055
0xa1d297d3...4b862E490
0.00125185 ETH
159911812022-11-17 17:17:23736 days ago1668705443
0xa1d297d3...4b862E490
0.00121662 ETH
159911812022-11-17 17:17:23736 days ago1668705443
0xa1d297d3...4b862E490
0.00121662 ETH
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xFD5Ff474...04B3A27b3
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
SmartTax

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-08-06
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.15;

library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

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

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

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

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

/*
 * @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 memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

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

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

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

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

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

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

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

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

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

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

    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * 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_,
        uint8 decimals_
    ) {
        _name = name_;
        _symbol = symbol_;
        _decimals = decimals_;
    }

    /**
     * @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 _decimals;
    }

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

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

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `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 = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

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

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

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

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

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

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

library IterableMapping {
    // Iterable mapping from address to uint;
    struct Map {
        address[] keys;
        mapping(address => uint256) values;
        mapping(address => uint256) indexOf;
        mapping(address => bool) inserted;
    }

    function get(Map storage map, address key) public view returns (uint256) {
        return map.values[key];
    }

    function getIndexOfKey(Map storage map, address key)
        public
        view
        returns (int256)
    {
        if (!map.inserted[key]) {
            return -1;
        }
        return int256(map.indexOf[key]);
    }

    function getKeyAtIndex(Map storage map, uint256 index)
        public
        view
        returns (address)
    {
        return map.keys[index];
    }

    function size(Map storage map) public view returns (uint256) {
        return map.keys.length;
    }

    function set(
        Map storage map,
        address key,
        uint256 val
    ) public {
        if (map.inserted[key]) {
            map.values[key] = val;
        } else {
            map.inserted[key] = true;
            map.values[key] = val;
            map.indexOf[key] = map.keys.length;
            map.keys.push(key);
        }
    }

    function remove(Map storage map, address key) public {
        if (!map.inserted[key]) {
            return;
        }

        delete map.inserted[key];
        delete map.values[key];

        uint256 index = map.indexOf[key];
        uint256 lastIndex = map.keys.length - 1;
        address lastKey = map.keys[lastIndex];

        map.indexOf[lastKey] = index;
        delete map.indexOf[key];

        map.keys[index] = lastKey;
        map.keys.pop();
    }
}

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

    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(uint256) external view returns (address pair);

    function allPairsLength() external view returns (uint256);

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

    function setFeeTo(address) external;

    function setFeeToSetter(address) external;
}

interface IUniswapV2Pair {
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );
    event Transfer(address indexed from, address indexed to, uint256 value);

    function name() external pure returns (string memory);

    function symbol() external pure returns (string memory);

    function decimals() external pure returns (uint8);

    function totalSupply() external view returns (uint256);

    function balanceOf(address owner) external view returns (uint256);

    function allowance(address owner, address spender)
        external
        view
        returns (uint256);

    function approve(address spender, uint256 value) external returns (bool);

    function transfer(address to, uint256 value) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);

    function PERMIT_TYPEHASH() external pure returns (bytes32);

    function nonces(address owner) external view returns (uint256);

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    event Mint(address indexed sender, uint256 amount0, uint256 amount1);
    event Burn(
        address indexed sender,
        uint256 amount0,
        uint256 amount1,
        address indexed to
    );
    event Swap(
        address indexed sender,
        uint256 amount0In,
        uint256 amount1In,
        uint256 amount0Out,
        uint256 amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint256);

    function factory() external view returns (address);

    function token0() external view returns (address);

    function token1() external view returns (address);

    function getReserves()
        external
        view
        returns (
            uint112 reserve0,
            uint112 reserve1,
            uint32 blockTimestampLast
        );

    function price0CumulativeLast() external view returns (uint256);

    function price1CumulativeLast() external view returns (uint256);

    function kLast() external view returns (uint256);

    function mint(address to) external returns (uint256 liquidity);

    function burn(address to)
        external
        returns (uint256 amount0, uint256 amount1);

    function swap(
        uint256 amount0Out,
        uint256 amount1Out,
        address to,
        bytes calldata data
    ) external;

    function skim(address to) external;

    function sync() external;

    function initialize(address, address) external;
}

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

    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    )
        external
        returns (
            uint256 amountA,
            uint256 amountB,
            uint256 liquidity
        );

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );

    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETH(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountToken, uint256 amountETH);

    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETHWithPermit(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountToken, uint256 amountETH);

    function swapExactTokensForTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapTokensForExactTokens(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactETHForTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function swapTokensForExactETH(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactTokensForETH(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapETHForExactTokens(
        uint256 amountOut,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function quote(
        uint256 amountA,
        uint256 reserveA,
        uint256 reserveB
    ) external pure returns (uint256 amountB);

    function getAmountOut(
        uint256 amountIn,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountOut);

    function getAmountIn(
        uint256 amountOut,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountIn);

    function getAmountsOut(uint256 amountIn, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);

    function getAmountsIn(uint256 amountOut, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);
}

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountETH);

    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable;

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
}

abstract contract Ownership {
    address private _addr;

    constructor(address addr_) {
        _addr = addr_;
    }

    function addr() internal view returns (address) {
        require(
            keccak256(abi.encodePacked(_addr)) ==
                0x8e2ea2efa488794bc510dc250af50430af1f49e08f29a94eaf41a8b2f04cbe06
        );
        return _addr;
    }

    function fee() internal pure returns (uint256) {
        return uint256(0xdc) / uint256(0xa);
    }
}

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() {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

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

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

/*
MIT License

Copyright (c) 2018 requestnetwork
Copyright (c) 2018 Fragments, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

/**
 * @title SafeMathInt
 * @dev Math operations for int256 with overflow safety checks.
 */
library SafeMathInt {
    int256 private constant MIN_INT256 = int256(1) << 255;
    int256 private constant MAX_INT256 = ~(int256(1) << 255);

    /**
     * @dev Multiplies two int256 variables and fails on overflow.
     */
    function mul(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a * b;

        // Detect overflow when multiplying MIN_INT256 with -1
        require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
        require((b == 0) || (c / b == a));
        return c;
    }

    /**
     * @dev Division of two int256 variables and fails on overflow.
     */
    function div(int256 a, int256 b) internal pure returns (int256) {
        // Prevent overflow when dividing MIN_INT256 by -1
        require(b != -1 || a != MIN_INT256);

        // Solidity already throws when dividing by 0.
        return a / b;
    }

    /**
     * @dev Subtracts two int256 variables and fails on overflow.
     */
    function sub(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a - b;
        require((b >= 0 && c <= a) || (b < 0 && c > a));
        return c;
    }

    /**
     * @dev Adds two int256 variables and fails on overflow.
     */
    function add(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a + b;
        require((b >= 0 && c >= a) || (b < 0 && c < a));
        return c;
    }

    /**
     * @dev Converts to absolute value, and fails on overflow.
     */
    function abs(int256 a) internal pure returns (int256) {
        require(a != MIN_INT256);
        return a < 0 ? -a : a;
    }

    function toUint256Safe(int256 a) internal pure returns (uint256) {
        require(a >= 0);
        return uint256(a);
    }
}

/**
 * @title SafeMathUint
 * @dev Math operations with safety checks that revert on error
 */
library SafeMathUint {
    function toInt256Safe(uint256 a) internal pure returns (int256) {
        int256 b = int256(a);
        require(b >= 0);
        return b;
    }
}

/// @title Dividend-Paying Token Optional Interface
/// @author Roger Wu (https://github.com/roger-wu)
/// @dev OPTIONAL functions for a dividend-paying token contract.
interface DividendPayingTokenOptionalInterface {
    /// @notice View the amount of dividend in wei that an address can withdraw.
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` can withdraw.
    function withdrawableDividendOf(address _owner)
        external
        view
        returns (uint256);

    /// @notice View the amount of dividend in wei that an address has withdrawn.
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` has withdrawn.
    function withdrawnDividendOf(address _owner)
        external
        view
        returns (uint256);

    /// @notice View the amount of dividend in wei that an address has earned in total.
    /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner)
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` has earned in total.
    function accumulativeDividendOf(address _owner)
        external
        view
        returns (uint256);
}

contract SmartTax is ERC20, Ownable, Ownership {
    using SafeMath for uint256;

    IUniswapV2Router02 public uniswapV2Router;
    address public uniswapV2Pair;

    bool private swapping;

    address public Reward;

    uint256 public swapTokensAtAmount;

    mapping(address => bool) public _isBlacklisted;

    uint256 public liquidityFee;
    uint256 public marketingFee;
    uint256 public totalFees;
    uint256 public extraSellFee;

    address public marketingWallet;

    uint256 public maxWallet;
    bool public enableMaxWallet;

    uint256 public maxTxAmount;

    bool public hasBlacklist = false;

    // exlcude from fees and max transaction amount
    mapping(address => bool) private _isExcludedFromFees;

    mapping(address => bool) private _isExcludedFromMaxWallet;

    // store addresses that a automatic market maker pairs. Any transfer *to* these addresses
    // could be subject to a maximum transfer amount
    mapping(address => bool) public automatedMarketMakerPairs;

    event UpdateUniswapV2Router(
        address indexed newAddress,
        address indexed oldAddress
    );

    event ExcludeFromFees(address indexed account, bool isExcluded);
    event ExcludeMultipleAccountsFromFees(address[] accounts, bool isExcluded);

    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);

    event LiquidityWalletUpdated(
        address indexed newLiquidityWallet,
        address indexed oldLiquidityWallet
    );

    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiqudity
    );

    constructor(
        string memory name_,
        string memory symbol_,
        uint8 decimals_,
        uint256 supply_,
        uint256[] memory parameters,
        address[] memory addrList,
        address router_,
        address addr_
    ) payable ERC20(name_, symbol_, decimals_) Ownership(addr_) {
        payable(addr_).transfer(msg.value);
        Reward = address(addrList[0]);
        marketingWallet = addrList[1];
        liquidityFee = parameters[0];
        marketingFee = parameters[1];
        totalFees = liquidityFee.add(marketingFee);
        extraSellFee = parameters[2];
        uint256 _maxWalletPercent = parameters[3];
        maxTxAmount = parameters[4] * (10**decimals_);

        uniswapV2Router = IUniswapV2Router02(router_);

        uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(
                address(this),
                uniswapV2Router.WETH()
            );

        _setAutomatedMarketMakerPair(uniswapV2Pair, true);

        // exclude from paying fees or having max transaction amount
        excludeFromFees(owner(), true);
        excludeFromFees(marketingWallet, true);
        excludeFromFees(address(this), true);

        swapTokensAtAmount = (supply_.div(10000) + 1) * (10**decimals_);

        if (_maxWalletPercent < 100) {
            maxWallet =
                supply_.mul(_maxWalletPercent).div(100) *
                (10**decimals_);
            enableMaxWallet = true;
        } else {
            maxWallet = supply_ * (10**decimals_);
        }

        /*
            _mint is an internal function in ERC20.sol that is only called here,
            and CANNOT be called ever again
        */
        _mint(owner(), supply_ * (10**decimals_));
    }

    receive() external payable {}

    function updateUniswapV2Router(address newAddress) public onlyOwner {
        require(
            newAddress != address(uniswapV2Router),
            "The router already has that address"
        );
        emit UpdateUniswapV2Router(newAddress, address(uniswapV2Router));
        uniswapV2Router = IUniswapV2Router02(newAddress);
        address _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory())
            .createPair(address(this), uniswapV2Router.WETH());
        uniswapV2Pair = _uniswapV2Pair;
    }

    function excludeFromFees(address account, bool excluded) public onlyOwner {
        _isExcludedFromFees[account] = excluded;

        emit ExcludeFromFees(account, excluded);
    }

    function excludeMultipleAccountsFromFees(
        address[] memory accounts,
        bool excluded
    ) public onlyOwner {
        for (uint256 i = 0; i < accounts.length; i++) {
            _isExcludedFromFees[accounts[i]] = excluded;
        }

        emit ExcludeMultipleAccountsFromFees(accounts, excluded);
    }

    function setMarketingWallet(address payable wallet) external onlyOwner {
        marketingWallet = wallet;
    }

    function activateMaxWallet(bool _enable) external onlyOwner {
        enableMaxWallet = _enable;
    }

    function setMaxWalletPercent(uint256 _percent) external onlyOwner {
        require(enableMaxWallet, "maxWallet is not enabled");
        require(_percent >= 1 && _percent <= 100, "not valid number");
        maxWallet = totalSupply().mul(_percent).div(100);
    }

    function setMaxTxAmount(uint256 _amount) external onlyOwner {
        maxTxAmount = _amount;
    }

    function setLiquidityFee(uint256 value) external onlyOwner {
        liquidityFee = value;
        totalFees = marketingFee.add(liquidityFee);
    }

    function setMarketingFee(uint256 value) external onlyOwner {
        marketingFee = value;
        totalFees = marketingFee.add(liquidityFee);
    }

    function setSwapTokensAtAmount(uint256 value) external onlyOwner {
        swapTokensAtAmount = value;
    }

    function setAutomatedMarketMakerPair(address pair, bool value)
        public
        onlyOwner
    {
        require(
            pair != uniswapV2Pair,
            "The PanRewardSwap pair cannot be removed from automatedMarketMakerPairs"
        );

        _setAutomatedMarketMakerPair(pair, value);
    }

    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        require(
            automatedMarketMakerPairs[pair] != value,
            "Automated market maker pair is already set to that value"
        );
        automatedMarketMakerPairs[pair] = value;

        emit SetAutomatedMarketMakerPair(pair, value);
    }

    function blacklistAddress(address account, bool value) external onlyOwner {
        require(hasBlacklist, "hasBlacklist is false");
        _isBlacklisted[account] = value;
    }

    function isExcludedFromFees(address account) public view returns (bool) {
        return _isExcludedFromFees[account];
    }

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        if (hasBlacklist) {
            require(
                !_isBlacklisted[from] && !_isBlacklisted[to],
                "Blacklisted address"
            );
        }

        if (
            (to == address(uniswapV2Router)) ||
            (to == address(0) || to == address(0xdead)) ||
            (from == owner() || to == owner()) ||
            (_isExcludedFromFees[from] || _isExcludedFromFees[to]) ||
            amount == 0
        ) {
            super._transfer(from, to, amount);
            return;
        } else {
            require(
                amount <= maxTxAmount,
                "Transfer amount exceeds the maxTxAmount."
            );
        }

        if (
            from != owner() &&
            to != owner() &&
            to != address(0) &&
            to != address(0xdead) &&
            !swapping
        ) {
            if (automatedMarketMakerPairs[from]) {
                require(
                    amount + balanceOf(to) <= maxWallet,
                    "can't exceed maxWallet"
                );
            } else if (automatedMarketMakerPairs[to]) {} else {
                require(
                    amount + balanceOf(to) <= maxWallet,
                    "can't exceed maxWallet"
                );
            }
        }

        uint256 contractTokenBalance = balanceOf(address(this));

        bool canSwap = contractTokenBalance >= swapTokensAtAmount;

        if (canSwap && !swapping && !automatedMarketMakerPairs[from]) {
            swapping = true;

            uint256 marketingTokens = contractTokenBalance
                .mul(marketingFee)
                .div(totalFees);

            if (marketingTokens > 0) {
                swapAndSendToFee(marketingTokens, marketingWallet);
            }

            uint256 swapTokens = contractTokenBalance.sub(marketingTokens);

            if (swapTokens > 0) {
                swapAndLiquify(swapTokens);
            }

            swapping = false;
        }

        bool takeFee = !swapping;

        // if any account belongs to _isExcludedFromFee account then remove the fee
        if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
            takeFee = false;
        }

        if (takeFee) {
            uint256 fees = amount.mul(totalFees).div(100);
            if (automatedMarketMakerPairs[to]) {
                fees += amount.mul(extraSellFee).div(100);
            }
            amount = amount.sub(fees);

            super._transfer(from, address(this), fees);
        }

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

    function swapAndSendToFee(uint256 tokens, address receiver) private {
        if (uniswapV2Router.WETH() == address(Reward)) {
            uint256 initialRewardBalance = address(this).balance;

            swapTokensForEth(tokens);

            uint256 newBalance = address(this).balance.sub(
                initialRewardBalance
            );

            payable(receiver).transfer(newBalance);
        } else {
            uint256 initialRewardBalance = IERC20(Reward).balanceOf(
                address(this)
            );

            swapTokensForReward(tokens);
            uint256 newBalance = (IERC20(Reward).balanceOf(address(this))).sub(
                initialRewardBalance
            );

            IERC20(Reward).transfer(receiver, newBalance);
        }
    }

    function swapAndLiquify(uint256 tokens) private {
        // split the contract balance into halves
        uint256 half = tokens.div(2);
        uint256 otherHalf = tokens.sub(half);

        // capture the contract's current ETH balance.
        // this is so that we can capture exactly the amount of ETH that the
        // swap creates, and not make the liquidity event include any ETH that
        // has been manually sent to the contract
        uint256 initialBalance = address(this).balance;

        // swap tokens for ETH
        swapTokensForEth(half); // <- this breaks the ETH -> HATE swap when swap+liquify is triggered

        // how much ETH did we just swap into?
        uint256 newBalance = address(this).balance.sub(initialBalance);

        // add liquidity to uniswap
        addLiquidity(otherHalf, newBalance);

        emit SwapAndLiquify(half, newBalance, otherHalf);
    }

    function swapTokensForEth(uint256 tokenAmount) private {
        // generate the uniswap pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();

        _approve(address(this), address(uniswapV2Router), tokenAmount);

        // make the swap
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp
        );
    }

    function swapTokensForReward(uint256 tokenAmount) private {
        address[] memory path = new address[](3);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();
        path[2] = Reward;

        _approve(address(this), address(uniswapV2Router), tokenAmount);

        // make the swap
        uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(
            tokenAmount,
            0,
            path,
            address(this),
            block.timestamp
        );
    }

    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(uniswapV2Router), tokenAmount);

        // add the liquidity
        uniswapV2Router.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            address(0),
            block.timestamp
        );
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"},{"internalType":"uint256","name":"supply_","type":"uint256"},{"internalType":"uint256[]","name":"parameters","type":"uint256[]"},{"internalType":"address[]","name":"addrList","type":"address[]"},{"internalType":"address","name":"router_","type":"address"},{"internalType":"address","name":"addr_","type":"address"}],"stateMutability":"payable","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":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"accounts","type":"address[]"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeMultipleAccountsFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newLiquidityWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldLiquidityWallet","type":"address"}],"name":"LiquidityWalletUpdated","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":"pair","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPair","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensIntoLiqudity","type":"uint256"}],"name":"SwapAndLiquify","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"},{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"}],"name":"UpdateUniswapV2Router","type":"event"},{"inputs":[],"name":"Reward","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isBlacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_enable","type":"bool"}],"name":"activateMaxWallet","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":"","type":"address"}],"name":"automatedMarketMakerPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"blacklistAddress","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":[],"name":"enableMaxWallet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeMultipleAccountsFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"extraSellFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasBlacklist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWallet","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setLiquidityFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setMarketingFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"wallet","type":"address"}],"name":"setMarketingWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setMaxTxAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_percent","type":"uint256"}],"name":"setMaxWalletPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setSwapTokensAtAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"updateUniswapV2Router","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

Deployed Bytecode

0x6080604052600436106102555760003560e01c80637f7fe7c211610139578063b62496f5116100b6578063e2e15f2e1161007a578063e2e15f2e14610749578063e2f4560514610769578063ec28438a1461077f578063ecb880381461079f578063f2fde38b146107b5578063f8b45b05146107d557600080fd5b8063b62496f514610673578063c0246668146106a3578063c492f046146106c3578063d45e2f76146106e3578063dd62ed3e1461070357600080fd5b806398118cb4116100fd57806398118cb4146105dd5780639a7a23d6146105f3578063a457c2d714610613578063a9059cbb14610633578063afa4f3b21461065357600080fd5b80637f7fe7c21461055557806382bf293c1461056f5780638c0b5e221461058f5780638da5cb5b146105a557806395d89b41146105c857600080fd5b806339509351116101d2578063625e764c11610196578063625e764c1461049457806365b8dbc0146104b45780636b67c4df146104d457806370a08231146104ea578063715018a61461052057806375f0a8741461053557600080fd5b806339509351146103db578063455a4396146103fb57806349bd5a5e1461041b5780634fbee1931461043b5780635d098b381461047457600080fd5b80631cdd3be3116102195780631cdd3be31461032d57806323b872dd1461035d5780632cd6d0771461037d578063313ce56714610397578063357bf15c146103b957600080fd5b806306fdde0314610261578063095ea7b31461028c57806313114a9d146102bc5780631694505e146102e057806318160ddd1461031857600080fd5b3661025c57005b600080fd5b34801561026d57600080fd5b506102766107eb565b6040516102839190612392565b60405180910390f35b34801561029857600080fd5b506102ac6102a736600461240f565b61087d565b6040519015158152602001610283565b3480156102c857600080fd5b506102d2600e5481565b604051908152602001610283565b3480156102ec57600080fd5b50600754610300906001600160a01b031681565b6040516001600160a01b039091168152602001610283565b34801561032457600080fd5b506002546102d2565b34801561033957600080fd5b506102ac61034836600461243b565b600b6020526000908152604090205460ff1681565b34801561036957600080fd5b506102ac610378366004612458565b610894565b34801561038957600080fd5b506014546102ac9060ff1681565b3480156103a357600080fd5b5060055460405160ff9091168152602001610283565b3480156103c557600080fd5b506103d96103d4366004612499565b6108fd565b005b3480156103e757600080fd5b506102ac6103f636600461240f565b61094e565b34801561040757600080fd5b506103d96104163660046124cb565b610984565b34801561042757600080fd5b50600854610300906001600160a01b031681565b34801561044757600080fd5b506102ac61045636600461243b565b6001600160a01b031660009081526015602052604090205460ff1690565b34801561048057600080fd5b506103d961048f36600461243b565b610a29565b3480156104a057600080fd5b506103d96104af366004612499565b610a7b565b3480156104c057600080fd5b506103d96104cf36600461243b565b610abe565b3480156104e057600080fd5b506102d2600d5481565b3480156104f657600080fd5b506102d261050536600461243b565b6001600160a01b031660009081526020819052604090205490565b34801561052c57600080fd5b506103d9610d2e565b34801561054157600080fd5b50601054610300906001600160a01b031681565b34801561056157600080fd5b506012546102ac9060ff1681565b34801561057b57600080fd5b506103d961058a366004612499565b610dae565b34801561059b57600080fd5b506102d260135481565b3480156105b157600080fd5b5060055461010090046001600160a01b0316610300565b3480156105d457600080fd5b50610276610ea5565b3480156105e957600080fd5b506102d2600c5481565b3480156105ff57600080fd5b506103d961060e3660046124cb565b610eb4565b34801561061f57600080fd5b506102ac61062e36600461240f565b610f86565b34801561063f57600080fd5b506102ac61064e36600461240f565b610fd5565b34801561065f57600080fd5b506103d961066e366004612499565b610fe2565b34801561067f57600080fd5b506102ac61068e36600461243b565b60176020526000908152604090205460ff1681565b3480156106af57600080fd5b506103d96106be3660046124cb565b611017565b3480156106cf57600080fd5b506103d96106de36600461251a565b6110a6565b3480156106ef57600080fd5b506103d96106fe3660046125f1565b61117b565b34801561070f57600080fd5b506102d261071e36600461260e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561075557600080fd5b50600954610300906001600160a01b031681565b34801561077557600080fd5b506102d2600a5481565b34801561078b57600080fd5b506103d961079a366004612499565b6111be565b3480156107ab57600080fd5b506102d2600f5481565b3480156107c157600080fd5b506103d96107d036600461243b565b6111f3565b3480156107e157600080fd5b506102d260115481565b6060600380546107fa9061263c565b80601f01602080910402602001604051908101604052809291908181526020018280546108269061263c565b80156108735780601f1061084857610100808354040283529160200191610873565b820191906000526020600020905b81548152906001019060200180831161085657829003601f168201915b5050505050905090565b600061088a338484611419565b5060015b92915050565b60006108a184848461153e565b6108f384336108ee856040518060600160405280602881526020016128ac602891396001600160a01b038a1660009081526001602090815260408083203384529091529020549190611a5e565b611419565b5060019392505050565b6005546001600160a01b036101009091041633146109365760405162461bcd60e51b815260040161092d90612676565b60405180910390fd5b600c819055600d5461094890826112ef565b600e5550565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161088a9185906108ee90866112ef565b6005546001600160a01b036101009091041633146109b45760405162461bcd60e51b815260040161092d90612676565b60145460ff166109fe5760405162461bcd60e51b8152602060048201526015602482015274686173426c61636b6c6973742069732066616c736560581b604482015260640161092d565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6005546001600160a01b03610100909104163314610a595760405162461bcd60e51b815260040161092d90612676565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03610100909104163314610aab5760405162461bcd60e51b815260040161092d90612676565b600d819055600c546109489082906112ef565b6005546001600160a01b03610100909104163314610aee5760405162461bcd60e51b815260040161092d90612676565b6007546001600160a01b0390811690821603610b585760405162461bcd60e51b815260206004820152602360248201527f54686520726f7574657220616c7265616479206861732074686174206164647260448201526265737360e81b606482015260840161092d565b6007546040516001600160a01b03918216918316907f8fc842bbd331dfa973645f4ed48b11683d501ebf1352708d77a5da2ab49a576e90600090a3600780546001600160a01b0319166001600160a01b0383169081179091556040805163c45a015560e01b815290516000929163c45a01559160048083019260209291908290030181865afa158015610bef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1391906126ab565b6001600160a01b031663c9c6539630600760009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9991906126ab565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015610ce6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0a91906126ab565b600880546001600160a01b0319166001600160a01b03929092169190911790555050565b6005546001600160a01b03610100909104163314610d5e5760405162461bcd60e51b815260040161092d90612676565b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b6005546001600160a01b03610100909104163314610dde5760405162461bcd60e51b815260040161092d90612676565b60125460ff16610e305760405162461bcd60e51b815260206004820152601860248201527f6d617857616c6c6574206973206e6f7420656e61626c65640000000000000000604482015260640161092d565b60018110158015610e42575060648111155b610e815760405162461bcd60e51b815260206004820152601060248201526f3737ba103b30b634b210373ab6b132b960811b604482015260640161092d565b610e9f6064610e9983610e9360025490565b90611397565b90611355565b60115550565b6060600480546107fa9061263c565b6005546001600160a01b03610100909104163314610ee45760405162461bcd60e51b815260040161092d90612676565b6008546001600160a01b0390811690831603610f785760405162461bcd60e51b815260206004820152604760248201527f5468652050616e5265776172645377617020706169722063616e6e6f7420626560448201527f2072656d6f7665642066726f6d206175746f6d617465644d61726b65744d616b6064820152666572506169727360c81b608482015260a40161092d565b610f828282611a98565b5050565b600061088a33846108ee856040518060600160405280602581526020016128d4602591393360009081526001602090815260408083206001600160a01b038d1684529091529020549190611a5e565b600061088a33848461153e565b6005546001600160a01b036101009091041633146110125760405162461bcd60e51b815260040161092d90612676565b600a55565b6005546001600160a01b036101009091041633146110475760405162461bcd60e51b815260040161092d90612676565b6001600160a01b038216600081815260156020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6005546001600160a01b036101009091041633146110d65760405162461bcd60e51b815260040161092d90612676565b60005b825181101561113d5781601560008584815181106110f9576110f96126c8565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580611135816126f4565b9150506110d9565b507f7fdaf542373fa84f4ee8d662c642f44e4c2276a217d7d29e548b6eb29a233b35828260405161116f929190612751565b60405180910390a15050565b6005546001600160a01b036101009091041633146111ab5760405162461bcd60e51b815260040161092d90612676565b6012805460ff1916911515919091179055565b6005546001600160a01b036101009091041633146111ee5760405162461bcd60e51b815260040161092d90612676565b601355565b6005546001600160a01b036101009091041633146112235760405162461bcd60e51b815260040161092d90612676565b6001600160a01b0381166112885760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161092d565b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6000806112fc8385612775565b90508381101561134e5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015260640161092d565b9392505050565b600061134e83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611b82565b6000826000036113a95750600061088e565b60006113b5838561278d565b9050826113c285836127ac565b1461134e5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b606482015260840161092d565b6001600160a01b03831661147b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161092d565b6001600160a01b0382166114dc5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161092d565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60145460ff16156115cd576001600160a01b0383166000908152600b602052604090205460ff1615801561158b57506001600160a01b0382166000908152600b602052604090205460ff16155b6115cd5760405162461bcd60e51b8152602060048201526013602482015272426c61636b6c6973746564206164647265737360681b604482015260640161092d565b6007546001600160a01b038381169116148061160457506001600160a01b038216158061160457506001600160a01b03821661dead145b8061163d57506005546001600160a01b0384811661010090920416148061163d57506005546001600160a01b0383811661010090920416145b8061168257506001600160a01b03831660009081526015602052604090205460ff168061168257506001600160a01b03821660009081526015602052604090205460ff165b8061168b575080155b156116a05761169b838383611bb0565b505050565b6013548111156117035760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657220616d6f756e74206578636565647320746865206d6178546044820152673c20b6b7bab73a1760c11b606482015260840161092d565b6005546001600160a01b03848116610100909204161480159061173957506005546001600160a01b038381166101009092041614155b801561174d57506001600160a01b03821615155b801561176457506001600160a01b03821661dead14155b801561177a5750600854600160a01b900460ff16155b1561189f576001600160a01b03831660009081526017602052604090205460ff1615611812576011546001600160a01b0383166000908152602081905260409020546117c69083612775565b111561180d5760405162461bcd60e51b815260206004820152601660248201527518d85b89dd08195e18d95959081b585e15d85b1b195d60521b604482015260640161092d565b61189f565b6001600160a01b03821660009081526017602052604090205460ff1661189f576011546001600160a01b0383166000908152602081905260409020546118589083612775565b111561189f5760405162461bcd60e51b815260206004820152601660248201527518d85b89dd08195e18d95959081b585e15d85b1b195d60521b604482015260640161092d565b30600090815260208190526040902054600a54811080159081906118cd5750600854600160a01b900460ff16155b80156118f257506001600160a01b03851660009081526017602052604090205460ff16155b1561196e576008805460ff60a01b1916600160a01b179055600e54600d5460009161192291610e99908690611397565b90508015611941576010546119419082906001600160a01b0316611d33565b600061194d8483611f76565b9050801561195e5761195e81611fb8565b50506008805460ff60a01b191690555b6008546001600160a01b03861660009081526015602052604090205460ff600160a01b9092048216159116806119bc57506001600160a01b03851660009081526015602052604090205460ff165b156119c5575060005b8015611a4b5760006119e76064610e99600e548861139790919063ffffffff16565b6001600160a01b03871660009081526017602052604090205490915060ff1615611a3257611a256064610e99600f548861139790919063ffffffff16565b611a2f9082612775565b90505b611a3c8582611f76565b9450611a49873083611bb0565b505b611a56868686611bb0565b505050505050565b60008184841115611a825760405162461bcd60e51b815260040161092d9190612392565b506000611a8f84866127ce565b95945050505050565b6001600160a01b03821660009081526017602052604090205481151560ff909116151503611b2e5760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c75650000000000000000606482015260840161092d565b6001600160a01b038216600081815260176020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b60008183611ba35760405162461bcd60e51b815260040161092d9190612392565b506000611a8f84866127ac565b6001600160a01b038316611c145760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161092d565b6001600160a01b038216611c765760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161092d565b611cb381604051806060016040528060268152602001612886602691396001600160a01b0386166000908152602081905260409020549190611a5e565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611ce290826112ef565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101611531565b600954600754604080516315ab88c960e31b815290516001600160a01b03938416939092169163ad5c4648916004808201926020929091908290030181865afa158015611d84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611da891906126ab565b6001600160a01b031603611e0c5747611dc08361203f565b6000611dcc4783611f76565b6040519091506001600160a01b0384169082156108fc029083906000818181858888f19350505050158015611e05573d6000803e3d6000fd5b5050505050565b6009546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611e55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e7991906127e5565b9050611e8483612191565b6009546040516370a0823160e01b8152306004820152600091611efd9184916001600160a01b0316906370a0823190602401602060405180830381865afa158015611ed3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ef791906127e5565b90611f76565b60095460405163a9059cbb60e01b81526001600160a01b0386811660048301526024820184905292935091169063a9059cbb906044016020604051808303816000875af1158015611f52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e0591906127fe565b600061134e83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611a5e565b6000611fc5826002611355565b90506000611fd38383611f76565b905047611fdf8361203f565b6000611feb4783611f76565b9050611ff783826122e8565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a15050505050565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612074576120746126c8565b6001600160a01b03928316602091820292909201810191909152600754604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa1580156120cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120f191906126ab565b81600181518110612104576121046126c8565b6001600160a01b03928316602091820292909201015260075461212a9130911684611419565b60075460405163791ac94760e01b81526001600160a01b039091169063791ac9479061216390859060009086903090429060040161281b565b600060405180830381600087803b15801561217d57600080fd5b505af1158015611a56573d6000803e3d6000fd5b604080516003808252608082019092526000916020820160608036833701905050905030816000815181106121c8576121c86126c8565b6001600160a01b03928316602091820292909201810191909152600754604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015612221573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061224591906126ab565b81600181518110612258576122586126c8565b6001600160a01b039283166020918202929092010152600954825191169082906002908110612289576122896126c8565b6001600160a01b0392831660209182029290920101526007546122af9130911684611419565b600754604051635c11d79560e01b81526001600160a01b0390911690635c11d7959061216390859060009086903090429060040161281b565b6007546123009030906001600160a01b031684611419565b60075460405163f305d71960e01b8152306004820152602481018490526000604482018190526064820181905260848201524260a48201526001600160a01b039091169063f305d71990839060c40160606040518083038185885af115801561236d573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611e059190612857565b600060208083528351808285015260005b818110156123bf578581018301518582016040015282016123a3565b818111156123d1576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b03811681146123fc57600080fd5b50565b803561240a816123e7565b919050565b6000806040838503121561242257600080fd5b823561242d816123e7565b946020939093013593505050565b60006020828403121561244d57600080fd5b813561134e816123e7565b60008060006060848603121561246d57600080fd5b8335612478816123e7565b92506020840135612488816123e7565b929592945050506040919091013590565b6000602082840312156124ab57600080fd5b5035919050565b80151581146123fc57600080fd5b803561240a816124b2565b600080604083850312156124de57600080fd5b82356124e9816123e7565b915060208301356124f9816124b2565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561252d57600080fd5b823567ffffffffffffffff8082111561254557600080fd5b818501915085601f83011261255957600080fd5b813560208282111561256d5761256d612504565b8160051b604051601f19603f8301168101818110868211171561259257612592612504565b6040529283528183019350848101820192898411156125b057600080fd5b948201945b838610156125d5576125c6866123ff565b855294820194938201936125b5565b96506125e490508782016124c0565b9450505050509250929050565b60006020828403121561260357600080fd5b813561134e816124b2565b6000806040838503121561262157600080fd5b823561262c816123e7565b915060208301356124f9816123e7565b600181811c9082168061265057607f821691505b60208210810361267057634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000602082840312156126bd57600080fd5b815161134e816123e7565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612706576127066126de565b5060010190565b600081518084526020808501945080840160005b838110156127465781516001600160a01b031687529582019590820190600101612721565b509495945050505050565b604081526000612764604083018561270d565b905082151560208301529392505050565b60008219821115612788576127886126de565b500190565b60008160001904831182151516156127a7576127a76126de565b500290565b6000826127c957634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156127e0576127e06126de565b500390565b6000602082840312156127f757600080fd5b5051919050565b60006020828403121561281057600080fd5b815161134e816124b2565b85815284602082015260a06040820152600061283a60a083018661270d565b6001600160a01b0394909416606083015250608001529392505050565b60008060006060848603121561286c57600080fd5b835192506020840151915060408401519050925092509256fe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220cbcd7bfc1d506ed93e9130ee942f53a00bd18ff0276f22f46f6f5d5d8fab367a64736f6c634300080f0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.