MATIC Price: $1.01 (-2.68%)
Gas: 270 GWei
 
Transaction Hash
Method
Block
From
To
Value
Withdraw377791882023-01-07 10:44:08446 days ago1673088248IN
0x87F493bb...6C2b1137c
0 MATIC0.0116019100
Withdraw377791752023-01-07 10:43:42446 days ago1673088222IN
0x87F493bb...6C2b1137c
0 MATIC0.0125809100
Withdraw377791572023-01-07 10:43:06446 days ago1673088186IN
0x87F493bb...6C2b1137c
0 MATIC0.0125797100
Withdraw377791442023-01-07 10:42:40446 days ago1673088160IN
0x87F493bb...6C2b1137c
0 MATIC0.0037265100
Withdraw377791222023-01-07 10:41:52446 days ago1673088112IN
0x87F493bb...6C2b1137c
0 MATIC0.0116043100
Withdraw377791172023-01-07 10:41:42446 days ago1673088102IN
0x87F493bb...6C2b1137c
0 MATIC0.0057156145.43958833
Withdraw377791032023-01-07 10:41:14446 days ago1673088074IN
0x87F493bb...6C2b1137c
0 MATIC0.0125809100
Withdraw377790722023-01-07 10:40:12446 days ago1673088012IN
0x87F493bb...6C2b1137c
0 MATIC0.0125809100
Withdraw377790602023-01-07 10:39:44446 days ago1673087984IN
0x87F493bb...6C2b1137c
0 MATIC0.01874544149.01346573
Withdraw377790102023-01-07 10:38:04446 days ago1673087884IN
0x87F493bb...6C2b1137c
0 MATIC0.0116521100
Withdraw377789962023-01-07 10:37:32446 days ago1673087852IN
0x87F493bb...6C2b1137c
0 MATIC0.0126287100
Withdraw377789672023-01-07 10:36:34446 days ago1673087794IN
0x87F493bb...6C2b1137c
0 MATIC0.0126287100
Withdraw377789472023-01-07 10:35:54446 days ago1673087754IN
0x87F493bb...6C2b1137c
0 MATIC0.0126275100
Withdraw377789282023-01-07 10:35:12446 days ago1673087712IN
0x87F493bb...6C2b1137c
0 MATIC0.0126287100
Withdraw377789082023-01-07 10:34:32446 days ago1673087672IN
0x87F493bb...6C2b1137c
0 MATIC0.0126287100
Withdraw377788942023-01-07 10:34:04446 days ago1673087644IN
0x87F493bb...6C2b1137c
0 MATIC0.0126287100
Withdraw377788712023-01-07 10:33:14446 days ago1673087594IN
0x87F493bb...6C2b1137c
0 MATIC0.0126287100
Withdraw377788602023-01-07 10:32:52446 days ago1673087572IN
0x87F493bb...6C2b1137c
0 MATIC0.0037349100
Withdraw377788452023-01-07 10:32:22446 days ago1673087542IN
0x87F493bb...6C2b1137c
0 MATIC0.0126287100
Withdraw377788142023-01-07 10:31:16446 days ago1673087476IN
0x87F493bb...6C2b1137c
0 MATIC0.0126287100
Withdraw377787752023-01-07 10:29:58446 days ago1673087398IN
0x87F493bb...6C2b1137c
0 MATIC0.0126287100
Withdraw377787592023-01-07 10:29:26446 days ago1673087366IN
0x87F493bb...6C2b1137c
0 MATIC0.0037349100
Withdraw377787372023-01-07 10:28:10446 days ago1673087290IN
0x87F493bb...6C2b1137c
0 MATIC0.0126287100
Withdraw377787122023-01-07 10:26:30446 days ago1673087190IN
0x87F493bb...6C2b1137c
0 MATIC0.0142897100
Withdraw377786512023-01-07 10:23:34446 days ago1673087014IN
0x87F493bb...6C2b1137c
0 MATIC0.0125809100
View all transactions

Parent Txn Hash Block From To Value
View All Internal Transactions
Loading...
Loading

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

Contract Name:
MasterChef

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2022-12-22
*/

// SPDX-License-Identifier: MIT                                                                               
                                                    
pragma solidity 0.8.9;

abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

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

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

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

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

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

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

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

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

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


contract ERC20 is Context, IERC20, IERC20Metadata {
    using SafeMath for uint256;

    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @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);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

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

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

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

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

    function _createSupply(address account, uint256 amount) internal virtual {
        require(account != address(0));

        _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);

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

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

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

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

    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

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

library SafeBEP20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IBEP20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IBEP20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IBEP20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IBEP20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeBEP20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IBEP20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IBEP20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeBEP20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IBEP20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeBEP20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeBEP20: BEP20 operation did not succeed");
        }
    }
}

/**
 * @title Roles
 * @dev Library for managing addresses assigned to a Role.
 */
library Roles {
    struct Role {
        mapping (address => bool) bearer;
    }

    /**
     * @dev Give an account access to this role.
     */
    function add(Role storage role, address account) internal {
        require(!has(role, account), "Roles: account already has role");
        role.bearer[account] = true;
    }

    /**
     * @dev Remove an account's access to this role.
     */
    function remove(Role storage role, address account) internal {
        require(has(role, account), "Roles: account does not have role");
        role.bearer[account] = false;
    }

    /**
     * @dev Check if an account has this role.
     * @return bool
     */
    function has(Role storage role, address account) internal view returns (bool) {
        require(account != address(0), "Roles: account is the zero address");
        return role.bearer[account];
    }
}

/**
 * @title MinterRole
 * @dev Implementation of the {MinterRole} interface.
 */
contract MinterRole {
    using Roles for Roles.Role;

    event MinterAdded(address indexed account);
    event MinterRemoved(address indexed account);

    Roles.Role private _minters;

    constructor () {
        _addMinter(msg.sender);
    }

    modifier onlyMinter() {
        require(isMinter(msg.sender), "MinterRole: caller does not have the Minter role");
        _;
    }

    function isMinter(address account) public view returns (bool) {
        return _minters.has(account);
    }

    function addMinter(address account) public onlyMinter {
        _addMinter(account);
    }

    function removeMinter(address account) public onlyMinter {
        _removeMinter(account);
    }

    function renounceMinter() public {
        _removeMinter(msg.sender);
    }

    function _addMinter(address account) internal {
        _minters.add(account);
        emit MinterAdded(account);
    }

    function _removeMinter(address account) internal {
        _minters.remove(account);
        emit MinterRemoved(account);
    }
}

contract Ownable is Context {
    address private _owner;

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

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

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

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

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

abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

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

library SafeMathUint {
  function toInt256Safe(uint256 a) internal pure returns (int256) {
    int256 b = int256(a);
    require(b >= 0);
    return b;
  }
}


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

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

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

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

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

contract BellasNFTs is ERC20, Ownable {
   
    bool private inSwapAndLiquify;
    bool public swapAndLiquifyEnabled = true;

    uint256 public liquidityFee = 2;
    uint256 public advertisementFee = 2;
    uint256 public cexFee = 2;
    uint256 public devFee = 2;
    uint256 private totalFees = liquidityFee+advertisementFee+cexFee+devFee;
    uint256 public maxTransactionAmount = 200000000 * (10**18);
    uint256 public swapTokensAtAmount = 100000 * (10**18);

    IUniswapV2Router02 public uniswapV2Router;
    address public immutable uniswapV2Pair;

    address payable public advWallet = payable(0x9CE94b47194dB45241378A7a73BD85dA9FC4FbF4); 
    address payable public cexWallet = payable(0xEAe3C687E7394F0a9119De04361dC7Ae6EdC8eaf);
    address payable public devWallet = payable(0x65dC416b84c8b17dA840801aDc1532bD91Ad0D1D);

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

    modifier lockTheSwap {
        inSwapAndLiquify = true;
        _;
        inSwapAndLiquify = false;
    }

    event UpdateUniswapV2Router(address indexed newAddress, address indexed oldAddress);
    event SwapAndLiquify(uint256 tokensIntoLiqudity, uint256 ethReceived);
    event SwapAndLiquifyEnabledUpdated(bool enabled);
    event SwapETHForTokens(uint256 amountIn, address[] path);
    event ExcludeFromFees(address indexed account, bool isExcluded);


    constructor() ERC20("BellasNFTs", "BEL") {
    	IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff);
         // Create a uniswap pair for this new token
        address _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
            .createPair(address(this), _uniswapV2Router.WETH());

        uniswapV2Router = _uniswapV2Router;
        uniswapV2Pair = _uniswapV2Pair;

        // exclude from paying fees and max transaction amount
        excludeFromFees(owner(), true);
        excludeFromFees(advWallet, true);
        excludeFromFees(cexWallet, true);
        excludeFromFees(devWallet, true);
        excludeFromFees(address(this), true);
        
        /*
          an internal function that is only called here, and CANNOT be called ever again
        */
        
        _createSupply(owner(), 200000000 * (10**18));
    }

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

        bool excludedAccount = _isExcludedFromFees[from] || _isExcludedFromFees[to];
        
        if(to==uniswapV2Pair && !excludedAccount) {
            require(amount <= maxTransactionAmount, "amount exceeds the maxTransactionAmount.");
        }
        
    	uint256 contractTokenBalance = balanceOf(address(this));
        
        bool overMinTokenBalance = contractTokenBalance >= swapTokensAtAmount;
       
        if(overMinTokenBalance && !inSwapAndLiquify && to==uniswapV2Pair && swapAndLiquifyEnabled) {
            contractTokenBalance = swapTokensAtAmount;
            swapAndLiquify(contractTokenBalance);

        }

         // if any account belongs to _isExcludedFromFee account then remove the fee
        if(!excludedAccount) {
            uint256 fees;
            if(from==uniswapV2Pair || to==uniswapV2Pair) {
              fees  = amount*totalFees/100;
            }

        	amount = amount-fees;
            if(fees > 0) {
                super._transfer(from, address(this), fees); 
            }
        }

        super._transfer(from, to, amount);

    }

     function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap {
        uint256 tokensForLiquidity = contractTokenBalance*liquidityFee/totalFees;
        // split the Liquidity token balance into halves
        uint256 half = tokensForLiquidity/2;
        uint256 otherHalf = tokensForLiquidity-half;

        // capture the contract's current ETH balance.
        uint256 initialBalance = address(this).balance;

        // swap tokens for ETH
        swapTokensForEth(half); 

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

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

        // swap and Send eth to wallets
        swapTokensForEth(contractTokenBalance-tokensForLiquidity);
        uint256 advEthShare = address(this).balance*advertisementFee/(totalFees-liquidityFee);
        uint256 cexEthShare = address(this).balance*cexFee/(totalFees-liquidityFee);
        advWallet.transfer(advEthShare);
        cexWallet.transfer(cexEthShare);
        devWallet.transfer(address(this).balance);
       
        emit SwapAndLiquify(half, newBalance); 
    }

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

        if(allowance(address(this), address(uniswapV2Router)) < tokenAmount) {
          _approve(address(this), address(uniswapV2Router), ~uint256(0));
        }

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

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

     function excludeFromFees(address account, bool excluded) public onlyOwner {
        require(_isExcludedFromFees[account] != excluded, "Account is already the value of 'excluded'");
        _isExcludedFromFees[account] = excluded;
        emit ExcludeFromFees(account, excluded);
    }
    
    function isExcludedFromFees(address account) public view returns(bool) {
        return _isExcludedFromFees[account];
    }

    
    // Allows the contract to change the router
    
    function updateUniswapV2Router(address newAddress) public onlyOwner {
        require(newAddress != address(uniswapV2Router), "The router already has that address");
        emit UpdateUniswapV2Router(newAddress, address(uniswapV2Router));
        uniswapV2Router = IUniswapV2Router02(newAddress);
    }

    function setMaxTxAmount(uint256 _maxTx) public onlyOwner {
        maxTransactionAmount = _maxTx;
        require(maxTransactionAmount >= totalSupply()/200, "value too low");
    }

    // owner can only decrease tax by using this function.
    function decreaseTax(uint256 _liquidityFee, uint256 _advFee, uint256 _cexFee, uint256 _devFee) public onlyOwner {
        require(_liquidityFee+_advFee+_cexFee+_devFee <= 10, "tax too high");
        liquidityFee = _liquidityFee;
        advertisementFee = _advFee;
        cexFee = _cexFee;
        devFee - _devFee;
    }

    function updateWallets(address payable _advWallet, address payable _cexWallet, address payable _devWallet) public onlyOwner {
        advWallet = _advWallet;
        cexWallet = _cexWallet;
        devWallet = _devWallet;
    }

    function setSwapTokensAtAmouunt(uint256 _newAmount) public onlyOwner {
        swapTokensAtAmount = _newAmount;
    }

    function setSwapAndLiquifyEnabled(bool _enabled) public onlyOwner {
        swapAndLiquifyEnabled = _enabled;
        emit SwapAndLiquifyEnabledUpdated(_enabled);
    }

    receive() external payable {

    }
  
}

contract MasterChef is Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeBEP20 for IBEP20;

    // Info of each user.
    struct UserInfo {
        uint256 amount;         // How many LP tokens the user has provided.
        uint256 rewardDebt;     // Reward debt. See explanation below.
        //
        // We do some fancy math here. Basically, any point in time, the amount of BELs
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accBelPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accBelPerShare` (and `lastRewardBlock`) gets updated.
        //   2. User receives the pending reward sent to his/her address.
        //   3. User's `amount` gets updated.
        //   4. User's `rewardDebt` gets updated.
    }

    // Info of each pool.
    struct PoolInfo {
        IBEP20 lpToken;           // Address of LP token contract.
        uint256 allocPoint;       // How many allocation points assigned to this pool. BEL to distribute per block.
        uint256 lastRewardBlock;  // Last block number that BEL distribution occurs.
        uint256 accBelPerShare;   // Accumulated BEL per share, times 1e12. See below.
        uint16 withdrawFeeBP;      // Withdraw fee in basis points
    }

    // The BellasNFTs TOKEN!
    BellasNFTs public bel;
    // BEL tokens created per block.
    uint256 public belPerBlock;
    // Bonus muliplier for early BEL makers.
    uint256 public constant BONUS_MULTIPLIER = 1;
    // Deposit Fee address / Dev Address and BuyBack Wallet
    address public feeAddDev;

    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user that stakes LP tokens.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    // Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;
    // The block number when BEL mining starts.
    uint256 public startBlock;


    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event OperatorTransferred(address indexed previousOperator, address indexed newOperator);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmissionRateUpdated(address indexed user, uint256 belPerBlock);

    constructor(
        BellasNFTs _bel,
        address _feeAddDev,
        uint256 _belPerBlock,
        uint256 _startBlock
    ) public {
        bel = _bel;
        feeAddDev = _feeAddDev;
        belPerBlock = _belPerBlock;
        startBlock = _startBlock;
    }

    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    mapping(IBEP20 => bool) public poolExistence;

    modifier nonDuplicated(IBEP20 _lpToken) {
        require(poolExistence[_lpToken] == false, "nonDuplicated: duplicated");
        _;
    }

    modifier poolExists(uint256 pid) {
        require(pid < poolInfo.length, "pool inexistent");
        _;
    }

    modifier lpProtection(uint256 pid, uint256 _amount) {
        PoolInfo storage pool = poolInfo[pid];
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        uint256 maxWithdraw = lpSupply.mul(1500).div(10000);
        require(_amount < maxWithdraw, "withdraw: _amount is higher than maximum LP withdraw");
        _;
    }

    // Add a new lp to the pool. Can only be called by the owner.
    function add(uint256 _allocPoint, IBEP20 _lpToken, uint16 _withdrawFeeBP, bool _withUpdate) public onlyOwner nonDuplicated(_lpToken) {
        require(_withdrawFeeBP <= 1200, "add: invalid deposit fee basis points");
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolExistence[_lpToken] = true;
        poolInfo.push(PoolInfo({
            lpToken : _lpToken,
            allocPoint : _allocPoint,
            lastRewardBlock : lastRewardBlock,
            accBelPerShare : 0,
            withdrawFeeBP : _withdrawFeeBP
        }));
    }

    // Update the given pool's BEL allocation point and deposit fee. Can only be called by the owner.
    function set(uint256 _pid, uint256 _allocPoint, uint16 _withdrawFeeBP, bool _withUpdate) public onlyOwner poolExists(_pid) {
        require(_withdrawFeeBP <= 1200, "set: invalid deposit fee basis points");
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
        poolInfo[_pid].allocPoint = _allocPoint;
        poolInfo[_pid].withdrawFeeBP = _withdrawFeeBP;
    }

    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(uint256 _from, uint256 _to) public pure returns (uint256) {
        return _to.sub(_from).mul(BONUS_MULTIPLIER);
    }

    // View function to see pending BELs on frontend.
    function pendingBel(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accBelPerShare = pool.accBelPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 belReward = multiplier.mul(belPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accBelPerShare = accBelPerShare.add(belReward.mul(1e12).div(lpSupply));
        }
        return user.amount.mul(accBelPerShare).div(1e12).sub(user.rewardDebt);
    }

    // Update reward variables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (lpSupply == 0 || pool.allocPoint == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 belReward = multiplier.mul(belPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
        // bel.mint(address(this), belReward);
        pool.accBelPerShare = pool.accBelPerShare.add(belReward.mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

    // Deposit LP tokens to MasterChef for BEL allocation.
    function deposit(uint256 _pid, uint256 _amount) public nonReentrant poolExists(_pid) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);

        // Try to harvest
        if (user.amount > 0) {
            harvest(_pid);
        }

        // Thanks for RugDoc advice
        // Add user.amount
        if (_amount > 0) {
            // LP ammount before
            uint256 before = pool.lpToken.balanceOf(address(this));
            // Transafer from user
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            // LP ammount after
            uint256 _after = pool.lpToken.balanceOf(address(this));
            // Real amount of LP transfer to this address
            _amount = _after.sub(before);
            user.amount = user.amount.add(_amount);
        }

        // Update user reward debt and emit Deposit
        user.rewardDebt = user.amount.mul(pool.accBelPerShare).div(1e12);
        emit Deposit(msg.sender, _pid, _amount);
    }

    // Withdraw LP tokens from MasterChef.
    function withdraw(uint256 _pid, uint256 _amount) public nonReentrant poolExists(_pid) lpProtection(_pid, _amount){
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: Amount to withdraw higher than LP balance.");
        updatePool(_pid);
        
        // Harvest before withdraw
        harvest(_pid);

        // Withdraw procedure
        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            // Remove fee 
            if (pool.withdrawFeeBP > 0) {
                uint256 withdrawFee = _amount.mul(pool.withdrawFeeBP).div(10000);
                pool.lpToken.safeTransfer(feeAddDev, withdrawFee);
                _amount = _amount.sub(withdrawFee);
                pool.lpToken.safeTransfer(address(msg.sender), _amount);
            }
        }

        user.rewardDebt = user.amount.mul(pool.accBelPerShare).div(1e12);
        emit Withdraw(msg.sender, _pid, _amount);
    }

    // Safe BEL transfer function, just in case if rounding error causes pool to not have enough BELs.
    function safeBelTransfer(address _to, uint256 _amount) internal {
        uint256 belBal = bel.balanceOf(address(this));
        bool transferSuccess = false;
        if (_amount > belBal) {
            transferSuccess = bel.transfer(_to, belBal);
        } else {
            transferSuccess = bel.transfer(_to, _amount);
        }
        require(transferSuccess, "safeBelTransfer: transfer failed");
    }

    function harvest(uint256 _pid) internal {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        uint256 pending = user.amount.mul(pool.accBelPerShare).div(1e12).sub(user.rewardDebt);
        if (pending > 0) {
            // send rewards
            safeBelTransfer(msg.sender, pending);
        }
    }

    // Pancake has to add hidden dummy pools in order to alter the emission, here we make it simple and transparent to all.
    function updateEmissionRate(uint256 _belPerBlock) public onlyOwner {
        massUpdatePools();
        emit EmissionRateUpdated(msg.sender, _belPerBlock);
        belPerBlock = _belPerBlock;
    }

    // update fee address dev
    function updateFeeAddDev(address _newFeeAddDev) public onlyOwner {
        require(_newFeeAddDev != address(0), "update: fee address dev is zero");
        feeAddDev = _newFeeAddDev;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract BellasNFTs","name":"_bel","type":"address"},{"internalType":"address","name":"_feeAddDev","type":"address"},{"internalType":"uint256","name":"_belPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"belPerBlock","type":"uint256"}],"name":"EmissionRateUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"}],"name":"OperatorTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BONUS_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IBEP20","name":"_lpToken","type":"address"},{"internalType":"uint16","name":"_withdrawFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bel","outputs":[{"internalType":"contract BellasNFTs","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"belPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeAddDev","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingBel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"name":"poolExistence","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IBEP20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accBelPerShare","type":"uint256"},{"internalType":"uint16","name":"withdrawFeeBP","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint16","name":"_withdrawFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_belPerBlock","type":"uint256"}],"name":"updateEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newFeeAddDev","type":"address"}],"name":"updateFeeAddDev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061014d5760003560e01c806384e82a33116100c3578063c1d194951161007c578063c1d19495146102e6578063cbd258b5146102ef578063d963842214610322578063e2bbb15814610335578063f2fde38b14610348578063f81930091461035b57600080fd5b806384e82a331461024d5780638aa28550146102605780638da5cb5b146102685780638dbb1e3a1461027957806393f1a40b1461028c578063aaeff599146102d357600080fd5b8063441a3e7011610115578063441a3e70146101e357806348cd4cb1146101f657806351eb05a6146101ff578063630b5ba1146102125780636c0285081461021a578063715018a61461024557600080fd5b8063081e3eda146101525780630ba84cd2146101695780631526fe271461017e57806317caf6f1146101c7578063184a5c1c146101d0575b600080fd5b6005545b6040519081526020015b60405180910390f35b61017c6101773660046119f9565b61036e565b005b61019161018c3660046119f9565b6103e3565b604080516001600160a01b039096168652602086019490945292840191909152606083015261ffff16608082015260a001610160565b61015660075481565b6101566101de366004611a2a565b610432565b61017c6101f1366004611a5a565b6105b1565b61015660085481565b61017c61020d3660046119f9565b6108fb565b61017c610a3a565b60025461022d906001600160a01b031681565b6040516001600160a01b039091168152602001610160565b61017c610a65565b61017c61025b366004611aa1565b610ad9565b610156600181565b6000546001600160a01b031661022d565b610156610287366004611a5a565b610d55565b6102be61029a366004611a2a565b60066020908152600092835260408084209091529082529020805460019091015482565b60408051928352602083019190915201610160565b60045461022d906001600160a01b031681565b61015660035481565b6103126102fd366004611af2565b60096020526000908152604090205460ff1681565b6040519015158152602001610160565b61017c610330366004611b0f565b610d6d565b61017c610343366004611a5a565b610ee4565b61017c610356366004611af2565b61114d565b61017c610369366004611af2565b611237565b6000546001600160a01b031633146103a15760405162461bcd60e51b815260040161039890611b3c565b60405180910390fd5b6103a9610a3a565b60405181815233907feff42d13dfc9296516c1d3fc5870a26da3f78b3536a8f8db695a1f8fc4680ce99060200160405180910390a2600355565b600581815481106103f357600080fd5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909161ffff1685565b6000806005848154811061044857610448611b71565b600091825260208083208784526006825260408085206001600160a01b03898116875293528085206005949094029091016003810154815492516370a0823160e01b815230600482015291965093949291909116906370a082319060240160206040518083038186803b1580156104be57600080fd5b505afa1580156104d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f69190611b87565b905083600201544311801561050a57508015155b1561057657600061051f856002015443610d55565b9050600061055260075461054c8860010154610546600354876112d990919063ffffffff16565b906112d9565b90611358565b905061057161056a8461054c8464e8d4a510006112d9565b859061139a565b935050505b6105a4836001015461059e64e8d4a5100061054c8688600001546112d990919063ffffffff16565b906113f9565b9450505050505b92915050565b600260015414156106045760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610398565b60026001556005548290811061062c5760405162461bcd60e51b815260040161039890611ba0565b828260006005838154811061064357610643611b71565b6000918252602082206005919091020180546040516370a0823160e01b81523060048201529193506001600160a01b0316906370a082319060240160206040518083038186803b15801561069657600080fd5b505afa1580156106aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ce9190611b87565b905060006106e461271061054c846105dc6112d9565b90508084106107525760405162461bcd60e51b815260206004820152603460248201527f77697468647261773a205f616d6f756e7420697320686967686572207468616e604482015273206d6178696d756d204c5020776974686472617760601b6064820152608401610398565b60006005898154811061076757610767611b71565b600091825260208083208c845260068252604080852033865290925292208054600590920290920192508911156107fd5760405162461bcd60e51b815260206004820152603460248201527f77697468647261773a20416d6f756e7420746f207769746864726177206869676044820152733432b9103a3430b7102628103130b630b731b29760611b6064820152608401610398565b6108068a6108fb565b61080f8a61143b565b8815610894578054610821908a6113f9565b8155600482015461ffff1615610894576004820154600090610850906127109061054c908d9061ffff166112d9565b600454845491925061086f916001600160a01b039081169116836114bc565b6108798a826113f9565b8354909a50610892906001600160a01b0316338c6114bc565b505b600382015481546108af9164e8d4a510009161054c916112d9565b60018201556040518981528a9033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a35050600180555050505050505050565b60006005828154811061091057610910611b71565b906000526020600020906005020190508060020154431161092f575050565b80546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561097257600080fd5b505afa158015610986573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109aa9190611b87565b90508015806109bb57506001820154155b156109cb57504360029091015550565b60006109db836002015443610d55565b90506000610a0260075461054c8660010154610546600354876112d990919063ffffffff16565b9050610a25610a1a8461054c8464e8d4a510006112d9565b60038601549061139a565b60038501555050436002909201919091555050565b60055460005b81811015610a6157610a51816108fb565b610a5a81611bdf565b9050610a40565b5050565b6000546001600160a01b03163314610a8f5760405162461bcd60e51b815260040161039890611b3c565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b03163314610b035760405162461bcd60e51b815260040161039890611b3c565b6001600160a01b038316600090815260096020526040902054839060ff1615610b6e5760405162461bcd60e51b815260206004820152601960248201527f6e6f6e4475706c6963617465643a206475706c696361746564000000000000006044820152606401610398565b6104b08361ffff161115610bd25760405162461bcd60e51b815260206004820152602560248201527f6164643a20696e76616c6964206465706f7369742066656520626173697320706044820152646f696e747360d81b6064820152608401610398565b8115610be057610be0610a3a565b60006008544311610bf357600854610bf5565b435b600754909150610c05908761139a565b6007556001600160a01b0394851660008181526009602090815260408083208054600160ff199091168117909155815160a081018352948552918401998a5283019384526060830182815261ffff978816608085019081526005805493840181559384905293517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db09290930291820180546001600160a01b031916939099169290921790975596517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db187015590517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db286015594517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db3850155505091517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db4909101805461ffff191691909216179055565b6000610d66600161054684866113f9565b9392505050565b6000546001600160a01b03163314610d975760405162461bcd60e51b815260040161039890611b3c565b60055484908110610dba5760405162461bcd60e51b815260040161039890611ba0565b6104b08361ffff161115610e1e5760405162461bcd60e51b815260206004820152602560248201527f7365743a20696e76616c6964206465706f7369742066656520626173697320706044820152646f696e747360d81b6064820152608401610398565b8115610e2c57610e2c610a3a565b610e6f84610e6960058881548110610e4657610e46611b71565b9060005260206000209060050201600101546007546113f990919063ffffffff16565b9061139a565b6007819055508360058681548110610e8957610e89611b71565b9060005260206000209060050201600101819055508260058681548110610eb257610eb2611b71565b906000526020600020906005020160040160006101000a81548161ffff021916908361ffff1602179055505050505050565b60026001541415610f375760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610398565b600260015560055482908110610f5f5760405162461bcd60e51b815260040161039890611ba0565b600060058481548110610f7457610f74611b71565b60009182526020808320878452600682526040808520338652909252922060059091029091019150610fa5856108fb565b805415610fb557610fb58561143b565b83156110eb5781546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610ffe57600080fd5b505afa158015611012573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110369190611b87565b8354909150611050906001600160a01b0316333088611524565b82546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561109357600080fd5b505afa1580156110a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110cb9190611b87565b90506110d781836113f9565b83549096506110e6908761139a565b835550505b600382015481546111069164e8d4a510009161054c916112d9565b6001820155604051848152859033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159060200160405180910390a3505060018055505050565b6000546001600160a01b031633146111775760405162461bcd60e51b815260040161039890611b3c565b6001600160a01b0381166111dc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610398565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146112615760405162461bcd60e51b815260040161039890611b3c565b6001600160a01b0381166112b75760405162461bcd60e51b815260206004820152601f60248201527f7570646174653a20666565206164647265737320646576206973207a65726f006044820152606401610398565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000826112e8575060006105ab565b60006112f48385611bfa565b9050826113018583611c19565b14610d665760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610398565b6000610d6683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061155c565b6000806113a78385611c3b565b905083811015610d665760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610398565b6000610d6683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611593565b60006005828154811061145057611450611b71565b600091825260208083208584526006825260408085203386529092529083206001810154600360059094029092019283015481549395509093926114a4929161059e9164e8d4a510009161054c91906112d9565b905080156114b6576114b633826115c4565b50505050565b6040516001600160a01b03831660248201526044810182905261151f90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526117af565b505050565b6040516001600160a01b03808516602483015283166044820152606481018290526114b69085906323b872dd60e01b906084016114e8565b6000818361157d5760405162461bcd60e51b81526004016103989190611c7f565b50600061158a8486611c19565b95945050505050565b600081848411156115b75760405162461bcd60e51b81526004016103989190611c7f565b50600061158a8486611cb2565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561160857600080fd5b505afa15801561161c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116409190611b87565b90506000818311156116d95760025460405163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529091169063a9059cbb90604401602060405180830381600087803b15801561169a57600080fd5b505af11580156116ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116d29190611cc9565b9050611762565b60025460405163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529091169063a9059cbb90604401602060405180830381600087803b15801561172757600080fd5b505af115801561173b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061175f9190611cc9565b90505b806114b65760405162461bcd60e51b815260206004820181905260248201527f7361666542656c5472616e736665723a207472616e73666572206661696c65646044820152606401610398565b6000611804826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118819092919063ffffffff16565b80519091501561151f57808060200190518101906118229190611cc9565b61151f5760405162461bcd60e51b815260206004820152602a60248201527f5361666542455032303a204245503230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610398565b60606118908484600085611898565b949350505050565b6060824710156118f95760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610398565b843b6119475760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610398565b600080866001600160a01b031685876040516119639190611ce6565b60006040518083038185875af1925050503d80600081146119a0576040519150601f19603f3d011682016040523d82523d6000602084013e6119a5565b606091505b50915091506119b58282866119c0565b979650505050505050565b606083156119cf575081610d66565b8251156119df5782518084602001fd5b8160405162461bcd60e51b81526004016103989190611c7f565b600060208284031215611a0b57600080fd5b5035919050565b6001600160a01b0381168114611a2757600080fd5b50565b60008060408385031215611a3d57600080fd5b823591506020830135611a4f81611a12565b809150509250929050565b60008060408385031215611a6d57600080fd5b50508035926020909101359150565b803561ffff81168114611a8e57600080fd5b919050565b8015158114611a2757600080fd5b60008060008060808587031215611ab757600080fd5b843593506020850135611ac981611a12565b9250611ad760408601611a7c565b91506060850135611ae781611a93565b939692955090935050565b600060208284031215611b0457600080fd5b8135610d6681611a12565b60008060008060808587031215611b2557600080fd5b8435935060208501359250611ad760408601611a7c565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611b9957600080fd5b5051919050565b6020808252600f908201526e1c1bdbdb081a5b995e1a5cdd195b9d608a1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600019821415611bf357611bf3611bc9565b5060010190565b6000816000190483118215151615611c1457611c14611bc9565b500290565b600082611c3657634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115611c4e57611c4e611bc9565b500190565b60005b83811015611c6e578181015183820152602001611c56565b838111156114b65750506000910152565b6020815260008251806020840152611c9e816040850160208701611c53565b601f01601f19169190910160400192915050565b600082821015611cc457611cc4611bc9565b500390565b600060208284031215611cdb57600080fd5b8151610d6681611a93565b60008251611cf8818460208701611c53565b919091019291505056fea26469706673582212203123b6524b2e24ca44a0ba8e3c8c55e4218b67d4487fd08a4e091db1eac9e77864736f6c63430008090033

Deployed Bytecode Sourcemap

55660:10812:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58433:95;58505:8;:15;58433:95;;;160:25:1;;;148:2;133:18;58433:95:0;;;;;;;;66038:201;;;;;;:::i;:::-;;:::i;:::-;;57451:26;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;670:32:1;;;652:51;;734:2;719:18;;712:34;;;;762:18;;;755:34;;;;820:2;805:18;;798:34;881:6;869:19;863:3;848:19;;841:48;639:3;624:19;57451:26:0;381:514:1;57692:34:0;;;;;;60888:750;;;;;;:::i;:::-;;:::i;63950:1043::-;;;;;;:::i;:::-;;:::i;57782:25::-;;;;;;61977:752;;;;;;:::i;:::-;;:::i;61721:180::-;;;:::i;57134:21::-;;;;;-1:-1:-1;;;;;57134:21:0;;;;;;-1:-1:-1;;;;;1800:32:1;;;1782:51;;1770:2;1755:18;57134:21:0;1609:230:1;38278:148:0;;;:::i;59280:732::-;;;;;;:::i;:::-;;:::i;57279:44::-;;57322:1;57279:44;;37636:79;37674:7;37701:6;-1:-1:-1;;;;;37701:6:0;37636:79;;60682:143;;;;;;:::i;:::-;;:::i;57533:64::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3055:25:1;;;3111:2;3096:18;;3089:34;;;;3028:18;57533:64:0;2881:248:1;57391:24:0;;;;;-1:-1:-1;;;;;57391:24:0;;;57200:26;;;;;;58536:44;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;3565:14:1;;3558:22;3540:41;;3528:2;3513:18;58536:44:0;3400:187:1;60123:483:0;;;;;;:::i;:::-;;:::i;62797:1101::-;;;;;;:::i;:::-;;:::i;38581:244::-;;;;;;:::i;:::-;;:::i;66278:191::-;;;;;;:::i;:::-;;:::i;66038:201::-;37848:6;;-1:-1:-1;;;;;37848:6:0;305:10;37848:22;37840:67;;;;-1:-1:-1;;;37840:67:0;;;;;;;:::i;:::-;;;;;;;;;66116:17:::1;:15;:17::i;:::-;66149:45;::::0;160:25:1;;;66169:10:0::1;::::0;66149:45:::1;::::0;148:2:1;133:18;66149:45:0::1;;;;;;;66205:11;:26:::0;66038:201::o;57451:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;57451:26:0;;;;-1:-1:-1;57451:26:0;;;;;;;:::o;60888:750::-;60960:7;60980:21;61004:8;61013:4;61004:14;;;;;;;;:::i;:::-;;;;;;;;;61053;;;:8;:14;;;;;;-1:-1:-1;;;;;61053:21:0;;;;;;;;;;61004:14;;;;;;;;61110:19;;;;61159:12;;:37;;-1:-1:-1;;;61159:37:0;;61190:4;61159:37;;;1782:51:1;61004:14:0;;-1:-1:-1;61053:21:0;;61004:14;61159:12;;;;;:22;;1755:18:1;;61159:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61140:56;;61226:4;:20;;;61211:12;:35;:52;;;;-1:-1:-1;61250:13:0;;;61211:52;61207:344;;;61280:18;61301:49;61315:4;:20;;;61337:12;61301:13;:49::i;:::-;61280:70;;61365:17;61385:69;61438:15;;61385:48;61417:4;:15;;;61385:27;61400:11;;61385:10;:14;;:27;;;;:::i;:::-;:31;;:48::i;:::-;:52;;:69::i;:::-;61365:89;-1:-1:-1;61486:53:0;61505:33;61529:8;61505:19;61365:89;61519:4;61505:13;:19::i;:33::-;61486:14;;:18;:53::i;:::-;61469:70;;61265:286;;61207:344;61568:62;61614:4;:15;;;61568:41;61604:4;61568:31;61584:14;61568:4;:11;;;:15;;:31;;;;:::i;:41::-;:45;;:62::i;:::-;61561:69;;;;;;60888:750;;;;;:::o;63950:1043::-;39716:1;40322:7;;:19;;40314:63;;;;-1:-1:-1;;;40314:63:0;;5183:2:1;40314:63:0;;;5165:21:1;5222:2;5202:18;;;5195:30;5261:33;5241:18;;;5234:61;5312:18;;40314:63:0;4981:355:1;40314:63:0;39716:1;40455:7;:18;58796:8:::1;:15:::0;64030:4;;58790:21;::::1;58782:49;;;;-1:-1:-1::0;;;58782:49:0::1;;;;;;;:::i;:::-;64049:4:::2;64055:7;58922:21;58946:8;58955:3;58946:13;;;;;;;;:::i;:::-;;::::0;;;::::2;::::0;;::::2;::::0;;;::::2;;58989:12:::0;;:37:::2;::::0;-1:-1:-1;;;58989:37:0;;59020:4:::2;58989:37;::::0;::::2;1782:51:1::0;58946:13:0;;-1:-1:-1;;;;;;58989:12:0::2;::::0;:22:::2;::::0;1755:18:1;;58989:37:0::2;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;58970:56:::0;-1:-1:-1;59037:19:0::2;59059:29;59082:5;59059:18;58970:56:::0;59072:4:::2;59059:12;:18::i;:29::-;59037:51;;59117:11;59107:7;:21;59099:86;;;::::0;-1:-1:-1;;;59099:86:0;;5887:2:1;59099:86:0::2;::::0;::::2;5869:21:1::0;5926:2;5906:18;;;5899:30;5965:34;5945:18;;;5938:62;-1:-1:-1;;;6016:18:1;;;6009:50;6076:19;;59099:86:0::2;5685:416:1::0;59099:86:0::2;64074:21:::3;64098:8;64107:4;64098:14;;;;;;;;:::i;:::-;;::::0;;;::::3;::::0;;;64147;;;:8:::3;:14:::0;;;;;;64162:10:::3;64147:26:::0;;;;;;;64192:11;;64098:14:::3;::::0;;::::3;::::0;;::::3;::::0;-1:-1:-1;64192:22:0;-1:-1:-1;64192:22:0::3;64184:87;;;::::0;-1:-1:-1;;;64184:87:0;;6308:2:1;64184:87:0::3;::::0;::::3;6290:21:1::0;6347:2;6327:18;;;6320:30;6386:34;6366:18;;;6359:62;-1:-1:-1;;;6437:18:1;;;6430:50;6497:19;;64184:87:0::3;6106:416:1::0;64184:87:0::3;64282:16;64293:4;64282:10;:16::i;:::-;64355:13;64363:4;64355:7;:13::i;:::-;64416:11:::0;;64412:446:::3;;64458:11:::0;;:24:::3;::::0;64474:7;64458:15:::3;:24::i;:::-;64444:38:::0;;64529:18:::3;::::0;::::3;::::0;::::3;;:22:::0;64525:322:::3;;64606:18;::::0;::::3;::::0;64572:19:::3;::::0;64594:42:::3;::::0;64630:5:::3;::::0;64594:31:::3;::::0;:7;;64606:18:::3;;64594:11;:31::i;:42::-;64681:9;::::0;64655:12;;64572:64;;-1:-1:-1;64655:49:0::3;::::0;-1:-1:-1;;;;;64655:12:0;;::::3;::::0;64681:9:::3;64572:64:::0;64655:25:::3;:49::i;:::-;64733:24;:7:::0;64745:11;64733::::3;:24::i;:::-;64776:12:::0;;64723:34;;-1:-1:-1;64776:55:0::3;::::0;-1:-1:-1;;;;;64776:12:0::3;64810:10;64723:34:::0;64776:25:::3;:55::i;:::-;64553:294;64525:322;64904:19;::::0;::::3;::::0;64888:11;;:46:::3;::::0;64929:4:::3;::::0;64888:36:::3;::::0;:15:::3;:36::i;:46::-;64870:15;::::0;::::3;:64:::0;64950:35:::3;::::0;160:25:1;;;64971:4:0;;64959:10:::3;::::0;64950:35:::3;::::0;148:2:1;133:18;64950:35:0::3;;;;;;;-1:-1:-1::0;;39672:1:0;40634:22;;-1:-1:-1;;;;;;;;63950:1043:0:o;61977:752::-;62029:21;62053:8;62062:4;62053:14;;;;;;;;:::i;:::-;;;;;;;;;;;62029:38;;62098:4;:20;;;62082:12;:36;62078:75;;62135:7;61977:752;:::o;62078:75::-;62182:12;;:37;;-1:-1:-1;;;62182:37:0;;62213:4;62182:37;;;1782:51:1;62163:16:0;;-1:-1:-1;;;;;62182:12:0;;:22;;1755:18:1;;62182:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;62163:56;-1:-1:-1;62234:13:0;;;:37;;-1:-1:-1;62251:15:0;;;;:20;62234:37;62230:126;;;-1:-1:-1;62311:12:0;62288:20;;;;:35;-1:-1:-1;61977:752:0:o;62230:126::-;62366:18;62387:49;62401:4;:20;;;62423:12;62387:13;:49::i;:::-;62366:70;;62447:17;62467:69;62520:15;;62467:48;62499:4;:15;;;62467:27;62482:11;;62467:10;:14;;:27;;;;:::i;:69::-;62447:89;-1:-1:-1;62617:58:0;62641:33;62665:8;62641:19;62447:89;62655:4;62641:13;:19::i;:33::-;62617:19;;;;;:23;:58::i;:::-;62595:19;;;:80;-1:-1:-1;;62709:12:0;62686:20;;;;:35;;;;-1:-1:-1;;61977:752:0:o;61721:180::-;61783:8;:15;61766:14;61809:85;61837:6;61831:3;:12;61809:85;;;61867:15;61878:3;61867:10;:15::i;:::-;61845:5;;;:::i;:::-;;;61809:85;;;;61755:146;61721:180::o;38278:148::-;37848:6;;-1:-1:-1;;;;;37848:6:0;305:10;37848:22;37840:67;;;;-1:-1:-1;;;37840:67:0;;;;;;;:::i;:::-;38385:1:::1;38369:6:::0;;38348:40:::1;::::0;-1:-1:-1;;;;;38369:6:0;;::::1;::::0;38348:40:::1;::::0;38385:1;;38348:40:::1;38416:1;38399:19:::0;;-1:-1:-1;;;;;;38399:19:0::1;::::0;;38278:148::o;59280:732::-;37848:6;;-1:-1:-1;;;;;37848:6:0;305:10;37848:22;37840:67;;;;-1:-1:-1;;;37840:67:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;58648:23:0;::::1;;::::0;;;:13:::1;:23;::::0;;;;;59403:8;;58648:23:::1;;:32;58640:70;;;::::0;-1:-1:-1;;;58640:70:0;;7001:2:1;58640:70:0::1;::::0;::::1;6983:21:1::0;7040:2;7020:18;;;7013:30;7079:27;7059:18;;;7052:55;7124:18;;58640:70:0::1;6799:349:1::0;58640:70:0::1;59450:4:::2;59432:14;:22;;;;59424:72;;;::::0;-1:-1:-1;;;59424:72:0;;7355:2:1;59424:72:0::2;::::0;::::2;7337:21:1::0;7394:2;7374:18;;;7367:30;7433:34;7413:18;;;7406:62;-1:-1:-1;;;7484:18:1;;;7477:35;7529:19;;59424:72:0::2;7153:401:1::0;59424:72:0::2;59511:11;59507:61;;;59539:17;:15;:17::i;:::-;59578:23;59619:10;;59604:12;:25;:53;;59647:10;;59604:53;;;59632:12;59604:53;59686:15;::::0;59578:79;;-1:-1:-1;59686:32:0::2;::::0;59706:11;59686:19:::2;:32::i;:::-;59668:15;:50:::0;-1:-1:-1;;;;;59729:23:0;;::::2;;::::0;;;:13:::2;:23;::::0;;;;;;;:30;;59755:4:::2;-1:-1:-1::0;;59729:30:0;;::::2;::::0;::::2;::::0;;;59784:219;;::::2;::::0;::::2;::::0;;;;;;;::::2;::::0;;;;;;;;;;;;;;::::2;::::0;;::::2;::::0;;;;;;59770:8:::2;:234:::0;;;;::::2;::::0;;;;;;;;;;;;::::2;::::0;;::::2;::::0;;-1:-1:-1;;;;;;59770:234:0::2;::::0;;;::::2;::::0;;;::::2;::::0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;59770:234:0;;;;;;;;-1:-1:-1;;59770:234:0::2;::::0;;;::::2;;::::0;;59280:732::o;60682:143::-;60754:7;60781:36;57322:1;60781:14;:3;60789:5;60781:7;:14::i;:36::-;60774:43;60682:143;-1:-1:-1;;;60682:143:0:o;60123:483::-;37848:6;;-1:-1:-1;;;;;37848:6:0;305:10;37848:22;37840:67;;;;-1:-1:-1;;;37840:67:0;;;;;;;:::i;:::-;58796:8:::1;:15:::0;60240:4;;58790:21;::::1;58782:49;;;;-1:-1:-1::0;;;58782:49:0::1;;;;;;;:::i;:::-;60283:4:::2;60265:14;:22;;;;60257:72;;;::::0;-1:-1:-1;;;60257:72:0;;7761:2:1;60257:72:0::2;::::0;::::2;7743:21:1::0;7800:2;7780:18;;;7773:30;7839:34;7819:18;;;7812:62;-1:-1:-1;;;7890:18:1;;;7883:35;7935:19;;60257:72:0::2;7559:401:1::0;60257:72:0::2;60344:11;60340:61;;;60372:17;:15;:17::i;:::-;60429:63;60480:11;60429:46;60449:8;60458:4;60449:14;;;;;;;;:::i;:::-;;;;;;;;;;;:25;;;60429:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::2;:63::i;:::-;60411:15;:81;;;;60531:11;60503:8;60512:4;60503:14;;;;;;;;:::i;:::-;;;;;;;;;;;:25;;:39;;;;60584:14;60553:8;60562:4;60553:14;;;;;;;;:::i;:::-;;;;;;;;;;;:28;;;:45;;;;;;;;;;;;;;;;;;37918:1:::1;60123:483:::0;;;;:::o;62797:1101::-;39716:1;40322:7;;:19;;40314:63;;;;-1:-1:-1;;;40314:63:0;;5183:2:1;40314:63:0;;;5165:21:1;5222:2;5202:18;;;5195:30;5261:33;5241:18;;;5234:61;5312:18;;40314:63:0;4981:355:1;40314:63:0;39716:1;40455:7;:18;58796:8:::1;:15:::0;62876:4;;58790:21;::::1;58782:49;;;;-1:-1:-1::0;;;58782:49:0::1;;;;;;;:::i;:::-;62893:21:::2;62917:8;62926:4;62917:14;;;;;;;;:::i;:::-;;::::0;;;::::2;::::0;;;62966;;;:8:::2;:14:::0;;;;;;62981:10:::2;62966:26:::0;;;;;;;62917:14:::2;::::0;;::::2;::::0;;::::2;::::0;-1:-1:-1;63003:16:0::2;62975:4:::0;63003:10:::2;:16::i;:::-;63063:11:::0;;:15;63059:61:::2;;63095:13;63103:4;63095:7;:13::i;:::-;63201:11:::0;;63197:514:::2;;63280:12:::0;;:37:::2;::::0;-1:-1:-1;;;63280:37:0;;63311:4:::2;63280:37;::::0;::::2;1782:51:1::0;63263:14:0::2;::::0;-1:-1:-1;;;;;63280:12:0::2;::::0;:22:::2;::::0;1755:18:1;;63280:37:0::2;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;63368:12:::0;;63263:54;;-1:-1:-1;63368:74:0::2;::::0;-1:-1:-1;;;;;63368:12:0::2;63406:10;63427:4;63434:7:::0;63368:29:::2;:74::i;:::-;63507:12:::0;;:37:::2;::::0;-1:-1:-1;;;63507:37:0;;63538:4:::2;63507:37;::::0;::::2;1782:51:1::0;63490:14:0::2;::::0;-1:-1:-1;;;;;63507:12:0::2;::::0;:22:::2;::::0;1755:18:1;;63507:37:0::2;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;63490:54:::0;-1:-1:-1;63628:18:0::2;63490:54:::0;63639:6;63628:10:::2;:18::i;:::-;63675:11:::0;;63618:28;;-1:-1:-1;63675:24:0::2;::::0;63618:28;63675:15:::2;:24::i;:::-;63661:38:::0;;-1:-1:-1;;63197:514:0::2;63810:19;::::0;::::2;::::0;63794:11;;:46:::2;::::0;63835:4:::2;::::0;63794:36:::2;::::0;:15:::2;:36::i;:46::-;63776:15;::::0;::::2;:64:::0;63856:34:::2;::::0;160:25:1;;;63876:4:0;;63864:10:::2;::::0;63856:34:::2;::::0;148:2:1;133:18;63856:34:0::2;;;;;;;-1:-1:-1::0;;39672:1:0;40634:22;;-1:-1:-1;;;62797:1101:0:o;38581:244::-;37848:6;;-1:-1:-1;;;;;37848:6:0;305:10;37848:22;37840:67;;;;-1:-1:-1;;;37840:67:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;38670:22:0;::::1;38662:73;;;::::0;-1:-1:-1;;;38662:73:0;;8167:2:1;38662:73:0::1;::::0;::::1;8149:21:1::0;8206:2;8186:18;;;8179:30;8245:34;8225:18;;;8218:62;-1:-1:-1;;;8296:18:1;;;8289:36;8342:19;;38662:73:0::1;7965:402:1::0;38662:73:0::1;38772:6;::::0;;38751:38:::1;::::0;-1:-1:-1;;;;;38751:38:0;;::::1;::::0;38772:6;::::1;::::0;38751:38:::1;::::0;::::1;38800:6;:17:::0;;-1:-1:-1;;;;;;38800:17:0::1;-1:-1:-1::0;;;;;38800:17:0;;;::::1;::::0;;;::::1;::::0;;38581:244::o;66278:191::-;37848:6;;-1:-1:-1;;;;;37848:6:0;305:10;37848:22;37840:67;;;;-1:-1:-1;;;37840:67:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;66362:27:0;::::1;66354:71;;;::::0;-1:-1:-1;;;66354:71:0;;8574:2:1;66354:71:0::1;::::0;::::1;8556:21:1::0;8613:2;8593:18;;;8586:30;8652:33;8632:18;;;8625:61;8703:18;;66354:71:0::1;8372:355:1::0;66354:71:0::1;66436:9;:25:::0;;-1:-1:-1;;;;;;66436:25:0::1;-1:-1:-1::0;;;;;66436:25:0;;;::::1;::::0;;;::::1;::::0;;66278:191::o;20839:471::-;20897:7;21142:6;21138:47;;-1:-1:-1;21172:1:0;21165:8;;21138:47;21197:9;21209:5;21213:1;21209;:5;:::i;:::-;21197:17;-1:-1:-1;21242:1:0;21233:5;21237:1;21197:17;21233:5;:::i;:::-;:10;21225:56;;;;-1:-1:-1;;;21225:56:0;;9329:2:1;21225:56:0;;;9311:21:1;9368:2;9348:18;;;9341:30;9407:34;9387:18;;;9380:62;-1:-1:-1;;;9458:18:1;;;9451:31;9499:19;;21225:56:0;9127:397:1;21786:132:0;21844:7;21871:39;21875:1;21878;21871:39;;;;;;;;;;;;;;;;;:3;:39::i;19485:181::-;19543:7;;19575:5;19579:1;19575;:5;:::i;:::-;19563:17;;19604:1;19599;:6;;19591:46;;;;-1:-1:-1;;;19591:46:0;;9864:2:1;19591:46:0;;;9846:21:1;9903:2;9883:18;;;9876:30;9942:29;9922:18;;;9915:57;9989:18;;19591:46:0;9662:351:1;19949:136:0;20007:7;20034:43;20038:1;20041;20034:43;;;;;;;;;;;;;;;;;:3;:43::i;65530:375::-;65581:21;65605:8;65614:4;65605:14;;;;;;;;:::i;:::-;;;;;;;;;65654;;;:8;:14;;;;;;65669:10;65654:26;;;;;;;;65762:15;;;;65727:19;65605:14;;;;;;;65727:19;;;;65711:11;;65605:14;;-1:-1:-1;65654:26:0;;65605:14;65711:67;;65762:15;65711:46;;65752:4;;65711:36;;:11;:15;:36::i;:67::-;65693:85;-1:-1:-1;65793:11:0;;65789:109;;65850:36;65866:10;65878:7;65850:15;:36::i;:::-;65570:335;;;65530:375;:::o;31906:177::-;32016:58;;-1:-1:-1;;;;;10210:32:1;;32016:58:0;;;10192:51:1;10259:18;;;10252:34;;;31989:86:0;;32009:5;;-1:-1:-1;;;32039:23:0;10165:18:1;;32016:58:0;;;;-1:-1:-1;;32016:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;32016:58:0;-1:-1:-1;;;;;;32016:58:0;;;;;;;;;;31989:19;:86::i;:::-;31906:177;;;:::o;32091:205::-;32219:68;;-1:-1:-1;;;;;10555:15:1;;;32219:68:0;;;10537:34:1;10607:15;;10587:18;;;10580:43;10639:18;;;10632:34;;;32192:96:0;;32212:5;;-1:-1:-1;;;32242:27:0;10472:18:1;;32219:68:0;10297:375:1;22414:278:0;22500:7;22535:12;22528:5;22520:28;;;;-1:-1:-1;;;22520:28:0;;;;;;;;:::i;:::-;-1:-1:-1;22559:9:0;22571:5;22575:1;22571;:5;:::i;:::-;22559:17;22414:278;-1:-1:-1;;;;;22414:278:0:o;20388:192::-;20474:7;20510:12;20502:6;;;;20494:29;;;;-1:-1:-1;;;20494:29:0;;;;;;;;:::i;:::-;-1:-1:-1;20534:9:0;20546:5;20550:1;20546;:5;:::i;65105:417::-;65197:3;;:28;;-1:-1:-1;;;65197:28:0;;65219:4;65197:28;;;1782:51:1;65180:14:0;;-1:-1:-1;;;;;65197:3:0;;:13;;1755:18:1;;65197:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;65180:45;;65236:20;65289:6;65279:7;:16;65275:169;;;65330:3;;:25;;-1:-1:-1;;;65330:25:0;;-1:-1:-1;;;;;10210:32:1;;;65330:25:0;;;10192:51:1;10259:18;;;10252:34;;;65330:3:0;;;;:12;;10165:18:1;;65330:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;65312:43;;65275:169;;;65406:3;;:26;;-1:-1:-1;;;65406:26:0;;-1:-1:-1;;;;;10210:32:1;;;65406:26:0;;;10192:51:1;10259:18;;;10252:34;;;65406:3:0;;;;:12;;10165:18:1;;65406:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;65388:44;;65275:169;65462:15;65454:60;;;;-1:-1:-1;;;65454:60:0;;11910:2:1;65454:60:0;;;11892:21:1;;;11929:18;;;11922:30;11988:34;11968:18;;;11961:62;12040:18;;65454:60:0;11708:356:1;34211:761:0;34635:23;34661:69;34689:4;34661:69;;;;;;;;;;;;;;;;;34669:5;-1:-1:-1;;;;;34661:27:0;;;:69;;;;;:::i;:::-;34745:17;;34635:95;;-1:-1:-1;34745:21:0;34741:224;;34887:10;34876:30;;;;;;;;;;;;:::i;:::-;34868:85;;;;-1:-1:-1;;;34868:85:0;;12271:2:1;34868:85:0;;;12253:21:1;12310:2;12290:18;;;12283:30;12349:34;12329:18;;;12322:62;-1:-1:-1;;;12400:18:1;;;12393:40;12450:19;;34868:85:0;12069:406:1;27473:195:0;27576:12;27608:52;27630:6;27638:4;27644:1;27647:12;27608:21;:52::i;:::-;27601:59;27473:195;-1:-1:-1;;;;27473:195:0:o;28525:530::-;28652:12;28710:5;28685:21;:30;;28677:81;;;;-1:-1:-1;;;28677:81:0;;12682:2:1;28677:81:0;;;12664:21:1;12721:2;12701:18;;;12694:30;12760:34;12740:18;;;12733:62;-1:-1:-1;;;12811:18:1;;;12804:36;12857:19;;28677:81:0;12480:402:1;28677:81:0;24922:20;;28769:60;;;;-1:-1:-1;;;28769:60:0;;13089:2:1;28769:60:0;;;13071:21:1;13128:2;13108:18;;;13101:30;13167:31;13147:18;;;13140:59;13216:18;;28769:60:0;12887:353:1;28769:60:0;28903:12;28917:23;28944:6;-1:-1:-1;;;;;28944:11:0;28964:5;28972:4;28944:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28902:75;;;;28995:52;29013:7;29022:10;29034:12;28995:17;:52::i;:::-;28988:59;28525:530;-1:-1:-1;;;;;;;28525:530:0:o;31065:742::-;31180:12;31209:7;31205:595;;;-1:-1:-1;31240:10:0;31233:17;;31205:595;31354:17;;:21;31350:439;;31617:10;31611:17;31678:15;31665:10;31661:2;31657:19;31650:44;31350:439;31760:12;31753:20;;-1:-1:-1;;;31753:20:0;;;;;;;;:::i;196:180:1:-;255:6;308:2;296:9;287:7;283:23;279:32;276:52;;;324:1;321;314:12;276:52;-1:-1:-1;347:23:1;;196:180;-1:-1:-1;196:180:1:o;900:131::-;-1:-1:-1;;;;;975:31:1;;965:42;;955:70;;1021:1;1018;1011:12;955:70;900:131;:::o;1036:315::-;1104:6;1112;1165:2;1153:9;1144:7;1140:23;1136:32;1133:52;;;1181:1;1178;1171:12;1133:52;1217:9;1204:23;1194:33;;1277:2;1266:9;1262:18;1249:32;1290:31;1315:5;1290:31;:::i;:::-;1340:5;1330:15;;;1036:315;;;;;:::o;1356:248::-;1424:6;1432;1485:2;1473:9;1464:7;1460:23;1456:32;1453:52;;;1501:1;1498;1491:12;1453:52;-1:-1:-1;;1524:23:1;;;1594:2;1579:18;;;1566:32;;-1:-1:-1;1356:248:1:o;1844:159::-;1911:20;;1971:6;1960:18;;1950:29;;1940:57;;1993:1;1990;1983:12;1940:57;1844:159;;;:::o;2008:118::-;2094:5;2087:13;2080:21;2073:5;2070:32;2060:60;;2116:1;2113;2106:12;2131:537;2227:6;2235;2243;2251;2304:3;2292:9;2283:7;2279:23;2275:33;2272:53;;;2321:1;2318;2311:12;2272:53;2357:9;2344:23;2334:33;;2417:2;2406:9;2402:18;2389:32;2430:31;2455:5;2430:31;:::i;:::-;2480:5;-1:-1:-1;2504:37:1;2537:2;2522:18;;2504:37;:::i;:::-;2494:47;;2593:2;2582:9;2578:18;2565:32;2606:30;2628:7;2606:30;:::i;:::-;2131:537;;;;-1:-1:-1;2131:537:1;;-1:-1:-1;;2131:537:1:o;3134:261::-;3207:6;3260:2;3248:9;3239:7;3235:23;3231:32;3228:52;;;3276:1;3273;3266:12;3228:52;3315:9;3302:23;3334:31;3359:5;3334:31;:::i;3592:450::-;3674:6;3682;3690;3698;3751:3;3739:9;3730:7;3726:23;3722:33;3719:53;;;3768:1;3765;3758:12;3719:53;3804:9;3791:23;3781:33;;3861:2;3850:9;3846:18;3833:32;3823:42;;3884:37;3917:2;3906:9;3902:18;3884:37;:::i;4299:356::-;4501:2;4483:21;;;4520:18;;;4513:30;4579:34;4574:2;4559:18;;4552:62;4646:2;4631:18;;4299:356::o;4660:127::-;4721:10;4716:3;4712:20;4709:1;4702:31;4752:4;4749:1;4742:15;4776:4;4773:1;4766:15;4792:184;4862:6;4915:2;4903:9;4894:7;4890:23;4886:32;4883:52;;;4931:1;4928;4921:12;4883:52;-1:-1:-1;4954:16:1;;4792:184;-1:-1:-1;4792:184:1:o;5341:339::-;5543:2;5525:21;;;5582:2;5562:18;;;5555:30;-1:-1:-1;;;5616:2:1;5601:18;;5594:45;5671:2;5656:18;;5341:339::o;6527:127::-;6588:10;6583:3;6579:20;6576:1;6569:31;6619:4;6616:1;6609:15;6643:4;6640:1;6633:15;6659:135;6698:3;-1:-1:-1;;6719:17:1;;6716:43;;;6739:18;;:::i;:::-;-1:-1:-1;6786:1:1;6775:13;;6659:135::o;8732:168::-;8772:7;8838:1;8834;8830:6;8826:14;8823:1;8820:21;8815:1;8808:9;8801:17;8797:45;8794:71;;;8845:18;;:::i;:::-;-1:-1:-1;8885:9:1;;8732:168::o;8905:217::-;8945:1;8971;8961:132;;9015:10;9010:3;9006:20;9003:1;8996:31;9050:4;9047:1;9040:15;9078:4;9075:1;9068:15;8961:132;-1:-1:-1;9107:9:1;;8905:217::o;9529:128::-;9569:3;9600:1;9596:6;9593:1;9590:13;9587:39;;;9606:18;;:::i;:::-;-1:-1:-1;9642:9:1;;9529:128::o;10677:258::-;10749:1;10759:113;10773:6;10770:1;10767:13;10759:113;;;10849:11;;;10843:18;10830:11;;;10823:39;10795:2;10788:10;10759:113;;;10890:6;10887:1;10884:13;10881:48;;;-1:-1:-1;;10925:1:1;10907:16;;10900:27;10677:258::o;10940:383::-;11089:2;11078:9;11071:21;11052:4;11121:6;11115:13;11164:6;11159:2;11148:9;11144:18;11137:34;11180:66;11239:6;11234:2;11223:9;11219:18;11214:2;11206:6;11202:15;11180:66;:::i;:::-;11307:2;11286:15;-1:-1:-1;;11282:29:1;11267:45;;;;11314:2;11263:54;;10940:383;-1:-1:-1;;10940:383:1:o;11328:125::-;11368:4;11396:1;11393;11390:8;11387:34;;;11401:18;;:::i;:::-;-1:-1:-1;11438:9:1;;11328:125::o;11458:245::-;11525:6;11578:2;11566:9;11557:7;11553:23;11549:32;11546:52;;;11594:1;11591;11584:12;11546:52;11626:9;11620:16;11645:28;11667:5;11645:28;:::i;13245:274::-;13374:3;13412:6;13406:13;13428:53;13474:6;13469:3;13462:4;13454:6;13450:17;13428:53;:::i;:::-;13497:16;;;;;13245:274;-1:-1:-1;;13245:274:1:o

Swarm Source

ipfs://3123b6524b2e24ca44a0ba8e3c8c55e4218b67d4487fd08a4e091db1eac9e778

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

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.