Contract 0x073D613b435b5574e988Dc989f467DDf94FB47D4 3

Contract Overview

Balance:
0 FTM

FTM Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xf3c4f8b14392acbb438825079eb3ed64fdb32df9cea6f549f291ecff93e0db89Withdraw200099382021-10-25 1:26:3947 mins ago0xb5dfab31c3838103c8f2f7353670944cce0d4d5a IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.28370597
0xaf517ee04b11998736fa9ec6e627f74e23ef175e755f215f76cc955ef048855aDeposit200093152021-10-25 1:17:4556 mins ago0x16b31d0e93c6374535a39f5bd1042c89564aef3e IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.048351971318
0x33dc370036f0d378ff79c367bedc7de605da27ce524ba4907b2ffeb92cecafe2Withdraw200092732021-10-25 1:17:1357 mins ago0x16b31d0e93c6374535a39f5bd1042c89564aef3e IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.042278202934
0xd39ac77a1643278987c1d36699a1c6f9149768850dedff5fc81744dbc4106dfcWithdraw200092652021-10-25 1:17:0357 mins ago0x16b31d0e93c6374535a39f5bd1042c89564aef3e IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.041848773351
0x52d89f93e2c3b9ccdd999ce9b53730e93a3517c88aa12d5cfd299ca08e2480f9Withdraw200090162021-10-25 1:12:201 hr 2 mins ago0x33f561fe13c230d2c62d964514efe508ebbc4fe4 IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.025334545745
0xf328b53c847407fb9d900c93636620d365a2bfb8de74d1c43fdf78a6a6bc79f9Deposit200089522021-10-25 1:11:161 hr 3 mins ago0x839191e5a1001342ef0582e1f3fbe3d9753ef222 IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.054795646949
0x06e92dd592c800cb906175ee496ea48b37a7f881d2c7c1cd36f11fa48ee543c3Withdraw200088492021-10-25 1:09:521 hr 4 mins ago0x839191e5a1001342ef0582e1f3fbe3d9753ef222 IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.024861537094
0x4333749ed4dc0bd48226f8aad5f8e7f894f9cac1e6f8de790991598a6c7e37e4Deposit200075602021-10-25 0:48:431 hr 25 mins ago0xbaec6e3a6615004fd8ef3f1a3a515baca1192eb6 IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.026174301295
0x272604fc6e4baf8f4e692bf7eea34143a3801de3b27223f5d34efac1ccb4ffdbWithdraw200073602021-10-25 0:45:531 hr 28 mins ago0xbaec6e3a6615004fd8ef3f1a3a515baca1192eb6 IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.017528607112
0x3e055d8991c55b2d1febfb3909fb2e5f79f16d18e1b9c77d308c3e0eb697ae46Withdraw200068342021-10-25 0:37:151 hr 37 mins ago0xb5dfab31c3838103c8f2f7353670944cce0d4d5a IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.28370597
0x02ead61da4e41e8c8e9e5a254b6b9ae54a2c353e0ae12f252166855192abd73fDeposit200038552021-10-24 23:53:322 hrs 20 mins ago0x1b48575722a2fc89d144f64b34066c79bffe1eea IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.036754444189
0x566380aa1bba486f296434f5790c06bd1394b852d1a496c0e54508ee9edd1738Withdraw200038372021-10-24 23:53:092 hrs 21 mins ago0x1b48575722a2fc89d144f64b34066c79bffe1eea IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.031953767494
0x659d8e096785a40cc944aeab6af269bfedf97791c8135fcc87f00a3353706b39Withdraw200034502021-10-24 23:47:332 hrs 26 mins ago0xb5dfab31c3838103c8f2f7353670944cce0d4d5a IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.28370597
0x11f85ceb5710bc638fbfa8734bee7f5edc8a8fc48861d40b1294a9f8ba534c17Deposit200033702021-10-24 23:46:242 hrs 27 mins ago0x01ea4916ef200059decbbc31b6af92c1aef8aa1c IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.028153516851
0x1b92337d80dfd9d755d78fadfd20af2c1feaeb77635144f44041be3589def8a0Withdraw200033392021-10-24 23:45:522 hrs 28 mins ago0x01ea4916ef200059decbbc31b6af92c1aef8aa1c IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.018033329558
0x2214dff9bad46801aae3157387855bb7f8b38c562ec7d7277a7add7b51b10953Deposit200029212021-10-24 23:38:432 hrs 35 mins ago0x937545811348ac77b8fac0465418dbdb684334d6 IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.028883276029
0x51334a39ca1ab309115f5758aa1e8b3a3ca996e18ed5872526e2d9fcd33bf96aWithdraw200028592021-10-24 23:37:342 hrs 36 mins ago0x937545811348ac77b8fac0465418dbdb684334d6 IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.018688943234
0xcd5eace22972358397b6296aef669ddb6ad38f5aeaf992f854fd6f062dc46a67Withdraw200025372021-10-24 23:32:222 hrs 41 mins ago0x96d019b19c1053cc204c15db794425f12a57ee23 IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.024949289227
0xedbda5e6c545282f945f5eb46362b4dfbe133c1411f3e6017605e61a16044004Withdraw200018732021-10-24 23:23:112 hrs 51 mins ago0x11eb0408e24e3587125459391bbffda4808a5afd IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.023422447707
0xc19208ee5d79a559715285645348cbc8ca50268d16057b307e3789ff49f4e826Withdraw200018682021-10-24 23:23:072 hrs 51 mins ago0x11eb0408e24e3587125459391bbffda4808a5afd IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.024889075411
0x0e5d7d1fd106a99fced06afcb645f92bfca4c408a83feb12adf69e7af6289701Deposit200014472021-10-24 23:17:292 hrs 56 mins ago0x9cc85f020b2544dc551e4412f0caaa4ceeeeb056 IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.026242965799
0xb3dd6b0e5e86fc3d078cac493c4b01a23bf183ef999a9e3e73f3635ebcd1f5d9Deposit200007452021-10-24 23:08:003 hrs 6 mins ago0x89b4fb62be0ed01e72abaed3e351a7c7f77199a0 IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.035386160173
0x743137db5fadcbbdec115284cdb37a2af944a9cd61f312c78ec44acf439892c6Withdraw200003962021-10-24 23:03:313 hrs 10 mins ago0x89b4fb62be0ed01e72abaed3e351a7c7f77199a0 IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.02186647363
0xad932c6acacb61aee06643887675b1bdf6f6586cd2c7388e7a1b61e0e0201d62Withdraw199999882021-10-24 22:57:573 hrs 16 mins ago0xb5dfab31c3838103c8f2f7353670944cce0d4d5a IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.28370597
0x6e40ef9e76bdca02d88f8aa3a1773786bb36a56dd2c58bf76e43b5993df50a49Deposit199992042021-10-24 22:47:493 hrs 26 mins ago0xfa0a7aaf9104ac4373cb82cb0c09d46cc16c5c4e IN  0x073d613b435b5574e988dc989f467ddf94fb47d40 FTM0.032176746277
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0xdeac255d6e7fedffcd429113c160c827fab369149fce60e7acad2963712a2548170824762021-09-15 9:55:1539 days 16 hrs ago Swamp Finance: Deployer  Contract Creation0 FTM
[ Download CSV Export 
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, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at FtmScan.com on 2021-09-19
*/

// Sources flattened with hardhat v2.6.2 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 = 0x23cBC7C95a13071562af2C4Fb1Efa7a284d0543a;
    // 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.09648515981 - owner 10%)
    uint256 public constant NATIVEPerBlock = 96485159810000000; // NATIVE tokens created per block
    // Approx 15/7/2021
    uint256 public constant startBlock = 17079090; // https://ftmscan.com/block/17079090

    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 Security Audit

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"}]

608060405260006004553480156200001657600080fd5b50600062000029620000d460201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35060018081905550620000dc565b600033905090565b61356780620000ec6000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c80637b84daec116100c3578063a0cf0aea1161007c578063a0cf0aea14610523578063ab7de09814610557578063c6d758cb146105c5578063e2bbb15814610613578063f2fde38b1461064b578063f85c0b741461068f5761014d565b80637b84daec1461038c5780638da5cb5b146103ee5780638dbb1e3a1461042257806393f1a40b1461046e578063958e2d31146104d75780639d4476b1146105055761014d565b8063441a3e7011610115578063441a3e70146102b257806348cd4cb1146102ea57806351eb05a6146103085780635312ea8e146103365780636675f30f14610364578063715018a6146103825761014d565b8063081e3eda146101525780630c5df13d146101705780631526fe27146101d257806317caf6f11461025c5780631ab06ee51461027a575b600080fd5b61015a6106ad565b6040518082815260200191505060405180910390f35b6101bc6004803603604081101561018657600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506106ba565b6040518082815260200191505060405180910390f35b6101fe600480360360208110156101e857600080fd5b81019080803590602001909291905050506108e5565b604051808673ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019550505050505060405180910390f35b610264610968565b6040518082815260200191505060405180910390f35b6102b06004803603604081101561029057600080fd5b81019080803590602001909291908035906020019092919050505061096e565b005b6102e8600480360360408110156102c857600080fd5b810190808035906020019092919080359060200190929190505050610aa8565b005b6102f26111a8565b6040518082815260200191505060405180910390f35b6103346004803603602081101561031e57600080fd5b81019080803590602001909291905050506111b0565b005b6103626004803603602081101561034c57600080fd5b81019080803590602001909291905050506114cf565b005b61036c611922565b6040518082815260200191505060405180910390f35b61038a611928565b005b6103d8600480360360408110156103a257600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611aae565b6040518082815260200191505060405180910390f35b6103f6611cda565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104586004803603604081101561043857600080fd5b810190808035906020019092919080359060200190929190505050611d03565b6040518082815260200191505060405180910390f35b6104ba6004803603604081101561048457600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611dd0565b604051808381526020018281526020019250505060405180910390f35b610503600480360360208110156104ed57600080fd5b8101908080359060200190929190505050611e01565b005b61050d611eb6565b6040518082815260200191505060405180910390f35b61052b611ec5565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105c36004803603606081101561056d57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611edd565b005b610611600480360360408110156105db57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061210e565b005b6106496004803603604081101561062957600080fd5b8101908080359060200190929190803590602001909291905050506122bb565b005b61068d6004803603602081101561066157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612699565b005b6106976128a4565b6040518082815260200191505060405180910390f35b6000600280549050905090565b600080600284815481106106ca57fe5b9060005260206000209060050201905060006003600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008260030154905060008360040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b1580156107a357600080fd5b505afa1580156107b7573d6000803e3d6000fd5b505050506040513d60208110156107cd57600080fd5b810190808051906020019092919050505090508360020154431180156107f4575060008114155b15610895576000610809856002015443611d03565b905060006108526004546108448860010154610836670156c8bddc926480876128b090919063ffffffff16565b6128b090919063ffffffff16565b61293690919063ffffffff16565b90506108906108818461087364e8d4a51000856128b090919063ffffffff16565b61293690919063ffffffff16565b8561298090919063ffffffff16565b935050505b6108d983600101546108cb64e8d4a510006108bd8688600001546128b090919063ffffffff16565b61293690919063ffffffff16565b612a0890919063ffffffff16565b94505050505092915050565b600281815481106108f257fe5b90600052602060002090600502016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905085565b60045481565b610976612a52565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610a36576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b610a7b81610a6d60028581548110610a4a57fe5b906000526020600020906005020160010154600454612a0890919063ffffffff16565b61298090919063ffffffff16565b6004819055508060028381548110610a8f57fe5b9060005260206000209060050201600101819055505050565b60026001541415610b21576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600181905550610b32826111b0565b600060028381548110610b4157fe5b9060005260206000209060050201905060006003600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600060028581548110610bb457fe5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342da4eb36040518163ffffffff1660e01b815260040160206040518083038186803b158015610c2b57600080fd5b505afa158015610c3f573d6000803e3d6000fd5b505050506040513d6020811015610c5557600080fd5b81019080805190602001909291905050509050600060028681548110610c7757fe5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b158015610cee57600080fd5b505afa158015610d02573d6000803e3d6000fd5b505050506040513d6020811015610d1857600080fd5b810190808051906020019092919050505090506000836000015411610da5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f757365722e73686172657320697320300000000000000000000000000000000081525060200191505060405180910390fd5b60008111610e1b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f736861726573546f74616c20697320300000000000000000000000000000000081525060200191505060405180910390fd5b6000610e658460010154610e5764e8d4a51000610e49896003015489600001546128b090919063ffffffff16565b61293690919063ffffffff16565b612a0890919063ffffffff16565b90506000811115610e7b57610e7a3382612a5a565b5b6000610ea683610e988688600001546128b090919063ffffffff16565b61293690919063ffffffff16565b905080871115610eb4578096505b600087111561110e57600060028981548110610ecc57fe5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f3fef3a3338a6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610f6e57600080fd5b505af1158015610f82573d6000803e3d6000fd5b505050506040513d6020811015610f9857600080fd5b810190808051906020019092919050505090508560000154811115610fc65760008660000181905550610fe6565b610fdd818760000154612a0890919063ffffffff16565b86600001819055505b60008760000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561107357600080fd5b505afa158015611087573d6000803e3d6000fd5b505050506040513d602081101561109d57600080fd5b81019080805190602001909291905050509050888110156110bc578098505b61110b338a8a60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612ca99092919063ffffffff16565b50505b61114064e8d4a51000611132886003015488600001546128b090919063ffffffff16565b61293690919063ffffffff16565b8560010181905550873373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568896040518082815260200191505060405180910390a3505050505050600180819055505050565b6301049b3281565b6000600282815481106111bf57fe5b90600052602060002090600502019050806002015443116111e057506114cc565b60008160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b15801561124c57600080fd5b505afa158015611260573d6000803e3d6000fd5b505050506040513d602081101561127657600080fd5b8101908080519060200190929190505050905060008114156112a25743826002018190555050506114cc565b60006112b2836002015443611d03565b9050600081116112c4575050506114cc565b600061130b6004546112fd86600101546112ef670156c8bddc926480876128b090919063ffffffff16565b6128b090919063ffffffff16565b61293690919063ffffffff16565b90507323cbc7c95a13071562af2c4fb1efa7a284d0543a73ffffffffffffffffffffffffffffffffffffffff166340c10f19611345611cda565b61136e612710611360610457876128b090919063ffffffff16565b61293690919063ffffffff16565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b1580156113c157600080fd5b505af11580156113d5573d6000803e3d6000fd5b505050507323cbc7c95a13071562af2c4fb1efa7a284d0543a73ffffffffffffffffffffffffffffffffffffffff166340c10f1930836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15801561145e57600080fd5b505af1158015611472573d6000803e3d6000fd5b505050506114b66114a38461149564e8d4a51000856128b090919063ffffffff16565b61293690919063ffffffff16565b856003015461298090919063ffffffff16565b8460030181905550438460020181905550505050505b50565b60026001541415611548576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b600260018190555060006002828154811061155f57fe5b9060005260206000209060050201905060006003600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000600284815481106115d257fe5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342da4eb36040518163ffffffff1660e01b815260040160206040518083038186803b15801561164957600080fd5b505afa15801561165d573d6000803e3d6000fd5b505050506040513d602081101561167357600080fd5b8101908080519060200190929190505050905060006002858154811061169557fe5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b15801561170c57600080fd5b505afa158015611720573d6000803e3d6000fd5b505050506040513d602081101561173657600080fd5b810190808051906020019092919050505090506000611774826117668587600001546128b090919063ffffffff16565b61293690919063ffffffff16565b90506002868154811061178357fe5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f3fef3a333836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561182557600080fd5b505af1158015611839573d6000803e3d6000fd5b505050506040513d602081101561184f57600080fd5b8101908080519060200190929190505050506118b033828760000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612ca99092919063ffffffff16565b853373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595836040518082815260200191505060405180910390a3600084600001819055506000846001018190555050505050506001808190555050565b61045781565b611930612a52565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146119f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060028481548110611abe57fe5b9060005260206000209060050201905060006003600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008260040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b158015611b8e57600080fd5b505afa158015611ba2573d6000803e3d6000fd5b505050506040513d6020811015611bb857600080fd5b81019080805190602001909291905050509050600060028781548110611bda57fe5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342da4eb36040518163ffffffff1660e01b815260040160206040518083038186803b158015611c5157600080fd5b505afa158015611c65573d6000803e3d6000fd5b505050506040513d6020811015611c7b57600080fd5b810190808051906020019092919050505090506000821415611ca4576000945050505050611cd4565b611ccd82611cbf8386600001546128b090919063ffffffff16565b61293690919063ffffffff16565b9450505050505b92915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006a0165f5da10eafe4c5000007323cbc7c95a13071562af2c4fb1efa7a284d0543a73ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611d6b57600080fd5b505afa158015611d7f573d6000803e3d6000fd5b505050506040513d6020811015611d9557600080fd5b810190808051906020019092919050505010611db45760009050611dca565b611dc78383612a0890919063ffffffff16565b90505b92915050565b6003602052816000526040600020602052806000526040600020600091509150508060000154908060010154905082565b60026001541415611e7a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600181905550611eac817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610aa8565b6001808190555050565b6a0165f5da10eafe4c50000081565b7323cbc7c95a13071562af2c4fb1efa7a284d0543a81565b611ee5612a52565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611fa5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60006301049b324311611fbc576301049b32611fbe565b435b9050611fd58460045461298090919063ffffffff16565b60048190555060026040518060a001604052808573ffffffffffffffffffffffffffffffffffffffff168152602001868152602001838152602001600081526020018473ffffffffffffffffffffffffffffffffffffffff16815250908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050505050565b612116612a52565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146121d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b7323cbc7c95a13071562af2c4fb1efa7a284d0543a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561228c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260058152602001807f217361666500000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6122b733828473ffffffffffffffffffffffffffffffffffffffff16612ca99092919063ffffffff16565b5050565b60026001541415612334576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600181905550612345826111b0565b60006002838154811061235457fe5b9060005260206000209060050201905060006003600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154111561242757600061240f826001015461240164e8d4a510006123f3876003015487600001546128b090919063ffffffff16565b61293690919063ffffffff16565b612a0890919063ffffffff16565b90506000811115612425576124243382612a5a565b5b505b6000831115612603576124813330858560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612d4b909392919063ffffffff16565b6124f48260040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16848460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612e0c9092919063ffffffff16565b60006002858154811061250357fe5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166347e7ef2433866040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156125a557600080fd5b505af11580156125b9573d6000803e3d6000fd5b505050506040513d60208110156125cf57600080fd5b810190808051906020019092919050505090506125f981836000015461298090919063ffffffff16565b8260000181905550505b61263564e8d4a51000612627846003015484600001546128b090919063ffffffff16565b61293690919063ffffffff16565b8160010181905550833373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15856040518082815260200191505060405180910390a35050600180819055505050565b6126a1612a52565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612761576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156127e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061349b6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b670156c8bddc92648081565b6000808314156128c35760009050612930565b60008284029050828482816128d457fe5b041461292b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806134e76021913960400191505060405180910390fd5b809150505b92915050565b600061297883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612f85565b905092915050565b6000808284019050838110156129fe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000612a4a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061304b565b905092915050565b600033905090565b60007323cbc7c95a13071562af2c4fb1efa7a284d0543a73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015612ad757600080fd5b505afa158015612aeb573d6000803e3d6000fd5b505050506040513d6020811015612b0157600080fd5b8101908080519060200190929190505050905080821115612be2577323cbc7c95a13071562af2c4fb1efa7a284d0543a73ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015612ba157600080fd5b505af1158015612bb5573d6000803e3d6000fd5b505050506040513d6020811015612bcb57600080fd5b810190808051906020019092919050505050612ca4565b7323cbc7c95a13071562af2c4fb1efa7a284d0543a73ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015612c6757600080fd5b505af1158015612c7b573d6000803e3d6000fd5b505050506040513d6020811015612c9157600080fd5b8101908080519060200190929190505050505b505050565b612d468363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061310b565b505050565b612e06846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061310b565b50505050565b6000612ee0828573ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30876040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b158015612e9757600080fd5b505afa158015612eab573d6000803e3d6000fd5b505050506040513d6020811015612ec157600080fd5b810190808051906020019092919050505061298090919063ffffffff16565b9050612f7f8463095ea7b360e01b8584604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061310b565b50505050565b60008083118290613031576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612ff6578082015181840152602081019050612fdb565b50505050905090810190601f1680156130235780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161303d57fe5b049050809150509392505050565b60008383111582906130f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156130bd5780820151818401526020810190506130a2565b50505050905090810190601f1680156130ea5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b606061316d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166131fa9092919063ffffffff16565b90506000815111156131f55780806020019051602081101561318e57600080fd5b81019080805190602001909291905050506131f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180613508602a913960400191505060405180910390fd5b5b505050565b60606132098484600085613212565b90509392505050565b60608247101561326d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806134c16026913960400191505060405180910390fd5b613276856133bb565b6132e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106133385780518252602082019150602081019050602083039250613315565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461339a576040519150601f19603f3d011682016040523d82523d6000602084013e61339f565b606091505b50915091506133af8282866133ce565b92505050949350505050565b600080823b905060008111915050919050565b606083156133de57829050613493565b6000835111156133f15782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561345857808201518184015260208101905061343d565b50505050905090810190601f1680156134855780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212200b895ae0fb828ec214d526302319d87127cbbbc570701d63f7af6d5ce0aa035364736f6c634300060c0033

Deployed ByteCode Sourcemap

45358:11331:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47996:95;;;:::i;:::-;;;;;;;;;;;;;;;;;;;49600:921;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;47416:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47586:34;;;:::i;:::-;;;;;;;;;;;;;;;;;;;48942:266;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;53476:1680;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;47324:45;;;:::i;:::-;;;;;;;;;;;;;;;;;;;51201:1032;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;55338:689;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;46975:48;;;:::i;:::-;;;;;;;;;;;;;;;;;;;41868:148;;;:::i;:::-;;50590:535;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;41226:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;49284:251;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;47471:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;55164:103;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;47085:52;;;:::i;:::-;;;;;;;;;;;;;;;;;;;46846:75;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;48299:545;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;56469:217;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;52334:1090;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;42171:281;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;47199:58;;;:::i;:::-;;;;;;;;;;;;;;;;;;;47996:95;48041:7;48068:8;:15;;;;48061:22;;47996:95;:::o;49600:921::-;49702:7;49727:21;49751:8;49760:4;49751:14;;;;;;;;;;;;;;;;;;49727:38;;49776:21;49800:8;:14;49809:4;49800:14;;;;;;;;;;;:21;49815:5;49800:21;;;;;;;;;;;;;;;49776:45;;49832:25;49860:4;:22;;;49832:50;;49893:19;49925:4;:10;;;;;;;;;;;;49915:33;;;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49893:57;;49980:4;:20;;;49965:12;:35;:55;;;;;50019:1;50004:11;:16;;49965:55;49961:470;;;50037:18;50058:49;50072:4;:20;;;50094:12;50058:13;:49::i;:::-;50037:70;;50122:20;50162:128;50274:15;;50162:79;50225:4;:15;;;50162:30;47240:17;50162:10;:14;;:30;;;;:::i;:::-;:62;;:79;;;;:::i;:::-;:111;;:128;;;;:::i;:::-;50122:168;;50325:94;50365:39;50392:11;50365:22;50382:4;50365:12;:16;;:22;;;;:::i;:::-;:26;;:39;;;;:::i;:::-;50325:17;:21;;:94;;;;:::i;:::-;50305:114;;49961:470;;;50448:65;50497:4;:15;;;50448:44;50487:4;50448:34;50464:17;50448:4;:11;;;:15;;:34;;;;:::i;:::-;:38;;:44;;;;:::i;:::-;:48;;:65;;;;:::i;:::-;50441:72;;;;;;49600:921;;;;:::o;47416:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;47586:34::-;;;;:::o;48942:266::-;41448:12;:10;:12::i;:::-;41438:22;;:6;;;;;;;;;;:22;;;41430:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49063:87:::1;49128:11;49063:46;49083:8;49092:4;49083:14;;;;;;;;;;;;;;;;;;:25;;;49063:15;;:19;;:46;;;;:::i;:::-;:50;;:87;;;;:::i;:::-;49045:15;:105;;;;49189:11;49161:8;49170:4;49161:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;48942:266:::0;;:::o;53476:1680::-;43453:1;44058:7;;:19;;44050:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43453:1;44191:7;:18;;;;53557:16:::1;53568:4;53557:10;:16::i;:::-;53586:21;53610:8;53619:4;53610:14;;;;;;;;;;;;;;;;;;53586:38;;53635:21;53659:8;:14;53668:4;53659:14;;;;;;;;;;;:26;53674:10;53659:26;;;;;;;;;;;;;;;53635:50;;53698:23;53747:8;53756:4;53747:14;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;53737:47;;;:49;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;53698:88;;53797:19;53829:8;53838:4;53829:14;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;53819:43;;;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;53797:67;;53899:1;53885:4;:11;;;:15;53877:44;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;53954:1;53940:11;:15;53932:44;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;54025:15;54056:102;54128:4;:15;;;54056:49;54100:4;54056:39;54072:4;:22;;;54056:4;:11;;;:15;;:39;;;;:::i;:::-;:43;;:49;;;;:::i;:::-;:53;;:102;;;;:::i;:::-;54025:133;;54183:1;54173:7;:11;54169:83;;;54201:39;54220:10;54232:7;54201:18;:39::i;:::-;54169:83;54297:14;54314:49;54351:11;54314:32;54330:15;54314:4;:11;;;:15;;:32;;;;:::i;:::-;:36;;:49;;;;:::i;:::-;54297:66;;54389:6;54378:8;:17;54374:67;;;54423:6;54412:17;;54374:67;54466:1;54455:8;:12;54451:568;;;54484:21;54535:8;54544:4;54535:14;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;54525:40;;;54566:10;54578:8;54525:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;54484:103;;54624:4;:11;;;54608:13;:27;54604:168;;;54670:1;54656:4;:11;;:15;;;;54604:168;;;54726:30;54742:13;54726:4;:11;;;:15;;:30;;;;:::i;:::-;54712:4;:11;;:44;;;;54604:168;54788:15;54813:4;:9;;;;;;;;;;;;54806:27;;;54842:4;54806:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;54788:60;;54877:8;54867:7;:18;54863:77;;;54917:7;54906:18;;54863:77;54954:53;54985:10;54998:8;54954:4;:9;;;;;;;;;;;;:22;;;;:53;;;;;:::i;:::-;54451:568;;;55047:49;55091:4;55047:39;55063:4;:22;;;55047:4;:11;;;:15;;:39;;;;:::i;:::-;:43;;:49;;;;:::i;:::-;55029:4;:15;;:67;;;;55133:4;55121:10;55112:36;;;55139:8;55112:36;;;;;;;;;;;;;;;;;;44222:1;;;;;;43409::::0;44370:7;:22;;;;53476:1680;;:::o;47324:45::-;47361:8;47324:45;:::o;51201:1032::-;51253:21;51277:8;51286:4;51277:14;;;;;;;;;;;;;;;;;;51253:38;;51322:4;:20;;;51306:12;:36;51302:75;;51359:7;;;51302:75;51387:19;51419:4;:10;;;;;;;;;;;;51409:33;;;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51387:57;;51474:1;51459:11;:16;51455:105;;;51515:12;51492:4;:20;;:35;;;;51542:7;;;;51455:105;51570:18;51591:49;51605:4;:20;;;51627:12;51591:13;:49::i;:::-;51570:70;;51669:1;51655:10;:15;51651:54;;51687:7;;;;;51651:54;51715:20;51751:104;51825:15;;51751:51;51786:4;:15;;;51751:30;47240:17;51751:10;:14;;:30;;;;:::i;:::-;:34;;:51;;;;:::i;:::-;:55;;:104;;;;:::i;:::-;51715:140;;46879:42;51868:24;;;51907:7;:5;:7::i;:::-;51929:46;51969:5;51929:35;47019:4;51929:12;:16;;:35;;;;:::i;:::-;:39;;:46;;;;:::i;:::-;51868:118;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46879:42;51997:24;;;52030:4;52037:12;51997:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52088:91;52129:39;52156:11;52129:22;52146:4;52129:12;:16;;:22;;;;:::i;:::-;:26;;:39;;;;:::i;:::-;52088:4;:22;;;:26;;:91;;;;:::i;:::-;52063:4;:22;;:116;;;;52213:12;52190:4;:20;;:35;;;;51201:1032;;;;;;:::o;55338:689::-;43453:1;44058:7;;:19;;44050:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43453:1;44191:7;:18;;;;55412:21:::1;55436:8;55445:4;55436:14;;;;;;;;;;;;;;;;;;55412:38;;55461:21;55485:8;:14;55494:4;55485:14;;;;;;;;;;;:26;55500:10;55485:26;;;;;;;;;;;;;;;55461:50;;55524:23;55573:8;55582:4;55573:14;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;55563:47;;;:49;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;55524:88;;55623:19;55655:8;55664:4;55655:14;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;55645:43;;;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;55623:67;;55701:14;55718:49;55755:11;55718:32;55734:15;55718:4;:11;;;:15;;:32;;;;:::i;:::-;:36;;:49;;;;:::i;:::-;55701:66;;55790:8;55799:4;55790:14;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;55780:40;;;55821:10;55833:6;55780:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;55853:51;55884:10;55897:6;55853:4;:9;;;;;;;;;;;;:22;;;;:51;;;;;:::i;:::-;55950:4;55938:10;55920:43;;;55956:6;55920:43;;;;;;;;;;;;;;;;;;55988:1;55974:4;:11;;:15;;;;56018:1;56000:4;:15;;:19;;;;44222:1;;;;;43409::::0;44370:7;:22;;;;55338: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;50590:535::-;50695:7;50720:21;50744:8;50753:4;50744:14;;;;;;;;;;;;;;;;;;50720:38;;50769:21;50793:8;:14;50802:4;50793:14;;;;;;;;;;;:21;50808:5;50793:21;;;;;;;;;;;;;;;50769:45;;50827:19;50859:4;:10;;;;;;;;;;;;50849:33;;;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50827:57;;50895:23;50944:8;50953:4;50944:14;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;50934:47;;;:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50895:88;;51013:1;50998:11;:16;50994:57;;;51038:1;51031:8;;;;;;;;50994:57;51068:49;51105:11;51068:32;51084:15;51068:4;:11;;;:15;;:32;;;;:::i;:::-;:36;;:49;;;;:::i;:::-;51061:56;;;;;;50590:535;;;;;:::o;41226:79::-;41264:7;41291:6;;;;;;;;;;;41284:13;;41226:79;:::o;49284:251::-;49383:7;47127:10;46879:42;49412:26;;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:47;49408:88;;49483:1;49476:8;;;;49408:88;49513:14;49521:5;49513:3;:7;;:14;;;;:::i;:::-;49506:21;;49284:251;;;;;:::o;47471:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;55164:103::-;43453:1;44058:7;;:19;;44050:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43453:1;44191:7;:18;;;;55232:27:::1;55241:4;55255:2;55232:8;:27::i;:::-;43409:1:::0;44370:7;:22;;;;55164:103;:::o;47085:52::-;47127:10;47085:52;:::o;46846:75::-;46879:42;46846:75;:::o;48299:545::-;41448:12;:10;:12::i;:::-;41438:22;;:6;;;;;;;;;;:22;;;41430:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48427:23:::1;47361:8;48453:12;:25;:53;;47361:8;48453:53;;;48481:12;48453:53;48427:79;;48535:32;48555:11;48535:15;;:19;;:32;;;;:::i;:::-;48517:15;:50;;;;48578:8;48606:219;;;;;;;;48640:5;48606:219;;;;;;48676:11;48606:219;;;;48723:15;48606:219;;;;48776:1;48606:219;;;;48803:6;48606:219;;;;::::0;48578:258:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41508:1;48299:545:::0;;;:::o;56469:217::-;41448:12;:10;:12::i;:::-;41438:22;;:6;;;;;;;;;;:22;;;41430:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46879:42:::1;56593:16;;:6;:16;;;;56585:34;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;56630:48;56658:10;56670:7;56637:6;56630:27;;;;:48;;;;;:::i;:::-;56469:217:::0;;:::o;52334:1090::-;43453:1;44058:7;;:19;;44050:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43453:1;44191:7;:18;;;;52416:16:::1;52427:4;52416:10;:16::i;:::-;52443:21;52467:8;52476:4;52467:14;;;;;;;;;;;;;;;;;;52443:38;;52492:21;52516:8;:14;52525:4;52516:14;;;;;;;;;;;:26;52531:10;52516:26;;;;;;;;;;;;;;;52492:50;;52573:1;52559:4;:11;;;:15;52555:298;;;52591:15;52626:110;52702:4;:15;;;52626:49;52670:4;52626:39;52642:4;:22;;;52626:4;:11;;;:15;;:39;;;;:::i;:::-;:43;;:49;;;;:::i;:::-;:53;;:110;;;;:::i;:::-;52591:145;;52765:1;52755:7;:11;52751:91;;;52787:39;52806:10;52818:7;52787:18;:39::i;:::-;52751:91;52555:298;;52878:1;52867:8;:12;52863:425;;;52896:138;52949:10;52987:4;53011:8;52896:4;:9;;;;;;;;;;;;:26;;;;:138;;;;;;:::i;:::-;53051:53;53083:4;:10;;;;;;;;;;;;53095:8;53051:4;:9;;;;;;;;;;;;:31;;;;:53;;;;;:::i;:::-;53119:19;53168:8;53177:4;53168:14;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;53158:39;;;53198:10;53210:8;53158:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;53119:100;;53248:28;53264:11;53248:4;:11;;;:15;;:28;;;;:::i;:::-;53234:4;:11;;:42;;;;52863:425;;53316:49;53360:4;53316:39;53332:4;:22;;;53316:4;:11;;;:15;;:39;;;;:::i;:::-;:43;;:49;;;;:::i;:::-;53298:4;:15;;:67;;;;53401:4;53389:10;53381:35;;;53407:8;53381:35;;;;;;;;;;;;;;;;;;44222:1;;43409::::0;44370:7;:22;;;;52334: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;47199:58::-;47240:17;47199:58;:::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;56136:325::-;56217:17;46879:42;56237:24;;;56270:4;56237:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56217:59;;56304:9;56291:10;:22;56287:167;;;46879:42;56330:23;;;56354:3;56359:9;56330:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56287:167;;;46879:42;56402:23;;;56426:3;56431:10;56402:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56287:167;56136: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://0b895ae0fb828ec214d526302319d87127cbbbc570701d63f7af6d5ce0aa0353
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
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.