ETH Price: $3,246.04 (-3.00%)

Contract

0x973e09c75540eFAa6A528b06ff09ad0c7865488f
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve160458572022-11-25 8:38:35718 days ago1669365515IN
0x973e09c7...c7865488f
0 ETH0.0004875610.46207238
Exclude From Fee...160458522022-11-25 8:37:35718 days ago1669365455IN
0x973e09c7...c7865488f
0 ETH0.000489110.27769311
Approve160228252022-11-22 3:20:35721 days ago1669087235IN
0x973e09c7...c7865488f
0 ETH0.000519911.15613612
Set Marketing Fe...160227692022-11-22 3:09:23721 days ago1669086563IN
0x973e09c7...c7865488f
0 ETH0.0003984511.95663638
0x60806040160227582022-11-22 3:07:11721 days ago1669086431IN
 Contract Creation
0.01 ETH0.0678518511.29378414

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
160227582022-11-22 3:07:11721 days ago1669086431
0x973e09c7...c7865488f
0.01 ETH
160227582022-11-22 3:07:11721 days ago1669086431
0x973e09c7...c7865488f
 Contract Creation0 ETH
Loading...
Loading

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

Contract Name:
BABYTOKEN

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-10-27
*/

/**
 *Submitted for verification at BscScan.com on 2022-10-21
*/

// Dependency file: @openzeppelin/contracts/token/ERC20/IERC20.sol

// SPDX-License-Identifier: MIT

// pragma solidity ^0.8.0;

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

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `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);
}


// Dependency file: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol


// pragma solidity ^0.8.0;

// import "@openzeppelin/contracts/token/ERC20/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);
}


// Dependency file: @openzeppelin/contracts/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;
    }
}


// Dependency file: @openzeppelin/contracts/token/ERC20/ERC20.sol


// pragma solidity ^0.8.0;

// import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
// import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
// import "@openzeppelin/contracts/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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

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

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `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);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - 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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][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) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `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);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(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 += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

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

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

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

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

    /**
     * @dev 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 {}
}


// Dependency file: @openzeppelin/contracts/access/Ownable.sol


// pragma solidity ^0.8.0;

// import "@openzeppelin/contracts/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() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual 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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}


// Dependency file: @openzeppelin/contracts/utils/math/SafeMath.sol


// pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

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

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

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

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}


// Dependency file: @openzeppelin/contracts/proxy/Clones.sol


// pragma solidity ^0.8.0;

/**
 * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for
 * deploying minimal proxy contracts, also known as "clones".
 *
 * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies
 * > a minimal bytecode implementation that delegates all calls to a known, fixed address.
 *
 * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2`
 * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the
 * deterministic method.
 *
 * _Available since v3.4._
 */
library Clones {
    /**
     * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
     *
     * This function uses the create opcode, which should never revert.
     */
    function clone(address implementation) internal returns (address instance) {
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, implementation))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
            instance := create(0, ptr, 0x37)
        }
        require(instance != address(0), "ERC1167: create failed");
    }

    /**
     * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
     *
     * This function uses the create2 opcode and a `salt` to deterministically deploy
     * the clone. Using the same `implementation` and `salt` multiple time will revert, since
     * the clones cannot be deployed twice at the same address.
     */
    function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) {
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, implementation))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
            instance := create2(0, ptr, 0x37, salt)
        }
        require(instance != address(0), "ERC1167: create2 failed");
    }

    /**
     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
     */
    function predictDeterministicAddress(
        address implementation,
        bytes32 salt,
        address deployer
    ) internal pure returns (address predicted) {
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, implementation))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000)
            mstore(add(ptr, 0x38), shl(0x60, deployer))
            mstore(add(ptr, 0x4c), salt)
            mstore(add(ptr, 0x6c), keccak256(ptr, 0x37))
            predicted := keccak256(add(ptr, 0x37), 0x55)
        }
    }

    /**
     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
     */
    function predictDeterministicAddress(address implementation, bytes32 salt)
        internal
        view
        returns (address predicted)
    {
        return predictDeterministicAddress(implementation, salt, address(this));
    }
}


// Dependency file: @openzeppelin/contracts/utils/Address.sol


// pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// Dependency file: contracts/interfaces/IUniswapV2Factory.sol

// pragma solidity >=0.5.0;

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;
}


// Dependency file: contracts/interfaces/IUniswapV2Router02.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,
        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;
}


// Dependency file: @openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol


// pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20Upgradeable {
    /**
     * @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);
}


// Dependency file: @openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol


// pragma solidity ^0.8.0;

// import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20MetadataUpgradeable is IERC20Upgradeable {
    /**
     * @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);
}


// Dependency file: @openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol


// pragma solidity ^0.8.0;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }
}


// Dependency file: @openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol


// pragma solidity ^0.8.0;
// import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal initializer {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal initializer {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
    uint256[50] private __gap;
}


// Dependency file: @openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol


// pragma solidity ^0.8.0;

// import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
// import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol";
// import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";
// import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    function __ERC20_init(string memory name_, string memory symbol_) internal initializer {
        __Context_init_unchained();
        __ERC20_init_unchained(name_, symbol_);
    }

    function __ERC20_init_unchained(string memory name_, string memory symbol_) internal initializer {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

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

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `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);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - 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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][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) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `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);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(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 += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

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

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

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

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

    /**
     * @dev 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 {}
    uint256[45] private __gap;
}


// Dependency file: @openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol


// pragma solidity ^0.8.0;

// import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";
// import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal initializer {
        __Context_init_unchained();
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal initializer {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual 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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
    uint256[49] private __gap;
}


// Dependency file: contracts/interfaces/IUniswapV2Pair.sol

// pragma solidity >=0.5.0;

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint 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 (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint 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 (uint);

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

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

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    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 (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

// Dependency file: contracts/libs/SafeMathInt.sol

// pragma solidity =0.8.4;

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


// Dependency file: contracts/libs/SafeMathUint.sol

// pragma solidity =0.8.4;

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


// Dependency file: contracts/baby/IterableMapping.sol

// pragma solidity =0.8.4;

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();
    }
}


// Dependency file: contracts/baby/BabyTokenDividendTracker.sol

// pragma solidity =0.8.4;

// import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
// import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
// import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
// import "@openzeppelin/contracts/access/Ownable.sol";
// import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
// import "@openzeppelin/contracts/utils/math/SafeMath.sol";
// import "contracts/interfaces/IUniswapV2Factory.sol";
// import "contracts/interfaces/IUniswapV2Router02.sol";
// import "contracts/interfaces/IUniswapV2Pair.sol";
// import "contracts/libs/SafeMathInt.sol";
// import "contracts/libs/SafeMathUint.sol";
// import "contracts/baby/IterableMapping.sol";

/// @title Dividend-Paying Token Interface
/// @author Roger Wu (https://github.com/roger-wu)
/// @dev An interface for a dividend-paying token contract.
interface DividendPayingTokenInterface {
    /// @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 dividendOf(address _owner) external view returns (uint256);

    /// @notice Withdraws the ether distributed to the sender.
    /// @dev SHOULD transfer `dividendOf(msg.sender)` wei to `msg.sender`, and `dividendOf(msg.sender)` SHOULD be 0 after the transfer.
    ///  MUST emit a `DividendWithdrawn` event if the amount of ether transferred is greater than 0.
    function withdrawDividend() external;

    /// @dev This event MUST emit when ether is distributed to token holders.
    /// @param from The address which sends ether to this contract.
    /// @param weiAmount The amount of distributed ether in wei.
    event DividendsDistributed(address indexed from, uint256 weiAmount);

    /// @dev This event MUST emit when an address withdraws their dividend.
    /// @param to The address which withdraws ether from this contract.
    /// @param weiAmount The amount of withdrawn ether in wei.
    event DividendWithdrawn(address indexed to, uint256 weiAmount);
}

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

/// @title Dividend-Paying Token
/// @author Roger Wu (https://github.com/roger-wu)
/// @dev A mintable ERC20 token that allows anyone to pay and distribute ether
///  to token holders as dividends and allows token holders to withdraw their dividends.
///  Reference: the source code of PoWH3D: https://etherscan.io/address/0xB3775fB83F7D12A36E0475aBdD1FCA35c091efBe#code
contract DividendPayingToken is
    ERC20Upgradeable,
    OwnableUpgradeable,
    DividendPayingTokenInterface,
    DividendPayingTokenOptionalInterface
{
    using SafeMath for uint256;
    using SafeMathUint for uint256;
    using SafeMathInt for int256;

    address public rewardToken;

    // With `magnitude`, we can properly distribute dividends even if the amount of received ether is small.
    // For more discussion about choosing the value of `magnitude`,
    //  see https://github.com/ethereum/EIPs/issues/1726#issuecomment-472352728
    uint256 internal constant magnitude = 2**128;

    uint256 internal magnifiedDividendPerShare;

    // About dividendCorrection:
    // If the token balance of a `_user` is never changed, the dividend of `_user` can be computed with:
    //   `dividendOf(_user) = dividendPerShare * balanceOf(_user)`.
    // When `balanceOf(_user)` is changed (via minting/burning/transferring tokens),
    //   `dividendOf(_user)` should not be changed,
    //   but the computed value of `dividendPerShare * balanceOf(_user)` is changed.
    // To keep the `dividendOf(_user)` unchanged, we add a correction term:
    //   `dividendOf(_user) = dividendPerShare * balanceOf(_user) + dividendCorrectionOf(_user)`,
    //   where `dividendCorrectionOf(_user)` is updated whenever `balanceOf(_user)` is changed:
    //   `dividendCorrectionOf(_user) = dividendPerShare * (old balanceOf(_user)) - (new balanceOf(_user))`.
    // So now `dividendOf(_user)` returns the same value before and after `balanceOf(_user)` is changed.
    mapping(address => int256) internal magnifiedDividendCorrections;
    mapping(address => uint256) internal withdrawnDividends;

    uint256 public totalDividendsDistributed;

    function __DividendPayingToken_init(
        address _rewardToken,
        string memory _name,
        string memory _symbol
    ) internal initializer {
        __Ownable_init();
        __ERC20_init(_name, _symbol);
        rewardToken = _rewardToken;
    }

    function distributeCAKEDividends(uint256 amount) public onlyOwner {
        require(totalSupply() > 0);

        if (amount > 0) {
            magnifiedDividendPerShare = magnifiedDividendPerShare.add(
                (amount).mul(magnitude) / totalSupply()
            );
            emit DividendsDistributed(msg.sender, amount);

            totalDividendsDistributed = totalDividendsDistributed.add(amount);
        }
    }

    /// @notice Withdraws the ether distributed to the sender.
    /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0.
    function withdrawDividend() public virtual override {
        _withdrawDividendOfUser(payable(msg.sender));
    }

    /// @notice Withdraws the ether distributed to the sender.
    /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0.
    function _withdrawDividendOfUser(address payable user)
        internal
        returns (uint256)
    {
        uint256 _withdrawableDividend = withdrawableDividendOf(user);
        if (_withdrawableDividend > 0) {
            withdrawnDividends[user] = withdrawnDividends[user].add(
                _withdrawableDividend
            );
            emit DividendWithdrawn(user, _withdrawableDividend);
            bool success = IERC20(rewardToken).transfer(
                user,
                _withdrawableDividend
            );

            if (!success) {
                withdrawnDividends[user] = withdrawnDividends[user].sub(
                    _withdrawableDividend
                );
                return 0;
            }

            return _withdrawableDividend;
        }

        return 0;
    }

    /// @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 dividendOf(address _owner) public view override returns (uint256) {
        return withdrawableDividendOf(_owner);
    }

    /// @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)
        public
        view
        override
        returns (uint256)
    {
        return accumulativeDividendOf(_owner).sub(withdrawnDividends[_owner]);
    }

    /// @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)
        public
        view
        override
        returns (uint256)
    {
        return withdrawnDividends[_owner];
    }

    /// @notice View the amount of dividend in wei that an address has earned in total.
    /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner)
    /// = (magnifiedDividendPerShare * balanceOf(_owner) + magnifiedDividendCorrections[_owner]) / magnitude
    /// @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)
        public
        view
        override
        returns (uint256)
    {
        return
            magnifiedDividendPerShare
                .mul(balanceOf(_owner))
                .toInt256Safe()
                .add(magnifiedDividendCorrections[_owner])
                .toUint256Safe() / magnitude;
    }

    /// @dev Internal function that transfer tokens from one address to another.
    /// Update magnifiedDividendCorrections to keep dividends unchanged.
    /// @param from The address to transfer from.
    /// @param to The address to transfer to.
    /// @param value The amount to be transferred.
    function _transfer(
        address from,
        address to,
        uint256 value
    ) internal virtual override {
        require(false);

        int256 _magCorrection = magnifiedDividendPerShare
            .mul(value)
            .toInt256Safe();
        magnifiedDividendCorrections[from] = magnifiedDividendCorrections[from]
            .add(_magCorrection);
        magnifiedDividendCorrections[to] = magnifiedDividendCorrections[to].sub(
            _magCorrection
        );
    }

    /// @dev Internal function that mints tokens to an account.
    /// Update magnifiedDividendCorrections to keep dividends unchanged.
    /// @param account The account that will receive the created tokens.
    /// @param value The amount that will be created.
    function _mint(address account, uint256 value) internal override {
        super._mint(account, value);

        magnifiedDividendCorrections[account] = magnifiedDividendCorrections[
            account
        ].sub((magnifiedDividendPerShare.mul(value)).toInt256Safe());
    }

    /// @dev Internal function that burns an amount of the token of a given account.
    /// Update magnifiedDividendCorrections to keep dividends unchanged.
    /// @param account The account whose tokens will be burnt.
    /// @param value The amount that will be burnt.
    function _burn(address account, uint256 value) internal override {
        super._burn(account, value);

        magnifiedDividendCorrections[account] = magnifiedDividendCorrections[
            account
        ].add((magnifiedDividendPerShare.mul(value)).toInt256Safe());
    }

    function _setBalance(address account, uint256 newBalance) internal {
        uint256 currentBalance = balanceOf(account);

        if (newBalance > currentBalance) {
            uint256 mintAmount = newBalance.sub(currentBalance);
            _mint(account, mintAmount);
        } else if (newBalance < currentBalance) {
            uint256 burnAmount = currentBalance.sub(newBalance);
            _burn(account, burnAmount);
        }
    }
}

contract BABYTOKENDividendTracker is OwnableUpgradeable, DividendPayingToken {
    using SafeMath for uint256;
    using SafeMathInt for int256;
    using IterableMapping for IterableMapping.Map;

    IterableMapping.Map private tokenHoldersMap;
    uint256 public lastProcessedIndex;

    mapping(address => bool) public excludedFromDividends;

    mapping(address => uint256) public lastClaimTimes;

    uint256 public claimWait;
    uint256 public minimumTokenBalanceForDividends;

    event ExcludeFromDividends(address indexed account);
    event ClaimWaitUpdated(uint256 indexed newValue, uint256 indexed oldValue);

    event Claim(
        address indexed account,
        uint256 amount,
        bool indexed automatic
    );

    function initialize(
        address rewardToken_,
        uint256 minimumTokenBalanceForDividends_
    ) external initializer {
        DividendPayingToken.__DividendPayingToken_init(
            rewardToken_,
            "DIVIDEND_TRACKER",
            "DIVIDEND_TRACKER"
        );
        claimWait = 3600;
        minimumTokenBalanceForDividends = minimumTokenBalanceForDividends_;
    }

    function _transfer(
        address,
        address,
        uint256
    ) internal pure override {
        require(false, "Dividend_Tracker: No transfers allowed");
    }

    function withdrawDividend() public pure override {
        require(
            false,
            "Dividend_Tracker: withdrawDividend disabled. Use the 'claim' function on the main BABYTOKEN contract."
        );
    }

    function excludeFromDividends(address account) external onlyOwner {
        require(!excludedFromDividends[account]);
        excludedFromDividends[account] = true;

        _setBalance(account, 0);
        tokenHoldersMap.remove(account);

        emit ExcludeFromDividends(account);
    }

    function isExcludedFromDividends(address account)
        public
        view
        returns (bool)
    {
        return excludedFromDividends[account];
    }

    function updateClaimWait(uint256 newClaimWait) external onlyOwner {
        require(
            newClaimWait >= 3600 && newClaimWait <= 86400,
            "Dividend_Tracker: claimWait must be updated to between 1 and 24 hours"
        );
        require(
            newClaimWait != claimWait,
            "Dividend_Tracker: Cannot update claimWait to same value"
        );
        emit ClaimWaitUpdated(newClaimWait, claimWait);
        claimWait = newClaimWait;
    }

    function updateMinimumTokenBalanceForDividends(uint256 amount)
        external
        onlyOwner
    {
        minimumTokenBalanceForDividends = amount;
    }

    function getLastProcessedIndex() external view returns (uint256) {
        return lastProcessedIndex;
    }

    function getNumberOfTokenHolders() external view returns (uint256) {
        return tokenHoldersMap.keys.length;
    }

    function getAccount(address _account)
        public
        view
        returns (
            address account,
            int256 index,
            int256 iterationsUntilProcessed,
            uint256 withdrawableDividends,
            uint256 totalDividends,
            uint256 lastClaimTime,
            uint256 nextClaimTime,
            uint256 secondsUntilAutoClaimAvailable
        )
    {
        account = _account;

        index = tokenHoldersMap.getIndexOfKey(account);

        iterationsUntilProcessed = -1;

        if (index >= 0) {
            if (uint256(index) > lastProcessedIndex) {
                iterationsUntilProcessed = index.sub(
                    int256(lastProcessedIndex)
                );
            } else {
                uint256 processesUntilEndOfArray = tokenHoldersMap.keys.length >
                    lastProcessedIndex
                    ? tokenHoldersMap.keys.length.sub(lastProcessedIndex)
                    : 0;

                iterationsUntilProcessed = index.add(
                    int256(processesUntilEndOfArray)
                );
            }
        }

        withdrawableDividends = withdrawableDividendOf(account);
        totalDividends = accumulativeDividendOf(account);

        lastClaimTime = lastClaimTimes[account];

        nextClaimTime = lastClaimTime > 0 ? lastClaimTime.add(claimWait) : 0;

        secondsUntilAutoClaimAvailable = nextClaimTime > block.timestamp
            ? nextClaimTime.sub(block.timestamp)
            : 0;
    }

    function getAccountAtIndex(uint256 index)
        public
        view
        returns (
            address,
            int256,
            int256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256
        )
    {
        if (index >= tokenHoldersMap.size()) {
            return (address(0), -1, -1, 0, 0, 0, 0, 0);
        }

        address account = tokenHoldersMap.getKeyAtIndex(index);

        return getAccount(account);
    }

    function canAutoClaim(uint256 lastClaimTime) private view returns (bool) {
        if (lastClaimTime > block.timestamp) {
            return false;
        }

        return block.timestamp.sub(lastClaimTime) >= claimWait;
    }

    function setBalance(address payable account, uint256 newBalance)
        external
        onlyOwner
    {
        if (excludedFromDividends[account]) {
            return;
        }
        if (newBalance >= minimumTokenBalanceForDividends) {
            _setBalance(account, newBalance);
            tokenHoldersMap.set(account, newBalance);
        } else {
            _setBalance(account, 0);
            tokenHoldersMap.remove(account);
        }
        processAccount(account, true);
    }

    function process(uint256 gas)
        public
        returns (
            uint256,
            uint256,
            uint256
        )
    {
        uint256 numberOfTokenHolders = tokenHoldersMap.keys.length;

        if (numberOfTokenHolders == 0) {
            return (0, 0, lastProcessedIndex);
        }

        uint256 _lastProcessedIndex = lastProcessedIndex;

        uint256 gasUsed = 0;

        uint256 gasLeft = gasleft();

        uint256 iterations = 0;
        uint256 claims = 0;

        while (gasUsed < gas && iterations < numberOfTokenHolders) {
            _lastProcessedIndex++;

            if (_lastProcessedIndex >= tokenHoldersMap.keys.length) {
                _lastProcessedIndex = 0;
            }

            address account = tokenHoldersMap.keys[_lastProcessedIndex];

            if (canAutoClaim(lastClaimTimes[account])) {
                if (processAccount(payable(account), true)) {
                    claims++;
                }
            }

            iterations++;

            uint256 newGasLeft = gasleft();

            if (gasLeft > newGasLeft) {
                gasUsed = gasUsed.add(gasLeft.sub(newGasLeft));
            }

            gasLeft = newGasLeft;
        }

        lastProcessedIndex = _lastProcessedIndex;

        return (iterations, claims, lastProcessedIndex);
    }

    function processAccount(address payable account, bool automatic)
        public
        onlyOwner
        returns (bool)
    {
        uint256 amount = _withdrawDividendOfUser(account);

        if (amount > 0) {
            lastClaimTimes[account] = block.timestamp;
            emit Claim(account, amount, automatic);
            return true;
        }

        return false;
    }
}


// Dependency file: contracts/BaseToken.sol

// pragma solidity =0.8.4;

enum TokenType {
    standard,
    antiBotStandard,
    liquidityGenerator,
    antiBotLiquidityGenerator,
    baby,
    antiBotBaby,
    buybackBaby,
    antiBotBuybackBaby
}

abstract contract BaseToken {
    event TokenCreated(
        address indexed owner,
        address indexed token,
        TokenType tokenType,
        uint256 version
    );
}


// Root file: contracts/baby/BabyToken.sol

pragma solidity =0.8.4;

// import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
// import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
// import "@openzeppelin/contracts/access/Ownable.sol";
// import "@openzeppelin/contracts/utils/math/SafeMath.sol";
// import "@openzeppelin/contracts/proxy/Clones.sol";
// import "@openzeppelin/contracts/utils/Address.sol";
// import "contracts/interfaces/IUniswapV2Factory.sol";
// import "contracts/interfaces/IUniswapV2Router02.sol";
// import "contracts/baby/BabyTokenDividendTracker.sol";
// import "contracts/BaseToken.sol";

contract BABYTOKEN is ERC20, Ownable, BaseToken {
    using SafeMath for uint256;
    using Address for address;
    using Address for address payable;

    uint256 public constant VERSION = 3;

    IUniswapV2Router02 public uniswapV2Router;
    address public uniswapV2Pair;

    bool private swapping;

    BABYTOKENDividendTracker public dividendTracker;

    address public rewardToken;

    uint256 public swapTokensAtAmount;

    uint256 public tokenRewardsFee;
    uint256 public liquidityFee;
    uint256 public marketingFee;
    uint256 public totalFees;

    address public _marketingWalletAddress;

    uint256 public gasForProcessing;

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

    // 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 ExcludeFromFees(address indexed account);
    event ExcludeMultipleAccountsFromFees(address[] accounts);

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

    event GasForProcessingUpdated(
        uint256 indexed newValue,
        uint256 indexed oldValue
    );

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

    event SendDividends(uint256 tokensSwapped, uint256 amount);

    event ProcessedDividendTracker(
        uint256 iterations,
        uint256 claims,
        uint256 lastProcessedIndex,
        bool indexed automatic,
        uint256 gas,
        address indexed processor
    );

    constructor(
        string memory name_,
        string memory symbol_,
        uint256 totalSupply_,
        address[4] memory addrs, // reward, router, marketing wallet, dividendTracker
        uint256[3] memory feeSettings, // rewards, liquidity, marketing
        uint256 minimumTokenBalanceForDividends_,
        address serviceFeeReceiver_,
        uint256 serviceFee_
    ) payable ERC20(name_, symbol_) {
        rewardToken = addrs[0];
        _marketingWalletAddress = addrs[2];
        require(
            msg.sender != _marketingWalletAddress,
            "Owner and marketing wallet cannot be the same"
        );
        require(
            !_marketingWalletAddress.isContract(),
            "Marketing wallet cannot be a contract"
        );

        tokenRewardsFee = feeSettings[0];
        liquidityFee = feeSettings[1];
        marketingFee = feeSettings[2];
        totalFees = tokenRewardsFee.add(liquidityFee).add(marketingFee);
        require(totalFees <= 25, "Total fee is over 25%");
        swapTokensAtAmount = totalSupply_.div(1000); // 0.1%

        // use by default 300,000 gas to process auto-claiming dividends
        gasForProcessing = 300000;

        dividendTracker = BABYTOKENDividendTracker(
            payable(Clones.clone(addrs[3]))
        );
        dividendTracker.initialize(
            rewardToken,
            minimumTokenBalanceForDividends_
        );

        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(addrs[1]);
        // Create a uniswap pair for this new token
        address _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
            .createPair(address(this), _uniswapV2Router.WETH());
        uniswapV2Router = _uniswapV2Router;
        uniswapV2Pair = _uniswapV2Pair;
        _setAutomatedMarketMakerPair(_uniswapV2Pair, true);

        // exclude from receiving dividends
        dividendTracker.excludeFromDividends(address(dividendTracker));
        dividendTracker.excludeFromDividends(address(this));
        dividendTracker.excludeFromDividends(owner());
        dividendTracker.excludeFromDividends(address(0xdead));
        dividendTracker.excludeFromDividends(address(_uniswapV2Router));
        // exclude from paying fees or having max transaction amount
        _isExcludedFromFees[owner()] = true;
        _isExcludedFromFees[_marketingWalletAddress] = true;
        _isExcludedFromFees[address(this)] = true;
        /*
            _mint is an internal function in ERC20.sol that is only called here,
            and CANNOT be called ever again
        */
        _mint(owner(), totalSupply_);

        emit TokenCreated(owner(), address(this), TokenType.baby, VERSION);

        payable(serviceFeeReceiver_).transfer(serviceFee_);
    }

    receive() external payable {}

    function setSwapTokensAtAmount(uint256 amount) external onlyOwner {
        require(
            amount > totalSupply() / 10**5,
            "BABYTOKEN: Amount must be greater than 0.001% of total supply"
        );
        swapTokensAtAmount = amount;
    }

    function excludeFromFees(address account) external onlyOwner {
        require(
            !_isExcludedFromFees[account],
            "BABYTOKEN: Account is already excluded"
        );
        _isExcludedFromFees[account] = true;

        emit ExcludeFromFees(account);
    }

    function excludeMultipleAccountsFromFees(address[] calldata accounts)
        external
        onlyOwner
    {
        for (uint256 i = 0; i < accounts.length; i++) {
            _isExcludedFromFees[accounts[i]] = true;
        }

        emit ExcludeMultipleAccountsFromFees(accounts);
    }

    function setMarketingWallet(address payable wallet) external onlyOwner {
        require(
            wallet != address(0),
            "BABYTOKEN: The marketing wallet cannot be the value of zero"
        );
        require(!wallet.isContract(), "Marketing wallet cannot be a contract");
        _marketingWalletAddress = wallet;
    }

    function setTokenRewardsFee(uint256 value) external onlyOwner {
        tokenRewardsFee = value;
        totalFees = tokenRewardsFee.add(liquidityFee).add(marketingFee);
        require(totalFees <= 25, "Total fee is over 25%");
    }

    function setLiquiditFee(uint256 value) external onlyOwner {
        liquidityFee = value;
        totalFees = tokenRewardsFee.add(liquidityFee).add(marketingFee);
        require(totalFees <= 25, "Total fee is over 25%");
    }

    function setMarketingFee(uint256 value) external onlyOwner {
        marketingFee = value;
        totalFees = tokenRewardsFee.add(liquidityFee).add(marketingFee);
        require(totalFees <= 25, "Total fee is over 25%");
    }

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

        if (value) {
            dividendTracker.excludeFromDividends(pair);
        }

        emit SetAutomatedMarketMakerPair(pair, value);
    }

    function updateGasForProcessing(uint256 newValue) public onlyOwner {
        require(
            newValue >= 200000 && newValue <= 500000,
            "BABYTOKEN: gasForProcessing must be between 200,000 and 500,000"
        );
        require(
            newValue != gasForProcessing,
            "BABYTOKEN: Cannot update gasForProcessing to same value"
        );
        emit GasForProcessingUpdated(newValue, gasForProcessing);
        gasForProcessing = newValue;
    }

    function updateClaimWait(uint256 claimWait) external onlyOwner {
        dividendTracker.updateClaimWait(claimWait);
    }

    function getClaimWait() external view returns (uint256) {
        return dividendTracker.claimWait();
    }

    function updateMinimumTokenBalanceForDividends(uint256 amount)
        external
        onlyOwner
    {
        dividendTracker.updateMinimumTokenBalanceForDividends(amount);
    }

    function getMinimumTokenBalanceForDividends()
        external
        view
        returns (uint256)
    {
        return dividendTracker.minimumTokenBalanceForDividends();
    }

    function getTotalDividendsDistributed() external view returns (uint256) {
        return dividendTracker.totalDividendsDistributed();
    }

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

    function withdrawableDividendOf(address account)
        public
        view
        returns (uint256)
    {
        return dividendTracker.withdrawableDividendOf(account);
    }

    function dividendTokenBalanceOf(address account)
        public
        view
        returns (uint256)
    {
        return dividendTracker.balanceOf(account);
    }

    function excludeFromDividends(address account) external onlyOwner {
        dividendTracker.excludeFromDividends(account);
    }

    function isExcludedFromDividends(address account)
        public
        view
        returns (bool)
    {
        return dividendTracker.isExcludedFromDividends(account);
    }

    function getAccountDividendsInfo(address account)
        external
        view
        returns (
            address,
            int256,
            int256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256
        )
    {
        return dividendTracker.getAccount(account);
    }

    function getAccountDividendsInfoAtIndex(uint256 index)
        external
        view
        returns (
            address,
            int256,
            int256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256
        )
    {
        return dividendTracker.getAccountAtIndex(index);
    }

    function processDividendTracker(uint256 gas) external {
        (
            uint256 iterations,
            uint256 claims,
            uint256 lastProcessedIndex
        ) = dividendTracker.process(gas);
        emit ProcessedDividendTracker(
            iterations,
            claims,
            lastProcessedIndex,
            false,
            gas,
            tx.origin
        );
    }

    function claim() external {
        dividendTracker.processAccount(payable(msg.sender), false);
    }

    function getLastProcessedIndex() external view returns (uint256) {
        return dividendTracker.getLastProcessedIndex();
    }

    function getNumberOfDividendTokenHolders() external view returns (uint256) {
        return dividendTracker.getNumberOfTokenHolders();
    }

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

        if (amount == 0) {
            super._transfer(from, to, 0);
            return;
        }

        uint256 contractTokenBalance = balanceOf(address(this));

        bool canSwap = contractTokenBalance >= swapTokensAtAmount;

        if (
            canSwap &&
            !swapping &&
            !automatedMarketMakerPairs[from] &&
            from != owner() &&
            to != owner() &&
            totalFees > 0
        ) {
            swapping = true;

            if (marketingFee > 0) {
                uint256 marketingTokens = contractTokenBalance
                    .mul(marketingFee)
                    .div(totalFees);
                swapAndSendToFee(marketingTokens);
            }

            if (liquidityFee > 0) {
                uint256 swapTokens = contractTokenBalance.mul(liquidityFee).div(
                    totalFees
                );
                swapAndLiquify(swapTokens);
            }

            uint256 sellTokens = balanceOf(address(this));
            if (sellTokens > 0) {
                swapAndSendDividends(sellTokens);
            }

            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 && totalFees > 0) {
            uint256 fees = amount.mul(totalFees).div(100);
            amount = amount.sub(fees);

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

        super._transfer(from, to, amount);

        try
            dividendTracker.setBalance(payable(from), balanceOf(from))
        {} catch {}
        try dividendTracker.setBalance(payable(to), balanceOf(to)) {} catch {}

        if (!swapping) {
            uint256 gas = gasForProcessing;

            try dividendTracker.process(gas) returns (
                uint256 iterations,
                uint256 claims,
                uint256 lastProcessedIndex
            ) {
                emit ProcessedDividendTracker(
                    iterations,
                    claims,
                    lastProcessedIndex,
                    true,
                    gas,
                    tx.origin
                );
            } catch {}
        }
    }

    function swapAndSendToFee(uint256 tokens) private {
        uint256 initialCAKEBalance = IERC20(rewardToken).balanceOf(
            address(this)
        );

        swapTokensForCake(tokens);
        uint256 newBalance = (IERC20(rewardToken).balanceOf(address(this))).sub(
            initialCAKEBalance
        );
        IERC20(rewardToken).transfer(_marketingWalletAddress, 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 swapTokensForCake(uint256 tokenAmount) private {
        address[] memory path = new address[](3);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();
        path[2] = rewardToken;

        _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(0xdead),
            block.timestamp
        );
    }

    function swapAndSendDividends(uint256 tokens) private {
        swapTokensForCake(tokens);
        uint256 dividends = IERC20(rewardToken).balanceOf(address(this));
        bool success = IERC20(rewardToken).transfer(
            address(dividendTracker),
            dividends
        );

        if (success) {
            dividendTracker.distributeCAKEDividends(dividends);
            emit SendDividends(tokens, dividends);
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint256","name":"totalSupply_","type":"uint256"},{"internalType":"address[4]","name":"addrs","type":"address[4]"},{"internalType":"uint256[3]","name":"feeSettings","type":"uint256[3]"},{"internalType":"uint256","name":"minimumTokenBalanceForDividends_","type":"uint256"},{"internalType":"address","name":"serviceFeeReceiver_","type":"address"},{"internalType":"uint256","name":"serviceFee_","type":"uint256"}],"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"}],"name":"ExcludeFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"accounts","type":"address[]"}],"name":"ExcludeMultipleAccountsFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"oldValue","type":"uint256"}],"name":"GasForProcessingUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"iterations","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"claims","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastProcessedIndex","type":"uint256"},{"indexed":true,"internalType":"bool","name":"automatic","type":"bool"},{"indexed":false,"internalType":"uint256","name":"gas","type":"uint256"},{"indexed":true,"internalType":"address","name":"processor","type":"address"}],"name":"ProcessedDividendTracker","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SendDividends","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":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"enum TokenType","name":"tokenType","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"version","type":"uint256"}],"name":"TokenCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_marketingWalletAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","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":[],"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":"account","type":"address"}],"name":"dividendTokenBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dividendTracker","outputs":[{"internalType":"contract BABYTOKENDividendTracker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"}],"name":"excludeMultipleAccountsFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gasForProcessing","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAccountDividendsInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getAccountDividendsInfoAtIndex","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getClaimWait","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLastProcessedIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMinimumTokenBalanceForDividends","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumberOfDividendTokenHolders","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalDividendsDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"isExcludedFromDividends","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gas","type":"uint256"}],"name":"processDividendTracker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setLiquiditFee","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":"setSwapTokensAtAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setTokenRewardsFee","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":"tokenRewardsFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint256","name":"claimWait","type":"uint256"}],"name":"updateClaimWait","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"updateGasForProcessing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"updateMinimumTokenBalanceForDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"withdrawableDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

Deployed Bytecode

0x6080604052600436106102e85760003560e01c8063715018a611610190578063b62496f5116100dc578063e708a0f911610095578063f27fd2541161006f578063f27fd2541461091c578063f2fde38b1461093c578063f7c618c11461095c578063ffa1ad741461097c57600080fd5b8063e708a0f9146108d1578063e7841ec0146108e7578063e98030c7146108fc57600080fd5b8063b62496f5146107f0578063bdd4f29f14610820578063c705c56914610835578063dd62ed3e14610855578063e2f456051461089b578063e57f14e1146108b157600080fd5b8063a26579ad11610149578063a9059cbb11610123578063a9059cbb1461072b578063ad56c13c1461074b578063adefd90c146107b0578063afa4f3b2146107d057600080fd5b8063a26579ad146106d6578063a457c2d7146106eb578063a8b9d2401461070b57600080fd5b8063715018a614610642578063871c128d146106575780638da5cb5b1461067757806395d89b411461069557806398118cb4146106aa5780639c1b8af5146106c057600080fd5b8063395093511161024f5780635d098b38116102085780636843cd84116101e25780636843cd84146105b65780636b67c4df146105d6578063700bb191146105ec57806370a082311461060c57600080fd5b80635d098b3814610561578063625e764c1461058157806364b0f653146105a157600080fd5b806339509351146104935780634144d9e4146104b357806349bd5a5e146104d35780634e71d92d146104f35780634ed080c7146105085780634fbee1931461052857600080fd5b806318160ddd116102a157806318160ddd146103ed57806323b872dd146104025780632c1f52161461042257806330bb4cff14610442578063313ce5671461045757806331e79db01461047357600080fd5b806306fdde03146102f4578063095ea7b31461031f5780630c43c79b1461034f5780630dcb2e891461037157806313114a9d146103915780631694505e146103b557600080fd5b366102ef57005b600080fd5b34801561030057600080fd5b50610309610991565b6040516103169190612b5c565b60405180910390f35b34801561032b57600080fd5b5061033f61033a3660046129f6565b610a23565b6040519015158152602001610316565b34801561035b57600080fd5b5061036f61036a366004612a21565b610a39565b005b34801561037d57600080fd5b5061036f61038c366004612ab1565b610b2a565b34801561039d57600080fd5b506103a7600e5481565b604051908152602001610316565b3480156103c157600080fd5b506006546103d5906001600160a01b031681565b6040516001600160a01b039091168152602001610316565b3480156103f957600080fd5b506002546103a7565b34801561040e57600080fd5b5061033f61041d36600461294d565b610bb6565b34801561042e57600080fd5b506008546103d5906001600160a01b031681565b34801561044e57600080fd5b506103a7610c60565b34801561046357600080fd5b5060405160128152602001610316565b34801561047f57600080fd5b5061036f61048e3660046128dd565b610ce2565b34801561049f57600080fd5b5061033f6104ae3660046129f6565b610d3e565b3480156104bf57600080fd5b50600f546103d5906001600160a01b031681565b3480156104df57600080fd5b506007546103d5906001600160a01b031681565b3480156104ff57600080fd5b5061036f610d7a565b34801561051457600080fd5b5061036f610523366004612ab1565b610e01565b34801561053457600080fd5b5061033f6105433660046128dd565b6001600160a01b031660009081526011602052604090205460ff1690565b34801561056d57600080fd5b5061036f61057c3660046128dd565b610e99565b34801561058d57600080fd5b5061036f61059c366004612ab1565b610fc7565b3480156105ad57600080fd5b506103a761100b565b3480156105c257600080fd5b506103a76105d13660046128dd565b611050565b3480156105e257600080fd5b506103a7600d5481565b3480156105f857600080fd5b5061036f610607366004612ab1565b6110d5565b34801561061857600080fd5b506103a76106273660046128dd565b6001600160a01b031660009081526020819052604090205490565b34801561064e57600080fd5b5061036f6111b7565b34801561066357600080fd5b5061036f610672366004612ab1565b6111ed565b34801561068357600080fd5b506005546001600160a01b03166103d5565b3480156106a157600080fd5b5061030961134a565b3480156106b657600080fd5b506103a7600c5481565b3480156106cc57600080fd5b506103a760105481565b3480156106e257600080fd5b506103a7611359565b3480156106f757600080fd5b5061033f6107063660046129f6565b61139e565b34801561071757600080fd5b506103a76107263660046128dd565b611437565b34801561073757600080fd5b5061033f6107463660046129f6565b61146a565b34801561075757600080fd5b5061076b6107663660046128dd565b611477565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e082015261010001610316565b3480156107bc57600080fd5b5061036f6107cb366004612ab1565b611521565b3480156107dc57600080fd5b5061036f6107eb366004612ab1565b611565565b3480156107fc57600080fd5b5061033f61080b3660046128dd565b60126020526000908152604090205460ff1681565b34801561082c57600080fd5b506103a761161f565b34801561084157600080fd5b5061033f6108503660046128dd565b611664565b34801561086157600080fd5b506103a7610870366004612915565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156108a757600080fd5b506103a7600a5481565b3480156108bd57600080fd5b5061036f6108cc3660046128dd565b6116e2565b3480156108dd57600080fd5b506103a7600b5481565b3480156108f357600080fd5b506103a76117d0565b34801561090857600080fd5b5061036f610917366004612ab1565b611815565b34801561092857600080fd5b5061076b610937366004612ab1565b611870565b34801561094857600080fd5b5061036f6109573660046128dd565b6118b2565b34801561096857600080fd5b506009546103d5906001600160a01b031681565b34801561098857600080fd5b506103a7600381565b6060600380546109a090612d4a565b80601f01602080910402602001604051908101604052809291908181526020018280546109cc90612d4a565b8015610a195780601f106109ee57610100808354040283529160200191610a19565b820191906000526020600020905b8154815290600101906020018083116109fc57829003601f168201915b5050505050905090565b6000610a30338484611a0c565b50600192915050565b6005546001600160a01b03163314610a6c5760405162461bcd60e51b8152600401610a6390612bf2565b60405180910390fd5b60005b81811015610aec57600160116000858585818110610a9d57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610ab291906128dd565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610ae481612d85565b915050610a6f565b507f6f058e77d614a1061fc197c99cdde12f5fa414c92529bbe8f48b02f8d9f4f95d8282604051610b1e929190612b0e565b60405180910390a15050565b6005546001600160a01b03163314610b545760405162461bcd60e51b8152600401610a6390612bf2565b600854604051630dcb2e8960e01b8152600481018390526001600160a01b0390911690630dcb2e89906024015b600060405180830381600087803b158015610b9b57600080fd5b505af1158015610baf573d6000803e3d6000fd5b5050505050565b6000610bc3848484611b30565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610c485760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610a63565b610c558533858403611a0c565b506001949350505050565b600854604080516342d359d760e11b815290516000926001600160a01b0316916385a6b3ae916004808301926020929190829003018186803b158015610ca557600080fd5b505afa158015610cb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cdd9190612ac9565b905090565b6005546001600160a01b03163314610d0c5760405162461bcd60e51b8152600401610a6390612bf2565b60085460405163031e79db60e41b81526001600160a01b038381166004830152909116906331e79db090602401610b81565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610a30918590610d75908690612cdc565b611a0c565b60085460405163bc4c4b3760e01b8152336004820152600060248201526001600160a01b039091169063bc4c4b3790604401602060405180830381600087803b158015610dc657600080fd5b505af1158015610dda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfe9190612a91565b50565b6005546001600160a01b03163314610e2b5760405162461bcd60e51b8152600401610a6390612bf2565b600b819055600d54600c54610e4c9190610e46908490611950565b90611950565b600e81905560191015610dfe5760405162461bcd60e51b8152602060048201526015602482015274546f74616c20666565206973206f7665722032352560581b6044820152606401610a63565b6005546001600160a01b03163314610ec35760405162461bcd60e51b8152600401610a6390612bf2565b6001600160a01b038116610f3f5760405162461bcd60e51b815260206004820152603b60248201527f42414259544f4b454e3a20546865206d61726b6574696e672077616c6c65742060448201527f63616e6e6f74206265207468652076616c7565206f66207a65726f00000000006064820152608401610a63565b6001600160a01b0381163b15610fa55760405162461bcd60e51b815260206004820152602560248201527f4d61726b6574696e672077616c6c65742063616e6e6f74206265206120636f6e6044820152641d1c9858dd60da1b6064820152608401610a63565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314610ff15760405162461bcd60e51b8152600401610a6390612bf2565b600d819055600c54600b54610e4c918391610e4691611950565b600854604080516304ddf6ef60e11b815290516000926001600160a01b0316916309bbedde916004808301926020929190829003018186803b158015610ca557600080fd5b6008546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a08231906024015b60206040518083038186803b15801561109757600080fd5b505afa1580156110ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110cf9190612ac9565b92915050565b6008546040516001624d3b8760e01b0319815260048101839052600091829182916001600160a01b03169063ffb2c47990602401606060405180830381600087803b15801561112357600080fd5b505af1158015611137573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115b9190612ae1565b604080518481526020810184905290810182905260608101889052929550909350915032906000907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a98906080015b60405180910390a350505050565b6005546001600160a01b031633146111e15760405162461bcd60e51b8152600401610a6390612bf2565b6111eb6000611f87565b565b6005546001600160a01b031633146112175760405162461bcd60e51b8152600401610a6390612bf2565b62030d40811015801561122d57506207a1208111155b61129f5760405162461bcd60e51b815260206004820152603f60248201527f42414259544f4b454e3a20676173466f7250726f63657373696e67206d75737460448201527f206265206265747765656e203230302c30303020616e64203530302c303030006064820152608401610a63565b6010548114156113175760405162461bcd60e51b815260206004820152603760248201527f42414259544f4b454e3a2043616e6e6f742075706461746520676173466f725060448201527f726f63657373696e6720746f2073616d652076616c75650000000000000000006064820152608401610a63565b60105460405182907f40d7e40e79af4e8e5a9b3c57030d8ea93f13d669c06d448c4d631d4ae7d23db790600090a3601055565b6060600480546109a090612d4a565b60085460408051631bc9e27b60e21b815290516000926001600160a01b031691636f2789ec916004808301926020929190829003018186803b158015610ca557600080fd5b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156114205760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610a63565b61142d3385858403611a0c565b5060019392505050565b6008546040516302a2e74960e61b81526001600160a01b038381166004830152600092169063a8b9d2409060240161107f565b6000610a30338484611b30565b60085460405163fbcbc0f160e01b81526001600160a01b038381166004830152600092839283928392839283928392839291169063fbcbc0f1906024015b6101006040518083038186803b1580156114ce57600080fd5b505afa1580156114e2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611506919061298d565b97509750975097509750975097509750919395975091939597565b6005546001600160a01b0316331461154b5760405162461bcd60e51b8152600401610a6390612bf2565b600c819055600d54600b54610e4c9190610e469084611950565b6005546001600160a01b0316331461158f5760405162461bcd60e51b8152600401610a6390612bf2565b620186a061159c60025490565b6115a69190612cf4565b811161161a5760405162461bcd60e51b815260206004820152603d60248201527f42414259544f4b454e3a20416d6f756e74206d7573742062652067726561746560448201527f72207468616e20302e30303125206f6620746f74616c20737570706c790000006064820152608401610a63565b600a55565b60085460408051632f842d8560e21b815290516000926001600160a01b03169163be10b614916004808301926020929190829003018186803b158015610ca557600080fd5b60085460405163c705c56960e01b81526001600160a01b038381166004830152600092169063c705c5699060240160206040518083038186803b1580156116aa57600080fd5b505afa1580156116be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110cf9190612a91565b6005546001600160a01b0316331461170c5760405162461bcd60e51b8152600401610a6390612bf2565b6001600160a01b03811660009081526011602052604090205460ff16156117845760405162461bcd60e51b815260206004820152602660248201527f42414259544f4b454e3a204163636f756e7420697320616c726561647920657860448201526518db1d59195960d21b6064820152608401610a63565b6001600160a01b038116600081815260116020526040808220805460ff19166001179055517f57a00f76b5f242fb1e04b0b514a6974665a5b07bce45e39f36dabff4a042d9369190a250565b6008546040805163039e107b60e61b815290516000926001600160a01b03169163e7841ec0916004808301926020929190829003018186803b158015610ca557600080fd5b6005546001600160a01b0316331461183f5760405162461bcd60e51b8152600401610a6390612bf2565b60085460405163e98030c760e01b8152600481018390526001600160a01b039091169063e98030c790602401610b81565b600854604051635183d6fd60e01b81526004810183905260009182918291829182918291829182916001600160a01b0390911690635183d6fd906024016114b5565b6005546001600160a01b031633146118dc5760405162461bcd60e51b8152600401610a6390612bf2565b6001600160a01b0381166119415760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a63565b610dfe81611f87565b3b151590565b600061195c8284612cdc565b9392505050565b600061195c8284612cf4565b6000604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528260601b60148201526e5af43d82803e903d91602b57fd5bf360881b60288201526037816000f09150506001600160a01b038116611a075760405162461bcd60e51b8152602060048201526016602482015275115490cc4c4d8dce8818dc99585d194819985a5b195960521b6044820152606401610a63565b919050565b6001600160a01b038316611a6e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a63565b6001600160a01b038216611acf5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a63565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316611b565760405162461bcd60e51b8152600401610a6390612c27565b6001600160a01b038216611b7c5760405162461bcd60e51b8152600401610a6390612baf565b80611b9257611b8d83836000611fd9565b505050565b30600090815260208190526040902054600a5481108015908190611bc05750600754600160a01b900460ff16155b8015611be557506001600160a01b03851660009081526012602052604090205460ff16155b8015611bff57506005546001600160a01b03868116911614155b8015611c1957506005546001600160a01b03858116911614155b8015611c2757506000600e54115b15611cd7576007805460ff60a01b1916600160a01b179055600d5415611c77576000611c6a600e54611c64600d548661212690919063ffffffff16565b90611963565b9050611c7581612132565b505b600c5415611ca9576000611c9c600e54611c64600c548661212690919063ffffffff16565b9050611ca7816122cb565b505b306000908152602081905260409020548015611cc857611cc881612352565b506007805460ff60a01b191690555b6007546001600160a01b03861660009081526011602052604090205460ff600160a01b909204821615911680611d2557506001600160a01b03851660009081526011602052604090205460ff165b15611d2e575060005b808015611d3d57506000600e54115b15611d79576000611d5e6064611c64600e548861212690919063ffffffff16565b9050611d6a858261250a565b9450611d77873083611fd9565b505b611d84868686611fd9565b6008546001600160a01b031663e30443bc87611db5816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611dfb57600080fd5b505af1925050508015611e0c575060015b506008546001600160a01b031663e30443bc86611e3e816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611e8457600080fd5b505af1925050508015611e95575060015b50600754600160a01b900460ff16611f7f576010546008546040516001624d3b8760e01b03198152600481018390526001600160a01b039091169063ffb2c47990602401606060405180830381600087803b158015611ef357600080fd5b505af1925050508015611f23575060408051601f3d908101601f19168201909252611f2091810190612ae1565b60015b611f2c57611f7d565b60408051848152602081018490529081018290526060810185905232906001907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a35050505b505b505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038316611fff5760405162461bcd60e51b8152600401610a6390612c27565b6001600160a01b0382166120255760405162461bcd60e51b8152600401610a6390612baf565b6001600160a01b0383166000908152602081905260409020548181101561209d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610a63565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906120d4908490612cdc565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516111a991815260200190565b50505050565b600061195c8284612d14565b6009546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561217657600080fd5b505afa15801561218a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121ae9190612ac9565b90506121b982612516565b6009546040516370a0823160e01b81523060048201526000916122419184916001600160a01b0316906370a082319060240160206040518083038186803b15801561220357600080fd5b505afa158015612217573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061223b9190612ac9565b9061250a565b600954600f5460405163a9059cbb60e01b81526001600160a01b03918216600482015260248101849052929350169063a9059cbb90604401602060405180830381600087803b15801561229357600080fd5b505af11580156122a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121209190612a91565b60006122d8826002611963565b905060006122e6838361250a565b9050476122f2836126d4565b60006122fe478361250a565b905061230a8382612823565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a15050505050565b61235b81612516565b6009546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561239f57600080fd5b505afa1580156123b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123d79190612ac9565b60095460085460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905292935060009291169063a9059cbb90604401602060405180830381600087803b15801561242d57600080fd5b505af1158015612441573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124659190612a91565b90508015611b8d5760085460405163ba72a95560e01b8152600481018490526001600160a01b039091169063ba72a95590602401600060405180830381600087803b1580156124b357600080fd5b505af11580156124c7573d6000803e3d6000fd5b505060408051868152602081018690527f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc3935001905060405180910390a1505050565b600061195c8284612d33565b6040805160038082526080820190925260009160208201606080368337019050509050308160008151811061255b57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b1580156125af57600080fd5b505afa1580156125c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125e791906128f9565b8160018151811061260857634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201015260095482519116908290600290811061264757634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201015260065461266d9130911684611a0c565b600654604051635c11d79560e01b81526001600160a01b0390911690635c11d795906126a6908590600090869030904290600401612c6c565b600060405180830381600087803b1580156126c057600080fd5b505af1158015611f7f573d6000803e3d6000fd5b604080516002808252606082018352600092602083019080368337019050509050308160008151811061271757634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561276b57600080fd5b505afa15801561277f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127a391906128f9565b816001815181106127c457634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526006546127ea9130911684611a0c565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac947906126a6908590600090869030904290600401612c6c565b60065461283b9030906001600160a01b031684611a0c565b60065460405163f305d71960e01b815230600482015260248101849052600060448201819052606482015261dead60848201524260a48201526001600160a01b039091169063f305d71990839060c4016060604051808303818588803b1580156128a457600080fd5b505af11580156128b8573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610baf9190612ae1565b6000602082840312156128ee578081fd5b813561195c81612db6565b60006020828403121561290a578081fd5b815161195c81612db6565b60008060408385031215612927578081fd5b823561293281612db6565b9150602083013561294281612db6565b809150509250929050565b600080600060608486031215612961578081fd5b833561296c81612db6565b9250602084013561297c81612db6565b929592945050506040919091013590565b600080600080600080600080610100898b0312156129a9578384fd5b88516129b481612db6565b809850506020890151965060408901519550606089015194506080890151935060a0890151925060c0890151915060e089015190509295985092959890939650565b60008060408385031215612a08578182fd5b8235612a1381612db6565b946020939093013593505050565b60008060208385031215612a33578182fd5b823567ffffffffffffffff80821115612a4a578384fd5b818501915085601f830112612a5d578384fd5b813581811115612a6b578485fd5b8660208260051b8501011115612a7f578485fd5b60209290920196919550909350505050565b600060208284031215612aa2578081fd5b8151801515811461195c578182fd5b600060208284031215612ac2578081fd5b5035919050565b600060208284031215612ada578081fd5b5051919050565b600080600060608486031215612af5578283fd5b8351925060208401519150604084015190509250925092565b60208082528181018390526000908460408401835b86811015612b51578235612b3681612db6565b6001600160a01b031682529183019190830190600101612b23565b509695505050505050565b6000602080835283518082850152825b81811015612b8857858101830151858201604001528201612b6c565b81811115612b995783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b81811015612cbb5784516001600160a01b031683529383019391830191600101612c96565b50506001600160a01b03969096166060850152505050608001529392505050565b60008219821115612cef57612cef612da0565b500190565b600082612d0f57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615612d2e57612d2e612da0565b500290565b600082821015612d4557612d45612da0565b500390565b600181811c90821680612d5e57607f821691505b60208210811415612d7f57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612d9957612d99612da0565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114610dfe57600080fdfea2646970667358221220d4483ffb2e99034881fa45571586b27a850dd23cd56933dfa07a72de9734a40e64736f6c63430008040033

Deployed Bytecode Sourcemap

94238:16847:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6817:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;8984:169;;;;;;;;;;-1:-1:-1;8984:169:0;;;;;:::i;:::-;;:::i;:::-;;;7682:14:1;;7675:22;7657:41;;7645:2;7630:18;8984:169:0;7612:92:1;99418:301:0;;;;;;;;;;-1:-1:-1;99418:301:0;;;;;:::i;:::-;;:::i;:::-;;102004:185;;;;;;;;;;-1:-1:-1;102004:185:0;;;;;:::i;:::-;;:::i;94797:24::-;;;;;;;;;;;;;;;;;;;15775:25:1;;;15763:2;15748:18;94797:24:0;15730:76:1;94444:41:0;;;;;;;;;;-1:-1:-1;94444:41:0;;;;-1:-1:-1;;;;;94444:41:0;;;;;;-1:-1:-1;;;;;4563:32:1;;;4545:51;;4533:2;4518:18;94444:41:0;4500:102:1;7937:108:0;;;;;;;;;;-1:-1:-1;8025:12:0;;7937:108;;9635:492;;;;;;;;;;-1:-1:-1;9635:492:0;;;;;:::i;:::-;;:::i;94559:47::-;;;;;;;;;;-1:-1:-1;94559:47:0;;;;-1:-1:-1;;;;;94559:47:0;;;102390:141;;;;;;;;;;;;;:::i;7779:93::-;;;;;;;;;;-1:-1:-1;7779:93:0;;7862:2;17914:36:1;;17902:2;17887:18;7779:93:0;17869:87:1;103044:130:0;;;;;;;;;;-1:-1:-1;103044:130:0;;;;;:::i;:::-;;:::i;10536:215::-;;;;;;;;;;-1:-1:-1;10536:215:0;;;;;:::i;:::-;;:::i;94830:38::-;;;;;;;;;;-1:-1:-1;94830:38:0;;;;-1:-1:-1;;;;;94830:38:0;;;94492:28;;;;;;;;;;-1:-1:-1;94492:28:0;;;;-1:-1:-1;;;;;94492:28:0;;;104519:103;;;;;;;;;;;;;:::i;100078:238::-;;;;;;;;;;-1:-1:-1;100078:238:0;;;;;:::i;:::-;;:::i;102539:126::-;;;;;;;;;;-1:-1:-1;102539:126:0;;;;;:::i;:::-;-1:-1:-1;;;;;102629:28:0;102605:4;102629:28;;;:19;:28;;;;;;;;;102539:126;99727:343;;;;;;;;;;-1:-1:-1;99727:343:0;;;;;:::i;:::-;;:::i;100563:232::-;;;;;;;;;;-1:-1:-1;100563:232:0;;;;;:::i;:::-;;:::i;104768:142::-;;;;;;;;;;;;;:::i;102865:171::-;;;;;;;;;;-1:-1:-1;102865:171:0;;;;;:::i;:::-;;:::i;94763:27::-;;;;;;;;;;;;;;;;104101:410;;;;;;;;;;-1:-1:-1;104101:410:0;;;;;:::i;:::-;;:::i;8108:127::-;;;;;;;;;;-1:-1:-1;8108:127:0;;;;;:::i;:::-;-1:-1:-1;;;;;8209:18:0;8182:7;8209:18;;;;;;;;;;;;8108:127;18497:94;;;;;;;;;;;;;:::i;101259:488::-;;;;;;;;;;-1:-1:-1;101259:488:0;;;;;:::i;:::-;;:::i;17846:87::-;;;;;;;;;;-1:-1:-1;17919:6:0;;-1:-1:-1;;;;;17919:6:0;17846:87;;7036:104;;;;;;;;;;;;;:::i;94729:27::-;;;;;;;;;;;;;;;;94877:31;;;;;;;;;;;;;;;;101887:109;;;;;;;;;;;;;:::i;11254:413::-;;;;;;;;;;-1:-1:-1;11254:413:0;;;;;:::i;:::-;;:::i;102673:184::-;;;;;;;;;;-1:-1:-1;102673:184:0;;;;;:::i;:::-;;:::i;8448:175::-;;;;;;;;;;-1:-1:-1;8448:175:0;;;;;:::i;:::-;;:::i;103373:351::-;;;;;;;;;;-1:-1:-1;103373:351:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;5564:32:1;;;5546:51;;5628:2;5613:18;;5606:34;;;;5656:18;;;5649:34;;;;5714:2;5699:18;;5692:34;;;;5757:3;5742:19;;5735:35;5584:3;5786:19;;5779:35;5845:3;5830:19;;5823:35;5889:3;5874:19;;5867:35;5533:3;5518:19;103373:351:0;5500:408:1;100324:231:0;;;;;;;;;;-1:-1:-1;100324:231:0;;;;;:::i;:::-;;:::i;98853:264::-;;;;;;;;;;-1:-1:-1;98853:264:0;;;;;:::i;:::-;;:::i;95180:57::-;;;;;;;;;;-1:-1:-1;95180:57:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;102197:185;;;;;;;;;;;;;:::i;103182:183::-;;;;;;;;;;-1:-1:-1;103182:183:0;;;;;:::i;:::-;;:::i;8686:151::-;;;;;;;;;;-1:-1:-1;8686:151:0;;;;;:::i;:::-;-1:-1:-1;;;;;8802:18:0;;;8775:7;8802:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;8686:151;94650:33;;;;;;;;;;;;;;;;99125:285;;;;;;;;;;-1:-1:-1;99125:285:0;;;;;:::i;:::-;;:::i;94692:30::-;;;;;;;;;;;;;;;;104630:130;;;;;;;;;;;;;:::i;101755:124::-;;;;;;;;;;-1:-1:-1;101755:124:0;;;;;:::i;:::-;;:::i;103732:361::-;;;;;;;;;;-1:-1:-1;103732:361:0;;;;;:::i;:::-;;:::i;18746:192::-;;;;;;;;;;-1:-1:-1;18746:192:0;;;;;:::i;:::-;;:::i;94615:26::-;;;;;;;;;;-1:-1:-1;94615:26:0;;;;-1:-1:-1;;;;;94615:26:0;;;94400:35;;;;;;;;;;;;94434:1;94400:35;;6817:100;6871:13;6904:5;6897:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6817:100;:::o;8984:169::-;9067:4;9084:39;4403:10;9107:7;9116:6;9084:8;:39::i;:::-;-1:-1:-1;9141:4:0;8984:169;;;;:::o;99418:301::-;17919:6;;-1:-1:-1;;;;;17919:6:0;4403:10;18066:23;18058:68;;;;-1:-1:-1;;;18058:68:0;;;;;;;:::i;:::-;;;;;;;;;99546:9:::1;99541:112;99561:19:::0;;::::1;99541:112;;;99637:4;99602:19;:32;99622:8;;99631:1;99622:11;;;;;-1:-1:-1::0;;;99622:11:0::1;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;99602:32:0::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;99602:32:0;:39;;-1:-1:-1;;99602:39:0::1;::::0;::::1;;::::0;;;::::1;::::0;;99582:3;::::1;::::0;::::1;:::i;:::-;;;;99541:112;;;;99670:41;99702:8;;99670:41;;;;;;;:::i;:::-;;;;;;;;99418:301:::0;;:::o;102004:185::-;17919:6;;-1:-1:-1;;;;;17919:6:0;4403:10;18066:23;18058:68;;;;-1:-1:-1;;;18058:68:0;;;;;;;:::i;:::-;102120:15:::1;::::0;:61:::1;::::0;-1:-1:-1;;;102120:61:0;;::::1;::::0;::::1;15775:25:1::0;;;-1:-1:-1;;;;;102120:15:0;;::::1;::::0;:53:::1;::::0;15748:18:1;;102120:61:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;102004:185:::0;:::o;9635:492::-;9775:4;9792:36;9802:6;9810:9;9821:6;9792:9;:36::i;:::-;-1:-1:-1;;;;;9868:19:0;;9841:24;9868:19;;;:11;:19;;;;;;;;4403:10;9868:33;;;;;;;;9920:26;;;;9912:79;;;;-1:-1:-1;;;9912:79:0;;12992:2:1;9912:79:0;;;12974:21:1;13031:2;13011:18;;;13004:30;13070:34;13050:18;;;13043:62;-1:-1:-1;;;13121:18:1;;;13114:38;13169:19;;9912:79:0;12964:230:1;9912:79:0;10027:57;10036:6;4403:10;10077:6;10058:16;:25;10027:8;:57::i;:::-;-1:-1:-1;10115:4:0;;9635:492;-1:-1:-1;;;;9635:492:0:o;102390:141::-;102480:15;;:43;;;-1:-1:-1;;;102480:43:0;;;;102453:7;;-1:-1:-1;;;;;102480:15:0;;:41;;:43;;;;;;;;;;;;;;:15;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;102473:50;;102390:141;:::o;103044:130::-;17919:6;;-1:-1:-1;;;;;17919:6:0;4403:10;18066:23;18058:68;;;;-1:-1:-1;;;18058:68:0;;;;;;;:::i;:::-;103121:15:::1;::::0;:45:::1;::::0;-1:-1:-1;;;103121:45:0;;-1:-1:-1;;;;;4563:32:1;;;103121:45:0::1;::::0;::::1;4545:51:1::0;103121:15:0;;::::1;::::0;:36:::1;::::0;4518:18:1;;103121:45:0::1;4500:102:1::0;10536:215:0;4403:10;10624:4;10673:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;10673:34:0;;;;;;;;;;10624:4;;10641:80;;10664:7;;10673:47;;10710:10;;10673:47;:::i;:::-;10641:8;:80::i;104519:103::-;104556:15;;:58;;-1:-1:-1;;;104556:58:0;;104595:10;104556:58;;;4791:51:1;104556:15:0;4858:18:1;;;4851:50;-1:-1:-1;;;;;104556:15:0;;;;:30;;4764:18:1;;104556:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;104519:103::o;100078:238::-;17919:6;;-1:-1:-1;;;;;17919:6:0;4403:10;18066:23;18058:68;;;;-1:-1:-1;;;18058:68:0;;;;;;;:::i;:::-;100151:15:::1;:23:::0;;;100235:12:::1;::::0;100217::::1;::::0;100197:51:::1;::::0;100235:12;100197:33:::1;::::0;100169:5;;100197:19:::1;:33::i;:::-;:37:::0;::::1;:51::i;:::-;100185:9;:63:::0;;;100280:2:::1;-1:-1:-1::0;100267:15:0::1;100259:49;;;::::0;-1:-1:-1;;;100259:49:0;;11861:2:1;100259:49:0::1;::::0;::::1;11843:21:1::0;11900:2;11880:18;;;11873:30;-1:-1:-1;;;11919:18:1;;;11912:51;11980:18;;100259:49:0::1;11833:171:1::0;99727:343:0;17919:6;;-1:-1:-1;;;;;17919:6:0;4403:10;18066:23;18058:68;;;;-1:-1:-1;;;18058:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;99831:20:0;::::1;99809:129;;;::::0;-1:-1:-1;;;99809:129:0;;13762:2:1;99809:129:0::1;::::0;::::1;13744:21:1::0;13801:2;13781:18;;;13774:30;13840:34;13820:18;;;13813:62;13911:29;13891:18;;;13884:57;13958:19;;99809:129:0::1;13734:249:1::0;99809:129:0::1;-1:-1:-1::0;;;;;99958:17:0;::::1;30827:20:::0;30875:8;99949:70:::1;;;::::0;-1:-1:-1;;;99949:70:0;;10641:2:1;99949:70:0::1;::::0;::::1;10623:21:1::0;10680:2;10660:18;;;10653:30;10719:34;10699:18;;;10692:62;-1:-1:-1;;;10770:18:1;;;10763:35;10815:19;;99949:70:0::1;10613:227:1::0;99949:70:0::1;100030:23;:32:::0;;-1:-1:-1;;;;;;100030:32:0::1;-1:-1:-1::0;;;;;100030:32:0;;;::::1;::::0;;;::::1;::::0;;99727:343::o;100563:232::-;17919:6;;-1:-1:-1;;;;;17919:6:0;4403:10;18066:23;18058:68;;;;-1:-1:-1;;;18058:68:0;;;;;;;:::i;:::-;100633:12:::1;:20:::0;;;100696:12:::1;::::0;100676:15:::1;::::0;:51:::1;::::0;100648:5;;100676:33:::1;::::0;:19:::1;:33::i;104768:142::-:0;104861:15;;:41;;;-1:-1:-1;;;104861:41:0;;;;104834:7;;-1:-1:-1;;;;;104861:15:0;;:39;;:41;;;;;;;;;;;;;;:15;:41;;;;;;;;;;102865:171;102994:15;;:34;;-1:-1:-1;;;102994:34:0;;-1:-1:-1;;;;;4563:32:1;;;102994:34:0;;;4545:51:1;102962:7:0;;102994:15;;:25;;4518:18:1;;102994:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;102987:41;102865:171;-1:-1:-1;;102865:171:0:o;104101:410::-;104283:15;;:28;;-1:-1:-1;;;;;;104283:28:0;;;;;15775:25:1;;;104181:18:0;;;;;;-1:-1:-1;;;;;104283:15:0;;:23;;15748:18:1;;104283:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;104327:176;;;17607:25:1;;;17663:2;17648:18;;17641:34;;;17691:18;;;17684:34;;;17749:2;17734:18;;17727:34;;;104166:145:0;;-1:-1:-1;104166:145:0;;-1:-1:-1;104166:145:0;-1:-1:-1;104483:9:0;;104445:5;;104327:176;;17594:3:1;17579:19;104327:176:0;;;;;;;;104101:410;;;;:::o;18497:94::-;17919:6;;-1:-1:-1;;;;;17919:6:0;4403:10;18066:23;18058:68;;;;-1:-1:-1;;;18058:68:0;;;;;;;:::i;:::-;18562:21:::1;18580:1;18562:9;:21::i;:::-;18497:94::o:0;101259:488::-;17919:6;;-1:-1:-1;;;;;17919:6:0;4403:10;18066:23;18058:68;;;;-1:-1:-1;;;18058:68:0;;;;;;;:::i;:::-;101371:6:::1;101359:8;:18;;:40;;;;;101393:6;101381:8;:18;;101359:40;101337:153;;;::::0;-1:-1:-1;;;101337:153:0;;9399:2:1;101337:153:0::1;::::0;::::1;9381:21:1::0;9438:2;9418:18;;;9411:30;9477:34;9457:18;;;9450:62;9548:33;9528:18;;;9521:61;9599:19;;101337:153:0::1;9371:253:1::0;101337:153:0::1;101535:16;;101523:8;:28;;101501:133;;;::::0;-1:-1:-1;;;101501:133:0;;15001:2:1;101501:133:0::1;::::0;::::1;14983:21:1::0;15040:2;15020:18;;;15013:30;15079:34;15059:18;;;15052:62;15150:25;15130:18;;;15123:53;15193:19;;101501:133:0::1;14973:245:1::0;101501:133:0::1;101684:16;::::0;101650:51:::1;::::0;101674:8;;101650:51:::1;::::0;;;::::1;101712:16;:27:::0;101259:488::o;7036:104::-;7092:13;7125:7;7118:14;;;;;:::i;101887:109::-;101961:15;;:27;;;-1:-1:-1;;;101961:27:0;;;;101934:7;;-1:-1:-1;;;;;101961:15:0;;:25;;:27;;;;;;;;;;;;;;:15;:27;;;;;;;;;;11254:413;4403:10;11347:4;11391:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;11391:34:0;;;;;;;;;;11444:35;;;;11436:85;;;;-1:-1:-1;;;11436:85:0;;15425:2:1;11436:85:0;;;15407:21:1;15464:2;15444:18;;;15437:30;15503:34;15483:18;;;15476:62;-1:-1:-1;;;15554:18:1;;;15547:35;15599:19;;11436:85:0;15397:227:1;11436:85:0;11557:67;4403:10;11580:7;11608:15;11589:16;:34;11557:8;:67::i;:::-;-1:-1:-1;11655:4:0;;11254:413;-1:-1:-1;;;11254:413:0:o;102673:184::-;102802:15;;:47;;-1:-1:-1;;;102802:47:0;;-1:-1:-1;;;;;4563:32:1;;;102802:47:0;;;4545:51:1;102770:7:0;;102802:15;;:38;;4518:18:1;;102802:47:0;4500:102:1;8448:175:0;8534:4;8551:42;4403:10;8575:9;8586:6;8551:9;:42::i;103373:351::-;103681:15;;:35;;-1:-1:-1;;;103681:35:0;;-1:-1:-1;;;;;4563:32:1;;;103681:35:0;;;4545:51:1;103487:7:0;;;;;;;;;;;;;;;;103681:15;;;:26;;4518:18:1;;103681:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;103674:42;;;;;;;;;;;;;;;;103373:351;;;;;;;;;:::o;100324:231::-;17919:6;;-1:-1:-1;;;;;17919:6:0;4403:10;18066:23;18058:68;;;;-1:-1:-1;;;18058:68:0;;;;;;;:::i;:::-;100393:12:::1;:20:::0;;;100474:12:::1;::::0;100436:15:::1;::::0;:51:::1;::::0;100474:12;100436:33:::1;::::0;100408:5;100436:19:::1;:33::i;98853:264::-:0;17919:6;;-1:-1:-1;;;;;17919:6:0;4403:10;18066:23;18058:68;;;;-1:-1:-1;;;18058:68:0;;;;;;;:::i;:::-;98977:5:::1;98961:13;8025:12:::0;;;7937:108;98961:13:::1;:21;;;;:::i;:::-;98952:6;:30;98930:141;;;::::0;-1:-1:-1;;;98930:141:0;;12211:2:1;98930:141:0::1;::::0;::::1;12193:21:1::0;12250:2;12230:18;;;12223:30;12289:34;12269:18;;;12262:62;12360:31;12340:18;;;12333:59;12409:19;;98930:141:0::1;12183:251:1::0;98930:141:0::1;99082:18;:27:::0;98853:264::o;102197:185::-;102325:15;;:49;;;-1:-1:-1;;;102325:49:0;;;;102293:7;;-1:-1:-1;;;;;102325:15:0;;:47;;:49;;;;;;;;;;;;;;:15;:49;;;;;;;;;;103182:183;103309:15;;:48;;-1:-1:-1;;;103309:48:0;;-1:-1:-1;;;;;4563:32:1;;;103309:48:0;;;4545:51:1;103280:4:0;;103309:15;;:39;;4518:18:1;;103309:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;99125:285::-;17919:6;;-1:-1:-1;;;;;17919:6:0;4403:10;18066:23;18058:68;;;;-1:-1:-1;;;18058:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;99220:28:0;::::1;;::::0;;;:19:::1;:28;::::0;;;;;::::1;;99219:29;99197:117;;;::::0;-1:-1:-1;;;99197:117:0;;11454:2:1;99197:117:0::1;::::0;::::1;11436:21:1::0;11493:2;11473:18;;;11466:30;11532:34;11512:18;;;11505:62;-1:-1:-1;;;11583:18:1;;;11576:36;11629:19;;99197:117:0::1;11426:228:1::0;99197:117:0::1;-1:-1:-1::0;;;;;99325:28:0;::::1;;::::0;;;:19:::1;:28;::::0;;;;;:35;;-1:-1:-1;;99325:35:0::1;99356:4;99325:35;::::0;;99378:24;::::1;::::0;99325:28;99378:24:::1;99125:285:::0;:::o;104630:130::-;104713:15;;:39;;;-1:-1:-1;;;104713:39:0;;;;104686:7;;-1:-1:-1;;;;;104713:15:0;;:37;;:39;;;;;;;;;;;;;;:15;:39;;;;;;;;;;101755:124;17919:6;;-1:-1:-1;;;;;17919:6:0;4403:10;18066:23;18058:68;;;;-1:-1:-1;;;18058:68:0;;;;;;;:::i;:::-;101829:15:::1;::::0;:42:::1;::::0;-1:-1:-1;;;101829:42:0;;::::1;::::0;::::1;15775:25:1::0;;;-1:-1:-1;;;;;101829:15:0;;::::1;::::0;:31:::1;::::0;15748:18:1;;101829:42:0::1;15730:76:1::0;103732:361:0;104045:15;;:40;;-1:-1:-1;;;104045:40:0;;;;;15775:25:1;;;103851:7:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;104045:15:0;;;;:33;;15748:18:1;;104045:40:0;15730:76:1;18746:192:0;17919:6;;-1:-1:-1;;;;;17919:6:0;4403:10;18066:23;18058:68;;;;-1:-1:-1;;;18058:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;18835:22:0;::::1;18827:73;;;::::0;-1:-1:-1;;;18827:73:0;;9831:2:1;18827:73:0::1;::::0;::::1;9813:21:1::0;9870:2;9850:18;;;9843:30;9909:34;9889:18;;;9882:62;-1:-1:-1;;;9960:18:1;;;9953:36;10006:19;;18827:73:0::1;9803:228:1::0;18827:73:0::1;18911:19;18921:8;18911:9;:19::i;30504:387::-:0;30827:20;30875:8;;;30504:387::o;21932:98::-;21990:7;22017:5;22021:1;22017;:5;:::i;:::-;22010:12;21932:98;-1:-1:-1;;;21932:98:0:o;23069:::-;23127:7;23154:5;23158:1;23154;:5;:::i;27062:524::-;27119:16;27189:4;27183:11;-1:-1:-1;;;27215:3:0;27208:79;27334:14;27328:4;27324:25;27317:4;27312:3;27308:14;27301:49;-1:-1:-1;;;27380:4:0;27375:3;27371:14;27364:90;27495:4;27490:3;27487:1;27480:20;27468:32;-1:-1:-1;;;;;;;27529:22:0;;27521:57;;;;-1:-1:-1;;;27521:57:0;;12641:2:1;27521:57:0;;;12623:21:1;12680:2;12660:18;;;12653:30;-1:-1:-1;;;12699:18:1;;;12692:52;12761:18;;27521:57:0;12613:172:1;27521:57:0;27062:524;;;:::o;14938:380::-;-1:-1:-1;;;;;15074:19:0;;15066:68;;;;-1:-1:-1;;;15066:68:0;;14596:2:1;15066:68:0;;;14578:21:1;14635:2;14615:18;;;14608:30;14674:34;14654:18;;;14647:62;-1:-1:-1;;;14725:18:1;;;14718:34;14769:19;;15066:68:0;14568:226:1;15066:68:0;-1:-1:-1;;;;;15153:21:0;;15145:68;;;;-1:-1:-1;;;15145:68:0;;10238:2:1;15145:68:0;;;10220:21:1;10277:2;10257:18;;;10250:30;10316:34;10296:18;;;10289:62;-1:-1:-1;;;10367:18:1;;;10360:32;10409:19;;15145:68:0;10210:224:1;15145:68:0;-1:-1:-1;;;;;15226:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;15278:32;;15775:25:1;;;15278:32:0;;15748:18:1;15278:32:0;;;;;;;14938:380;;;:::o;104918:2685::-;-1:-1:-1;;;;;105050:18:0;;105042:68;;;;-1:-1:-1;;;105042:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;105129:16:0;;105121:64;;;;-1:-1:-1;;;105121:64:0;;;;;;;:::i;:::-;105202:11;105198:93;;105230:28;105246:4;105252:2;105256:1;105230:15;:28::i;:::-;104918:2685;;;:::o;105198:93::-;105352:4;105303:28;8209:18;;;;;;;;;;;105410;;105386:42;;;;;;;105459:33;;-1:-1:-1;105484:8:0;;-1:-1:-1;;;105484:8:0;;;;105483:9;105459:33;:82;;;;-1:-1:-1;;;;;;105510:31:0;;;;;;:25;:31;;;;;;;;105509:32;105459:82;:114;;;;-1:-1:-1;17919:6:0;;-1:-1:-1;;;;;105558:15:0;;;17919:6;;105558:15;;105459:114;:144;;;;-1:-1:-1;17919:6:0;;-1:-1:-1;;;;;105590:13:0;;;17919:6;;105590:13;;105459:144;:174;;;;;105632:1;105620:9;;:13;105459:174;105441:922;;;105660:8;:15;;-1:-1:-1;;;;105660:15:0;-1:-1:-1;;;105660:15:0;;;105696:12;;:16;105692:232;;105733:23;105759:97;105846:9;;105759:60;105806:12;;105759:20;:46;;:60;;;;:::i;:::-;:86;;:97::i;:::-;105733:123;;105875:33;105892:15;105875:16;:33::i;:::-;105692:232;;105944:12;;:16;105940:216;;105981:18;106002:93;106067:9;;106002:38;106027:12;;106002:20;:24;;:38;;;;:::i;:93::-;105981:114;;106114:26;106129:10;106114:14;:26::i;:::-;105940:216;;106211:4;106172:18;8209;;;;;;;;;;;106236:14;;106232:87;;106271:32;106292:10;106271:20;:32::i;:::-;-1:-1:-1;106335:8:0;:16;;-1:-1:-1;;;;106335:16:0;;;105441:922;106391:8;;-1:-1:-1;;;;;106501:25:0;;106375:12;106501:25;;;:19;:25;;;;;;106391:8;-1:-1:-1;;;106391:8:0;;;;;106390:9;;106501:25;;:52;;-1:-1:-1;;;;;;106530:23:0;;;;;;:19;:23;;;;;;;;106501:52;106497:100;;;-1:-1:-1;106580:5:0;106497:100;106613:7;:24;;;;;106636:1;106624:9;;:13;106613:24;106609:201;;;106654:12;106669:30;106695:3;106669:21;106680:9;;106669:6;:10;;:21;;;;:::i;:30::-;106654:45;-1:-1:-1;106723:16:0;:6;106654:45;106723:10;:16::i;:::-;106714:25;;106756:42;106772:4;106786;106793;106756:15;:42::i;:::-;106609:201;;106822:33;106838:4;106844:2;106848:6;106822:15;:33::i;:::-;106885:15;;-1:-1:-1;;;;;106885:15:0;:26;106920:4;106927:15;106920:4;-1:-1:-1;;;;;8209:18:0;8182:7;8209:18;;;;;;;;;;;;8108:127;106927:15;106885:58;;-1:-1:-1;;;;;;106885:58:0;;;;;;;-1:-1:-1;;;;;5120:32:1;;;106885:58:0;;;5102:51:1;5169:18;;;5162:34;5075:18;;106885:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;106868:96;106978:15;;-1:-1:-1;;;;;106978:15:0;:26;107013:2;107018:13;107013:2;-1:-1:-1;;;;;8209:18:0;8182:7;8209:18;;;;;;;;;;;;8108:127;107018:13;106978:54;;-1:-1:-1;;;;;;106978:54:0;;;;;;;-1:-1:-1;;;;;5120:32:1;;;106978:54:0;;;5102:51:1;5169:18;;;5162:34;5075:18;;106978:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;106974:70;107061:8;;-1:-1:-1;;;107061:8:0;;;;107056:540;;107100:16;;107137:15;;:28;;-1:-1:-1;;;;;;107137:28:0;;;;;15775:25:1;;;-1:-1:-1;;;;;107137:15:0;;;;:23;;15748:18:1;;107137:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;107137:28:0;;;;;;;;-1:-1:-1;;107137:28:0;;;;;;;;;;;;:::i;:::-;;;107133:452;;;;;107329:231;;;17607:25:1;;;17663:2;17648:18;;17641:34;;;17691:18;;;17684:34;;;17749:2;17734:18;;17727:34;;;107532:9:0;;107479:4;;107329:231;;17594:3:1;17579:19;107329:231:0;;;;;;;107166:410;;;107133:452;107056:540;;104918:2685;;;;;;:::o;18946:173::-;19021:6;;;-1:-1:-1;;;;;19038:17:0;;;-1:-1:-1;;;;;;19038:17:0;;;;;;;19071:40;;19021:6;;;19038:17;19021:6;;19071:40;;19002:16;;19071:40;18946:173;;:::o;12157:733::-;-1:-1:-1;;;;;12297:20:0;;12289:70;;;;-1:-1:-1;;;12289:70:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;12378:23:0;;12370:71;;;;-1:-1:-1;;;12370:71:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;12538:17:0;;12514:21;12538:17;;;;;;;;;;;12574:23;;;;12566:74;;;;-1:-1:-1;;;12566:74:0;;11047:2:1;12566:74:0;;;11029:21:1;11086:2;11066:18;;;11059:30;11125:34;11105:18;;;11098:62;-1:-1:-1;;;11176:18:1;;;11169:36;11222:19;;12566:74:0;11019:228:1;12566:74:0;-1:-1:-1;;;;;12676:17:0;;;:9;:17;;;;;;;;;;;12696:22;;;12676:42;;12740:20;;;;;;;;:30;;12712:6;;12676:9;12740:30;;12712:6;;12740:30;:::i;:::-;;;;;;;;12805:9;-1:-1:-1;;;;;12788:35:0;12797:6;-1:-1:-1;;;;;12788:35:0;;12816:6;12788:35;;;;15775:25:1;;15763:2;15748:18;;15730:76;12836:46:0;12157:733;;;;:::o;22670:98::-;22728:7;22755:5;22759:1;22755;:5;:::i;107611:406::-;107708:11;;107701:68;;-1:-1:-1;;;107701:68:0;;107753:4;107701:68;;;4545:51:1;107672:26:0;;-1:-1:-1;;;;;107708:11:0;;107701:29;;4518:18:1;;107701:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;107672:97;;107782:25;107800:6;107782:17;:25::i;:::-;107847:11;;107840:44;;-1:-1:-1;;;107840:44:0;;107878:4;107840:44;;;4545:51:1;107818:18:0;;107839:94;;107904:18;;-1:-1:-1;;;;;107847:11:0;;107840:29;;4518:18:1;;107840:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;107839:50;;:94::i;:::-;107951:11;;107973:23;;107944:65;;-1:-1:-1;;;107944:65:0;;-1:-1:-1;;;;;107973:23:0;;;107944:65;;;5102:51:1;5169:18;;;5162:34;;;107818:115:0;;-1:-1:-1;107951:11:0;;107944:28;;5075:18:1;;107944:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;108025:923::-;108135:12;108150:13;:6;108161:1;108150:10;:13::i;:::-;108135:28;-1:-1:-1;108174:17:0;108194:16;:6;108135:28;108194:10;:16::i;:::-;108174:36;-1:-1:-1;108513:21:0;108579:22;108596:4;108579:16;:22::i;:::-;108732:18;108753:41;:21;108779:14;108753:25;:41::i;:::-;108732:62;;108844:35;108857:9;108868:10;108844:12;:35::i;:::-;108897:43;;;17254:25:1;;;17310:2;17295:18;;17288:34;;;17338:18;;;17331:34;;;108897:43:0;;17242:2:1;17227:18;108897:43:0;;;;;;;108025:923;;;;;:::o;110627:455::-;110692:25;110710:6;110692:17;:25::i;:::-;110755:11;;110748:44;;-1:-1:-1;;;110748:44:0;;110786:4;110748:44;;;4545:51:1;110728:17:0;;-1:-1:-1;;;;;110755:11:0;;110748:29;;4518:18:1;;110748:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;110825:11;;110869:15;;110818:102;;-1:-1:-1;;;110818:102:0;;-1:-1:-1;;;;;110869:15:0;;;110818:102;;;5102:51:1;5169:18;;;5162:34;;;110728:64:0;;-1:-1:-1;110803:12:0;;110825:11;;;110818:28;;5075:18:1;;110818:102:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;110803:117;;110937:7;110933:142;;;110961:15;;:50;;-1:-1:-1;;;110961:50:0;;;;;15775:25:1;;;-1:-1:-1;;;;;110961:15:0;;;;:39;;15748:18:1;;110961:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;111031:32:0;;;16973:25:1;;;17029:2;17014:18;;17007:34;;;111031:32:0;;-1:-1:-1;16946:18:1;;-1:-1:-1;111031:32:0;;;;;;;110627:455;;;:::o;22313:98::-;22371:7;22398:5;22402:1;22398;:5;:::i;109553:537::-;109644:16;;;109658:1;109644:16;;;;;;;;;109620:21;;109644:16;;;;;;;;;;-1:-1:-1;109644:16:0;109620:40;;109689:4;109671;109676:1;109671:7;;;;;;-1:-1:-1;;;109671:7:0;;;;;;;;;-1:-1:-1;;;;;109671:23:0;;;:7;;;;;;;;;;:23;;;;109715:15;;:22;;;-1:-1:-1;;;109715:22:0;;;;:15;;;;;:20;;:22;;;;;109671:7;;109715:22;;;;;:15;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;109705:4;109710:1;109705:7;;;;;;-1:-1:-1;;;109705:7:0;;;;;;;;;-1:-1:-1;;;;;109705:32:0;;;:7;;;;;;;;;:32;109758:11;;109748:7;;109758:11;;;109748:4;;109753:1;;109748:7;;;;-1:-1:-1;;;109748:7:0;;;;;;;;;-1:-1:-1;;;;;109748:21:0;;;:7;;;;;;;;;:21;109814:15;;109782:62;;109799:4;;109814:15;109832:11;109782:8;:62::i;:::-;109883:15;;:199;;-1:-1:-1;;;109883:199:0;;-1:-1:-1;;;;;109883:15:0;;;;:69;;:199;;109967:11;;109883:15;;110009:4;;110036;;110056:15;;109883:199;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;108956:589;109106:16;;;109120:1;109106:16;;;;;;;;109082:21;;109106:16;;;;;;;;;;-1:-1:-1;109106:16:0;109082:40;;109151:4;109133;109138:1;109133:7;;;;;;-1:-1:-1;;;109133:7:0;;;;;;;;;-1:-1:-1;;;;;109133:23:0;;;:7;;;;;;;;;;:23;;;;109177:15;;:22;;;-1:-1:-1;;;109177:22:0;;;;:15;;;;;:20;;:22;;;;;109133:7;;109177:22;;;;;:15;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;109167:4;109172:1;109167:7;;;;;;-1:-1:-1;;;109167:7:0;;;;;;;;;-1:-1:-1;;;;;109167:32:0;;;:7;;;;;;;;;:32;109244:15;;109212:62;;109229:4;;109244:15;109262:11;109212:8;:62::i;:::-;109313:15;;:224;;-1:-1:-1;;;109313:224:0;;-1:-1:-1;;;;;109313:15:0;;;;:66;;:224;;109394:11;;109313:15;;109464:4;;109491;;109511:15;;109313:224;;;:::i;110098:521::-;110278:15;;110246:62;;110263:4;;-1:-1:-1;;;;;110278:15:0;110296:11;110246:8;:62::i;:::-;110351:15;;:260;;-1:-1:-1;;;110351:260:0;;110423:4;110351:260;;;6533:34:1;6583:18;;;6576:34;;;110351:15:0;6626:18:1;;;6619:34;;;6669:18;;;6662:34;110563:6:0;6712:19:1;;;6705:44;110585:15:0;6765:19:1;;;6758:35;-1:-1:-1;;;;;110351:15:0;;;;:31;;110390:9;;6467:19:1;;110351:260:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;14:257:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:2;;;147:6;139;132:22;94:2;191:9;178:23;210:31;235:5;210:31;:::i;276:261::-;346:6;399:2;387:9;378:7;374:23;370:32;367:2;;;420:6;412;405:22;367:2;457:9;451:16;476:31;501:5;476:31;:::i;812:398::-;880:6;888;941:2;929:9;920:7;916:23;912:32;909:2;;;962:6;954;947:22;909:2;1006:9;993:23;1025:31;1050:5;1025:31;:::i;:::-;1075:5;-1:-1:-1;1132:2:1;1117:18;;1104:32;1145:33;1104:32;1145:33;:::i;:::-;1197:7;1187:17;;;899:311;;;;;:::o;1215:466::-;1292:6;1300;1308;1361:2;1349:9;1340:7;1336:23;1332:32;1329:2;;;1382:6;1374;1367:22;1329:2;1426:9;1413:23;1445:31;1470:5;1445:31;:::i;:::-;1495:5;-1:-1:-1;1552:2:1;1537:18;;1524:32;1565:33;1524:32;1565:33;:::i;:::-;1319:362;;1617:7;;-1:-1:-1;;;1671:2:1;1656:18;;;;1643:32;;1319:362::o;1686:691::-;1817:6;1825;1833;1841;1849;1857;1865;1873;1926:3;1914:9;1905:7;1901:23;1897:33;1894:2;;;1948:6;1940;1933:22;1894:2;1985:9;1979:16;2004:31;2029:5;2004:31;:::i;:::-;2054:5;2044:15;;;2099:2;2088:9;2084:18;2078:25;2068:35;;2143:2;2132:9;2128:18;2122:25;2112:35;;2187:2;2176:9;2172:18;2166:25;2156:35;;2231:3;2220:9;2216:19;2210:26;2200:36;;2276:3;2265:9;2261:19;2255:26;2245:36;;2321:3;2310:9;2306:19;2300:26;2290:36;;2366:3;2355:9;2351:19;2345:26;2335:36;;1884:493;;;;;;;;;;;:::o;2382:325::-;2450:6;2458;2511:2;2499:9;2490:7;2486:23;2482:32;2479:2;;;2532:6;2524;2517:22;2479:2;2576:9;2563:23;2595:31;2620:5;2595:31;:::i;:::-;2645:5;2697:2;2682:18;;;;2669:32;;-1:-1:-1;;;2469:238:1:o;2712:665::-;2798:6;2806;2859:2;2847:9;2838:7;2834:23;2830:32;2827:2;;;2880:6;2872;2865:22;2827:2;2925:9;2912:23;2954:18;2995:2;2987:6;2984:14;2981:2;;;3016:6;3008;3001:22;2981:2;3059:6;3048:9;3044:22;3034:32;;3104:7;3097:4;3093:2;3089:13;3085:27;3075:2;;3131:6;3123;3116:22;3075:2;3176;3163:16;3202:2;3194:6;3191:14;3188:2;;;3223:6;3215;3208:22;3188:2;3281:7;3276:2;3266:6;3263:1;3259:14;3255:2;3251:23;3247:32;3244:45;3241:2;;;3307:6;3299;3292:22;3241:2;3343;3335:11;;;;;3365:6;;-1:-1:-1;2817:560:1;;-1:-1:-1;;;;2817:560:1:o;3382:297::-;3449:6;3502:2;3490:9;3481:7;3477:23;3473:32;3470:2;;;3523:6;3515;3508:22;3470:2;3560:9;3554:16;3613:5;3606:13;3599:21;3592:5;3589:32;3579:2;;3640:6;3632;3625:22;3684:190;3743:6;3796:2;3784:9;3775:7;3771:23;3767:32;3764:2;;;3817:6;3809;3802:22;3764:2;-1:-1:-1;3845:23:1;;3754:120;-1:-1:-1;3754:120:1:o;3879:194::-;3949:6;4002:2;3990:9;3981:7;3977:23;3973:32;3970:2;;;4023:6;4015;4008:22;3970:2;-1:-1:-1;4051:16:1;;3960:113;-1:-1:-1;3960:113:1:o;4078:316::-;4166:6;4174;4182;4235:2;4223:9;4214:7;4210:23;4206:32;4203:2;;;4256:6;4248;4241:22;4203:2;4290:9;4284:16;4274:26;;4340:2;4329:9;4325:18;4319:25;4309:35;;4384:2;4373:9;4369:18;4363:25;4353:35;;4193:201;;;;;:::o;6804:708::-;6985:2;7037:21;;;7010:18;;;7093:22;;;6956:4;;7172:6;7146:2;7131:18;;6956:4;7209:277;7223:6;7220:1;7217:13;7209:277;;;7298:6;7285:20;7318:31;7343:5;7318:31;:::i;:::-;-1:-1:-1;;;;;7374:31:1;7362:44;;7461:15;;;;7426:12;;;;7402:1;7238:9;7209:277;;;-1:-1:-1;7503:3:1;6965:547;-1:-1:-1;;;;;;6965:547:1:o;8185:603::-;8297:4;8326:2;8355;8344:9;8337:21;8387:6;8381:13;8430:6;8425:2;8414:9;8410:18;8403:34;8455:4;8468:140;8482:6;8479:1;8476:13;8468:140;;;8577:14;;;8573:23;;8567:30;8543:17;;;8562:2;8539:26;8532:66;8497:10;;8468:140;;;8626:6;8623:1;8620:13;8617:2;;;8696:4;8691:2;8682:6;8671:9;8667:22;8663:31;8656:45;8617:2;-1:-1:-1;8772:2:1;8751:15;-1:-1:-1;;8747:29:1;8732:45;;;;8779:2;8728:54;;8306:482;-1:-1:-1;;;8306:482:1:o;8793:399::-;8995:2;8977:21;;;9034:2;9014:18;;;9007:30;9073:34;9068:2;9053:18;;9046:62;-1:-1:-1;;;9139:2:1;9124:18;;9117:33;9182:3;9167:19;;8967:225::o;13199:356::-;13401:2;13383:21;;;13420:18;;;13413:30;13479:34;13474:2;13459:18;;13452:62;13546:2;13531:18;;13373:182::o;13988:401::-;14190:2;14172:21;;;14229:2;14209:18;;;14202:30;14268:34;14263:2;14248:18;;14241:62;-1:-1:-1;;;14334:2:1;14319:18;;14312:35;14379:3;14364:19;;14162:227::o;15811:983::-;16073:4;16121:3;16110:9;16106:19;16152:6;16141:9;16134:25;16178:2;16216:6;16211:2;16200:9;16196:18;16189:34;16259:3;16254:2;16243:9;16239:18;16232:31;16283:6;16318;16312:13;16349:6;16341;16334:22;16387:3;16376:9;16372:19;16365:26;;16426:2;16418:6;16414:15;16400:29;;16447:4;16460:195;16474:6;16471:1;16468:13;16460:195;;;16539:13;;-1:-1:-1;;;;;16535:39:1;16523:52;;16630:15;;;;16595:12;;;;16571:1;16489:9;16460:195;;;-1:-1:-1;;;;;;;16711:32:1;;;;16706:2;16691:18;;16684:60;-1:-1:-1;;;16775:3:1;16760:19;16753:35;16672:3;16082:712;-1:-1:-1;;;16082:712:1:o;17961:128::-;18001:3;18032:1;18028:6;18025:1;18022:13;18019:2;;;18038:18;;:::i;:::-;-1:-1:-1;18074:9:1;;18009:80::o;18094:217::-;18134:1;18160;18150:2;;-1:-1:-1;;;18185:31:1;;18239:4;18236:1;18229:15;18267:4;18192:1;18257:15;18150:2;-1:-1:-1;18296:9:1;;18140:171::o;18316:168::-;18356:7;18422:1;18418;18414:6;18410:14;18407:1;18404:21;18399:1;18392:9;18385:17;18381:45;18378:2;;;18429:18;;:::i;:::-;-1:-1:-1;18469:9:1;;18368:116::o;18489:125::-;18529:4;18557:1;18554;18551:8;18548:2;;;18562:18;;:::i;:::-;-1:-1:-1;18599:9:1;;18538:76::o;18619:380::-;18698:1;18694:12;;;;18741;;;18762:2;;18816:4;18808:6;18804:17;18794:27;;18762:2;18869;18861:6;18858:14;18838:18;18835:38;18832:2;;;18915:10;18910:3;18906:20;18903:1;18896:31;18950:4;18947:1;18940:15;18978:4;18975:1;18968:15;18832:2;;18674:325;;;:::o;19004:135::-;19043:3;-1:-1:-1;;19064:17:1;;19061:2;;;19084:18;;:::i;:::-;-1:-1:-1;19131:1:1;19120:13;;19051:88::o;19144:127::-;19205:10;19200:3;19196:20;19193:1;19186:31;19236:4;19233:1;19226:15;19260:4;19257:1;19250:15;19276:131;-1:-1:-1;;;;;19351:31:1;;19341:42;;19331:2;;19397:1;19394;19387:12

Swarm Source

ipfs://d4483ffb2e99034881fa45571586b27a850dd23cd56933dfa07a72de9734a40e

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.