Contract 0x4f04e540a51013afb6761ee73d71d2fb1f29af80 4

 

Contract Overview

Balance:
0 MATIC

MATIC Value:
$0.00

Token:
Txn Hash
Block
From
To
Value [Txn Fee]
0x3818d3d875742b935ecf7e1c3b8d655dcfc07b92da727dea2fafebd2052d7330(pending)2021-07-29 5:03:58secs ago0x70acd6052e7c5bc13431391b61baecc23f03e66d IN 0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC(Pending)
0x1cdc658ea4a0481185de5813d0b5e272e681ade8f16911f932cbaa384cc39c1c173806362021-07-29 5:03:3622 secs ago0x5e557e46c8cc951f3b97ad31cbc3d652a670e5d6 IN  0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC0.0001258356
0x862d7f2d1dbd4d96b4c1ab0271784f66edeee5c808821d64e6ced42af43853ba173806332021-07-29 5:03:3028 secs ago0x70acd6052e7c5bc13431391b61baecc23f03e66d IN  0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC0.0001258212
0xf7966fc621581da1ad4e2cd51323b9b1b248d0403ef1a2752b003faa671e36bb173806312021-07-29 5:03:2632 secs ago0x4e1b2d7b8ac16abebc1dfa1a3b274f5f07d93a41 IN  0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC0.0001258212
0xdf9d6e884cd0a3b6cd62cc22976d8716d3a96e6d9955e6bc59fb6dec69e55af1173806312021-07-29 5:03:2632 secs ago0x5e557e46c8cc951f3b97ad31cbc3d652a670e5d6 IN  0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC0.0001463556
0x2c1d948c635ded06cdaf98817b7849561026a29c83394fcfac2b88a65c04b36a173806042021-07-29 5:02:281 min ago0xe4f4e4e0ea44b13f615db824a87dd5bd93f94ed3 IN  0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC0.000195162
0xea9b4f55c7501c04e4c9aec18db38941d73e5655d3bcb04e46fb13404e979806173806022021-07-29 5:02:241 min ago0x0ac6e7cc69a4d3c0e9efd02aadc1c5a215f8fdf1 IN  0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC0.004679586
0x91b1d1614300fd4ff4f374a723eaafb3913125b7deda1bfd48458d4dfcc4ae7b173806002021-07-29 5:02:201 min ago0x5e557e46c8cc951f3b97ad31cbc3d652a670e5d6 IN  0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC0.0001258356
0x0457419e55d04d33c2a1d1cdfff99e9c545bd236d82fb2eb25026c6eeab7a23e173805952021-07-29 5:02:101 min ago0x5e557e46c8cc951f3b97ad31cbc3d652a670e5d6 IN  0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC0.0001258356
0x67219e00f736e346014a19772031a06eb00ddc5ad9e8d675eb553512a81997f2173805882021-07-29 5:01:562 mins ago0x36da519a5bec67beb6477acc5386e74a04022b36 IN  0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC0.000263943
0x4e586e347756bceb4466932fa2c501803bd7ac7095f4b145a61481a18472eefa173805842021-07-29 5:01:482 mins ago0x5e557e46c8cc951f3b97ad31cbc3d652a670e5d6 IN  0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC0.0001572945
0x2dd2ce6c343283f1ea8eafde0b98f6528d1c59a653d4dc753402eaa39ea2fe20173805802021-07-29 5:01:402 mins ago0x42f0e2a5a698ea119b21999bc0e959aa2a9c0995 IN  0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC0.0001707314
0x7079ea88a496d28184856b8c7bcd764b8080bc7b1ca5777fb07f60bf1995268b173805792021-07-29 5:01:382 mins ago0xe4f4e4e0ea44b13f615db824a87dd5bd93f94ed3 IN  0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC0.0001572945
0xd35e1b2629753b9dcff561b17fefd786c761037ae7b022603258b0d523ae9223173805792021-07-29 5:01:382 mins ago0x5e557e46c8cc951f3b97ad31cbc3d652a670e5d6 IN  0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC0.000209726
0x0a6b6b5385e2dd5891157ad136ffdb5606a4f74642cf4aae06ce24d41583b7e4173805792021-07-29 5:01:382 mins ago0xc7716c81134d698c970e28e0328d653ae3c97ae7 IN  0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC0.000813115
0x966130c9fc1adaf59356330d34aa87734bbd41c68f7cfd3e155420f872eac20b173805642021-07-29 5:01:082 mins ago0xe4f4e4e0ea44b13f615db824a87dd5bd93f94ed3 IN  0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC0.0001572765
0x6dac0cac392b3dc3d93e3401ae9e44ec4611ceedcb7396997a29f671a4b6d1d9173805592021-07-29 5:00:583 mins ago0xc7716c81134d698c970e28e0328d653ae3c97ae7 IN  0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC0.000934485
0xc5faf51ddb6195e928d31c553a4d8b2f230e612c02dadfa7d3b030577ca8783f173805352021-07-29 4:59:344 mins ago0x2a02a6c19b9f7402ac5bfc2dc8a4cd756086cbc0 IN  0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC0.0002439525
0xd4a10c0a101249619e70059e067c941c81d268bc3b54c1926e802d0eea76601b173805342021-07-29 4:59:284 mins ago0x49a3aab8ebe80725646937b9e9f6f8b4e9867bfe IN  0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC0.0005898575
0x3385763aca4a3fe253b0bb95c59085e38fa1c3483c3c50264e7a39009498fbcd173805332021-07-29 4:59:224 mins ago0x5e557e46c8cc951f3b97ad31cbc3d652a670e5d6 IN  0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC0.000209726
0xdfb89c2685991eb508000bd68cd68968f7c1c45a104ff181e1b511f78fcf02e2173805192021-07-29 4:57:586 mins ago0xc7716c81134d698c970e28e0328d653ae3c97ae7 IN  0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC0.000813175
0x3e34cfc89a357ef77af8fe01358964fea742ac40b92913c802aa1edfc3982c99173805192021-07-29 4:57:586 mins ago0x6fef4e32ea86763998d7f32b3c636bf3317a2f7b IN  0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC0.00055787116
0x1d5efe70f2ff2ea5f92c6033f33491f0a082bbab0722525df7ea363c8650537a173805102021-07-29 4:57:046 mins ago0x6fef4e32ea86763998d7f32b3c636bf3317a2f7b IN  0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC0.00055787116
0xb3587288cc2835b3a91e90013558c99c83d44c509e394405c768baf550e54115173805072021-07-29 4:56:467 mins ago0xc7716c81134d698c970e28e0328d653ae3c97ae7 IN  0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC0.001180145
0x2f1eae7567c10597422863b981132b4aa3e3d4cbfb250976ded7a20dedd21a79173804992021-07-29 4:55:588 mins ago0x6fef4e32ea86763998d7f32b3c636bf3317a2f7b IN  0x4f04e540a51013afb6761ee73d71d2fb1f29af800 MATIC0.00064884316
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NativeFarm

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-07-15
*/

// Sources flattened with hardhat v2.4.1 https://hardhat.org

// File contracts/NativeFarm.sol

// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

// import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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

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

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

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

    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) public {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view 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 {_setupDecimals} is
     * called.
     *
     * 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 returns (uint8) {
        return _decimals;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view 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:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

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

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

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

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

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

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

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

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }

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

// import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/SafeERC20.sol";
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.3._
     */
    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.3._
     */
    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 SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

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

    function safeTransferFrom(
        IERC20 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
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 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),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(token.approve.selector, spender, value)
        );
    }

    function safeIncreaseAllowance(
        IERC20 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(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance =
            token.allowance(address(this), spender).sub(
                value,
                "SafeERC20: 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(IERC20 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,
                "SafeERC20: low-level call failed"
            );
        if (returndata.length > 0) {
            // Return data is optional
            // solhint-disable-next-line max-line-length
            require(
                abi.decode(returndata, (bool)),
                "SafeERC20: ERC20 operation did not succeed"
            );
        }
    }
}

// import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/EnumerableSet.sol";
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

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

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

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

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

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

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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

    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

// import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol";
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() internal {
        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;
    }
}

// "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/ReentrancyGuard.sol";
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;
    }
}

// Mint
abstract contract NATIVEToken is ERC20 {
    function mint(address _to, uint256 _amount) external virtual;
}

// For interacting with our own strategy
interface IStrategy {
    // Total want tokens managed by strategy
    function wantLockedTotal() external view returns (uint256);

    // Sum of all shares of users to wantLockedTotal
    function sharesTotal() external view returns (uint256);

    // Main want token compounding function
    function earn() external;

    // Transfer want tokens nativeFarm -> strategy
    function deposit(address _userAddress, uint256 _wantAmt)
        external
        returns (uint256);

    // Transfer want tokens strategy -> nativeFarm
    function withdraw(address _userAddress, uint256 _wantAmt)
        external
        returns (uint256);

    function inCaseTokensGetStuck(
        address _token,
        uint256 _amount,
        address _to
    ) external;
}

contract NativeFarm is Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // Info of each user.
    struct UserInfo {
        uint256 shares; // 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 NATIVE
        // entitled to a user but is pending to be distributed is:
        //
        //   amount = user.shares / sharesTotal * wantLockedTotal
        //   pending reward = (amount * pool.accNATIVEPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws want tokens to a pool. Here's what happens:
        //   1. The pool's `accNATIVEPerShare` (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.
    }

    struct PoolInfo {
        IERC20 want; // Address of the want token.
        uint256 allocPoint; // How many allocation points assigned to this pool. NATIVE to distribute per block.
        uint256 lastRewardBlock; // Last block number that NATIVE distribution occurs.
        uint256 accNATIVEPerShare; // Accumulated NATIVE per share, times 1e12. See below.
        address strat; // Strategy address that will auto compound want tokens
    }

    // Token address
    address public constant NATIVE = 0x5f1657896B38c4761dbc5484473c7A7C845910b6;
    // Owner reward per block: 10% ==> 11.11%
    uint256 public constant ownerNATIVEReward = 1111;
    // Native total supply: 1.690420 mil = 1690420e18
    uint256 public constant NATIVEMaxSupply = 1690420e18;
    // Natives per block: (0.107205733 - owner 10%)
    uint256 public constant NATIVEPerBlock = 107205733000000000; // NATIVE tokens created per block
    // Approx 15/7/2021
    uint256 public constant startBlock = 16884696; // https://polygonscan.com/block/16884696

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

    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmergencyWithdraw(
        address indexed user,
        uint256 indexed pid,
        uint256 amount
    );

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

    // Add a new lp to the pool. Can only be called by the owner.
    // XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do. (Only if want tokens are stored here.)
    function add(
        uint256 _allocPoint,
        IERC20 _want,
        address _strat
    ) external onlyOwner {
        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(
            PoolInfo({
                want: _want,
                allocPoint: _allocPoint,
                lastRewardBlock: lastRewardBlock,
                accNATIVEPerShare: 0,
                strat: _strat
            })
        );
    }

    // Update the given pool's NATIVE allocation point. Can only be called by the owner.
    function set(
        uint256 _pid,
        uint256 _allocPoint
    ) external onlyOwner {
        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(
            _allocPoint
        );
        poolInfo[_pid].allocPoint = _allocPoint;
    }

    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(uint256 _from, uint256 _to)
        public
        view
        returns (uint256)
    {
        if (IERC20(NATIVE).totalSupply() >= NATIVEMaxSupply) {
            return 0;
        }
        return _to.sub(_from);
    }

    // View function to see pending NATIVE on frontend.
    function pendingNATIVE(uint256 _pid, address _user)
        external
        view
        returns (uint256)
    {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accNATIVEPerShare = pool.accNATIVEPerShare;
        uint256 sharesTotal = IStrategy(pool.strat).sharesTotal();
        if (block.number > pool.lastRewardBlock && sharesTotal != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 NATIVEReward =
                multiplier.mul(NATIVEPerBlock)
                          .mul(pool.allocPoint)
                          .div(totalAllocPoint);
            accNATIVEPerShare = accNATIVEPerShare.add(
                NATIVEReward.mul(1e12).div(sharesTotal)
            );
        }
        return user.shares.mul(accNATIVEPerShare).div(1e12).sub(user.rewardDebt);
    }

    // View function to see staked Want tokens on frontend.
    function stakedWantTokens(uint256 _pid, address _user)
        external
        view
        returns (uint256)
    {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];

        uint256 sharesTotal = IStrategy(pool.strat).sharesTotal();
        uint256 wantLockedTotal =
            IStrategy(poolInfo[_pid].strat).wantLockedTotal();
        if (sharesTotal == 0) {
            return 0;
        }
        return user.shares.mul(wantLockedTotal).div(sharesTotal);
    }

    // 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 sharesTotal = IStrategy(pool.strat).sharesTotal();
        if (sharesTotal == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        if (multiplier <= 0) {
            return;
        }
        uint256 NATIVEReward =
            multiplier.mul(NATIVEPerBlock).mul(pool.allocPoint).div(
                totalAllocPoint
            );

        NATIVEToken(NATIVE).mint(
            owner(),
            NATIVEReward.mul(ownerNATIVEReward).div(10000)
        );
        NATIVEToken(NATIVE).mint(address(this), NATIVEReward);

        pool.accNATIVEPerShare = pool.accNATIVEPerShare.add(
            NATIVEReward.mul(1e12).div(sharesTotal)
        );
        pool.lastRewardBlock = block.number;
    }

    // Want tokens moved from user -> NativeFarm (NATIVE allocation) -> Strat (compounding)
    function deposit(uint256 _pid, uint256 _wantAmt) external nonReentrant {
        updatePool(_pid);
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        if (user.shares > 0) {
            uint256 pending =
                user.shares.mul(pool.accNATIVEPerShare).div(1e12).sub(
                    user.rewardDebt
                );
            if (pending > 0) {
                safeNATIVETransfer(msg.sender, pending);
            }
        }
        if (_wantAmt > 0) {
            pool.want.safeTransferFrom(
                address(msg.sender),
                address(this),
                _wantAmt
            );

            pool.want.safeIncreaseAllowance(pool.strat, _wantAmt);
            uint256 sharesAdded =
                IStrategy(poolInfo[_pid].strat).deposit(msg.sender, _wantAmt);
            user.shares = user.shares.add(sharesAdded);
        }
        user.rewardDebt = user.shares.mul(pool.accNATIVEPerShare).div(1e12);
        emit Deposit(msg.sender, _pid, _wantAmt);
    }

    // Withdraw LP tokens from MasterChef.
    function withdraw(uint256 _pid, uint256 _wantAmt) public nonReentrant {
        updatePool(_pid);

        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        uint256 wantLockedTotal =
            IStrategy(poolInfo[_pid].strat).wantLockedTotal();
        uint256 sharesTotal = IStrategy(poolInfo[_pid].strat).sharesTotal();

        require(user.shares > 0, "user.shares is 0");
        require(sharesTotal > 0, "sharesTotal is 0");

        // Withdraw pending NATIVE
        uint256 pending =
            user.shares.mul(pool.accNATIVEPerShare).div(1e12).sub(
                user.rewardDebt
            );
        if (pending > 0) {
            safeNATIVETransfer(msg.sender, pending);
        }

        // Withdraw want tokens
        uint256 amount = user.shares.mul(wantLockedTotal).div(sharesTotal);
        if (_wantAmt > amount) {
            _wantAmt = amount;
        }
        if (_wantAmt > 0) {
            uint256 sharesRemoved =
                IStrategy(poolInfo[_pid].strat).withdraw(msg.sender, _wantAmt);

            if (sharesRemoved > user.shares) {
                user.shares = 0;
            } else {
                user.shares = user.shares.sub(sharesRemoved);
            }

            uint256 wantBal = IERC20(pool.want).balanceOf(address(this));
            if (wantBal < _wantAmt) {
                _wantAmt = wantBal;
            }
            pool.want.safeTransfer(address(msg.sender), _wantAmt);
        }
        user.rewardDebt = user.shares.mul(pool.accNATIVEPerShare).div(1e12);
        emit Withdraw(msg.sender, _pid, _wantAmt);
    }

    function withdrawAll(uint256 _pid) external nonReentrant {
        withdraw(_pid, uint256(-1));
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) external nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        uint256 wantLockedTotal =
            IStrategy(poolInfo[_pid].strat).wantLockedTotal();
        uint256 sharesTotal = IStrategy(poolInfo[_pid].strat).sharesTotal();
        uint256 amount = user.shares.mul(wantLockedTotal).div(sharesTotal);

        IStrategy(poolInfo[_pid].strat).withdraw(msg.sender, amount);

        pool.want.safeTransfer(address(msg.sender), amount);
        emit EmergencyWithdraw(msg.sender, _pid, amount);
        user.shares = 0;
        user.rewardDebt = 0;
    }

    // Safe NATIVE transfer function, just in case if rounding error causes pool to not have enough
    function safeNATIVETransfer(address _to, uint256 _NATIVEAmt) internal {
        uint256 NATIVEBal = IERC20(NATIVE).balanceOf(address(this));
        if (_NATIVEAmt > NATIVEBal) {
            IERC20(NATIVE).transfer(_to, NATIVEBal);
        } else {
            IERC20(NATIVE).transfer(_to, _NATIVEAmt);
        }
    }

    function inCaseTokensGetStuck(address _token, uint256 _amount)
        external
        onlyOwner
    {
        require(_token != NATIVE, "!safe");
        IERC20(_token).safeTransfer(msg.sender, _amount);
    }
}

Contract ABI

[{"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":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","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":"NATIVE","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NATIVEMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NATIVEPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_want","type":"address"},{"internalType":"address","name":"_strat","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_wantAmt","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"inCaseTokensGetStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerNATIVEReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingNATIVE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"want","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accNATIVEPerShare","type":"uint256"},{"internalType":"address","name":"strat","type":"address"}],"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"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"stakedWantTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"_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":"shares","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_wantAmt","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260006004553480156200001657600080fd5b50600062000029620000d460201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35060018081905550620000dc565b600033905090565b61356780620000ec6000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c80637b84daec116100c3578063a0cf0aea1161007c578063a0cf0aea14610523578063ab7de09814610557578063c6d758cb146105c5578063e2bbb15814610613578063f2fde38b1461064b578063f85c0b741461068f5761014d565b80637b84daec1461038c5780638da5cb5b146103ee5780638dbb1e3a1461042257806393f1a40b1461046e578063958e2d31146104d75780639d4476b1146105055761014d565b8063441a3e7011610115578063441a3e70146102b257806348cd4cb1146102ea57806351eb05a6146103085780635312ea8e146103365780636675f30f14610364578063715018a6146103825761014d565b8063081e3eda146101525780630c5df13d146101705780631526fe27146101d257806317caf6f11461025c5780631ab06ee51461027a575b600080fd5b61015a6106ad565b6040518082815260200191505060405180910390f35b6101bc6004803603604081101561018657600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506106ba565b6040518082815260200191505060405180910390f35b6101fe600480360360208110156101e857600080fd5b81019080803590602001909291905050506108e5565b604051808673ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019550505050505060405180910390f35b610264610968565b6040518082815260200191505060405180910390f35b6102b06004803603604081101561029057600080fd5b81019080803590602001909291908035906020019092919050505061096e565b005b6102e8600480360360408110156102c857600080fd5b810190808035906020019092919080359060200190929190505050610aa8565b005b6102f26111a8565b6040518082815260200191505060405180910390f35b6103346004803603602081101561031e57600080fd5b81019080803590602001909291905050506111b0565b005b6103626004803603602081101561034c57600080fd5b81019080803590602001909291905050506114cf565b005b61036c611922565b6040518082815260200191505060405180910390f35b61038a611928565b005b6103d8600480360360408110156103a257600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611aae565b6040518082815260200191505060405180910390f35b6103f6611cda565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104586004803603604081101561043857600080fd5b810190808035906020019092919080359060200190929190505050611d03565b6040518082815260200191505060405180910390f35b6104ba6004803603604081101561048457600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611dd0565b604051808381526020018281526020019250505060405180910390f35b610503600480360360208110156104ed57600080fd5b8101908080359060200190929190505050611e01565b005b61050d611eb6565b6040518082815260200191505060405180910390f35b61052b611ec5565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105c36004803603606081101561056d57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611edd565b005b610611600480360360408110156105db57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061210e565b005b6106496004803603604081101561062957600080fd5b8101908080359060200190929190803590602001909291905050506122bb565b005b61068d6004803603602081101561066157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612699565b005b6106976128a4565b6040518082815260200191505060405180910390f35b6000600280549050905090565b600080600284815481106106ca57fe5b9060005260206000209060050201905060006003600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008260030154905060008360040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b1580156107a357600080fd5b505afa1580156107b7573d6000803e3d6000fd5b505050506040513d60208110156107cd57600080fd5b810190808051906020019092919050505090508360020154431180156107f4575060008114155b15610895576000610809856002015443611d03565b90506000610852600454610844886001015461083667017cdf0bd159b200876128b090919063ffffffff16565b6128b090919063ffffffff16565b61293690919063ffffffff16565b90506108906108818461087364e8d4a51000856128b090919063ffffffff16565b61293690919063ffffffff16565b8561298090919063ffffffff16565b935050505b6108d983600101546108cb64e8d4a510006108bd8688600001546128b090919063ffffffff16565b61293690919063ffffffff16565b612a0890919063ffffffff16565b94505050505092915050565b600281815481106108f257fe5b90600052602060002090600502016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905085565b60045481565b610976612a52565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610a36576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b610a7b81610a6d60028581548110610a4a57fe5b906000526020600020906005020160010154600454612a0890919063ffffffff16565b61298090919063ffffffff16565b6004819055508060028381548110610a8f57fe5b9060005260206000209060050201600101819055505050565b60026001541415610b21576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600181905550610b32826111b0565b600060028381548110610b4157fe5b9060005260206000209060050201905060006003600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600060028581548110610bb457fe5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342da4eb36040518163ffffffff1660e01b815260040160206040518083038186803b158015610c2b57600080fd5b505afa158015610c3f573d6000803e3d6000fd5b505050506040513d6020811015610c5557600080fd5b81019080805190602001909291905050509050600060028681548110610c7757fe5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b158015610cee57600080fd5b505afa158015610d02573d6000803e3d6000fd5b505050506040513d6020811015610d1857600080fd5b810190808051906020019092919050505090506000836000015411610da5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f757365722e73686172657320697320300000000000000000000000000000000081525060200191505060405180910390fd5b60008111610e1b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f736861726573546f74616c20697320300000000000000000000000000000000081525060200191505060405180910390fd5b6000610e658460010154610e5764e8d4a51000610e49896003015489600001546128b090919063ffffffff16565b61293690919063ffffffff16565b612a0890919063ffffffff16565b90506000811115610e7b57610e7a3382612a5a565b5b6000610ea683610e988688600001546128b090919063ffffffff16565b61293690919063ffffffff16565b905080871115610eb4578096505b600087111561110e57600060028981548110610ecc57fe5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f3fef3a3338a6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610f6e57600080fd5b505af1158015610f82573d6000803e3d6000fd5b505050506040513d6020811015610f9857600080fd5b810190808051906020019092919050505090508560000154811115610fc65760008660000181905550610fe6565b610fdd818760000154612a0890919063ffffffff16565b86600001819055505b60008760000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561107357600080fd5b505afa158015611087573d6000803e3d6000fd5b505050506040513d602081101561109d57600080fd5b81019080805190602001909291905050509050888110156110bc578098505b61110b338a8a60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612ca99092919063ffffffff16565b50505b61114064e8d4a51000611132886003015488600001546128b090919063ffffffff16565b61293690919063ffffffff16565b8560010181905550873373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568896040518082815260200191505060405180910390a3505050505050600180819055505050565b630101a3d881565b6000600282815481106111bf57fe5b90600052602060002090600502019050806002015443116111e057506114cc565b60008160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b15801561124c57600080fd5b505afa158015611260573d6000803e3d6000fd5b505050506040513d602081101561127657600080fd5b8101908080519060200190929190505050905060008114156112a25743826002018190555050506114cc565b60006112b2836002015443611d03565b9050600081116112c4575050506114cc565b600061130b6004546112fd86600101546112ef67017cdf0bd159b200876128b090919063ffffffff16565b6128b090919063ffffffff16565b61293690919063ffffffff16565b9050735f1657896b38c4761dbc5484473c7a7c845910b673ffffffffffffffffffffffffffffffffffffffff166340c10f19611345611cda565b61136e612710611360610457876128b090919063ffffffff16565b61293690919063ffffffff16565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b1580156113c157600080fd5b505af11580156113d5573d6000803e3d6000fd5b50505050735f1657896b38c4761dbc5484473c7a7c845910b673ffffffffffffffffffffffffffffffffffffffff166340c10f1930836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15801561145e57600080fd5b505af1158015611472573d6000803e3d6000fd5b505050506114b66114a38461149564e8d4a51000856128b090919063ffffffff16565b61293690919063ffffffff16565b856003015461298090919063ffffffff16565b8460030181905550438460020181905550505050505b50565b60026001541415611548576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b600260018190555060006002828154811061155f57fe5b9060005260206000209060050201905060006003600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000600284815481106115d257fe5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342da4eb36040518163ffffffff1660e01b815260040160206040518083038186803b15801561164957600080fd5b505afa15801561165d573d6000803e3d6000fd5b505050506040513d602081101561167357600080fd5b8101908080519060200190929190505050905060006002858154811061169557fe5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b15801561170c57600080fd5b505afa158015611720573d6000803e3d6000fd5b505050506040513d602081101561173657600080fd5b810190808051906020019092919050505090506000611774826117668587600001546128b090919063ffffffff16565b61293690919063ffffffff16565b90506002868154811061178357fe5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f3fef3a333836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561182557600080fd5b505af1158015611839573d6000803e3d6000fd5b505050506040513d602081101561184f57600080fd5b8101908080519060200190929190505050506118b033828760000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612ca99092919063ffffffff16565b853373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595836040518082815260200191505060405180910390a3600084600001819055506000846001018190555050505050506001808190555050565b61045781565b611930612a52565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146119f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060028481548110611abe57fe5b9060005260206000209060050201905060006003600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008260040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b158015611b8e57600080fd5b505afa158015611ba2573d6000803e3d6000fd5b505050506040513d6020811015611bb857600080fd5b81019080805190602001909291905050509050600060028781548110611bda57fe5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342da4eb36040518163ffffffff1660e01b815260040160206040518083038186803b158015611c5157600080fd5b505afa158015611c65573d6000803e3d6000fd5b505050506040513d6020811015611c7b57600080fd5b810190808051906020019092919050505090506000821415611ca4576000945050505050611cd4565b611ccd82611cbf8386600001546128b090919063ffffffff16565b61293690919063ffffffff16565b9450505050505b92915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006a0165f5da10eafe4c500000735f1657896b38c4761dbc5484473c7a7c845910b673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611d6b57600080fd5b505afa158015611d7f573d6000803e3d6000fd5b505050506040513d6020811015611d9557600080fd5b810190808051906020019092919050505010611db45760009050611dca565b611dc78383612a0890919063ffffffff16565b90505b92915050565b6003602052816000526040600020602052806000526040600020600091509150508060000154908060010154905082565b60026001541415611e7a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600181905550611eac817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610aa8565b6001808190555050565b6a0165f5da10eafe4c50000081565b735f1657896b38c4761dbc5484473c7a7c845910b681565b611ee5612a52565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611fa5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6000630101a3d84311611fbc57630101a3d8611fbe565b435b9050611fd58460045461298090919063ffffffff16565b60048190555060026040518060a001604052808573ffffffffffffffffffffffffffffffffffffffff168152602001868152602001838152602001600081526020018473ffffffffffffffffffffffffffffffffffffffff16815250908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050505050565b612116612a52565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146121d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b735f1657896b38c4761dbc5484473c7a7c845910b673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561228c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260058152602001807f217361666500000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6122b733828473ffffffffffffffffffffffffffffffffffffffff16612ca99092919063ffffffff16565b5050565b60026001541415612334576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600181905550612345826111b0565b60006002838154811061235457fe5b9060005260206000209060050201905060006003600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154111561242757600061240f826001015461240164e8d4a510006123f3876003015487600001546128b090919063ffffffff16565b61293690919063ffffffff16565b612a0890919063ffffffff16565b90506000811115612425576124243382612a5a565b5b505b6000831115612603576124813330858560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612d4b909392919063ffffffff16565b6124f48260040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16848460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612e0c9092919063ffffffff16565b60006002858154811061250357fe5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166347e7ef2433866040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156125a557600080fd5b505af11580156125b9573d6000803e3d6000fd5b505050506040513d60208110156125cf57600080fd5b810190808051906020019092919050505090506125f981836000015461298090919063ffffffff16565b8260000181905550505b61263564e8d4a51000612627846003015484600001546128b090919063ffffffff16565b61293690919063ffffffff16565b8160010181905550833373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15856040518082815260200191505060405180910390a35050600180819055505050565b6126a1612a52565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612761576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156127e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061349b6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b67017cdf0bd159b20081565b6000808314156128c35760009050612930565b60008284029050828482816128d457fe5b041461292b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806134e76021913960400191505060405180910390fd5b809150505b92915050565b600061297883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612f85565b905092915050565b6000808284019050838110156129fe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000612a4a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061304b565b905092915050565b600033905090565b6000735f1657896b38c4761dbc5484473c7a7c845910b673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015612ad757600080fd5b505afa158015612aeb573d6000803e3d6000fd5b505050506040513d6020811015612b0157600080fd5b8101908080519060200190929190505050905080821115612be257735f1657896b38c4761dbc5484473c7a7c845910b673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015612ba157600080fd5b505af1158015612bb5573d6000803e3d6000fd5b505050506040513d6020811015612bcb57600080fd5b810190808051906020019092919050505050612ca4565b735f1657896b38c4761dbc5484473c7a7c845910b673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015612c6757600080fd5b505af1158015612c7b573d6000803e3d6000fd5b505050506040513d6020811015612c9157600080fd5b8101908080519060200190929190505050505b505050565b612d468363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061310b565b505050565b612e06846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061310b565b50505050565b6000612ee0828573ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30876040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b158015612e9757600080fd5b505afa158015612eab573d6000803e3d6000fd5b505050506040513d6020811015612ec157600080fd5b810190808051906020019092919050505061298090919063ffffffff16565b9050612f7f8463095ea7b360e01b8584604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061310b565b50505050565b60008083118290613031576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612ff6578082015181840152602081019050612fdb565b50505050905090810190601f1680156130235780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161303d57fe5b049050809150509392505050565b60008383111582906130f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156130bd5780820151818401526020810190506130a2565b50505050905090810190601f1680156130ea5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b606061316d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166131fa9092919063ffffffff16565b90506000815111156131f55780806020019051602081101561318e57600080fd5b81019080805190602001909291905050506131f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180613508602a913960400191505060405180910390fd5b5b505050565b60606132098484600085613212565b90509392505050565b60608247101561326d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806134c16026913960400191505060405180910390fd5b613276856133bb565b6132e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106133385780518252602082019150602081019050602083039250613315565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461339a576040519150601f19603f3d011682016040523d82523d6000602084013e61339f565b606091505b50915091506133af8282866133ce565b92505050949350505050565b600080823b905060008111915050919050565b606083156133de57829050613493565b6000835111156133f15782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561345857808201518184015260208101905061343d565b50505050905090810190601f1680156134855780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220c95ef6b803b76c5074ba5a390508058fcc51148a471b1d0ee1cd6a54fdc6bd5d64736f6c634300060c0033

Deployed ByteCode Sourcemap

45358:11334:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47999:95;;;:::i;:::-;;;;;;;;;;;;;;;;;;;49603:921;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;47419:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47589:34;;;:::i;:::-;;;;;;;;;;;;;;;;;;;48945:266;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;53479:1680;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;47323:45;;;:::i;:::-;;;;;;;;;;;;;;;;;;;51204:1032;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;55341:689;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;46975:48;;;:::i;:::-;;;;;;;;;;;;;;;;;;;41868:148;;;:::i;:::-;;50593:535;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;41226:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;49287:251;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;47474:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;55167:103;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;47085:52;;;:::i;:::-;;;;;;;;;;;;;;;;;;;46846:75;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;48302:545;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;56472:217;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;52337:1090;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;42171:281;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;47197:59;;;:::i;:::-;;;;;;;;;;;;;;;;;;;47999:95;48044:7;48071:8;:15;;;;48064:22;;47999:95;:::o;49603:921::-;49705:7;49730:21;49754:8;49763:4;49754:14;;;;;;;;;;;;;;;;;;49730:38;;49779:21;49803:8;:14;49812:4;49803:14;;;;;;;;;;;:21;49818:5;49803:21;;;;;;;;;;;;;;;49779:45;;49835:25;49863:4;:22;;;49835:50;;49896:19;49928:4;:10;;;;;;;;;;;;49918:33;;;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49896:57;;49983:4;:20;;;49968:12;:35;:55;;;;;50022:1;50007:11;:16;;49968:55;49964:470;;;50040:18;50061:49;50075:4;:20;;;50097:12;50061:13;:49::i;:::-;50040:70;;50125:20;50165:128;50277:15;;50165:79;50228:4;:15;;;50165:30;47238:18;50165:10;:14;;:30;;;;:::i;:::-;:62;;:79;;;;:::i;:::-;:111;;:128;;;;:::i;:::-;50125:168;;50328:94;50368:39;50395:11;50368:22;50385:4;50368:12;:16;;:22;;;;:::i;:::-;:26;;:39;;;;:::i;:::-;50328:17;:21;;:94;;;;:::i;:::-;50308:114;;49964:470;;;50451:65;50500:4;:15;;;50451:44;50490:4;50451:34;50467:17;50451:4;:11;;;:15;;:34;;;;:::i;:::-;:38;;:44;;;;:::i;:::-;:48;;:65;;;;:::i;:::-;50444:72;;;;;;49603:921;;;;:::o;47419:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;47589:34::-;;;;:::o;48945:266::-;41448:12;:10;:12::i;:::-;41438:22;;:6;;;;;;;;;;:22;;;41430:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49066:87:::1;49131:11;49066:46;49086:8;49095:4;49086:14;;;;;;;;;;;;;;;;;;:25;;;49066:15;;:19;;:46;;;;:::i;:::-;:50;;:87;;;;:::i;:::-;49048:15;:105;;;;49192:11;49164:8;49173:4;49164:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;48945:266:::0;;:::o;53479:1680::-;43453:1;44058:7;;:19;;44050:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43453:1;44191:7;:18;;;;53560:16:::1;53571:4;53560:10;:16::i;:::-;53589:21;53613:8;53622:4;53613:14;;;;;;;;;;;;;;;;;;53589:38;;53638:21;53662:8;:14;53671:4;53662:14;;;;;;;;;;;:26;53677:10;53662:26;;;;;;;;;;;;;;;53638:50;;53701:23;53750:8;53759:4;53750:14;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;53740:47;;;:49;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;53701:88;;53800:19;53832:8;53841:4;53832:14;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;53822:43;;;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;53800:67;;53902:1;53888:4;:11;;;:15;53880:44;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;53957:1;53943:11;:15;53935:44;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;54028:15;54059:102;54131:4;:15;;;54059:49;54103:4;54059:39;54075:4;:22;;;54059:4;:11;;;:15;;:39;;;;:::i;:::-;:43;;:49;;;;:::i;:::-;:53;;:102;;;;:::i;:::-;54028:133;;54186:1;54176:7;:11;54172:83;;;54204:39;54223:10;54235:7;54204:18;:39::i;:::-;54172:83;54300:14;54317:49;54354:11;54317:32;54333:15;54317:4;:11;;;:15;;:32;;;;:::i;:::-;:36;;:49;;;;:::i;:::-;54300:66;;54392:6;54381:8;:17;54377:67;;;54426:6;54415:17;;54377:67;54469:1;54458:8;:12;54454:568;;;54487:21;54538:8;54547:4;54538:14;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;54528:40;;;54569:10;54581:8;54528:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;54487:103;;54627:4;:11;;;54611:13;:27;54607:168;;;54673:1;54659:4;:11;;:15;;;;54607:168;;;54729:30;54745:13;54729:4;:11;;;:15;;:30;;;;:::i;:::-;54715:4;:11;;:44;;;;54607:168;54791:15;54816:4;:9;;;;;;;;;;;;54809:27;;;54845:4;54809:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;54791:60;;54880:8;54870:7;:18;54866:77;;;54920:7;54909:18;;54866:77;54957:53;54988:10;55001:8;54957:4;:9;;;;;;;;;;;;:22;;;;:53;;;;;:::i;:::-;54454:568;;;55050:49;55094:4;55050:39;55066:4;:22;;;55050:4;:11;;;:15;;:39;;;;:::i;:::-;:43;;:49;;;;:::i;:::-;55032:4;:15;;:67;;;;55136:4;55124:10;55115:36;;;55142:8;55115:36;;;;;;;;;;;;;;;;;;44222:1;;;;;;43409::::0;44370:7;:22;;;;53479:1680;;:::o;47323:45::-;47360:8;47323:45;:::o;51204:1032::-;51256:21;51280:8;51289:4;51280:14;;;;;;;;;;;;;;;;;;51256:38;;51325:4;:20;;;51309:12;:36;51305:75;;51362:7;;;51305:75;51390:19;51422:4;:10;;;;;;;;;;;;51412:33;;;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51390:57;;51477:1;51462:11;:16;51458:105;;;51518:12;51495:4;:20;;:35;;;;51545:7;;;;51458:105;51573:18;51594:49;51608:4;:20;;;51630:12;51594:13;:49::i;:::-;51573:70;;51672:1;51658:10;:15;51654:54;;51690:7;;;;;51654:54;51718:20;51754:104;51828:15;;51754:51;51789:4;:15;;;51754:30;47238:18;51754:10;:14;;:30;;;;:::i;:::-;:34;;:51;;;;:::i;:::-;:55;;:104;;;;:::i;:::-;51718:140;;46879:42;51871:24;;;51910:7;:5;:7::i;:::-;51932:46;51972:5;51932:35;47019:4;51932:12;:16;;:35;;;;:::i;:::-;:39;;:46;;;;:::i;:::-;51871:118;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46879:42;52000:24;;;52033:4;52040:12;52000:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52091:91;52132:39;52159:11;52132:22;52149:4;52132:12;:16;;:22;;;;:::i;:::-;:26;;:39;;;;:::i;:::-;52091:4;:22;;;:26;;:91;;;;:::i;:::-;52066:4;:22;;:116;;;;52216:12;52193:4;:20;;:35;;;;51204:1032;;;;;;:::o;55341:689::-;43453:1;44058:7;;:19;;44050:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43453:1;44191:7;:18;;;;55415:21:::1;55439:8;55448:4;55439:14;;;;;;;;;;;;;;;;;;55415:38;;55464:21;55488:8;:14;55497:4;55488:14;;;;;;;;;;;:26;55503:10;55488:26;;;;;;;;;;;;;;;55464:50;;55527:23;55576:8;55585:4;55576:14;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;55566:47;;;:49;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;55527:88;;55626:19;55658:8;55667:4;55658:14;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;55648:43;;;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;55626:67;;55704:14;55721:49;55758:11;55721:32;55737:15;55721:4;:11;;;:15;;:32;;;;:::i;:::-;:36;;:49;;;;:::i;:::-;55704:66;;55793:8;55802:4;55793:14;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;55783:40;;;55824:10;55836:6;55783:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;55856:51;55887:10;55900:6;55856:4;:9;;;;;;;;;;;;:22;;;;:51;;;;;:::i;:::-;55953:4;55941:10;55923:43;;;55959:6;55923:43;;;;;;;;;;;;;;;;;;55991:1;55977:4;:11;;:15;;;;56021:1;56003:4;:15;;:19;;;;44222:1;;;;;43409::::0;44370:7;:22;;;;55341:689;:::o;46975:48::-;47019:4;46975:48;:::o;41868:148::-;41448:12;:10;:12::i;:::-;41438:22;;:6;;;;;;;;;;:22;;;41430:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41975:1:::1;41938:40;;41959:6;::::0;::::1;;;;;;;;41938:40;;;;;;;;;;;;42006:1;41989:6:::0;::::1;:19;;;;;;;;;;;;;;;;;;41868:148::o:0;50593:535::-;50698:7;50723:21;50747:8;50756:4;50747:14;;;;;;;;;;;;;;;;;;50723:38;;50772:21;50796:8;:14;50805:4;50796:14;;;;;;;;;;;:21;50811:5;50796:21;;;;;;;;;;;;;;;50772:45;;50830:19;50862:4;:10;;;;;;;;;;;;50852:33;;;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50830:57;;50898:23;50947:8;50956:4;50947:14;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;50937:47;;;:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50898:88;;51016:1;51001:11;:16;50997:57;;;51041:1;51034:8;;;;;;;;50997:57;51071:49;51108:11;51071:32;51087:15;51071:4;:11;;;:15;;:32;;;;:::i;:::-;:36;;:49;;;;:::i;:::-;51064:56;;;;;;50593:535;;;;;:::o;41226:79::-;41264:7;41291:6;;;;;;;;;;;41284:13;;41226:79;:::o;49287:251::-;49386:7;47127:10;46879:42;49415:26;;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:47;49411:88;;49486:1;49479:8;;;;49411:88;49516:14;49524:5;49516:3;:7;;:14;;;;:::i;:::-;49509:21;;49287:251;;;;;:::o;47474:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;55167:103::-;43453:1;44058:7;;:19;;44050:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43453:1;44191:7;:18;;;;55235:27:::1;55244:4;55258:2;55235:8;:27::i;:::-;43409:1:::0;44370:7;:22;;;;55167:103;:::o;47085:52::-;47127:10;47085:52;:::o;46846:75::-;46879:42;46846:75;:::o;48302:545::-;41448:12;:10;:12::i;:::-;41438:22;;:6;;;;;;;;;;:22;;;41430:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48430:23:::1;47360:8;48456:12;:25;:53;;47360:8;48456:53;;;48484:12;48456:53;48430:79;;48538:32;48558:11;48538:15;;:19;;:32;;;;:::i;:::-;48520:15;:50;;;;48581:8;48609:219;;;;;;;;48643:5;48609:219;;;;;;48679:11;48609:219;;;;48726:15;48609:219;;;;48779:1;48609:219;;;;48806:6;48609:219;;;;::::0;48581:258:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41508:1;48302:545:::0;;;:::o;56472:217::-;41448:12;:10;:12::i;:::-;41438:22;;:6;;;;;;;;;;:22;;;41430:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46879:42:::1;56596:16;;:6;:16;;;;56588:34;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;56633:48;56661:10;56673:7;56640:6;56633:27;;;;:48;;;;;:::i;:::-;56472:217:::0;;:::o;52337:1090::-;43453:1;44058:7;;:19;;44050:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43453:1;44191:7;:18;;;;52419:16:::1;52430:4;52419:10;:16::i;:::-;52446:21;52470:8;52479:4;52470:14;;;;;;;;;;;;;;;;;;52446:38;;52495:21;52519:8;:14;52528:4;52519:14;;;;;;;;;;;:26;52534:10;52519:26;;;;;;;;;;;;;;;52495:50;;52576:1;52562:4;:11;;;:15;52558:298;;;52594:15;52629:110;52705:4;:15;;;52629:49;52673:4;52629:39;52645:4;:22;;;52629:4;:11;;;:15;;:39;;;;:::i;:::-;:43;;:49;;;;:::i;:::-;:53;;:110;;;;:::i;:::-;52594:145;;52768:1;52758:7;:11;52754:91;;;52790:39;52809:10;52821:7;52790:18;:39::i;:::-;52754:91;52558:298;;52881:1;52870:8;:12;52866:425;;;52899:138;52952:10;52990:4;53014:8;52899:4;:9;;;;;;;;;;;;:26;;;;:138;;;;;;:::i;:::-;53054:53;53086:4;:10;;;;;;;;;;;;53098:8;53054:4;:9;;;;;;;;;;;;:31;;;;:53;;;;;:::i;:::-;53122:19;53171:8;53180:4;53171:14;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;53161:39;;;53201:10;53213:8;53161:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;53122:100;;53251:28;53267:11;53251:4;:11;;;:15;;:28;;;;:::i;:::-;53237:4;:11;;:42;;;;52866:425;;53319:49;53363:4;53319:39;53335:4;:22;;;53319:4;:11;;;:15;;:39;;;;:::i;:::-;:43;;:49;;;;:::i;:::-;53301:4;:15;;:67;;;;53404:4;53392:10;53384:35;;;53410:8;53384:35;;;;;;;;;;;;;;;;;;44222:1;;43409::::0;44370:7;:22;;;;52337:1090;;:::o;42171:281::-;41448:12;:10;:12::i;:::-;41438:22;;:6;;;;;;;;;;:22;;;41430:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42294:1:::1;42274:22;;:8;:22;;;;42252:110;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42407:8;42378:38;;42399:6;::::0;::::1;;;;;;;;42378:38;;;;;;;;;;;;42436:8;42427:6;::::0;:17:::1;;;;;;;;;;;;;;;;;;42171:281:::0;:::o;47197:59::-;47238:18;47197:59;:::o;2313:471::-;2371:7;2621:1;2616;:6;2612:47;;;2646:1;2639:8;;;;2612:47;2671:9;2687:1;2683;:5;2671:17;;2716:1;2711;2707;:5;;;;;;:10;2699:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2775:1;2768:8;;;2313:471;;;;;:::o;3260:132::-;3318:7;3345:39;3349:1;3352;3345:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;3338:46;;3260:132;;;;:::o;925:181::-;983:7;1003:9;1019:1;1015;:5;1003:17;;1044:1;1039;:6;;1031:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1097:1;1090:8;;;925:181;;;;:::o;1389:136::-;1447:7;1474:43;1478:1;1481;1474:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;1467:50;;1389:136;;;;:::o;308:106::-;361:15;396:10;389:17;;308:106;:::o;56139:325::-;56220:17;46879:42;56240:24;;;56273:4;56240:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56220:59;;56307:9;56294:10;:22;56290:167;;;46879:42;56333:23;;;56357:3;56362:9;56333:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56290:167;;;46879:42;56405:23;;;56429:3;56434:10;56405:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56290:167;56139:325;;;:::o;27359:248::-;27476:123;27510:5;27553:23;;;27578:2;27582:5;27530:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27476:19;:123::i;:::-;27359:248;;;:::o;27615:285::-;27759:133;27793:5;27836:27;;;27865:4;27871:2;27875:5;27813:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27759:19;:133::i;:::-;27615:285;;;;:::o;28884:436::-;29015:20;29051:50;29095:5;29051;:15;;;29075:4;29082:7;29051:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:43;;:50;;;;:::i;:::-;29015:86;;29112:200;29146:5;29207:22;;;29248:7;29274:12;29166:135;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29112:19;:200::i;:::-;28884:436;;;;:::o;3888:312::-;4008:7;4040:1;4036;:5;4043:12;4028:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4067:9;4083:1;4079;:5;;;;;;4067:17;;4191:1;4184:8;;;3888:312;;;;;:::o;1828:226::-;1948:7;1981:1;1976;:6;;1984:12;1968:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2008:9;2024:1;2020;:5;2008:17;;2045:1;2038:8;;;1828:226;;;;;:::o;30249:885::-;30673:23;30712:118;30758:4;30712:118;;;;;;;;;;;;;;;;;30720:5;30712:27;;;;:118;;;;;:::i;:::-;30673:157;;30865:1;30845:10;:17;:21;30841:286;;;31018:10;31007:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30981:134;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30841:286;30249:885;;;:::o;22355:229::-;22492:12;22524:52;22546:6;22554:4;22560:1;22563:12;22524:21;:52::i;:::-;22517:59;;22355:229;;;;;:::o;23571:621::-;23741:12;23813:5;23788:21;:30;;23766:118;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23903:18;23914:6;23903:10;:18::i;:::-;23895:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24029:12;24043:23;24083:6;:11;;24102:5;24109:4;24083:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24028:86;;;;24132:52;24150:7;24159:10;24171:12;24132:17;:52::i;:::-;24125:59;;;;23571:621;;;;;;:::o;19318:444::-;19378:4;19586:12;19710:7;19698:20;19690:28;;19753:1;19746:4;:8;19739:15;;;19318:444;;;:::o;26483:777::-;26633:12;26662:7;26658:595;;;26693:10;26686:17;;;;26658:595;26827:1;26807:10;:17;:21;26803:439;;;27070:10;27064:17;27131:15;27118:10;27114:2;27110:19;27103:44;27018:148;27213:12;27206:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26483:777;;;;;;:::o

Swarm Source

ipfs://c95ef6b803b76c5074ba5a390508058fcc51148a471b1d0ee1cd6a54fdc6bd5d
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.