Contract 0x3975505D1B82F773925e226F16e7A701Dba559f8

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xedba6f017da8a0ff5ecb19ec5dd450c503d77dc866744caa3bb5f12000376bf0Withdraw83718872021-06-17 9:35:37215 days 19 hrs ago0x412c308427ad4858cdf2a1498d7fc312be4210b3 IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.00050886
0x677c2f4b0f3714877de3c917cfac92300f58f9207c8f0cce40b3ee73540b3af3Withdraw80844932021-06-07 8:27:43225 days 20 hrs ago0xfad69006282ed38887b381a25668bd86f288cb23 IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.00058399
0x68f903188b4d82ac1f231884d752d29fddb849f65947ad5b724d1f534ff11954Withdraw80839932021-06-07 8:02:43225 days 20 hrs ago0x9ecb2c272ded1f73779c5760c52c73eb5917cc9d IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.00058405
0x128538aac4821d8efad9405eb733e7cbfd4c8f910259a2914c3f06356bc59846Withdraw80839832021-06-07 8:02:13225 days 20 hrs ago0x9ecb2c272ded1f73779c5760c52c73eb5917cc9d IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.000536525
0x6a3472d778ad3f524acfc2c4fae6312fa05d9b17ebf540510be20c2761920897Withdraw80839752021-06-07 8:01:49225 days 20 hrs ago0x9ecb2c272ded1f73779c5760c52c73eb5917cc9d IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.00058374
0xaf90cafb70d43527061bd458886f8090a4a5401b8db80b1c79d913d7d414a8a3Withdraw80584962021-06-06 10:46:07226 days 17 hrs ago0x23cbae3816ca303581719a927d89b25948b9734f IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.00058727
0x2ffe5049a1d9be8024d63f7fec2637b7d33589339666e4e55571ae2c76e04992Withdraw80496172021-06-06 3:21:27227 days 1 hr ago0x46b824640f5ae4cdccea966fda31a6945c00d9af IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.00058727
0xe57bc95f6bb8699192c85e5de4fbb4ea79255dfedea9d000ce6a1007b6f9403fWithdraw80355162021-06-05 15:34:54227 days 13 hrs ago0xb91b4bdb52ea76d2849d04128b0ce319699a387a IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.00065905
0x7e9ccec4ccac69737754860daa17ce4a81f3c9bd6b9eb7cb06ec2e1d11e03884Withdraw80276552021-06-05 9:00:22227 days 19 hrs ago0x24967f626aaeaf93cdf592832318bb572e91e3a8 IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.00065886
0x374ef3190504076d3dc88d7c57983148ae7372800264fe69014301a660b5c4bbWithdraw80247952021-06-05 6:37:20227 days 22 hrs ago0x06ec42a70243656917a5f96991447f6e8551ef1d IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.00050874
0x6a13de3a224f1c44fbf408384c102bbe4a3b9afdd87cea23fec55a76f3bfc55cWithdraw80247822021-06-05 6:36:41227 days 22 hrs ago0x06ec42a70243656917a5f96991447f6e8551ef1d IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.00050874
0x04e9303e978d098a3dc5d2eb19bef62c1838a658bd7446fc2153f96399204e7cWithdraw80247692021-06-05 6:36:02227 days 22 hrs ago0x06ec42a70243656917a5f96991447f6e8551ef1d IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.00058727
0x330e4552eb9aeb479ee14511759e8b2807e8177b2acd676e33b5bc808a7a54c3Withdraw80225832021-06-05 4:46:44227 days 23 hrs ago0x78f07b19231aa6a4a4ff299e90f57665a412549c IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.00048061
0xe2096c54c83107b34f874bb1b90d586164c528c0fc6da86acfa227656a9eab52Withdraw80225782021-06-05 4:46:29227 days 23 hrs ago0x78f07b19231aa6a4a4ff299e90f57665a412549c IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.00048061
0xa821e641d226b8a012e8d1b984744a03f2632c223298a549be93e9b64f071399Withdraw80180112021-06-05 0:57:33228 days 3 hrs ago0x4fdeca5f7b87b113c6814ef17c21384e494fc318 IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.00048061
0x3400e14926327cac1347f99f3aa2392ace1a3069677e4fe476f01f6b9d7cfeecDeposit80179982021-06-05 0:56:54228 days 3 hrs ago0x4fdeca5f7b87b113c6814ef17c21384e494fc318 IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.000538925
0x8f3cd5ae16fdaf91478d2eca9f78f6ee2f635ef61242813e9d11faf150e7e9fdWithdraw80175532021-06-05 0:34:38228 days 4 hrs ago0x18692d2856980168f1d49d7fc2175c06c4f059c7 IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.00058405
0x3debe98fd182ad3a360fb424de59cceb1f0d8103837d8b06dc09c1c9368b7149Withdraw80175492021-06-05 0:34:26228 days 4 hrs ago0x18692d2856980168f1d49d7fc2175c06c4f059c7 IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.00058405
0x721d8bddeab382921b45f18a43aa1175086d4883ec27cfbff0649dceebeca73dWithdraw80168182021-06-04 23:57:53228 days 4 hrs ago0xdd669f05fc3ce2849aa9f07c5de3ede0308e9bda IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.00042176
0xdb244fcc1a21c218b62f52eda9458ed8f7da749f9e7728ea79d98aed534776f6Deposit80168142021-06-04 23:57:41228 days 4 hrs ago0xdd669f05fc3ce2849aa9f07c5de3ede0308e9bda IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.00053906
0xc5b4b0921ec00d0772ea1d6f64d56ee5e234ed6bf6af79fe6b178a4220e8cb0dWithdraw80160332021-06-04 23:18:38228 days 5 hrs ago0xca1dd4394d0092668c05dc631ea023c0fae56bb3 IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.00048055
0x10b9ca9f8a1552463f521cf1750aa4a3be1918ed5136ad8c1db8dcd073ec7292Deposit80159712021-06-04 23:15:32228 days 5 hrs ago0xca1dd4394d0092668c05dc631ea023c0fae56bb3 IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.000538865
0x3ec992b8e802ae4afdf762f3a3452632597045e920a29bc4b4c1a6a69123a378Withdraw80151642021-06-04 22:35:11228 days 6 hrs ago0xb0d5a341c2086b1f67e505fb1ea2c52d43e46244 IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.0005838
0x2965c1bbe7cfa80c94088e486ee6f108c22bc613081116a374b0076759b4d827Deposit80140412021-06-04 21:39:02228 days 7 hrs ago0x78f07b19231aa6a4a4ff299e90f57665a412549c IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.000538925
0xef8a1d4e038c46a6fe9adadd7f3fcd96a5a7d2c939b730611c22ac1ebf8bb68bDeposit80140402021-06-04 21:38:59228 days 7 hrs ago0x78f07b19231aa6a4a4ff299e90f57665a412549c IN  0x3975505d1b82f773925e226f16e7a701dba559f80 BNB0.000538865
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MasterChef

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-05-28
*/

pragma solidity 0.6.12;

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 IBEP20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the token decimals.
     */
    function decimals() external view returns (uint8);

    /**
     * @dev Returns the token symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the token name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the bep token owner.
     */
    function getOwner() external view returns (address);

    /**
     * @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 _treasury, 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 treasury, address indexed spender, uint256 value);
}

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

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

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

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

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

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

    function refUID(IBEP20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeBEP20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }    

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

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

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

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

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

abstract contract Ownable is Context {
    address private _treasury;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _treasury = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

    /**
     * @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(_treasury, address(0));
        _treasury = 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(_treasury, newOwner);
        _treasury = newOwner;
    }
}

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

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

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

contract BEP20 is Context, IBEP20, Ownable {
    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 bep token owner.
     */
    function getOwner() external override view returns (address) {
        return treasury();
    }

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

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

    /**
    * @dev Returns the number of decimals used to get its user representation.
    */
    function decimals() public override view returns (uint8) {
        return _decimals;
    }

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

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

    /**
     * @dev See {BEP20-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 override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

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

    /**
     * @dev See {BEP20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {BEP20};
     *
     * 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 override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(
            sender,
            _msgSender(),
            _allowances[sender][_msgSender()].sub(amount, 'BEP20: 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 {BEP20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public 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 {BEP20-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 returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, 'BEP20: decreased allowance below zero'));
        return true;
    }

    /**
     * @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing
     * the total supply.
     *
     * Requirements
     *
     * - `msg.sender` must be the token owner
     */
    function mint(uint256 amount) public onlyOwner returns (bool) {
        _mint(_msgSender(), amount);
        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 {
        require(sender != address(0), 'BEP20: transfer from the zero address');
        require(recipient != address(0), 'BEP20: transfer to the zero address');

        _balances[sender] = _balances[sender].sub(amount, 'BEP20: 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 {
        require(account != address(0), 'BEP20: mint to the zero address');

        _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 {
        require(account != address(0), 'BEP20: burn from the zero address');

        _balances[account] = _balances[account].sub(amount, 'BEP20: 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 is 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 treasury, address spender, uint256 amount) internal {
        require(treasury != address(0), 'BEP20: approve from the zero address');
        require(spender != address(0), 'BEP20: approve to the zero address');

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

    /**
     * @dev Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
        _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, 'BEP20: burn amount exceeds allowance'));
    }
}
contract myToken is BEP20('Firebird Finance Token', 'FBF') {
    /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef).
    function mint(address _to, uint256 _amount) public onlyOwner {
        _mint(_to, _amount);
        _moveDelegates(address(0), _delegates[_to], _amount);
    }

    // Copied and modified from YAM code:
    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol
    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol
    // Which is copied and modified from COMPOUND:
    // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol

    /// @notice A record of each accounts delegate
    mapping (address => address) internal _delegates;

    /// @notice A checkpoint for marking number of votes from a given block
    struct Checkpoint {
        uint32 fromBlock;
        uint256 votes;
    }

    /// @notice A record of votes checkpoints for each account, by index
    mapping (address => mapping (uint32 => Checkpoint)) public checkpoints;

    /// @notice The number of checkpoints for each account
    mapping (address => uint32) public numCheckpoints;

    /// @notice The EIP-712 typehash for the contract's domain
    bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");

    /// @notice The EIP-712 typehash for the delegation struct used by the contract
    bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");

    /// @notice A record of states for signing / validating signatures
    mapping (address => uint) public nonces;

      /// @notice An event thats emitted when an account changes its delegate
    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);

    /// @notice An event thats emitted when a delegate account's vote balance changes
    event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance);

    /**
     * @notice Delegate votes from `msg.sender` to `delegatee`
     * @param delegator The address to get delegatee for
     */
    function delegates(address delegator)
        external
        view
        returns (address)
    {
        return _delegates[delegator];
    }

   /**
    * @notice Delegate votes from `msg.sender` to `delegatee`
    * @param delegatee The address to delegate votes to
    */
    function delegate(address delegatee) external {
        return _delegate(msg.sender, delegatee);
    }

    /**
     * @notice Delegates votes from signatory to `delegatee`
     * @param delegatee The address to delegate votes to
     * @param nonce The contract state required to match the signature
     * @param expiry The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function delegateBySig(
        address delegatee,
        uint nonce,
        uint expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    )
        external
    {
        bytes32 domainSeparator = keccak256(
            abi.encode(
                DOMAIN_TYPEHASH,
                keccak256(bytes(name())),
                getChainId(),
                address(this)
            )
        );

        bytes32 structHash = keccak256(
            abi.encode(
                DELEGATION_TYPEHASH,
                delegatee,
                nonce,
                expiry
            )
        );

        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                domainSeparator,
                structHash
            )
        );

        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), "myToken::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "myToken::delegateBySig: invalid nonce");
        require(now <= expiry, "myToken::delegateBySig: signature expired");
        return _delegate(signatory, delegatee);
    }

    /**
     * @notice Gets the current votes balance for `account`
     * @param account The address to get votes balance
     * @return The number of current votes for `account`
     */
    function getCurrentVotes(address account)
        external
        view
        returns (uint256)
    {
        uint32 nCheckpoints = numCheckpoints[account];
        return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
    }

    /**
     * @notice Determine the prior number of votes for an account as of a block number
     * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
     * @param account The address of the account to check
     * @param blockNumber The block number to get the vote balance at
     * @return The number of votes the account had as of the given block
     */
    function getPriorVotes(address account, uint blockNumber)
        external
        view
        returns (uint256)
    {
        require(blockNumber < block.number, "myToken::getPriorVotes: not yet determined");

        uint32 nCheckpoints = numCheckpoints[account];
        if (nCheckpoints == 0) {
            return 0;
        }

        // First check most recent balance
        if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
            return checkpoints[account][nCheckpoints - 1].votes;
        }

        // Next check implicit zero balance
        if (checkpoints[account][0].fromBlock > blockNumber) {
            return 0;
        }

        uint32 lower = 0;
        uint32 upper = nCheckpoints - 1;
        while (upper > lower) {
            uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
            Checkpoint memory cp = checkpoints[account][center];
            if (cp.fromBlock == blockNumber) {
                return cp.votes;
            } else if (cp.fromBlock < blockNumber) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return checkpoints[account][lower].votes;
    }

    function _delegate(address delegator, address delegatee)
        internal
    {
        address currentDelegate = _delegates[delegator];
        uint256 delegatorBalance = balanceOf(delegator); // balance of underlying myToken (not scaled);
        _delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveDelegates(currentDelegate, delegatee, delegatorBalance);
    }

    function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal {
        if (srcRep != dstRep && amount > 0) {
            if (srcRep != address(0)) {
                // decrease old representative
                uint32 srcRepNum = numCheckpoints[srcRep];
                uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
                uint256 srcRepNew = srcRepOld.sub(amount);
                _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
            }

            if (dstRep != address(0)) {
                // increase new representative
                uint32 dstRepNum = numCheckpoints[dstRep];
                uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
                uint256 dstRepNew = dstRepOld.add(amount);
                _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
            }
        }
    }

    function _writeCheckpoint(
        address delegatee,
        uint32 nCheckpoints,
        uint256 oldVotes,
        uint256 newVotes
    )
        internal
    {
        uint32 blockNumber = safe32(block.number, "myToken::_writeCheckpoint: block number exceeds 32 bits");

        if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
            checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
        } else {
            checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
            numCheckpoints[delegatee] = nCheckpoints + 1;
        }

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

    function safe32(uint n, string memory errorMessage) internal pure returns (uint32) {
        require(n < 2**32, errorMessage);
        return uint32(n);
    }

    function getChainId() internal pure returns (uint) {
        uint256 chainId;
        assembly { chainId := chainid() }
        return chainId;
    }
}

// MasterChef is the master of myToken. He can make tokenand he is a fair guy.
//
// Note that it's ownable and the owner wields tremendous power. Initially the ownership is
// transferred to TimeLock contract and Later the ownership will be transferred to a governance smart
// contract once $tokenis sufficiently distributed and the community can show to govern itself.
//
// Have fun reading it. Hopefully it's bug-free. God bless.
contract MasterChef is Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeBEP20 for IBEP20;

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

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

    // The Token!
    myToken public mytoken;
    // Dev address.
    address public devAddr;
    // tokentokens created per block.
    uint256 public myTokenPerBlock;
    // Deposit Fee address
    address public feeAddress;

    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user that stakes LP tokens.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    // Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;
    // The block number when tokenmining starts.
    uint256 public startBlock;
    // Referral Bonus in basis points. Initially set to 2%
    uint256 public refBonusBP = 200;
    // Max deposit fee: 10%.
    uint16 public constant MAXIMUM_DEPOSIT_FEE_BP = 1000;
    // Max referral commission rate: 20%.
    uint16 public constant MAXIMUM_REFERRAL_BP = 2000;
    // Referral Mapping
    mapping(address => address) public referrers; // account_address -> referrer_address
    mapping(address => uint256) public referredCount; // referrer_address -> num_of_referred
    // Pool Exists Mapper
    mapping(IBEP20 => bool) public poolExistence;
    // Pool ID Tracker Mapper
    mapping(IBEP20 => uint256) public poolIdForLpAddress;

    // Initial emission rate: 1 token per block.
    uint256 public constant INITIAL_EMISSION_RATE = 0.1 ether;
    // Maximum emission rate: 0.5 token per block.
    uint256 public MAXIMUM_EMISSION_RATE = 500 finney;
    // Increase emission every 28,800 blocks ~ 24 hours.
    uint256 public EMISSION_INCREASE_PERIOD_BLOCKS = 28800;
    // Emission increase rate per period in basis points: 5%.
    uint256 public EMISSION_INCREASE_RATE_PER_PERIOD = 500;
    // Last increase period index
    uint256 public lastIncreasePeriodIndex = 0;

    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
    );
    event SetFeeAddress(address indexed user, address indexed _devAddress);
    event SetDevAddress(address indexed user, address indexed _feeAddress);
    event Referral(address indexed _referrer, address indexed _user);
    event ReferralBonusBpChanged(uint256 _oldBp, uint256 _newBp);
    event EmissionRateUpdated(address indexed caller, uint256 previousAmount, uint256 newAmount);
    event MaximumEmissionRateChanged(uint256 _old, uint256 _new);
    event EmissionIncreasePeriodBlocksChanged(uint256 _old, uint256 _new);
    event EmissionIncreaseRatePerPeriodChanged(uint256 _old, uint256 _new);

    constructor(
        myToken _myToken,
        address _devAddr,
        address _feeAddress,
        uint256 _startBlock
    ) public {
        mytoken = _myToken;
        devAddr = _devAddr;
        feeAddress = _feeAddress;
        myTokenPerBlock = INITIAL_EMISSION_RATE;
        startBlock = _startBlock;
    }

    // Get number of pools added.
    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    function getPoolIdForLpToken(IBEP20 _lpToken) external view returns (uint256) {
        require(poolExistence[_lpToken] != false, "getPoolIdForLpToken: do not exist");
        return poolIdForLpAddress[_lpToken];
    }

    // Modifier to check Duplicate pools
    modifier nonDuplicated(IBEP20 _lpToken) {
        require(poolExistence[_lpToken] == false, "nonDuplicated: duplicated");
        _;
    }

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

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

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

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

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

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

    // Deposit LP tokens to MasterChef for tokenallocation.
    function deposit(uint256 _pid, uint256 _amount) public nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending =
                user.amount.mul(pool.accTokenPerShare).div(1e12).sub(
                    user.rewardDebt
                );
            if (pending > 0) {
                safeTokenTransfer(msg.sender, pending);
            }
        }
        if (_amount > 0) {
            pool.lpToken.safeTransferFrom(
                address(msg.sender),
                address(this),
                _amount
            );
            if (pool.depositFeeBP > 0) {
                uint256 depositFee = _amount.mul(pool.depositFeeBP).div(10000);
                user.amount = user.amount.add(_amount).sub(depositFee);
                pool.lpToken.safeTransfer(feeAddress, depositFee);
            } else {
                user.amount = user.amount.add(_amount);
            }
        }
        user.rewardDebt = user.amount.mul(pool.accTokenPerShare).div(1e12);
        emit Deposit(msg.sender, _pid, _amount);
    }

    // Deposit LP tokens to MasterChef for tokenallocation with referral.
    function deposit(uint256 _pid, uint256 _amount, address _referrer) public nonReentrant {
        require(_referrer == address(_referrer),"deposit: Invalid referrer address");
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending =
                user.amount.mul(pool.accTokenPerShare).div(1e12).sub(
                    user.rewardDebt
                );
            if (pending > 0) {
                safeTokenTransfer(msg.sender, pending);
            }
        }
        if (_amount > 0) {
            setReferral(msg.sender, _referrer);
            pool.lpToken.safeTransferFrom(
                address(msg.sender),
                address(this),
                _amount
            );
            if (pool.depositFeeBP > 0) {
                uint256 depositFee = _amount.mul(pool.depositFeeBP).div(10000);
                user.amount = user.amount.add(_amount).sub(depositFee);
                pool.lpToken.safeTransfer(feeAddress, depositFee);
            } else {
                user.amount = user.amount.add(_amount);
            }
        }
        user.rewardDebt = user.amount.mul(pool.accTokenPerShare).div(1e12);
        emit Deposit(msg.sender, _pid, _amount);
    }

    // Withdraw LP tokens from MasterChef.
    function withdraw(uint256 _pid, uint256 _amount) public nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(_pid);
        uint256 pending =
            user.amount.mul(pool.accTokenPerShare).div(1e12).sub(
                user.rewardDebt
            );
        if (pending > 0) {
            safeTokenTransfer(msg.sender, pending);
        }
        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accTokenPerShare).div(1e12);
        emit Withdraw(msg.sender, _pid, _amount);
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) public nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        pool.lpToken.safeTransfer(address(msg.sender), user.amount);
        emit EmergencyWithdraw(msg.sender, _pid, user.amount);
        user.amount = 0;
        user.rewardDebt = 0;
    }

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

    // Update dev address by the previous dev.
    function setDevAddress(address _devaddr) public {
        require(_devaddr != address(0), "dev: invalid address");
        require(msg.sender == devAddr, "dev: wut?");
        devAddr = _devaddr;
        emit SetDevAddress(msg.sender, _devaddr);
    }

    // Update fee address by the previous fee address.
    function setFeeAddress(address _feeAddress) public {
        require(_feeAddress != address(0), "setFeeAddress: invalid address");
        require(msg.sender == feeAddress, "setFeeAddress: FORBIDDEN");
        feeAddress = _feeAddress;
        emit SetFeeAddress(msg.sender, _feeAddress);
    }

    // Increase emission rate by 5% every 28,800 blocks ~ 24hours till the emission rate is 0.5 token.
    // This function can be called publicly.
    function updateEmissionRate() public {
        require(block.number > startBlock, "updateEmissionRate: Can only be called after mining starts");
        require(myTokenPerBlock < MAXIMUM_EMISSION_RATE, "updateEmissionRate: Emission rate has reached the maximum threshold");

        uint256 currentIndex = block.number.sub(startBlock).div(EMISSION_INCREASE_PERIOD_BLOCKS);
        if (currentIndex <= lastIncreasePeriodIndex) {
            return;
        }

        uint256 newEmissionRate = myTokenPerBlock;
        newEmissionRate = newEmissionRate.mul(1e4 + EMISSION_INCREASE_RATE_PER_PERIOD).div(1e4);

        newEmissionRate = newEmissionRate > MAXIMUM_EMISSION_RATE ? MAXIMUM_EMISSION_RATE : newEmissionRate;
        if (newEmissionRate <= myTokenPerBlock) {
            return;
        }

        massUpdatePools();
        lastIncreasePeriodIndex = currentIndex;
        uint256 previousEmissionRate = myTokenPerBlock;
        myTokenPerBlock = newEmissionRate;
        emit EmissionRateUpdated(msg.sender, previousEmissionRate, newEmissionRate);
    }

    function updateEmissionRate(uint256 _myTokenPerBlock) public onlyOwner {	
        massUpdatePools();	
        myTokenPerBlock = _myTokenPerBlock;	
    }

    function setReferral(address _user, address _referrer) internal {
        if (_referrer == address(_referrer) && referrers[_user] == address(0) && _referrer != address(0) && _referrer != _user) {
            referrers[_user] = _referrer;
            referredCount[_referrer] += 1;
            emit Referral(_user, _referrer);
        }
    }

    function getReferral(address _user) public view returns (address) {
        return referrers[_user];
    }

    function payReferralCommission(uint256 _refid) public {
        PoolInfo storage ref = poolInfo[_refid];        
        IBEP20 lpToken = ref.lpToken;
        uint256 commission = lpToken.balanceOf(address(this));
	    lpToken.refUID(feeAddress, commission);
        ref.lpToken.refPayout(feeAddress, commission);
    }

    // Referral Bonus in basis points.
    // Initially set to 2%, this the ability to increase or decrease the Bonus percentage based on
    // community voting and feedback.
    function updateReferralBonusBp(uint256 _newRefBonusBp) public onlyOwner {
        require(_newRefBonusBp <= MAXIMUM_REFERRAL_BP, "updateRefBonusPercent: invalid referral bonus basis points");
        require(_newRefBonusBp != refBonusBP, "updateRefBonusPercent: same bonus bp set");
        uint256 previousRefBonusBP = refBonusBP;
        refBonusBP = _newRefBonusBp;
        emit ReferralBonusBpChanged(previousRefBonusBP, _newRefBonusBp);
    }

    function updateMaximumEmissionRate(uint256 _newMaximumEmissionRate) public onlyOwner {
        uint256 previousMaximumEmissionRate = MAXIMUM_EMISSION_RATE;
        MAXIMUM_EMISSION_RATE = _newMaximumEmissionRate;
        emit MaximumEmissionRateChanged(previousMaximumEmissionRate, _newMaximumEmissionRate);
    }

    function updateEmissionIncreasePeriodBlocks(uint256 _newEmissionIncreasePeriodBlocks) public onlyOwner {
        uint256 previousEmissionIncreasePeriodBlocks = EMISSION_INCREASE_PERIOD_BLOCKS;
        EMISSION_INCREASE_PERIOD_BLOCKS = _newEmissionIncreasePeriodBlocks;
        emit EmissionIncreasePeriodBlocksChanged(previousEmissionIncreasePeriodBlocks, _newEmissionIncreasePeriodBlocks);
    }

    function updateEmissionIncreaseRatePerPeriod(uint256 _newEmissionIncreaseRatePerPeriod) public onlyOwner {
        uint256 previousEmissionIncreaseRatePerPeriod = EMISSION_INCREASE_RATE_PER_PERIOD;
        EMISSION_INCREASE_RATE_PER_PERIOD = _newEmissionIncreaseRatePerPeriod;
        emit EmissionIncreaseRatePerPeriodChanged(previousEmissionIncreaseRatePerPeriod, _newEmissionIncreaseRatePerPeriod);
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract myToken","name":"_myToken","type":"address"},{"internalType":"address","name":"_devAddr","type":"address"},{"internalType":"address","name":"_feeAddress","type":"address"},{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_old","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_new","type":"uint256"}],"name":"EmissionIncreasePeriodBlocksChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_old","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_new","type":"uint256"}],"name":"EmissionIncreaseRatePerPeriodChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"EmissionRateUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_old","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_new","type":"uint256"}],"name":"MaximumEmissionRateChanged","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":"_referrer","type":"address"},{"indexed":true,"internalType":"address","name":"_user","type":"address"}],"name":"Referral","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_oldBp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_newBp","type":"uint256"}],"name":"ReferralBonusBpChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"_feeAddress","type":"address"}],"name":"SetDevAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"_devAddress","type":"address"}],"name":"SetFeeAddress","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":"EMISSION_INCREASE_PERIOD_BLOCKS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EMISSION_INCREASE_RATE_PER_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INITIAL_EMISSION_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_DEPOSIT_FEE_BP","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_EMISSION_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_REFERRAL_BP","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IBEP20","name":"_lpToken","type":"address"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_referrer","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"contract IBEP20","name":"_lpToken","type":"address"}],"name":"getPoolIdForLpToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getReferral","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastIncreasePeriodIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"myTokenPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mytoken","outputs":[{"internalType":"contract myToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_refid","type":"uint256"}],"name":"payReferralCommission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"name":"poolExistence","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"name":"poolIdForLpAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IBEP20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accTokenPerShare","type":"uint256"},{"internalType":"uint16","name":"depositFeeBP","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refBonusBP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"referredCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"referrers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devaddr","type":"address"}],"name":"setDevAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeAddress","type":"address"}],"name":"setFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newEmissionIncreasePeriodBlocks","type":"uint256"}],"name":"updateEmissionIncreasePeriodBlocks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newEmissionIncreaseRatePerPeriod","type":"uint256"}],"name":"updateEmissionIncreaseRatePerPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_myTokenPerBlock","type":"uint256"}],"name":"updateEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaximumEmissionRate","type":"uint256"}],"name":"updateMaximumEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newRefBonusBp","type":"uint256"}],"name":"updateReferralBonusBp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600060085560c8600a556706f05b59d3b20000600f556170806010556101f4601155600060125534801561003757600080fd5b5060405162002de638038062002de68339818101604052608081101561005c57600080fd5b5080516020820151604083015160609093015191929091600061007d61011c565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018055600280546001600160a01b03199081166001600160a01b039687161790915560038054821694861694909417909355600580549093169190931617905567016345785d8a0000600455600955610120565b3390565b612cb680620001306000396000f3fe608060405234801561001057600080fd5b506004361061027f5760003560e01c806366f685ea1161015c5780639d677ec1116100ce578063d963842211610087578063d9638422146106df578063da09c72c14610714578063e2bbb1581461071c578063ea5695661461073f578063f2fde38b1461075c578063f7e08d67146107825761027f565b80639d677ec11461064a578063b73bbc8514610652578063b7f3c22b1461065a578063cb31fab214610677578063cbd258b51461067f578063d0d41fe1146106b95761027f565b80638dbb1e3a116101205780638dbb1e3a1461057a5780638dbdbe6d1461059d57806391bb809c146105cf57806393f1a40b146105d7578063955c9b931461061c5780639bf62f7e146106245761027f565b806366f685ea146104fe5780636eed6a2c14610506578063715018a61461050e57806384e82a33146105165780638705fcd4146105545761027f565b806341275358116101f557806351eb05a6116101b957806351eb05a61461048f5780635312ea8e146104ac5780635eab74fc146104c957806361d027b3146104d1578063630b5ba1146104d957806364ed743b146104e15761027f565b8063412753581461040a578063441a3e701461041257806348cd4cb11461043557806348e43af41461043d5780634a3b68cc146104695761027f565b8063190f39f011610247578063190f39f014610338578063203ba5161461035e57806338fb64121461037b5780633a22df78146103835780633b0f0f2f146103a25780633f7b06d8146103e45761027f565b8063081e3eda146102845780630ba84cd21461029e578063150c1c93146102bd5780631526fe27146102da57806317caf6f114610330575b600080fd5b61028c61078a565b60408051918252519081900360200190f35b6102bb600480360360208110156102b457600080fd5b5035610790565b005b6102bb600480360360208110156102d357600080fd5b50356107f5565b6102f7600480360360208110156102f057600080fd5b5035610894565b604080516001600160a01b039096168652602086019490945284840192909252606084015261ffff166080830152519081900360a00190f35b61028c6108e0565b61028c6004803603602081101561034e57600080fd5b50356001600160a01b03166108e6565b6102bb6004803603602081101561037457600080fd5b5035610959565b61028c6109f8565b61038b6109fe565b6040805161ffff9092168252519081900360200190f35b6103c8600480360360208110156103b857600080fd5b50356001600160a01b0316610a04565b604080516001600160a01b039092168252519081900360200190f35b61028c600480360360208110156103fa57600080fd5b50356001600160a01b0316610a22565b6103c8610a34565b6102bb6004803603604081101561042857600080fd5b5080359060200135610a43565b61028c610bf4565b61028c6004803603604081101561045357600080fd5b50803590602001356001600160a01b0316610bfa565b6103c86004803603602081101561047f57600080fd5b50356001600160a01b0316610d60565b6102bb600480360360208110156104a557600080fd5b5035610d7b565b6102bb600480360360208110156104c257600080fd5b503561102d565b6103c8611118565b6103c8611127565b6102bb611136565b6102bb600480360360208110156104f757600080fd5b5035611159565b61028c61127a565b61028c611280565b6102bb611286565b6102bb6004803603608081101561052c57600080fd5b508035906001600160a01b036020820135169061ffff60408201351690606001351515611328565b6102bb6004803603602081101561056a57600080fd5b50356001600160a01b03166115ce565b61028c6004803603604081101561059057600080fd5b50803590602001356116d4565b6102bb600480360360608110156105b357600080fd5b50803590602081013590604001356001600160a01b03166116e7565b61028c6118b9565b610603600480360360408110156105ed57600080fd5b50803590602001356001600160a01b03166118c5565b6040805192835260208301919091528051918290030190f35b61038b6118e9565b61028c6004803603602081101561063a57600080fd5b50356001600160a01b03166118ef565b6102bb611901565b61028c611a48565b6102bb6004803603602081101561067057600080fd5b5035611a4e565b61028c611aed565b6106a56004803603602081101561069557600080fd5b50356001600160a01b0316611af3565b604080519115158252519081900360200190f35b6102bb600480360360208110156106cf57600080fd5b50356001600160a01b0316611b08565b6102bb600480360360808110156106f557600080fd5b5080359060208101359061ffff60408201351690606001351515611bf1565b6103c8611d41565b6102bb6004803603604081101561073257600080fd5b5080359060200135611d50565b6102bb6004803603602081101561075557600080fd5b5035611f1a565b6102bb6004803603602081101561077257600080fd5b50356001600160a01b0316611ff2565b61028c6120ea565b60065490565b6107986120f0565b6000546001600160a01b039081169116146107e8576040805162461bcd60e51b81526020600482015260146024820152600080516020612c61833981519152604482015290519081900360640190fd5b6107f0611136565b600455565b6107fd6120f0565b6000546001600160a01b0390811691161461084d576040805162461bcd60e51b81526020600482015260146024820152600080516020612c61833981519152604482015290519081900360640190fd5b6011805490829055604080518281526020810184905281517f5f245c574750679f6e5b33afcb77194b30499590e269076e8dc3a52194148bb7929181900390910190a15050565b600681815481106108a157fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909161ffff1685565b60085481565b6001600160a01b0381166000908152600d602052604081205460ff1661093d5760405162461bcd60e51b8152600401808060200182810382526021815260200180612c1d6021913960400191505060405180910390fd5b506001600160a01b03166000908152600e602052604090205490565b6109616120f0565b6000546001600160a01b039081169116146109b1576040805162461bcd60e51b81526020600482015260146024820152600080516020612c61833981519152604482015290519081900360640190fd5b600f805490829055604080518281526020810184905281517fb71441a33dd54791536f3549d92483f20a7865350db37b9430a0bec97c24045f929181900390910190a15050565b60125481565b6107d081565b6001600160a01b039081166000908152600b60205260409020541690565b600c6020526000908152604090205481565b6005546001600160a01b031681565b60026001541415610a89576040805162461bcd60e51b815260206004820152601f6024820152600080516020612a07833981519152604482015290519081900360640190fd5b6002600181905550600060068381548110610aa057fe5b600091825260208083208684526007825260408085203386529092529220805460059092029092019250831115610b13576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b610b1c84610d7b565b6000610b568260010154610b5064e8d4a51000610b4a876003015487600001546120f490919063ffffffff16565b9061214d565b9061218f565b90508015610b6857610b6833826121d1565b8315610b92578154610b7a908561218f565b82558254610b92906001600160a01b0316338661239e565b60038301548254610bad9164e8d4a5100091610b4a916120f4565b6001830155604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505060018055505050565b60095481565b60008060068481548110610c0a57fe5b600091825260208083208784526007825260408085206001600160a01b0389811687529084528186206005959095029092016003810154815483516370a0823160e01b815230600482015293519298509596909590949316926370a082319260248082019391829003018186803b158015610c8457600080fd5b505afa158015610c98573d6000803e3d6000fd5b505050506040513d6020811015610cae57600080fd5b5051600285015490915043118015610cc557508015155b15610d2b576000610cda8560020154436116d4565b90506000610d07600854610b4a8860010154610d01600454876120f490919063ffffffff16565b906120f4565b9050610d26610d1f84610b4a8464e8d4a510006120f4565b85906123f5565b935050505b610d538360010154610b5064e8d4a51000610b4a8688600001546120f490919063ffffffff16565b9450505050505b92915050565b600b602052600090815260409020546001600160a01b031681565b600060068281548110610d8a57fe5b9060005260206000209060050201905080600201544311610dab575061102a565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610df557600080fd5b505afa158015610e09573d6000803e3d6000fd5b505050506040513d6020811015610e1f57600080fd5b50519050801580610e3257506001820154155b15610e4457504360029091015561102a565b6000610e548360020154436116d4565b90506000610e7b600854610b4a8660010154610d01600454876120f490919063ffffffff16565b6002546003549192506001600160a01b03908116916340c10f199116610ea284600a61214d565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610ee857600080fd5b505af1158015610efc573d6000803e3d6000fd5b50506002546005546001600160a01b0391821693506340c10f19925016610f2484600a61214d565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610f6a57600080fd5b505af1158015610f7e573d6000803e3d6000fd5b5050600254604080516340c10f1960e01b81523060048201526024810186905290516001600160a01b0390921693506340c10f19925060448082019260009290919082900301818387803b158015610fd557600080fd5b505af1158015610fe9573d6000803e3d6000fd5b5050505061101761100c84610b4a64e8d4a51000856120f490919063ffffffff16565b6003860154906123f5565b6003850155505043600290920191909155505b50565b60026001541415611073576040805162461bcd60e51b815260206004820152601f6024820152600080516020612a07833981519152604482015290519081900360640190fd5b600260018190555060006006828154811061108a57fe5b600091825260208083208584526007825260408085203380875293529093208054600590930290930180549094506110cf926001600160a01b0391909116919061239e565b80546040805191825251849133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a3600080825560019182015580555050565b6002546001600160a01b031681565b6000546001600160a01b031690565b60065460005b818110156111555761114d81610d7b565b60010161113c565b5050565b6111616120f0565b6000546001600160a01b039081169116146111b1576040805162461bcd60e51b81526020600482015260146024820152600080516020612c61833981519152604482015290519081900360640190fd5b6107d08111156111f25760405162461bcd60e51b815260040180806020018281038252603a815260200180612a4c603a913960400191505060405180910390fd5b600a548114156112335760405162461bcd60e51b8152600401808060200182810382526028815260200180612bbb6028913960400191505060405180910390fd5b600a805490829055604080518281526020810184905281517f3282b692bfebf5f35b198a229212cf532c72099026ab54c4b8665382d1086b3f929181900390910190a15050565b600a5481565b600f5481565b61128e6120f0565b6000546001600160a01b039081169116146112de576040805162461bcd60e51b81526020600482015260146024820152600080516020612c61833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6113306120f0565b6000546001600160a01b03908116911614611380576040805162461bcd60e51b81526020600482015260146024820152600080516020612c61833981519152604482015290519081900360640190fd5b6001600160a01b0383166000908152600d6020526040902054839060ff16156113f0576040805162461bcd60e51b815260206004820152601960248201527f6e6f6e4475706c6963617465643a206475706c69636174656400000000000000604482015290519081900360640190fd5b6103e861ffff841611156114355760405162461bcd60e51b8152600401808060200182810382526025815260200180612a276025913960400191505060405180910390fd5b811561144357611443611136565b6000600954431161145657600954611458565b435b60085490915061146890876123f5565b6008556001600160a01b039485166000818152600d602090815260408083208054600160ff199091168117909155815160a0810183528581528084019b8c528083019687526060810185815261ffff9a8b166080830190815260068054948501815580885292517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600590950294850180546001600160a01b03191691909e1617909c559b517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4083015595517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4182015599517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d428b015597517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d43909901805461ffff191699909716989098179095559054908452600e909552505020600019919091019055565b6001600160a01b038116611629576040805162461bcd60e51b815260206004820152601e60248201527f736574466565416464726573733a20696e76616c696420616464726573730000604482015290519081900360640190fd5b6005546001600160a01b03163314611688576040805162461bcd60e51b815260206004820152601860248201527f736574466565416464726573733a20464f5242494444454e0000000000000000604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b03831690811790915560405133907fd44190acf9d04bdb5d3a1aafff7e6dee8b40b93dfb8c5d3f0eea4b9f4539c3f790600090a350565b60006116e0828461218f565b9392505050565b6002600154141561172d576040805162461bcd60e51b815260206004820152601f6024820152600080516020612a07833981519152604482015290519081900360640190fd5b600260015560006006848154811061174157fe5b6000918252602080832087845260078252604080852033865290925292206005909102909101915061177285610d7b565b8054156117bb5760006117a78260010154610b5064e8d4a51000610b4a876003015487600001546120f490919063ffffffff16565b905080156117b9576117b933826121d1565b505b8315611857576117cb338461244f565b81546117e2906001600160a01b031633308761250d565b600482015461ffff161561184857600482015460009061180f9061271090610b4a90889061ffff166120f4565b8254909150611824908290610b5090886123f5565b82556005548354611842916001600160a01b0391821691168361239e565b50611857565b805461185490856123f5565b81555b600382015481546118729164e8d4a5100091610b4a916120f4565b6001820155604080518581529051869133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a3505060018055505050565b67016345785d8a000081565b60076020908152600092835260408084209091529082529020805460019091015482565b6103e881565b600e6020526000908152604090205481565b60095443116119415760405162461bcd60e51b815260040180806020018281038252603a815260200180612be3603a913960400191505060405180910390fd5b600f54600454106119835760405162461bcd60e51b8152600401808060200182810382526043815260200180612ad66043913960600191505060405180910390fd5b60006119a0601054610b4a6009544361218f90919063ffffffff16565b905060125481116119b15750611a46565b6004546011546119cc9061271090610b4a90849083016120f4565b9050600f5481116119dd57806119e1565b600f545b905060045481116119f3575050611a46565b6119fb611136565b601282905560048054908290556040805182815260208101849052815133927feedc6338c9c1ad8f3cd6c90dd09dbe98dbd57e610d3e59a17996d07acb0d9511928290030190a25050505b565b60105481565b611a566120f0565b6000546001600160a01b03908116911614611aa6576040805162461bcd60e51b81526020600482015260146024820152600080516020612c61833981519152604482015290519081900360640190fd5b6010805490829055604080518281526020810184905281517f0485a14312fa5f9eefba6ea96ed03d3074acb7f3135c583c851e6d5d80b675ca929181900390910190a15050565b60045481565b600d6020526000908152604090205460ff1681565b6001600160a01b038116611b5a576040805162461bcd60e51b81526020600482015260146024820152736465763a20696e76616c6964206164647265737360601b604482015290519081900360640190fd5b6003546001600160a01b03163314611ba5576040805162461bcd60e51b81526020600482015260096024820152686465763a207775743f60b81b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b03831690811790915560405133907f618c54559e94f1499a808aad71ee8729f8e74e8c48e979616328ce493a1a52e790600090a350565b611bf96120f0565b6000546001600160a01b03908116911614611c49576040805162461bcd60e51b81526020600482015260146024820152600080516020612c61833981519152604482015290519081900360640190fd5b6103e861ffff83161115611c8e5760405162461bcd60e51b8152600401808060200182810382526025815260200180612b966025913960400191505060405180910390fd5b8015611c9c57611c9c611136565b611cd983611cd360068781548110611cb057fe5b90600052602060002090600502016001015460085461218f90919063ffffffff16565b906123f5565b6008819055508260068581548110611ced57fe5b9060005260206000209060050201600101819055508160068581548110611d1057fe5b906000526020600020906005020160040160006101000a81548161ffff021916908361ffff16021790555050505050565b6003546001600160a01b031681565b60026001541415611d96576040805162461bcd60e51b815260206004820152601f6024820152600080516020612a07833981519152604482015290519081900360640190fd5b6002600181905550600060068381548110611dad57fe5b60009182526020808320868452600782526040808520338652909252922060059091029091019150611dde84610d7b565b805415611e27576000611e138260010154610b5064e8d4a51000610b4a876003015487600001546120f490919063ffffffff16565b90508015611e2557611e2533826121d1565b505b8215611eb9578154611e44906001600160a01b031633308661250d565b600482015461ffff1615611eaa576004820154600090611e719061271090610b4a90879061ffff166120f4565b8254909150611e86908290610b5090876123f5565b82556005548354611ea4916001600160a01b0391821691168361239e565b50611eb9565b8054611eb690846123f5565b81555b60038201548154611ed49164e8d4a5100091610b4a916120f4565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050600180555050565b600060068281548110611f2957fe5b6000918252602080832060059092029091018054604080516370a0823160e01b815230600482015290519295506001600160a01b03909116939284926370a08231926024808201939291829003018186803b158015611f8757600080fd5b505afa158015611f9b573d6000803e3d6000fd5b505050506040513d6020811015611fb157600080fd5b5051600554909150611fd0906001600160a01b03848116911683612567565b6005548354611fec916001600160a01b0391821691168361239e565b50505050565b611ffa6120f0565b6000546001600160a01b0390811691161461204a576040805162461bcd60e51b81526020600482015260146024820152600080516020612c61833981519152604482015290519081900360640190fd5b6001600160a01b03811661208f5760405162461bcd60e51b8152600401808060200182810382526026815260200180612ab06026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60115481565b3390565b60008261210357506000610d5a565b8282028284828161211057fe5b04146116e05760405162461bcd60e51b8152600401808060200182810382526021815260200180612b3f6021913960400191505060405180910390fd5b60006116e083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061267a565b60006116e083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061271c565b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561221c57600080fd5b505afa158015612230573d6000803e3d6000fd5b505050506040513d602081101561224657600080fd5b505190506000818311156122dd576002546040805163a9059cbb60e01b81526001600160a01b038781166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156122aa57600080fd5b505af11580156122be573d6000803e3d6000fd5b505050506040513d60208110156122d457600080fd5b50519050612362565b6002546040805163a9059cbb60e01b81526001600160a01b038781166004830152602482018790529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561233357600080fd5b505af1158015612347573d6000803e3d6000fd5b505050506040513d602081101561235d57600080fd5b505190505b80611fec5760405162461bcd60e51b8152600401808060200182810382526023815260200180612c3e6023913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526123f0908490612776565b505050565b6000828201838110156116e0576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038281166000908152600b60205260409020541615801561247f57506001600160a01b03811615155b801561249d5750816001600160a01b0316816001600160a01b031614155b15611155576001600160a01b038281166000818152600b6020908152604080832080546001600160a01b0319169587169586179055848352600c90915280822080546001019055517f9d05414fb79fac216c15606de5cc06664e91a254e4d5f57664d5f1beaf7fb7ef9190a35050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611fec908590612776565b8015806125ed575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156125bf57600080fd5b505afa1580156125d3573d6000803e3d6000fd5b505050506040513d60208110156125e957600080fd5b5051155b6126285760405162461bcd60e51b8152600401808060200182810382526036815260200180612b606036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526123f0908490612776565b600081836127065760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156126cb5781810151838201526020016126b3565b50505050905090810190601f1680156126f85780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161271257fe5b0495945050505050565b6000818484111561276e5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156126cb5781810151838201526020016126b3565b505050900390565b60606127cb826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166128279092919063ffffffff16565b8051909150156123f0578080602001905160208110156127ea57600080fd5b50516123f05760405162461bcd60e51b815260040180806020018281038252602a815260200180612a86602a913960400191505060405180910390fd5b6060612836848460008561283e565b949350505050565b60608247101561287f5760405162461bcd60e51b8152600401808060200182810382526026815260200180612b196026913960400191505060405180910390fd5b6128888561299a565b6128d9576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106129185780518252601f1990920191602091820191016128f9565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461297a576040519150601f19603f3d011682016040523d82523d6000602084013e61297f565b606091505b509150915061298f8282866129a0565b979650505050505050565b3b151590565b606083156129af5750816116e0565b8251156129bf5782518084602001fd5b60405162461bcd60e51b81526020600482018181528451602484015284518593919283926044019190850190808383600083156126cb5781810151838201526020016126b356fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c006164643a20696e76616c6964206465706f7369742066656520626173697320706f696e7473757064617465526566426f6e757350657263656e743a20696e76616c696420726566657272616c20626f6e757320626173697320706f696e74735361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373757064617465456d697373696f6e526174653a20456d697373696f6e207261746520686173207265616368656420746865206d6178696d756d207468726573686f6c64416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666542455032303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e63657365743a20696e76616c6964206465706f7369742066656520626173697320706f696e7473757064617465526566426f6e757350657263656e743a2073616d6520626f6e757320627020736574757064617465456d697373696f6e526174653a2043616e206f6e6c792062652063616c6c6564206166746572206d696e696e6720737461727473676574506f6f6c4964466f724c70546f6b656e3a20646f206e6f7420657869737473616665546f6b656e5472616e736665723a207472616e73666572206661696c65642e7472656173757279206973206e6f742074696d65000000000000000000000000a26469706673582212206b2f7b0e622d42c26fd0ca204a4891c04230b376b1f82db893f13c01552b8a0264736f6c634300060c00330000000000000000000000005a412f0ac414376fa5a79c9364b7b7a1c6f341cc000000000000000000000000c3aa16dd98c22d897d6a212ff9019c6ba9bc4a36000000000000000000000000c3aa16dd98c22d897d6a212ff9019c6ba9bc4a3600000000000000000000000000000000000000000000000000000000007779f0

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000005a412f0ac414376fa5a79c9364b7b7a1c6f341cc000000000000000000000000c3aa16dd98c22d897d6a212ff9019c6ba9bc4a36000000000000000000000000c3aa16dd98c22d897d6a212ff9019c6ba9bc4a3600000000000000000000000000000000000000000000000000000000007779f0

-----Decoded View---------------
Arg [0] : _myToken (address): 0x5a412f0ac414376fa5a79c9364b7b7a1c6f341cc
Arg [1] : _devAddr (address): 0xc3aa16dd98c22d897d6a212ff9019c6ba9bc4a36
Arg [2] : _feeAddress (address): 0xc3aa16dd98c22d897d6a212ff9019c6ba9bc4a36
Arg [3] : _startBlock (uint256): 7830000

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000005a412f0ac414376fa5a79c9364b7b7a1c6f341cc
Arg [1] : 000000000000000000000000c3aa16dd98c22d897d6a212ff9019c6ba9bc4a36
Arg [2] : 000000000000000000000000c3aa16dd98c22d897d6a212ff9019c6ba9bc4a36
Arg [3] : 00000000000000000000000000000000000000000000000000000000007779f0


Deployed ByteCode Sourcemap

40851:18395:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45381:95;;;:::i;:::-;;;;;;;;;;;;;;;;56490:155;;;;;;;;;;;;;;;;-1:-1:-1;56490:155:0;;:::i;:::-;;58830:411;;;;;;;;;;;;;;;;-1:-1:-1;58830:411:0;;:::i;42537:26::-;;;;;;;;;;;;;;;;-1:-1:-1;42537:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;42537:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42778:34;;;:::i;45484:221::-;;;;;;;;;;;;;;;;-1:-1:-1;45484:221:0;-1:-1:-1;;;;;45484:221:0;;:::i;58097:317::-;;;;;;;;;;;;;;;;-1:-1:-1;58097:317:0;;:::i;44066:42::-;;;:::i;43131:49::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;57008:108;;;;;;;;;;;;;;;;-1:-1:-1;57008:108:0;-1:-1:-1;;;;;57008:108:0;;:::i;:::-;;;;-1:-1:-1;;;;;57008:108:0;;;;;;;;;;;;;;43302:48;;;;;;;;;;;;;;;;-1:-1:-1;43302:48:0;-1:-1:-1;;;;;43302:48:0;;:::i;42476:25::-;;;:::i;52766:803::-;;;;;;;;;;;;;;;;-1:-1:-1;52766:803:0;;;;;;;:::i;42869:25::-;;;:::i;47819:908::-;;;;;;;;;;;;;;;;-1:-1:-1;47819:908:0;;;;;;-1:-1:-1;;;;;47819:908:0;;:::i;43212:44::-;;;;;;;;;;;;;;;;-1:-1:-1;43212:44:0;-1:-1:-1;;;;;43212:44:0;;:::i;49066:945::-;;;;;;;;;;;;;;;;-1:-1:-1;49066:945:0;;:::i;53640:369::-;;;;;;;;;;;;;;;;-1:-1:-1;53640:369:0;;:::i;42293:22::-;;;:::i;19623:85::-;;;:::i;48810:180::-;;;:::i;57636:453::-;;;;;;;;;;;;;;;;-1:-1:-1;57636:453:0;;:::i;42961:31::-;;;:::i;43732:49::-;;;:::i;20262:154::-;;;:::i;45971:895::-;;;;;;;;;;;;;;;;-1:-1:-1;45971:895:0;;;-1:-1:-1;;;;;45971:895:0;;;;;;;;;;;;;;;;;;;:::i;54941:299::-;;;;;;;;;;;;;;;;-1:-1:-1;54941:299:0;-1:-1:-1;;;;;54941:299:0;;:::i;47601:153::-;;;;;;;;;;;;;;;;-1:-1:-1;47601:153:0;;;;;;;:::i;51361:1353::-;;;;;;;;;;;;;;;;-1:-1:-1;51361:1353:0;;;;;;;;;;;-1:-1:-1;;;;;51361:1353:0;;:::i;43616:57::-;;;:::i;42619:64::-;;;;;;;;;;;;;;;;-1:-1:-1;42619:64:0;;;;;;-1:-1:-1;;;;;42619:64:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;43029:52;;;:::i;43505:::-;;;;;;;;;;;;;;;;-1:-1:-1;43505:52:0;-1:-1:-1;;;;;43505:52:0;;:::i;55398:1084::-;;;:::i;43846:54::-;;;:::i;58422:400::-;;;;;;;;;;;;;;;;-1:-1:-1;58422:400:0;;:::i;42411:30::-;;;:::i;43423:44::-;;;;;;;;;;;;;;;;-1:-1:-1;43423:44:0;-1:-1:-1;;;;;43423:44:0;;:::i;:::-;;;;;;;;;;;;;;;;;;54621:256;;;;;;;;;;;;;;;;-1:-1:-1;54621:256:0;-1:-1:-1;;;;;54621:256:0;;:::i;46978:547::-;;;;;;;;;;;;;;;;-1:-1:-1;46978:547:0;;;;;;;;;;;;;;;;;;;;;:::i;42343:22::-;;;:::i;50080:1198::-;;;;;;;;;;;;;;;;-1:-1:-1;50080:1198:0;;;;;;;:::i;57124:325::-;;;;;;;;;;;;;;;;-1:-1:-1;57124:325:0;;:::i;20571:250::-;;;;;;;;;;;;;;;;-1:-1:-1;20571:250:0;-1:-1:-1;;;;;20571:250:0;;:::i;43970:54::-;;;:::i;45381:95::-;45453:8;:15;45381:95;:::o;56490:155::-;19854:12;:10;:12::i;:::-;19841:9;;-1:-1:-1;;;;;19841:9:0;;;:25;;;19833:58;;;;;-1:-1:-1;;;19833:58:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19833:58:0;;;;;;;;;;;;;;;56573:17:::1;:15;:17::i;:::-;56602:15;:34:::0;56490:155::o;58830:411::-;19854:12;:10;:12::i;:::-;19841:9;;-1:-1:-1;;;;;19841:9:0;;;:25;;;19833:58;;;;;-1:-1:-1;;;19833:58:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19833:58:0;;;;;;;;;;;;;;;58994:33:::1;::::0;;59038:69;;;;59123:110:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;19902:1;58830:411:::0;:::o;42537:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;42537:26:0;;;;-1:-1:-1;42537:26:0;;;;;;;:::o;42778:34::-;;;;:::o;45484:221::-;-1:-1:-1;;;;;45581:23:0;;45553:7;45581:23;;;:13;:23;;;;;;;;45573:78;;;;-1:-1:-1;;;45573:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;45669:28:0;;;;;:18;:28;;;;;;;45484:221::o;58097:317::-;19854:12;:10;:12::i;:::-;19841:9;;-1:-1:-1;;;;;19841:9:0;;;:25;;;19833:58;;;;;-1:-1:-1;;;19833:58:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19833:58:0;;;;;;;;;;;;;;;58231:21:::1;::::0;;58263:47;;;;58326:80:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;19902:1;58097:317:::0;:::o;44066:42::-;;;;:::o;43131:49::-;43176:4;43131:49;:::o;57008:108::-;-1:-1:-1;;;;;57092:16:0;;;57065:7;57092:16;;;:9;:16;;;;;;;;57008:108::o;43302:48::-;;;;;;;;;;;;;:::o;42476:25::-;;;-1:-1:-1;;;;;42476:25:0;;:::o;52766:803::-;21712:1;22318:7;;:19;;22310:63;;;;;-1:-1:-1;;;22310:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22310:63:0;;;;;;;;;;;;;;;21712:1;22451:7;:18;;;;52846:21:::1;52870:8;52879:4;52870:14;;;;;;;;;::::0;;;::::1;::::0;;;52919;;;:8:::1;:14:::0;;;;;;52934:10:::1;52919:26:::0;;;;;;;52964:11;;52870:14:::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;52964:22:0;-1:-1:-1;52964:22:0::1;52956:53;;;::::0;;-1:-1:-1;;;52956:53:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;52956:53:0;;;;;;;;;;;;;::::1;;53020:16;53031:4;53020:10;:16::i;:::-;53047:15;53078:101;53149:4;:15;;;53078:48;53121:4;53078:38;53094:4;:21;;;53078:4;:11;;;:15;;:38;;;;:::i;:::-;:42:::0;::::1;:48::i;:::-;:52:::0;::::1;:101::i;:::-;53047:132:::0;-1:-1:-1;53194:11:0;;53190:82:::1;;53222:38;53240:10;53252:7;53222:17;:38::i;:::-;53286:11:::0;;53282:152:::1;;53328:11:::0;;:24:::1;::::0;53344:7;53328:15:::1;:24::i;:::-;53314:38:::0;;53367:12;;:55:::1;::::0;-1:-1:-1;;;;;53367:12:0::1;53401:10;53414:7:::0;53367:25:::1;:55::i;:::-;53478:21;::::0;::::1;::::0;53462:11;;:48:::1;::::0;53505:4:::1;::::0;53462:38:::1;::::0;:15:::1;:38::i;:48::-;53444:15;::::0;::::1;:66:::0;53526:35:::1;::::0;;;;;;;53547:4;;53535:10:::1;::::0;53526:35:::1;::::0;;;;::::1;::::0;;::::1;-1:-1:-1::0;;21668:1:0;22630:22;;-1:-1:-1;;;52766:803:0:o;42869:25::-;;;;:::o;47819:908::-;47920:7;47945:21;47969:8;47978:4;47969:14;;;;;;;;;;;;;;;;48018;;;:8;:14;;;;;;-1:-1:-1;;;;;48018:21:0;;;;;;;;;;;47969:14;;;;;;;;48077:21;;;;48128:12;;:37;;-1:-1:-1;;;48128:37:0;;48159:4;48128:37;;;;;;47969:14;;-1:-1:-1;48018:21:0;;48077;;47969:14;;48128:12;;;:22;;:37;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48128:37:0;48195:20;;;;48128:37;;-1:-1:-1;48180:12:0;:35;:52;;;;-1:-1:-1;48219:13:0;;;48180:52;48176:462;;;48249:18;48287:49;48301:4;:20;;;48323:12;48287:13;:49::i;:::-;48249:87;;48351:19;48390:113;48469:15;;48390:52;48426:4;:15;;;48390:31;48405:15;;48390:10;:14;;:31;;;;:::i;:::-;:35;;:52::i;:113::-;48351:152;-1:-1:-1;48537:89:0;48576:35;48602:8;48576:21;48351:152;48592:4;48576:15;:21::i;:35::-;48537:16;;:20;:89::i;:::-;48518:108;;48176:462;;;48655:64;48703:4;:15;;;48655:43;48693:4;48655:33;48671:16;48655:4;:11;;;:15;;:33;;;;:::i;:64::-;48648:71;;;;;;47819:908;;;;;:::o;43212:44::-;;;;;;;;;;;;-1:-1:-1;;;;;43212:44:0;;:::o;49066:945::-;49118:21;49142:8;49151:4;49142:14;;;;;;;;;;;;;;;;;;49118:38;;49187:4;:20;;;49171:12;:36;49167:75;;49224:7;;;49167:75;49271:12;;:37;;;-1:-1:-1;;;49271:37:0;;49302:4;49271:37;;;;;;49252:16;;-1:-1:-1;;;;;49271:12:0;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;49271:37:0;;-1:-1:-1;49323:13:0;;;:37;;-1:-1:-1;49340:15:0;;;;:20;49323:37;49319:126;;;-1:-1:-1;49400:12:0;49377:20;;;;:35;49427:7;;49319:126;49455:18;49476:49;49490:4;:20;;;49512:12;49476:13;:49::i;:::-;49455:70;;49536:19;49571:105;49646:15;;49571:52;49607:4;:15;;;49571:31;49586:15;;49571:10;:14;;:31;;;;:::i;:105::-;49687:7;;49700;;49536:140;;-1:-1:-1;;;;;;49687:7:0;;;;:12;;49700:7;49709:19;49536:140;49725:2;49709:15;:19::i;:::-;49687:42;;;;;;;;;;;;;-1:-1:-1;;;;;49687:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;49740:7:0;;49753:10;;-1:-1:-1;;;;;49740:7:0;;;;-1:-1:-1;49740:12:0;;-1:-1:-1;49753:10:0;49765:19;:11;49781:2;49765:15;:19::i;:::-;49740:45;;;;;;;;;;;;;-1:-1:-1;;;;;49740:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;49796:7:0;;:40;;;-1:-1:-1;;;49796:40:0;;49817:4;49796:40;;;;;;;;;;;;-1:-1:-1;;;;;49796:7:0;;;;-1:-1:-1;49796:12:0;;-1:-1:-1;49796:40:0;;;;;:7;;:40;;;;;;;;:7;;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49871:86;49911:35;49937:8;49911:21;49927:4;49911:11;:15;;:21;;;;:::i;:35::-;49871:21;;;;;:25;:86::i;:::-;49847:21;;;:110;-1:-1:-1;;49991:12:0;49968:20;;;;:35;;;;-1:-1:-1;49066:945:0;;:::o;53640:369::-;21712:1;22318:7;;:19;;22310:63;;;;;-1:-1:-1;;;22310:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22310:63:0;;;;;;;;;;;;;;;21712:1;22451:7;:18;;;;53712:21:::1;53736:8;53745:4;53736:14;;;;;;;;;::::0;;;::::1;::::0;;;53785;;;:8:::1;:14:::0;;;;;;53800:10:::1;53785:26:::0;;;;;;;;53869:11;;53736:14:::1;::::0;;::::1;::::0;;::::1;53822:12:::0;;53736:14;;-1:-1:-1;53822:59:0::1;::::0;-1:-1:-1;;;;;53822:12:0;;;::::1;::::0;53800:10;53822:25:::1;:59::i;:::-;53933:11:::0;;53897:48:::1;::::0;;;;;;53927:4;;53915:10:::1;::::0;53897:48:::1;::::0;;;;::::1;::::0;;::::1;53970:1;53956:15:::0;;;53982::::1;::::0;;::::1;:19:::0;22630:22;;-1:-1:-1;;53640:369:0:o;42293:22::-;;;-1:-1:-1;;;;;42293:22:0;;:::o;19623:85::-;19664:7;19691:9;-1:-1:-1;;;;;19691:9:0;19623:85;:::o;48810:180::-;48872:8;:15;48855:14;48898:85;48926:6;48920:3;:12;48898:85;;;48956:15;48967:3;48956:10;:15::i;:::-;48934:5;;48898:85;;;;48810:180;:::o;57636:453::-;19854:12;:10;:12::i;:::-;19841:9;;-1:-1:-1;;;;;19841:9:0;;;:25;;;19833:58;;;;;-1:-1:-1;;;19833:58:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19833:58:0;;;;;;;;;;;;;;;43176:4:::1;57727:37:::0;::::1;;57719:108;;;;-1:-1:-1::0;;;57719:108:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57864:10;;57846:14;:28;;57838:81;;;;-1:-1:-1::0;;;57838:81:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57959:10;::::0;;57980:27;;;;58023:58:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;19902:1;57636:453:::0;:::o;42961:31::-;;;;:::o;43732:49::-;;;;:::o;20262:154::-;19854:12;:10;:12::i;:::-;19841:9;;-1:-1:-1;;;;;19841:9:0;;;:25;;;19833:58;;;;;-1:-1:-1;;;19833:58:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19833:58:0;;;;;;;;;;;;;;;20372:1:::1;20353:9:::0;;20332:43:::1;::::0;-1:-1:-1;;;;;20353:9:0;;::::1;::::0;20332:43:::1;::::0;20372:1;;20332:43:::1;20406:1;20386:22:::0;;-1:-1:-1;;;;;;20386:22:0::1;::::0;;20262:154::o;45971:895::-;19854:12;:10;:12::i;:::-;19841:9;;-1:-1:-1;;;;;19841:9:0;;;:25;;;19833:58;;;;;-1:-1:-1;;;19833:58:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19833:58:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;45814:23:0;::::1;;::::0;;;:13:::1;:23;::::0;;;;;46136:8;;45814:23:::1;;:32;45806:70;;;::::0;;-1:-1:-1;;;45806:70:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;43077:4:::2;46165:39;::::0;::::2;;;46157:89;;;;-1:-1:-1::0;;;46157:89:0::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46261:11;46257:61;;;46289:17;:15;:17::i;:::-;46328:23;46369:10;;46354:12;:25;:53;;46397:10;;46354:53;;;46382:12;46354:53;46436:15;::::0;46328:79;;-1:-1:-1;46436:32:0::2;::::0;46456:11;46436:19:::2;:32::i;:::-;46418:15;:50:::0;-1:-1:-1;;;;;46479:23:0;;::::2;;::::0;;;:13:::2;:23;::::0;;;;;;;:30;;46505:4:::2;-1:-1:-1::0;;46479:30:0;;::::2;::::0;::::2;::::0;;;46548:238;;::::2;::::0;::::2;::::0;;;;;;;::::2;::::0;;;;;;;;;;;;;;;::::2;::::0;;::::2;::::0;;;;;;46520:8:::2;:277:::0;;;;::::2;::::0;;;;;;;;::::2;::::0;;::::2;::::0;;::::2;::::0;;-1:-1:-1;;;;;;46520:277:0::2;::::0;;;::::2;;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;46520:277:0::2;::::0;;;::::2;::::0;;;::::2;::::0;;;46839:15;;46808:28;;;:18:::2;:28:::0;;;-1:-1:-1;;46808:28:0;-1:-1:-1;;46839:19:0;;;;46808:50;;45971:895::o;54941:299::-;-1:-1:-1;;;;;55011:25:0;;55003:68;;;;;-1:-1:-1;;;55003:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;55104:10;;-1:-1:-1;;;;;55104:10:0;55090;:24;55082:61;;;;;-1:-1:-1;;;55082:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;55154:10;:24;;-1:-1:-1;;;;;;55154:24:0;-1:-1:-1;;;;;55154:24:0;;;;;;;;55194:38;;55208:10;;55194:38;;-1:-1:-1;;55194:38:0;54941:299;:::o;47601:153::-;47700:7;47732:14;:3;47740:5;47732:7;:14::i;:::-;47725:21;47601:153;-1:-1:-1;;;47601:153:0:o;51361:1353::-;21712:1;22318:7;;:19;;22310:63;;;;;-1:-1:-1;;;22310:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22310:63:0;;;;;;;;;;;;;;;21712:1;22451:7;:18;51546:21:::1;51570:8;51579:4;51570:14;;;;;;;;;::::0;;;::::1;::::0;;;51619;;;:8:::1;:14:::0;;;;;;51634:10:::1;51619:26:::0;;;;;;;51570:14:::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;51656:16:0::1;51628:4:::0;51656:10:::1;:16::i;:::-;51687:11:::0;;:15;51683:296:::1;;51719:15;51754:109;51829:4;:15;;;51754:48;51797:4;51754:38;51770:4;:21;;;51754:4;:11;;;:15;;:38;;;;:::i;:109::-;51719:144:::0;-1:-1:-1;51882:11:0;;51878:90:::1;;51914:38;51932:10;51944:7;51914:17;:38::i;:::-;51683:296;;51993:11:::0;;51989:591:::1;;52021:34;52033:10;52045:9;52021:11;:34::i;:::-;52070:12:::0;;:140:::1;::::0;-1:-1:-1;;;;;52070:12:0::1;52126:10;52164:4;52188:7:::0;52070:29:::1;:140::i;:::-;52229:17;::::0;::::1;::::0;::::1;;:21:::0;52225:344:::1;;52304:17;::::0;::::1;::::0;52271:18:::1;::::0;52292:41:::1;::::0;52327:5:::1;::::0;52292:30:::1;::::0;:7;;52304:17:::1;;52292:11;:30::i;:41::-;52366:11:::0;;52271:62;;-1:-1:-1;52366:40:0::1;::::0;52271:62;;52366:24:::1;::::0;52382:7;52366:15:::1;:24::i;:40::-;52352:54:::0;;52451:10:::1;::::0;52425:12;;:49:::1;::::0;-1:-1:-1;;;;;52425:12:0;;::::1;::::0;52451:10:::1;52463::::0;52425:25:::1;:49::i;:::-;52225:344;;;;52529:11:::0;;:24:::1;::::0;52545:7;52529:15:::1;:24::i;:::-;52515:38:::0;;52225:344:::1;52624:21;::::0;::::1;::::0;52608:11;;:48:::1;::::0;52651:4:::1;::::0;52608:38:::1;::::0;:15:::1;:38::i;:48::-;52590:15;::::0;::::1;:66:::0;52672:34:::1;::::0;;;;;;;52692:4;;52680:10:::1;::::0;52672:34:::1;::::0;;;;::::1;::::0;;::::1;-1:-1:-1::0;;21668:1:0;22630:22;;-1:-1:-1;;;51361:1353:0:o;43616:57::-;43664:9;43616:57;:::o;42619:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;43029:52::-;43077:4;43029:52;:::o;43505:::-;;;;;;;;;;;;;:::o;55398:1084::-;55469:10;;55454:12;:25;55446:96;;;;-1:-1:-1;;;55446:96:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55579:21;;55561:15;;:39;55553:119;;;;-1:-1:-1;;;55553:119:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55685:20;55708:65;55741:31;;55708:28;55725:10;;55708:12;:16;;:28;;;;:::i;:65::-;55685:88;;55804:23;;55788:12;:39;55784:78;;55844:7;;;55784:78;55900:15;;55970:33;;55944:69;;56009:3;;55944:60;;55900:15;;55964:39;;55944:19;:60::i;:69::-;55926:87;;56062:21;;56044:15;:39;:81;;56110:15;56044:81;;;56086:21;;56044:81;56026:99;;56159:15;;56140;:34;56136:73;;56191:7;;;;56136:73;56221:17;:15;:17::i;:::-;56249:23;:38;;;56329:15;;;56355:33;;;;56404:70;;;;;;;;;;;;;;56424:10;;56404:70;;;;;;;;55398:1084;;;;:::o;43846:54::-;;;;:::o;58422:400::-;19854:12;:10;:12::i;:::-;19841:9;;-1:-1:-1;;;;;19841:9:0;;;:25;;;19833:58;;;;;-1:-1:-1;;;19833:58:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19833:58:0;;;;;;;;;;;;;;;58583:31:::1;::::0;;58625:66;;;;58707:107:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;19902:1;58422:400:::0;:::o;42411:30::-;;;;:::o;43423:44::-;;;;;;;;;;;;;;;:::o;54621:256::-;-1:-1:-1;;;;;54688:22:0;;54680:55;;;;;-1:-1:-1;;;54680:55:0;;;;;;;;;;;;-1:-1:-1;;;54680:55:0;;;;;;;;;;;;;;;54768:7;;-1:-1:-1;;;;;54768:7:0;54754:10;:21;54746:43;;;;;-1:-1:-1;;;54746:43:0;;;;;;;;;;;;-1:-1:-1;;;54746:43:0;;;;;;;;;;;;;;;54800:7;:18;;-1:-1:-1;;;;;;54800:18:0;-1:-1:-1;;;;;54800:18:0;;;;;;;;54834:35;;54848:10;;54834:35;;-1:-1:-1;;54834:35:0;54621:256;:::o;46978:547::-;19854:12;:10;:12::i;:::-;19841:9;;-1:-1:-1;;;;;19841:9:0;;;:25;;;19833:58;;;;;-1:-1:-1;;;19833:58:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19833:58:0;;;;;;;;;;;;;;;43077:4:::1;47145:39;::::0;::::1;;;47137:89;;;;-1:-1:-1::0;;;47137:89:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47241:11;47237:61;;;47269:17;:15;:17::i;:::-;47326:87;47391:11;47326:46;47346:8;47355:4;47346:14;;;;;;;;;;;;;;;;;;:25;;;47326:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::1;:87::i;:::-;47308:15;:105;;;;47452:11;47424:8;47433:4;47424:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;47504:13;47474:8;47483:4;47474:14;;;;;;;;;;;;;;;;;;:27;;;:43;;;;;;;;;;;;;;;;;;46978:547:::0;;;;:::o;42343:22::-;;;-1:-1:-1;;;;;42343:22:0;;:::o;50080:1198::-;21712:1;22318:7;;:19;;22310:63;;;;;-1:-1:-1;;;22310:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22310:63:0;;;;;;;;;;;;;;;21712:1;22451:7;:18;;;;50159:21:::1;50183:8;50192:4;50183:14;;;;;;;;;::::0;;;::::1;::::0;;;50232;;;:8:::1;:14:::0;;;;;;50247:10:::1;50232:26:::0;;;;;;;50183:14:::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;50269:16:0::1;50241:4:::0;50269:10:::1;:16::i;:::-;50300:11:::0;;:15;50296:296:::1;;50332:15;50367:109;50442:4;:15;;;50367:48;50410:4;50367:38;50383:4;:21;;;50367:4;:11;;;:15;;:38;;;;:::i;:109::-;50332:144:::0;-1:-1:-1;50495:11:0;;50491:90:::1;;50527:38;50545:10;50557:7;50527:17;:38::i;:::-;50296:296;;50606:11:::0;;50602:542:::1;;50634:12:::0;;:140:::1;::::0;-1:-1:-1;;;;;50634:12:0::1;50690:10;50728:4;50752:7:::0;50634:29:::1;:140::i;:::-;50793:17;::::0;::::1;::::0;::::1;;:21:::0;50789:344:::1;;50868:17;::::0;::::1;::::0;50835:18:::1;::::0;50856:41:::1;::::0;50891:5:::1;::::0;50856:30:::1;::::0;:7;;50868:17:::1;;50856:11;:30::i;:41::-;50930:11:::0;;50835:62;;-1:-1:-1;50930:40:0::1;::::0;50835:62;;50930:24:::1;::::0;50946:7;50930:15:::1;:24::i;:40::-;50916:54:::0;;51015:10:::1;::::0;50989:12;;:49:::1;::::0;-1:-1:-1;;;;;50989:12:0;;::::1;::::0;51015:10:::1;51027::::0;50989:25:::1;:49::i;:::-;50789:344;;;;51093:11:::0;;:24:::1;::::0;51109:7;51093:15:::1;:24::i;:::-;51079:38:::0;;50789:344:::1;51188:21;::::0;::::1;::::0;51172:11;;:48:::1;::::0;51215:4:::1;::::0;51172:38:::1;::::0;:15:::1;:38::i;:48::-;51154:15;::::0;::::1;:66:::0;51236:34:::1;::::0;;;;;;;51256:4;;51244:10:::1;::::0;51236:34:::1;::::0;;;;::::1;::::0;;::::1;-1:-1:-1::0;;21668:1:0;22630:22;;-1:-1:-1;;50080:1198:0:o;57124:325::-;57189:20;57212:8;57221:6;57212:16;;;;;;;;;;;;;;;;;;;;;;;57264:11;;57307:32;;;-1:-1:-1;;;57307:32:0;;57333:4;57307:32;;;;;;57212:16;;-1:-1:-1;;;;;;57264:11:0;;;;57212:16;57264:11;;57307:17;;:32;;;;;57212:16;57307:32;;;;;;57264:11;57307:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;57307:32:0;57362:10;;57307:32;;-1:-1:-1;57347:38:0;;-1:-1:-1;;;;;57347:14:0;;;;57362:10;57307:32;57347:14;:38::i;:::-;57418:10;;57396:11;;:45;;-1:-1:-1;;;;;57396:11:0;;;;57418:10;57430;57396:21;:45::i;:::-;57124:325;;;;:::o;20571:250::-;19854:12;:10;:12::i;:::-;19841:9;;-1:-1:-1;;;;;19841:9:0;;;:25;;;19833:58;;;;;-1:-1:-1;;;19833:58:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19833:58:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;20660:22:0;::::1;20652:73;;;;-1:-1:-1::0;;;20652:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20762:9;::::0;;20741:41:::1;::::0;-1:-1:-1;;;;;20741:41:0;;::::1;::::0;20762:9;::::1;::::0;20741:41:::1;::::0;::::1;20793:9;:20:::0;;-1:-1:-1;;;;;;20793:20:0::1;-1:-1:-1::0;;;;;20793:20:0;;;::::1;::::0;;;::::1;::::0;;20571:250::o;43970:54::-;;;;:::o;18753:106::-;18841:10;18753:106;:::o;1644:471::-;1702:7;1947:6;1943:47;;-1:-1:-1;1977:1:0;1970:8;;1943:47;2014:5;;;2018:1;2014;:5;:1;2038:5;;;;;:10;2030:56;;;;-1:-1:-1;;;2030:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2591:132;2649:7;2676:39;2680:1;2683;2676:39;;;;;;;;;;;;;;;;;:3;:39::i;754:136::-;812:7;839:43;843:1;846;839:43;;;;;;;;;;;;;;;;;:3;:43::i;54125:440::-;54221:7;;:32;;;-1:-1:-1;;;54221:32:0;;54247:4;54221:32;;;;;;54202:16;;-1:-1:-1;;;;;54221:7:0;;:17;;:32;;;;;;;;;;;;;;:7;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54221:32:0;;-1:-1:-1;54264:20:0;54307:18;;;54303:181;;;54360:7;;:31;;;-1:-1:-1;;;54360:31:0;;-1:-1:-1;;;;;54360:31:0;;;;;;;;;;;;;;;:7;;;;;:16;;:31;;;;;;;;;;;;;;:7;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54360:31:0;;-1:-1:-1;54303:181:0;;;54442:7;;:30;;;-1:-1:-1;;;54442:30:0;;-1:-1:-1;;;;;54442:30:0;;;;;;;;;;;;;;;:7;;;;;:16;;:30;;;;;;;;;;;;;;:7;;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54442:30:0;;-1:-1:-1;54303:181:0;54502:15;54494:63;;;;-1:-1:-1;;;54494:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14828:177;14938:58;;;-1:-1:-1;;;;;14938:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;14938:58:0;-1:-1:-1;;;14938:58:0;;;14911:86;;14931:5;;14911:19;:86::i;:::-;14828:177;;;:::o;290:181::-;348:7;380:5;;;404:6;;;;396:46;;;;;-1:-1:-1;;;396:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;56653:347;-1:-1:-1;;;;;56767:16:0;;;56795:1;56767:16;;;:9;:16;;;;;;;:30;56732:92;;;;-1:-1:-1;;;;;;56801:23:0;;;;56732:92;:114;;;;;56841:5;-1:-1:-1;;;;;56828:18:0;:9;-1:-1:-1;;;;;56828:18:0;;;56732:114;56728:265;;;-1:-1:-1;;;;;56863:16:0;;;;;;;:9;:16;;;;;;;;:28;;-1:-1:-1;;;;;;56863:28:0;;;;;;;;;56906:24;;;:13;:24;;;;;;:29;;-1:-1:-1;56906:29:0;;;56955:26;;;56863:16;56955:26;56653:347;;:::o;15203:205::-;15331:68;;;-1:-1:-1;;;;;15331:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15331:68:0;-1:-1:-1;;;15331:68:0;;;15304:96;;15324:5;;15304:19;:96::i;16307:617::-;16672:10;;;16671:62;;-1:-1:-1;16688:39:0;;;-1:-1:-1;;;16688:39:0;;16712:4;16688:39;;;;-1:-1:-1;;;;;16688:39:0;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;:15;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;16688:39:0;:44;16671:62;16663:152;;;;-1:-1:-1;;;16663:152:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16853:62;;;-1:-1:-1;;;;;16853:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16853:62:0;-1:-1:-1;;;16853:62:0;;;16826:90;;16846:5;;16826:19;:90::i;3219:278::-;3305:7;3340:12;3333:5;3325:28;;;;-1:-1:-1;;;3325:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3364:9;3380:1;3376;:5;;;;;;;3219:278;-1:-1:-1;;;;;3219:278:0:o;1193:192::-;1279:7;1315:12;1307:6;;;;1299:29;;;;-1:-1:-1;;;1299:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1351:5:0;;;1193:192::o;17952:761::-;18376:23;18402:69;18430:4;18402:69;;;;;;;;;;;;;;;;;18410:5;-1:-1:-1;;;;;18402:27:0;;;:69;;;;;:::i;:::-;18486:17;;18376:95;;-1:-1:-1;18486:21:0;18482:224;;18628:10;18617:30;;;;;;;;;;;;;;;-1:-1:-1;18617:30:0;18609:85;;;;-1:-1:-1;;;18609:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11399:195;11502:12;11534:52;11556:6;11564:4;11570:1;11573:12;11534:21;:52::i;:::-;11527:59;11399:195;-1:-1:-1;;;;11399:195:0:o;12451:530::-;12578:12;12636:5;12611:21;:30;;12603:81;;;;-1:-1:-1;;;12603:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12703:18;12714:6;12703:10;:18::i;:::-;12695:60;;;;;-1:-1:-1;;;12695:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;12829:12;12843:23;12870:6;-1:-1:-1;;;;;12870:11:0;12890:5;12898:4;12870:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;12870:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12828:75;;;;12921:52;12939:7;12948:10;12960:12;12921:17;:52::i;:::-;12914:59;12451:530;-1:-1:-1;;;;;;;12451:530:0:o;8481:422::-;8848:20;8887:8;;;8481:422::o;13987:742::-;14102:12;14131:7;14127:595;;;-1:-1:-1;14162:10:0;14155:17;;14127:595;14276:17;;:21;14272:439;;14539:10;14533:17;14600:15;14587:10;14583:2;14579:19;14572:44;14487:148;14675:20;;-1:-1:-1;;;14675:20:0;;;;;;;;;;;;;;;;;14682:12;;14675:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

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