Contract 0x5060f965093bc0D7Be19bff6eb59A6F43D1009D3 1

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x1a12de9d2c0f6d5d00b25443d73becc139bd2f5bc88f1e020f0855c6aa3c9e82Withdraw103833222021-08-27 3:13:51154 days 22 hrs ago0x8ee611b59fae06e678e4e689805ba492b9017411 IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.00054137
0xa25eb3bb6eab9fa11e3de06344cede5a8552401779ff0ed579dc84c39bf16577Deposit103832572021-08-27 3:10:36154 days 22 hrs ago0x8ee611b59fae06e678e4e689805ba492b9017411 IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.00110015
0x4b57293d6842dfec5e75f6245a8c06e3d60407e37b3e5f4051afc2fc9d7c3f84Withdraw103711262021-08-26 17:04:02155 days 9 hrs ago0x8ee611b59fae06e678e4e689805ba492b9017411 IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.000441745
0xa54bea2c68148571cb33667d50ed9bd56772f5db9b680ee887865932ec285f7cDeposit103710352021-08-26 16:59:29155 days 9 hrs ago0x8ee611b59fae06e678e4e689805ba492b9017411 IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.000767255
0xbb24ef048c81d4161d1991c53971a8e19be306936facca0f58bf2e89f729d302Deposit103710322021-08-26 16:59:20155 days 9 hrs ago0xd5f6812971692117f581796147d2d3a2a579737c IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.00122865
0x0c2df459985afc7ee155568d96fa7021272e22fa8bdfe7730d7a661e45604ae7Deposit103710092021-08-26 16:58:11155 days 9 hrs ago0xd5f6812971692117f581796147d2d3a2a579737c IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.00110021
0xd00f0cc08b7c1df0547308d49cda4ed1f192b34874f1506005b9e07d21e99915Update Pool103708562021-08-26 16:50:32155 days 9 hrs ago0x8ee611b59fae06e678e4e689805ba492b9017411 IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.000446805
0x8d84d3529b805950cf57ae25329ff3859804dfef0cae9f6b7f1f9e1c87b8c9a2Deposit103704532021-08-26 16:30:23155 days 9 hrs ago0x8ee611b59fae06e678e4e689805ba492b9017411 IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.00109981
0x771cf77e5ea7d6c50fbac5b31e59d81f3082b154f86984eb431f91ea08a15928Deposit103702122021-08-26 16:18:19155 days 9 hrs ago0xcd98c52d690d9f9827921c1a26392c9b0d8c9aed IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.00021353
0xd96b9fef6ac9f1e5f377cc888e32e26c3e8cf04dcbf5f34eeca07804d0be8352Withdraw103106922021-08-24 14:32:34157 days 11 hrs ago0x8ad29ae0d3cf87ee8d8f5cb2173fa7e08c00cd0a IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.00048749
0x87e43bf4d0f0555f70ed48e97f020c3a70deb1e41371cbcd7265a29a7c786db9Withdraw103105882021-08-24 14:27:22157 days 11 hrs ago0x8ad29ae0d3cf87ee8d8f5cb2173fa7e08c00cd0a IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.000767865
0xee90d41f1acc76769215b697409a9c569ab0b8c4091bb196c46fafecf0d7083fWithdraw103105632021-08-24 14:26:07157 days 11 hrs ago0x01204297db860f097c2902be6d6ac3e654b89c66 IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.00070869
0xd227301ba710901d305b8cc94592039f5177bb660a7eb24ea566ed26ef9294dbDeposit103102922021-08-24 14:12:33157 days 11 hrs ago0x8ad29ae0d3cf87ee8d8f5cb2173fa7e08c00cd0a IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.00117525
0x5677f454fcd40c81465ac4ce5643bb8e3fa6bf0a3621a93403c843e009e57a55Add103091502021-08-24 13:15:27157 days 12 hrs ago0x6973a5d5e2bd3bbde498104fecdf3132a3c545ab IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.00638312
0xd156bf1fec9fd226d960a7048de2f4a72266d1169b220121f32884ca98ae0cadAdd103091472021-08-24 13:15:18157 days 12 hrs ago0x6973a5d5e2bd3bbde498104fecdf3132a3c545ab IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.00632976
0x390cde162db9f845ecab71cad6df06325e8cd1ceedede53ed1a4c7dbd55732c5Add103091442021-08-24 13:15:09157 days 12 hrs ago0x6973a5d5e2bd3bbde498104fecdf3132a3c545ab IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.00645884
0x08ed7085d9cac1eb2ebc1ac504a6751a9cb7fef1295d8f28c28954db1f25ef69Add103091392021-08-24 13:14:54157 days 12 hrs ago0x6973a5d5e2bd3bbde498104fecdf3132a3c545ab IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.00548612
0x92d795f3179f369bfcc53f997ba16eae354364d65849a2748a4217e8191b1436Add103091342021-08-24 13:14:39157 days 12 hrs ago0x6973a5d5e2bd3bbde498104fecdf3132a3c545ab IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.0053152
0x8b42fd8df8af2183bff3d92a48d6fa5f3e3a0925fe741a54e6eda5a1e25e5419Add103091282021-08-24 13:14:21157 days 12 hrs ago0x6973a5d5e2bd3bbde498104fecdf3132a3c545ab IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.00514404
0xa8d9c52d20da0bcfc97611d42a00dc4cf91757d68cd847bcdb9b63a30d106c38Add103091222021-08-24 13:14:03157 days 12 hrs ago0x6973a5d5e2bd3bbde498104fecdf3132a3c545ab IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.00497288
0xe2ec15b91f3d1160263ac33e3f6515f4f1d81ce26252fd5465d956f9f22da1c2Add103091202021-08-24 13:13:57157 days 12 hrs ago0x6973a5d5e2bd3bbde498104fecdf3132a3c545ab IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.004033
0x4e6c11f7e9aa9b6ac70e93a9e2e59e4f11688d5d1e3cb968fb5e232c61da7001Add103091172021-08-24 13:13:48157 days 12 hrs ago0x6973a5d5e2bd3bbde498104fecdf3132a3c545ab IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.00386208
0x9f0ac2984d0911f4446eb7e543238a4d678cd1aa430bef13ee4eee8178c156feAdd103091132021-08-24 13:13:36157 days 12 hrs ago0x6973a5d5e2bd3bbde498104fecdf3132a3c545ab IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.00369116
0x8edef0524796c1662ce6d12c75ad9fa08abe3406c10b609a4210342d4a38b25eAdd103091092021-08-24 13:13:24157 days 12 hrs ago0x6973a5d5e2bd3bbde498104fecdf3132a3c545ab IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.00352024
0xef9865486e739e7e3d0a42b9bead48babf420e4ba3660dc2e44b8415160c5169Add103091022021-08-24 13:13:03157 days 12 hrs ago0x6973a5d5e2bd3bbde498104fecdf3132a3c545ab IN  0x5060f965093bc0d7be19bff6eb59a6f43d1009d30 BNB0.00334932
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MasterChefMoney

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 11 : Context.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.4.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor() internal {}

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

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

File 2 of 11 : Ownable.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.4.0;

import '../GSN/Context.sol';

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Context {
    address private _owner;

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

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

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

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), 'Ownable: new owner is the zero address');
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 3 of 11 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.4.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
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;
    }

    function min(uint256 x, uint256 y) internal pure returns (uint256 z) {
        z = x < y ? x : y;
    }

    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    function sqrt(uint256 y) internal pure returns (uint256 z) {
        if (y > 3) {
            z = y;
            uint256 x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
    }
}

File 4 of 11 : IBEP20.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.4.0;

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 _owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 5 of 11 : SafeBEP20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import './IBEP20.sol';
import '../../math/SafeMath.sol';
import '../../utils/Address.sol';

/**
 * @title SafeBEP20
 * @dev Wrappers around BEP20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeBEP20 for IBEP20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeBEP20 {
    using SafeMath for uint256;
    using Address for address;

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

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

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

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

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

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

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

File 6 of 11 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            codehash := extcodehash(account)
        }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @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');
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(
        address target,
        bytes memory data,
        uint256 weiValue,
        string memory errorMessage
    ) private returns (bytes memory) {
        require(isContract(target), 'Address: call to non-contract');

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{value: weiValue}(data);
        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);
            }
        }
    }
}

File 7 of 11 : MasterChefMoney.sol
/*

    http://moneytime.finance/

    https://t.me/moneytimefinance

*/
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;


pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol";
import "@pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol";
import "@pancakeswap/pancake-swap-lib/contracts/token/BEP20/SafeBEP20.sol";
import "@pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol";
import "./libs/ReentrancyGuard.sol";
import './libs/AddrArrayLib.sol';
import "./MoneyToken.sol";

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

    // Info of each user.
    struct UserInfo {
        uint256 amount; // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
        uint256 busdRewardDebt; // Reward debt. See explanation below.
        uint256 lastDepositTime;
        uint256 moneyRewardLockedUp;
        uint256 busdRewardLockedUp;
        //
        // We do some fancy math here. Basically, any point in time, the amount of moneys
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accMoneyPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accMoneyPerShare` (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. moneys to distribute per block.
        uint256 lastRewardBlock; // Last block number that moneys distribution occurs.
        uint256 accMoneyPerShare; // Accumulated moneys per share, times 1e12. See below.
        uint256 accBusdPerShare; // Accumulated moneys per share, times 1e12. See below.
        uint256 burnRate; // Burn rate when unstake. ex: WHEN UNSTAKE  95% of THE $TIME TOKEN STAKED ARE BURNED AUTOMATICALY
        uint256 emergencyBurnRate; // Burn rate when emergencyWithdraw. ex: IF UNSTAKE BEFORE 2 WEEK THE USER GET NO REWARD AND 25% OF THE $TIME TOKEN STAKED ARE BURN WHEN UNSTAKE
        uint256 lockPeriod; // Staking lock period. ex: POOL 5 REWARD LOCKED: 2 WEEK
        uint256 depositFee; // deposit fee.
        bool depositBurn;
        bool secondaryReward;
    }

    // The money TOKEN!
    // AUDIT: MCM-06 | Set immutable to Variables
    MoneyToken public immutable money;
    // Busd token
    // AUDIT: MCM-06 | Set immutable to Variables
    IBEP20 public immutable busdToken;
    // Dev address.
    address public devaddr;

    // Busd Feeder
    address public busdFeeder1;
    address public busdFeeder2;
    // Max percent with 2 decimal -> 10000 = 100%
    // AUDIT: MCM-02 | Set constant to Variables
    uint256 public constant maxShare = 10000;
    // money tokens created per block.
    uint256 public moneyPerBlock;
    // busd tokens created per block.
    uint256 public busdPerBlock;
    // Bonus muliplier for early money makers.
    // AUDIT: MCM-12 | Incorrect Naming Convention Utilization
    uint256 public bonusMultiplier = 1;

    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user that stakes LP tokens.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    mapping(uint256 => AddrArrayLib.Addresses) private addressByPid;
    mapping(uint256 => uint[]) public userIndexByPid;

    mapping (address => bool) private _authorizedCaller;

    // Total deposit amount of each pool
    mapping(uint256 => uint256) public poolDeposit;
    // Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;
    // Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalBusdAllocPoint = 0;

    // The block number when money mining starts.
    // AUDIT: MCM-06 | Set immutable to Variables
    uint256 public immutable startBlock;

    uint256 public busdEndBlock;

    uint256 public constant busdPoolId = 0;

    // AUDIT: MCM-02 | Set constant to Variables
    address public constant BURN_ADDRESS = address(0x000000000000000000000000000000000000dEaD);

    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event Burn(address indexed user, uint256 indexed pid, uint256 sent, uint256 burned);
    event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
    // AUDIT: MCM-03 | Missing indexed in Events
    event Transfer(address indexed to, uint256 requsted, uint256 sent);
    event MoneyPerBlockUpdated(uint256 moneyPerBlock);
    event BusdPerBlockUpdated(uint256 busdPerBlock);
    // AUDIT: MCM-03 | Missing indexed in Events
    event UpdateEmissionSettings(address indexed from, uint256 depositAmount, uint256 endBlock);
    // AUDIT: MCM-08 | Missing Emit Events
    event UpdateMultiplier(uint256 multiplierNumber);
    event SetDev(address indexed prevDev, address indexed newDev);
    event SetAuthorizedCaller(address indexed caller, bool _status);
    event SetBusdFeeder1(address indexed busdFeeder);
    event SetBusdFeeder2(address indexed busdFeeder);
    event RewardLockedUp(address indexed recipient, uint256 indexed pid, uint256 moneyLockedUp, uint256 busdLockedUp);

    modifier onlyAuthorizedCaller() {
        require(_msgSender() == owner() || _authorizedCaller[_msgSender()],"MINT_CALLER_NOT_AUTHORIZED");
        _;
    }

    modifier validatePoolByPid(uint256 _pid) {
        require(_pid < poolInfo.length, "pool id not exisit");
        _;
    }

    constructor(
        MoneyToken _money,
        IBEP20 _busdToken,
        address _devaddr,
        address _busdFeeder1,
        address _busdFeeder2,
        uint256 _moneyPerBlock,
        uint256 _busdPerBlock, //should be 0
        uint256 _startBlock,
        uint256 _busdEndBlock //should be 0
    ) public {
        require(address(_money) != address(0), "MasterChefMoney.Constructor: Money token shouldn't be zero address");
        require(address(_busdToken) != address(0), "MasterChefMoney.Constructor: Busd token shouldn't be zero address");
        require(_devaddr != address(0), "MasterChefMoney.Constructor: Dev address shouldn't be zero address");
        require(_busdFeeder1 != address(0), "MasterChefMoney.Constructor: Busd feeder 1 address shouldn't be zero address");
        require(_busdFeeder2 != address(0), "MasterChefMoney.Constructor: Busd feeder 2 address shouldn't be zero address");
        require(_moneyPerBlock != 0, "MasterChefMoney.Constructor: Money reward token count per block can't be zero");

        money = _money;
        busdToken = _busdToken;
        devaddr = _devaddr;
        busdFeeder1 = _busdFeeder1;
        busdFeeder2 = _busdFeeder2;
        moneyPerBlock = _moneyPerBlock;
        busdPerBlock = _busdPerBlock;
        startBlock = _startBlock;
        busdEndBlock = _busdEndBlock;
        _authorizedCaller[busdFeeder1] = true; // tester: to allow call to updateEmissionSettings
        _authorizedCaller[busdFeeder2] = true; // tester: to allow call to updateEmissionSettings
    }

    // AUDIT: MCM-01 | Proper Usage of public and external
    //update money reward count per block
    function updateMoneyPerBlock(uint256 _moneyPerBlock) external onlyOwner {
        require(_moneyPerBlock != 0, "MasterChefMoney.updateMoneyPerBlock: Reward token count per block can't be zero");
        moneyPerBlock = _moneyPerBlock;
        // emitts event when moneyPerBlock updated
        emit MoneyPerBlockUpdated(_moneyPerBlock);
    }

    // AUDIT: MCM-01 | Proper Usage of public and external
    //update busd reward count per block
    function updateBusdPerBlock(uint256 _busdPerBlock) external onlyOwner {
        require(_busdPerBlock != 0, "MasterChefMoney.updateBusdPerBlock: Reward token count per block can't be zero");
        busdPerBlock = _busdPerBlock;
        // emitts event when busdPerBlock updated
        emit BusdPerBlockUpdated(_busdPerBlock);
    }

    // AUDIT: MCM-01 | Proper Usage of public and external
    function updateMultiplier(uint256 multiplierNumber) external onlyOwner {
        bonusMultiplier = multiplierNumber;
        // AUDIT: MCM-08 | Missing Emit Events
        emit UpdateMultiplier(multiplierNumber);
    }

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

    // AUDIT: MCM-01 | Proper Usage of public and external
    // Add a new lp to the pool. Can only be called by the owner.
    function add (
        uint256 _allocPoint,
        IBEP20 _lpToken,
        uint256 _burnRate,
        uint256 _emergencyBurnRate,
        uint256 _lockPeriod,
        uint256 _depositFee,
        bool _depositBurn,
        bool _secondaryReward,
        bool _withUpdate
    ) external onlyOwner {
        // AUDIT: MCM-21 | The Logic Issue of add()
        if( poolInfo.length == 0 ) {
            require ( busdToken == _lpToken, "add: first pool should be busd pool") ;
        } else {
            require(busdToken != _lpToken,"busd pool already added" );
        }

        require(_depositFee <= 1000, "add: invalid deposit fee basis points");
        require(_burnRate <= 10000, "add: invalid deposit fee basis points");
        require(_emergencyBurnRate <= 2500, "add: invalid emergency brun rate basis points");
        require(_lockPeriod <= 30 days, "add: invalid lock period");

        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock =
        block.number > startBlock ? block.number : startBlock;

        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        if(_secondaryReward) {
            totalBusdAllocPoint = totalBusdAllocPoint.add(_allocPoint);
        }
        poolInfo.push(
            PoolInfo({
        lpToken: _lpToken,
        allocPoint: _allocPoint,
        lastRewardBlock: lastRewardBlock,
        accMoneyPerShare: 0,
        accBusdPerShare: 0,
        burnRate: _burnRate,
        emergencyBurnRate: _emergencyBurnRate,
        lockPeriod: _lockPeriod,
        depositFee: _depositFee,
        depositBurn: _depositBurn,
        secondaryReward: _secondaryReward
        })
        );
    }

    // AUDIT: MCM-01 | Proper Usage of public and external
    // AUDIT: MCM-04 | Lack of Pool Validity Checks
    // Update the given pool's money allocation point. Can only be called by the owner.
    function set(
        uint256 _pid,
        uint256 _allocPoint,
        uint256 _burnRate,
        uint256 _emergencyBurnRate,
        uint256 _lockPeriod,
        uint256 _depositFee,
        bool _depositBurn,
        bool _secondaryReward,
        bool _withUpdate
    ) external onlyOwner validatePoolByPid(_pid){
        require(_depositFee <= 1000, "set: invalid deposit fee basis points");
        require(_burnRate <= 10000, "set: invalid deposit fee basis points");
        require(_emergencyBurnRate <= 2500, "set: invalid emergency brun rate basis points");
        require(_lockPeriod <= 30 days, "set: invalid lock period");

        if (_withUpdate) {
            massUpdatePools();
        }

        uint256 prevAllocPoint = poolInfo[_pid].allocPoint;
        poolInfo[_pid].allocPoint = _allocPoint;
        poolInfo[_pid].burnRate = _burnRate;
        poolInfo[_pid].emergencyBurnRate = _emergencyBurnRate;
        poolInfo[_pid].lockPeriod = _lockPeriod;
        poolInfo[_pid].depositFee = _depositFee;
        poolInfo[_pid].depositBurn = _depositBurn;


        if (prevAllocPoint != _allocPoint) {
            totalAllocPoint = totalAllocPoint.sub(prevAllocPoint).add(
                _allocPoint
            );
        }
        if(_secondaryReward) {
            totalBusdAllocPoint = totalBusdAllocPoint.add(_allocPoint);
        }
        if(poolInfo[_pid].secondaryReward) {
            totalBusdAllocPoint = totalBusdAllocPoint.sub(prevAllocPoint);
        }
        poolInfo[_pid].secondaryReward = _secondaryReward;
    }

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

    // Return reward multiplier over the given _from to _to block.
    function getBusdMultiplier(uint256 _from, uint256 _to)
    public
    view
    returns (uint256)
    {
        if (_to <= busdEndBlock) {
            return _to.sub(_from).mul(bonusMultiplier);
        } else if (_from >= busdEndBlock) {
            return 0;
        } else {
            return busdEndBlock.sub(_from).mul(bonusMultiplier);
        }
    }

    function getBusdBalance() public view returns (uint256) {
        uint256 balance = busdToken.balanceOf(address(this)).sub(poolDeposit[busdPoolId]);
        return balance;
    }

    // AUDIT: MCM-04 | Lack of Pool Validity Checks
    // View function to see pending moneys and busd on frontend.
    function pendingReward(uint256 _pid, address _user)
    external
    view
    validatePoolByPid(_pid)
    returns (uint256, uint256)
    {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accMoneyPerShare = pool.accMoneyPerShare;
        uint256 accBusdPerShare = pool.accBusdPerShare;
        uint256 lpSupply = poolDeposit[_pid];

        uint256 moneyPendingReward;
        uint256 busdPendingReward;

        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier =
            getMultiplier(pool.lastRewardBlock, block.number);
            uint256 moneyReward =
            multiplier.mul(moneyPerBlock).mul(pool.allocPoint).div(
                totalAllocPoint
            );
            accMoneyPerShare = accMoneyPerShare.add(
                moneyReward.mul(1e12).div(lpSupply)
            );
            if(pool.secondaryReward) {
                uint256 busdMultiplier = getBusdMultiplier(pool.lastRewardBlock, block.number);
                uint256 busdReward =
                busdMultiplier.mul(busdPerBlock).mul(pool.allocPoint).div(
                    totalBusdAllocPoint
                );
                accBusdPerShare = accBusdPerShare.add(
                    busdReward.mul(1e12).div(lpSupply)
                );
            }
        }
        moneyPendingReward = user.amount.mul(accMoneyPerShare).div(1e12).sub(user.rewardDebt).add(user.moneyRewardLockedUp);
        // AUDIT: MCM-16 | Calculation of busdPendingReward
        // AUDIT: MCM-23 | Set The secondaryReward
        // DEV: busd reward will be 0 if pool.secondaryReward is false.
        // DEV: becuase accBusdPerShare and busdRewardDebt are 0 in non 2nd reward pools.
        // DEV: We already did test for this.
        busdPendingReward = user.amount.mul(accBusdPerShare).div(1e12).sub(user.busdRewardDebt).add(user.busdRewardLockedUp);

        return (moneyPendingReward, busdPendingReward);
    }


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

    // AUDIT: MCM-04 | Lack of Pool Validity Checks
    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public validatePoolByPid(_pid) {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = poolDeposit[_pid];
        if (lpSupply == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 moneyReward =
        multiplier.mul(moneyPerBlock).mul(pool.allocPoint).div(
            totalAllocPoint
        );
        // AUDIT: MCM-10 | Over Minted Token
        // DEV: we prefer to keep 108% emission model.
        money.mint(devaddr, moneyReward.mul(800).div(10000));
        money.mint(address(this), moneyReward);
        pool.accMoneyPerShare = pool.accMoneyPerShare.add(
            moneyReward.mul(1e12).div(lpSupply)
        );
        if(pool.secondaryReward) {
            uint256 busdMultiplier = getBusdMultiplier(pool.lastRewardBlock, block.number);
            uint256 busdReward =
            busdMultiplier.mul(busdPerBlock).mul(pool.allocPoint).div(
                totalBusdAllocPoint
            );
            pool.accBusdPerShare = pool.accBusdPerShare.add(
                busdReward.mul(1e12).div(lpSupply)
            );
        }
        pool.lastRewardBlock = block.number;
    }

    function payOrLockupPendingMoney(address _recipient, uint256 _pid) internal {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_recipient];

        uint256 pending = user.amount.mul(pool.accMoneyPerShare).div(1e12).sub(user.rewardDebt).add(user.moneyRewardLockedUp);
        uint256 pendingBusd = user.amount.mul(pool.accBusdPerShare).div(1e12).sub(user.busdRewardDebt).add(user.busdRewardLockedUp);
        if (pool.lockPeriod > 0 ) {
            user.moneyRewardLockedUp = pending;
            user.busdRewardLockedUp = pendingBusd;
            emit RewardLockedUp(_recipient, _pid, pending, pendingBusd);
        } else {
            if (pending > 0) {
                safeMoneyTransfer(_recipient, pending);
            }
        }
    }
    // AUDIT: MCM-01 | Proper Usage of public and external
    function deposit(uint256 _pid, uint256 _amount) external {
        depositFor(msg.sender, _pid, _amount);
    }

    // AUDIT: MCM-04 | Lack of Pool Validity Checks
    // Deposit LP tokens to MasterChef for money allocation.
    function depositFor(address _recipient, uint256 _pid, uint256 _amount) public validatePoolByPid(_pid) nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_recipient];
        updatePool(_pid);

        // AUDIT: MCM-22 | The Logic Issue Of UnDistributed Rewards
        // DEV: There is no harvest Action in lock pool, once user deposit again in lock pool
        // DEV: We save user's reward amount, that's why rewardDebt is not updated in lock pool.

        if (user.amount > 0) {
            // TESTER: I thing that you need to run this block on every deposit.
            payOrLockupPendingMoney(_recipient, _pid);
        }
        if (_amount > 0) {
            if(pool.depositFee > 0)
            {
                uint256 tax = _amount.mul(pool.depositFee).div(maxShare);
                uint256 received = _amount.sub(tax);
                if(pool.depositBurn){
                    pool.lpToken.safeTransferFrom(address(msg.sender), BURN_ADDRESS, tax);
                }
                else {
                    pool.lpToken.safeTransferFrom(address(msg.sender), devaddr, tax);
                }
                // MCM-05 | Incompatibility With Deflationary Tokens
                uint256 oldBalance = pool.lpToken.balanceOf(address(this));
                pool.lpToken.safeTransferFrom(address(msg.sender), address(this), received);
                uint256 newBalance = pool.lpToken.balanceOf(address(this));
                received = newBalance.sub(oldBalance);
                //add user deposit amount to the total pool deposit amount
                poolDeposit[_pid] = poolDeposit[_pid].add(received);
                user.amount = user.amount.add(received);
                userIndex(_pid, _recipient);
            }
            else{
                uint256 oldBalance = pool.lpToken.balanceOf(address(this));
                pool.lpToken.safeTransferFrom(
                    address(msg.sender),
                    address(this),
                    _amount
                );
                uint256 newBalance = pool.lpToken.balanceOf(address(this));
                _amount = newBalance.sub(oldBalance);
                //add user deposit amount to the total pool deposit amount
                poolDeposit[_pid] = poolDeposit[_pid].add(_amount);
                user.amount = user.amount.add(_amount);
                userIndex(_pid, _recipient);
            }

            user.lastDepositTime = _getNow();
        }

        user.rewardDebt = user.amount.mul(pool.accMoneyPerShare).div(1e12);
        user.busdRewardDebt = user.amount.mul(pool.accBusdPerShare).div(1e12);
        emit Deposit(_recipient, _pid, _amount);
    }

    // AUDIT: MCM-01 | Proper Usage of public and external
    // AUDIT: MCM-04 | Lack of Pool Validity Checks
    // Withdraw LP tokens from MasterChef.
    function withdraw(uint256 _pid, uint256 _amount) external validatePoolByPid(_pid) nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        if(pool.lockPeriod > 0){
            require(user.amount == _amount, "withdraw: Should unstake 100% of time token");
        }
        else {
            require(user.amount >= _amount, "withdraw: not good");
        }

        updatePool(_pid);

        poolDeposit[_pid] = poolDeposit[_pid].sub(_amount);

        if (pool.lockPeriod > 0 ) {
            if(_getNow() < user.lastDepositTime + pool.lockPeriod) {
                if (_amount > 0) {
                    user.amount = user.amount.sub(_amount);
                    userIndex(_pid, msg.sender);
                    uint256 tax = _amount.mul(pool.emergencyBurnRate).div(maxShare);
                    uint256 sent = _amount.sub(tax);
                    pool.lpToken.safeTransfer(BURN_ADDRESS, tax );
                    pool.lpToken.safeTransfer(address(msg.sender), sent );
                    emit Burn(msg.sender, _pid, sent, tax);
                }
                user.moneyRewardLockedUp = 0;
                user.busdRewardLockedUp = 0;
                user.rewardDebt = user.amount.mul(pool.accMoneyPerShare).div(1e12);
                user.busdRewardDebt = user.amount.mul(pool.accBusdPerShare).div(1e12);
                emit Withdraw(msg.sender, _pid, _amount);
            }else{
                uint256 pending = user.amount.mul(pool.accMoneyPerShare).div(1e12).sub(user.rewardDebt).add(user.moneyRewardLockedUp);
                if (pending > 0) {
                    safeMoneyTransfer(msg.sender, pending);
                }
                if(pool.secondaryReward) { // TESTER: moved outside as pendingBusd is checked
                    uint256 pendingBusd = user.amount.mul(pool.accBusdPerShare).div(1e12).sub(user.busdRewardDebt).add(user.busdRewardLockedUp);
                    if( pendingBusd > 0 ){
                        safeBusdTransfer(msg.sender, pendingBusd); // TESTER: change pool.lpToken to busdToken
                    }
                }
                if (_amount > 0) {
                    user.amount = user.amount.sub(_amount);
                    userIndex(_pid, msg.sender);
                    if(pool.burnRate == maxShare)
                        pool.lpToken.safeTransfer(BURN_ADDRESS, _amount );
                    else
                    {
                        uint256 tax = _amount.mul(pool.burnRate).div(maxShare);
                        uint256 sent = _amount.sub(tax);
                        pool.lpToken.safeTransfer(BURN_ADDRESS, tax );
                        pool.lpToken.safeTransfer(address(msg.sender), sent );
                    }
                }
                user.moneyRewardLockedUp = 0;
                user.busdRewardLockedUp = 0;
                user.rewardDebt = user.amount.mul(pool.accMoneyPerShare).div(1e12);
                user.busdRewardDebt = user.amount.mul(pool.accBusdPerShare).div(1e12);

                emit Withdraw(msg.sender, _pid, _amount);
            }
        } else {
            uint256 pending = user.amount.mul(pool.accMoneyPerShare).div(1e12).sub(user.rewardDebt).add(user.moneyRewardLockedUp);
            if (pending > 0) {
                safeMoneyTransfer(msg.sender, pending);
            }
            if(pool.secondaryReward) {
                // TESTER: adding secondary reward here too (if no lock).
                // why? bcs reward is computed with and without lock on updatePool
                uint256 pendingBusd = user.amount.mul(pool.accBusdPerShare).div(1e12).sub(user.busdRewardDebt).add(user.busdRewardLockedUp);
                if( pendingBusd > 0 ){
                    safeBusdTransfer(msg.sender, pendingBusd); // TESTER: change pool.lpToken to busdToken
                }
            }
            if (_amount > 0) {
                user.amount = user.amount.sub(_amount);
                userIndex(_pid, msg.sender);
                pool.lpToken.safeTransfer(address(msg.sender), _amount);
            }
            user.moneyRewardLockedUp = 0;
            user.busdRewardLockedUp = 0;
            user.rewardDebt = user.amount.mul(pool.accMoneyPerShare).div(1e12);
            // AUDIT: MCM-17 | user.busdRewardDebt Not Updated
            user.busdRewardDebt = user.amount.mul(pool.accBusdPerShare).div(1e12);
            emit Withdraw(msg.sender, _pid, _amount);
        }
    }

    // AUDIT: MCM-01 | Proper Usage of public and external
    // AUDIT: MCM-04 | Lack of Pool Validity Checks
    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) external validatePoolByPid(_pid) nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        // AUDIT: MCM-19 | The logical Issue of emergencyWithdraw ()
        // DEV: There is no emergencyWithdraw feature in Lock pools.
        require(pool.lockPeriod == 0, "use withdraw");
        pool.lpToken.safeTransfer(address(msg.sender), user.amount);
        emit EmergencyWithdraw(msg.sender, _pid, user.amount);
        poolDeposit[_pid] = poolDeposit[_pid].sub(user.amount);
        user.amount = 0;
        user.rewardDebt = 0;
        user.busdRewardDebt = 0; // TESTER: critical bug correction!
        user.moneyRewardLockedUp = 0;
        user.busdRewardLockedUp = 0;
        // AUDIT: MCM-16 | Calling Function userIndex Before Balance Updating
        userIndex(_pid, msg.sender);
    }

    // Safe money transfer function, just in case if rounding error causes pool to not have enough moneys.
    function safeMoneyTransfer(address _to, uint256 _amount) internal {
        uint256 balance = money.balanceOf(address(this));
        bool transferSuccess = false;
        if (_amount > balance) {
            transferSuccess = money.transfer(_to, balance);
        } else {
            transferSuccess = money.transfer(_to, _amount);
        }
        emit Transfer(_to, _amount, balance); // TESTER: let's emit event here
        require(transferSuccess, "transfer failed");
    }

    // Safe busd transfer function, just in case if rounding error causes pool to not have enough busd.
    function safeBusdTransfer(address _to, uint256 _amount) internal {
        uint256 balance = getBusdBalance();
        bool transferSuccess = false;
        if (_amount > balance) {
            transferSuccess = busdToken.transfer(_to, balance);
        } else {
            transferSuccess = busdToken.transfer(_to, _amount);
        }
        emit Transfer(_to, _amount, balance); // TESTER: let's emit event here
        require(transferSuccess, "transfer failed");
    }

    function updateEmissionSettings(uint256 _pid, uint256 _depositAmount, uint256 _endBlock) external onlyAuthorizedCaller {
        require(msg.sender == busdFeeder1 || msg.sender == busdFeeder2, "MasterChefMoney.updateEmissionSettings: msg sender should be busd feeder");
        require(_endBlock > block.number, "End block should be bigger than current block");
        updatePool(_pid);

        busdEndBlock = _endBlock;

        //TESTER: note that _from wallet must approve this contract before.
        // AUDIT: MCM-20 | Token Transfer In updateEmissionSettings
        // DEV: Msg.sender is not user's wallet. This is admin wallet which provide busd for 2nd reward in this contract.
        busdToken.safeTransferFrom(msg.sender, address(this), _depositAmount);
        uint256 busdBalance = getBusdBalance();
        uint256 blockCount = busdEndBlock.sub(block.number);
        busdPerBlock = busdBalance.div(blockCount);

        emit UpdateEmissionSettings(msg.sender, _depositAmount, _endBlock);
    }

    function setAuthorizedCaller(address caller, bool _status) onlyOwner external {
        require(caller != address(0), "MasterChefMoney.setAuthorizedCaller: Zero address");
        _authorizedCaller[caller] = _status;

        emit SetAuthorizedCaller(caller, _status);
    }

    // AUDIT: MCM-01 | Proper Usage of public and external
    // Update dev address by the previous dev.
    function dev(address _devaddr) external {
        require(msg.sender == devaddr, "dev: wut?");

        // AUDIT: MCM-18 | Lack of Input Validation
        require(_devaddr != address(0), "dev: zero address");
        // AUDIT: MCM-08 | Missing Emit Events
        emit SetDev(devaddr, _devaddr);
        devaddr = _devaddr;
    }

    function setBusdFeeder1(address _busdFeeder1) onlyOwner external {
        require(_busdFeeder1 != address(0), "setBusdFeeder: zero address");
        busdFeeder1 = _busdFeeder1;
        emit SetBusdFeeder1(_busdFeeder1);
    }

    function setBusdFeeder2(address _busdFeeder2) onlyOwner external {
        require(_busdFeeder2 != address(0), "setBusdFeeder: zero address");
        busdFeeder2 = _busdFeeder2;
        emit SetBusdFeeder2(_busdFeeder2);
    }

    function _getNow() public virtual view returns (uint256) {
        return block.timestamp;
    }

    // AUDIT: MCM-01 | Proper Usage of public and external
    function totalUsersByPid( uint256 _pid ) external virtual view returns (uint256) {
        return addressByPid[_pid].getAllAddresses().length;
    }
    function usersByPid( uint256 _pid ) public virtual view returns (address[] memory) {
        return addressByPid[_pid].getAllAddresses();
    }

    // AUDIT: MCM-01 | Proper Usage of public and external
    function usersBalancesByPid( uint256 _pid ) external virtual view returns (UserInfo[] memory) {
        address[] memory list = usersByPid(_pid);
        UserInfo[] memory balances = new UserInfo[]( list.length );
        for (uint i = 0; i < list.length; i++) {
            address addr = list[i];
            balances[i] = userInfo[_pid][addr];
        }
        return balances;
    }
    function userIndex( uint256 _pid, address _user ) internal {
        AddrArrayLib.Addresses storage addr = addressByPid[_pid];

        uint256 amount = userInfo[_pid][_user].amount;
        // AUDIT: MCM-07 | Comparison to A Boolean Constant
        if( amount > 0 ){ // add user
            addr.pushAddress(_user);
        }else if( amount == 0 ){ // remove user
            addr.removeAddress(_user);
        }
    }

    // allow to change tax treasure via timelock
    function adminSetTaxAddr(address payable _taxTo) external onlyOwner {
        money.setTaxAddr(_taxTo);
    }

    // allow to change tax via timelock
    function adminSetTax(uint16 _tax) external onlyOwner {
        money.setTax(_tax);
    }

    // whitelist address (like vaults)
    function adminSetWhiteList(address _addr, bool _status) external onlyOwner {
        money.setWhiteList(_addr, _status);
    }

    // liquidity lock setting
    function setSwapAndLiquifyEnabled(bool _enabled) external onlyOwner {
        money.setSwapAndLiquifyEnabled(_enabled);
    }
}

File 8 of 11 : MoneyToken.sol
/*

    http://moneytime.finance/

    https://t.me/moneytimefinance

*/
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;

import "@pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol";
import "@pancakeswap/pancake-swap-lib/contracts/GSN/Context.sol";
import "@pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol";
import "@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol";
import "@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol";

import "./interfaces.sol";


// MoneyToken with Governance.
contract MoneyToken is Context, IBEP20, Ownable {
    using SafeMath for uint256;
    using Address for address;

    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

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


    uint256 public tax;
    address payable public taxToAddrAddress;
    uint256 public constant maxTax = 100; // 10%
    mapping(address => bool) whitelist;

    bool inSwapAndLiquify;
    bool public swapAndLiquifyEnabled = false;

    IUniswapV2Router02 public  uniswapV2Router;
    address public  uniswapV2Pair;

    event transferInsufficient(address indexed from, address indexed to, uint256 total, uint256 balance);
    event whitelistedTransfer(address indexed from, address indexed to, uint256 total);
    event Transfer(address indexed sender, address indexed recipient, uint256 amount);

    event MinTokensBeforeSwapUpdated(uint256 minTokensBeforeSwap);
    event SwapAndLiquifyEnabledUpdated(bool enabled);
    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiqiudity
    );
    event SetTaxAddr(address indexed taxTo);
    event SetTax(uint256 tax);
    event SetWhiteList(address indexed addr, bool status);

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

    constructor(address payable _taxToAddrAddress, uint256 _tax)
    public
    {
        require(_tax <= maxTax, "INVALID TAX");
        require(_taxToAddrAddress != address(0), "Zero Address");
        _name = 'Money Token';
        _symbol = 'Money';
        _decimals = 18;
        taxToAddrAddress = _taxToAddrAddress;
        tax = _tax;
    }

    function init_router(address router) external onlyOwner {
        require(router != address(0), "MoneyToken.init_router: Zero Address");
        // TESTER: moving to a separate function to avoid breaking tests.
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(router);
        // Create a uniswap pair for this new token
        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
        .createPair(address(this), _uniswapV2Router.WETH());
        
        whitelist[uniswapV2Pair] = true;
        // set the rest of the contract variables
        uniswapV2Router = _uniswapV2Router;
    }

    function getOwner() external override view returns (address) {
        return owner();
    }
    function name() public override view returns (string memory) {
        return _name;
    }
    function decimals() external override view returns (uint8) {
        return _decimals;
    }
    function symbol() external override view returns (string memory) {
        return _symbol;
    }
    function totalSupply() external override view returns (uint256) {
        return _totalSupply;
    }
    function balanceOf(address account) public override view returns (uint256) {
        return _balances[account];
    }
    function allowance(address owner, address spender) external override view returns (uint256) {
        return _allowances[owner][spender];
    }
    function approve(address spender, uint256 amount) external override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }
    function increaseAllowance(address spender, uint256 addedValue) external returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }
    function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool) {
        _approve(
            _msgSender(),
            spender,
            _allowances[_msgSender()][spender].sub(subtractedValue, 'BEP20: decreased allowance below zero')
        );
        return true;
    }
    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);
    }
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal {
        require(owner != address(0), 'BEP20: approve from the zero address');
        require(spender != address(0), 'BEP20: approve to the zero address');

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


    // ----------------------------------------------------------------
    function setSwapAndLiquifyEnabled(bool _enabled) external onlyOwner {
        swapAndLiquifyEnabled = _enabled;
        emit SwapAndLiquifyEnabledUpdated(_enabled);
    }

    function setTaxAddr(address payable _taxToAddrAddress) external onlyOwner {
        require(_taxToAddrAddress != address(0), "MoneyToken.setTaxAddr: Zero Address");
        taxToAddrAddress = _taxToAddrAddress;
        emit SetTaxAddr(_taxToAddrAddress);
    }

    function setTax(uint256 _tax) external onlyOwner {
        require(_tax <= maxTax, "INVALID TAX");
        tax = _tax;
        emit SetTax(_tax);
    }

    function setWhiteList(address _addr, bool _status) external onlyOwner {
        require(_addr != address(0), "MoneyToken.setWhiteList: Zero Address");
        whitelist[_addr] = _status;
        emit SetWhiteList(_addr, _status);
    }

    function transfer(address recipient, uint256 amount) public override returns (bool) {
        if (whitelist[recipient] || whitelist[msg.sender]) {
            _transfer(msg.sender, recipient, amount);
            _moveDelegates(_delegates[msg.sender], _delegates[recipient], amount);
            emit whitelistedTransfer(msg.sender, recipient, amount);
        } else {
            (uint256 _amount, uint256 _tax, uint256 _liquidity) = getTax(amount);
            if (!inSwapAndLiquify && _msgSender() != uniswapV2Pair
            && swapAndLiquifyEnabled && _liquidity > 0 // TODO -- we'd better use min swap threshold
            ) {// TODO -- else exception handler
                //add liquidity
                _transfer(msg.sender, address(this), _liquidity);
                swapAndLiquify(_liquidity);
            }
            if (_tax > 0) {
                _transfer(msg.sender, taxToAddrAddress, _tax);
                _moveDelegates(_delegates[msg.sender], _delegates[taxToAddrAddress], _tax);
            }
            _transfer(msg.sender, recipient, _amount);
            _moveDelegates(_delegates[msg.sender], _delegates[recipient], _amount);
        }
        return true;
    }
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        if (whitelist[recipient] || whitelist[sender]) {
            _transfer(sender, recipient, amount);
            _moveDelegates(_delegates[sender], _delegates[recipient], amount);
            emit whitelistedTransfer(sender, recipient, amount);
        } else {
            (uint256 _amount, uint256 _tax, uint256 _liquidity) = getTax(amount);
            if (!inSwapAndLiquify && sender != uniswapV2Pair
            && swapAndLiquifyEnabled && _liquidity > 0 // TODO -- we'd better use min swap threshold
            ) {// TODO -- else exception handler
                //add liquidity
                _transfer(sender, address(this), _liquidity);
                swapAndLiquify(_liquidity);
            }
            if (_tax > 0) {
                _transfer(sender, taxToAddrAddress, _tax);
                _moveDelegates(_delegates[sender], _delegates[taxToAddrAddress], _tax);
            }
            _transfer(sender, recipient, _amount);
            _moveDelegates(_delegates[sender], _delegates[recipient], _amount);
        }
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }
    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);
    }

    function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap {
        // split the contract balance into halves
        uint256 half = contractTokenBalance.div(2);
        uint256 otherHalf = contractTokenBalance.sub(half);

        // capture the contract's current ETH balance.
        // this is so that we can capture exactly the amount of ETH that the
        // swap creates, and not make the liquidity event include any ETH that
        // has been manually sent to the contract
        uint256 initialBalance = address(this).balance;

        // swap tokens for ETH
        swapTokensForEth(half);
        // <- this breaks the ETH -> HATE swap when swap+liquify is triggered

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

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

        emit SwapAndLiquify(half, newBalance, otherHalf);
    }

    function swapTokensForEth(uint256 tokenAmount) private {
        // generate the uniswap pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();

        _approve(address(this), address(uniswapV2Router), tokenAmount);

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

    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(uniswapV2Router), tokenAmount);

        // add the liquidity
        (uint amountToken, uint amountETH, uint liquidity) = uniswapV2Router.addLiquidityETH{value : ethAmount}(
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            address(this),
            block.timestamp
        );
        require(amountToken > 0 && amountETH > 0 && liquidity > 0);
        // send any dust to tax address:
        uint256 bnbAmount = address(this).balance;

        (bool transferSuccess,) = taxToAddrAddress.call{value : bnbAmount}("");
        require(transferSuccess, "MoneyToken.addLiquidity: Failed to send");
    }

    //to recieve ETH from uniswapV2Router when swapping
    receive() external payable {}

    function getTax(uint256 _total) private view returns (uint256 _amount, uint256 _amount_tax, uint256 _amount_liquidity){
        if (tax == 0) {
            return (_total, 0, 0);
        }
        if (tax > 0) {
            _amount_tax = _total.mul(tax).div(1000);
            _amount = _total.sub(_amount_tax);

            if (swapAndLiquifyEnabled) {
                _amount_liquidity = _amount_tax.div(2);
                // 50% of tax will be locked to LP
                _amount_tax = _amount_tax.sub(_amount_liquidity);
            }
        }
        return (_amount, _amount_tax, _amount_liquidity);
    }

    /// @dev Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef).
    function mint(address _to, uint256 _amount) external 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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev 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), "CAKE::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "CAKE::delegateBySig: invalid nonce");
        require(now <= expiry, "CAKE::delegateBySig: signature expired");
        return _delegate(signatory, delegatee);
    }

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

    /**
     * @dev 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, "CAKE::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 CAKEs (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, "CAKE::_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;
    }
}

File 9 of 11 : interfaces.sol
/*

    http://moneytime.finance/

    https://t.me/moneytimefinance

*/
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;


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

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

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

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

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


interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

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

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

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

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

    function initialize(address, address) external;
}


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

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

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


interface IUniswapV2Router02 is IUniswapV2Router01 {

    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external override returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external override returns (uint amountToken, uint amountETH);

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

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

File 10 of 11 : AddrArrayLib.sol
/*
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
*/
/*

    http://moneytime.finance/

    https://t.me/moneytimefinance

*/
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;

library AddrArrayLib {
    using AddrArrayLib for Addresses;

    struct Addresses {
        address[]  _items;
    }

    /**
     * @notice push an address to the array
     * @dev if the address already exists, it will not be added again
     * @param self Storage array containing address type variables
     * @param element the element to add in the array
     */
    function pushAddress(Addresses storage self, address element) internal {
        if (!exists(self, element)) {
            self._items.push(element);
        }
    }

    /**
     * @notice remove an address from the array
     * @dev finds the element, swaps it with the last element, and then deletes it;
     *      returns a boolean whether the element was found and deleted
     * @param self Storage array containing address type variables
     * @param element the element to remove from the array
     */
    function removeAddress(Addresses storage self, address element) internal returns (bool) {
        for (uint i = 0; i < self.size(); i++) {
            if (self._items[i] == element) {
                self._items[i] = self._items[self.size() - 1];
                self._items.pop();
                return true;
            }
        }
        return false;
    }

    /**
     * @notice get the address at a specific index from array
     * @dev revert if the index is out of bounds
     * @param self Storage array containing address type variables
     * @param index the index in the array
     */
    function getAddressAtIndex(Addresses storage self, uint256 index) internal view returns (address) {
        require(index < size(self), "the index is out of bounds");
        return self._items[index];
    }

    /**
     * @notice get the size of the array
     * @param self Storage array containing address type variables
     */
    function size(Addresses storage self) internal view returns (uint256) {
        return self._items.length;
    }

    /**
     * @notice check if an element exist in the array
     * @param self Storage array containing address type variables
     * @param element the element to check if it exists in the array
     */
    function exists(Addresses storage self, address element) internal view returns (bool) {
        for (uint i = 0; i < self.size(); i++) {
            if (self._items[i] == element) {
                return true;
            }
        }
        return false;
    }

    /**
     * @notice get the array
     * @param self Storage array containing address type variables
     */
    function getAllAddresses(Addresses storage self) internal view returns(address[] memory) {
        return self._items;
    }

}

File 11 of 11 : ReentrancyGuard.sol
/*

    http://moneytime.finance/

    https://t.me/moneytimefinance

*/
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;


/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
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;
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "istanbul",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract MoneyToken","name":"_money","type":"address"},{"internalType":"contract IBEP20","name":"_busdToken","type":"address"},{"internalType":"address","name":"_devaddr","type":"address"},{"internalType":"address","name":"_busdFeeder1","type":"address"},{"internalType":"address","name":"_busdFeeder2","type":"address"},{"internalType":"uint256","name":"_moneyPerBlock","type":"uint256"},{"internalType":"uint256","name":"_busdPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_busdEndBlock","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":"sent","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"burned","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"busdPerBlock","type":"uint256"}],"name":"BusdPerBlockUpdated","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":"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":"moneyPerBlock","type":"uint256"}],"name":"MoneyPerBlockUpdated","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":"recipient","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"moneyLockedUp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"busdLockedUp","type":"uint256"}],"name":"RewardLockedUp","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"bool","name":"_status","type":"bool"}],"name":"SetAuthorizedCaller","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"busdFeeder","type":"address"}],"name":"SetBusdFeeder1","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"busdFeeder","type":"address"}],"name":"SetBusdFeeder2","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"prevDev","type":"address"},{"indexed":true,"internalType":"address","name":"newDev","type":"address"}],"name":"SetDev","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"requsted","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sent","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"depositAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endBlock","type":"uint256"}],"name":"UpdateEmissionSettings","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"multiplierNumber","type":"uint256"}],"name":"UpdateMultiplier","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":"BURN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_getNow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IBEP20","name":"_lpToken","type":"address"},{"internalType":"uint256","name":"_burnRate","type":"uint256"},{"internalType":"uint256","name":"_emergencyBurnRate","type":"uint256"},{"internalType":"uint256","name":"_lockPeriod","type":"uint256"},{"internalType":"uint256","name":"_depositFee","type":"uint256"},{"internalType":"bool","name":"_depositBurn","type":"bool"},{"internalType":"bool","name":"_secondaryReward","type":"bool"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_tax","type":"uint16"}],"name":"adminSetTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_taxTo","type":"address"}],"name":"adminSetTaxAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"adminSetWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bonusMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"busdEndBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"busdFeeder1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"busdFeeder2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"busdPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"busdPoolId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"busdToken","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devaddr","type":"address"}],"name":"dev","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":"getBusdBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getBusdMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"money","outputs":[{"internalType":"contract MoneyToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"moneyPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolDeposit","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":"accMoneyPerShare","type":"uint256"},{"internalType":"uint256","name":"accBusdPerShare","type":"uint256"},{"internalType":"uint256","name":"burnRate","type":"uint256"},{"internalType":"uint256","name":"emergencyBurnRate","type":"uint256"},{"internalType":"uint256","name":"lockPeriod","type":"uint256"},{"internalType":"uint256","name":"depositFee","type":"uint256"},{"internalType":"bool","name":"depositBurn","type":"bool"},{"internalType":"bool","name":"secondaryReward","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint256","name":"_burnRate","type":"uint256"},{"internalType":"uint256","name":"_emergencyBurnRate","type":"uint256"},{"internalType":"uint256","name":"_lockPeriod","type":"uint256"},{"internalType":"uint256","name":"_depositFee","type":"uint256"},{"internalType":"bool","name":"_depositBurn","type":"bool"},{"internalType":"bool","name":"_secondaryReward","type":"bool"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"caller","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"setAuthorizedCaller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_busdFeeder1","type":"address"}],"name":"setBusdFeeder1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_busdFeeder2","type":"address"}],"name":"setBusdFeeder2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setSwapAndLiquifyEnabled","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":[],"name":"totalBusdAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"totalUsersByPid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_busdPerBlock","type":"uint256"}],"name":"updateBusdPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_depositAmount","type":"uint256"},{"internalType":"uint256","name":"_endBlock","type":"uint256"}],"name":"updateEmissionSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_moneyPerBlock","type":"uint256"}],"name":"updateMoneyPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"multiplierNumber","type":"uint256"}],"name":"updateMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userIndexByPid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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"},{"internalType":"uint256","name":"busdRewardDebt","type":"uint256"},{"internalType":"uint256","name":"lastDepositTime","type":"uint256"},{"internalType":"uint256","name":"moneyRewardLockedUp","type":"uint256"},{"internalType":"uint256","name":"busdRewardLockedUp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"usersBalancesByPid","outputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"busdRewardDebt","type":"uint256"},{"internalType":"uint256","name":"lastDepositTime","type":"uint256"},{"internalType":"uint256","name":"moneyRewardLockedUp","type":"uint256"},{"internalType":"uint256","name":"busdRewardLockedUp","type":"uint256"}],"internalType":"struct MasterChefMoney.UserInfo[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"usersByPid","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e060405260016007556000600e556000600f553480156200002057600080fd5b506040516200480738038062004807833981016040819052620000439162000245565b60006200004f62000241565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180556001600160a01b038916620000cf5760405162461bcd60e51b8152600401620000c6906200046c565b60405180910390fd5b6001600160a01b038816620000f85760405162461bcd60e51b8152600401620000c690620003ae565b6001600160a01b038716620001215760405162461bcd60e51b8152600401620000c69062000404565b6001600160a01b0386166200014a5760405162461bcd60e51b8152600401620000c690620004c3565b6001600160a01b038516620001735760405162461bcd60e51b8152600401620000c690620002eb565b83620001935760405162461bcd60e51b8152600401620000c6906200034c565b606098891b6001600160601b03199081166080529790981b90961660a052600280546001600160a01b03199081166001600160a01b039788161790915560038054821695871695909517948590556004805490911693861693909317835560059190915560065560c0939093526010939093559182166000908152600c6020526040808220805460ff199081166001908117909255935490941682529020805490911690911790556200053d565b3390565b60008060008060008060008060006101208a8c03121562000264578485fd5b8951620002718162000524565b60208b0151909950620002848162000524565b60408b0151909850620002978162000524565b60608b0151909750620002aa8162000524565b60808b0151909650620002bd8162000524565b8095505060a08a0151935060c08a0151925060e08a015191506101008a015190509295985092959850929598565b6020808252604c90820152600080516020620047e783398151915260408201527f6420666565646572203220616464726573732073686f756c646e27742062652060608201526b7a65726f206164647265737360a01b608082015260a00190565b6020808252604d90820152600080516020620047c783398151915260408201527f65792072657761726420746f6b656e20636f756e742070657220626c6f636b2060608201526c63616e2774206265207a65726f60981b608082015260a00190565b6020808252604190820152600080516020620047e783398151915260408201527f6420746f6b656e2073686f756c646e2774206265207a65726f206164647265736060820152607360f81b608082015260a00190565b60208082526042908201527f4d6173746572436865664d6f6e65792e436f6e7374727563746f723a2044657660408201527f20616464726573732073686f756c646e2774206265207a65726f206164647265606082015261737360f01b608082015260a00190565b6020808252604290820152600080516020620047c783398151915260408201527f657920746f6b656e2073686f756c646e2774206265207a65726f206164647265606082015261737360f01b608082015260a00190565b6020808252604c90820152600080516020620047e783398151915260408201527f6420666565646572203120616464726573732073686f756c646e27742062652060608201526b7a65726f206164647265737360a01b608082015260a00190565b6001600160a01b03811681146200053a57600080fd5b50565b60805160601c60a05160601c60c051614202620005c560003980610f585280612643528061266a5250806121d6528061250c528061256252806128e952806129fe5280612f0a5280612f58525080610851528061142a528061150d52806115ac528061203e52806123e552806124805280612ca25280612d4a5280612df152506142026000f3fe608060405234801561001057600080fd5b50600436106102f15760003560e01c80638da5cb5b1161019d578063bc6e181d116100e9578063d8829d13116100a2578063eebf65f31161007c578063eebf65f314610618578063f2fde38b1461062b578063fac9ff0f1461063e578063fccc281314610646576102f1565b8063d8829d13146105ea578063de0e7014146105fd578063e2bbb15814610605576102f1565b8063bc6e181d14610581578063bd3e78cb14610589578063c49b9a801461059c578063c5a09393146105af578063c6078824146105cf578063d49e77cd146105e2576102f1565b80639f4beee011610156578063a8b973a111610130578063a8b973a114610556578063ac4d45041461055e578063aff03d4214610566578063b54cadbd1461056e576102f1565b80639f4beee014610533578063a156a8c71461053b578063a78beb881461054e576102f1565b80638da5cb5b146104ac5780638dbb1e3a146104b457806393f1a40b146104c757806398969e82146104ec578063990f4bf51461050d5780639bcf254c14610520576102f1565b80635312ea8e1161025c5780636e8f5d9411610215578063734f2a9c116101ef578063734f2a9c14610476578063756ddce41461047e5780637ac5ae3a146104865780638d88a90e14610499576102f1565b80636e8f5d94146104485780636eae0b8b1461045b578063715018a61461046e576102f1565b80635312ea8e146103f75780635a75a8091461040a5780635e2efd57146104125780635ffe614614610425578063630b5ba1146104385780636af083ff14610440576102f1565b8063441a3e70116102ae578063441a3e701461038e578063454bbd29146103a157806348cd4cb1146103b45780634cf5fbf5146103bc5780634ddd108a146103cf57806351eb05a6146103e4576102f1565b806307f21062146102f6578063081e3eda1461031f5780631526fe271461033457806317caf6f11461035e5780632d02462b14610366578063348c5fb914610379575b600080fd5b61030961030436600461366c565b61064e565b60405161031691906138c2565b60405180910390f35b610327610767565b604051610316919061413e565b61034761034236600461366c565b61076d565b6040516103169b9a99989796959493929190613945565b6103276107e4565b61032761037436600461366c565b6107ea565b61038c6103873660046135a6565b6107fc565b005b61038c61039c36600461374e565b6108be565b61038c6103af3660046135a6565b610e9b565b610327610f56565b61038c6103ca3660046135de565b610f7a565b6103d7611428565b6040516103169190613809565b61038c6103f236600461366c565b61144c565b61038c61040536600461366c565b6116cc565b610327611829565b61038c61042036600461358a565b61182f565b61038c61043336600461366c565b6118d4565b61038c611949565b610327611968565b61032761045636600461374e565b61196e565b61032761046936600461366c565b61199c565b61038c6119ba565b610327611a39565b6103d7611a3f565b61038c61049436600461379a565b611a4e565b61038c6104a736600461358a565b611cff565b6103d7611dab565b6103276104c236600461374e565b611dba565b6104da6104d536600461369c565b611dd7565b60405161031696959493929190614155565b6104ff6104fa36600461369c565b611e17565b604051610316929190614147565b61038c61051b36600461358a565b611ff2565b61038c61052e36600461366c565b6120a8565b61032761212f565b61032761054936600461374e565b612134565b610327612183565b610327612187565b61032761218d565b610327612261565b61038c61057c36600461358a565b612267565b61032761230c565b61038c61059736600461366c565b612312565b61038c6105aa366004613612565b612399565b6105c26105bd36600461366c565b61241a565b6040516103169190613875565b61038c6105dd36600461364a565b612434565b6103d76124b5565b61038c6105f83660046136c0565b6124c4565b6103d76128e7565b61038c61061336600461374e565b61290b565b61038c61062636600461376f565b612916565b61038c61063936600461358a565b612a9b565b6103d7612adc565b6103d7612aeb565b60608061065a8361241a565b90506060815167ffffffffffffffff8111801561067657600080fd5b506040519080825280602002602001820160405280156106b057816020015b61069d613554565b8152602001906001900390816106955790505b50905060005b825181101561075f5760008382815181106106cd57fe5b60209081029190910181015160008881526009835260408082206001600160a01b0384168352845290819020815160c0810183528154815260018201549481019490945260028101549184019190915260038101546060840152600481015460808401526005015460a0830152845190925084908490811061074b57fe5b6020908102919091010152506001016106b6565b509392505050565b60085490565b6008818154811061077a57fe5b60009182526020909120600a909102018054600182015460028301546003840154600485015460058601546006870154600788015460088901546009909901546001600160a01b039098169950959794969395929491939092919060ff808216916101009004168b565b600e5481565b600d6020526000908152604090205481565b610804612af1565b6000546001600160a01b0390811691161461083a5760405162461bcd60e51b815260040161083190613e95565b60405180910390fd5b604051638d14e12760e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690638d14e127906108889085908590600401613841565b600060405180830381600087803b1580156108a257600080fd5b505af11580156108b6573d6000803e3d6000fd5b505050505050565b600854829081106108e15760405162461bcd60e51b8152600401610831906140cc565b600260015414156109045760405162461bcd60e51b8152600401610831906140f8565b600260018190555060006008848154811061091b57fe5b6000918252602080832087845260098252604080852033865290925292206007600a9092029092019081015490925015610974578054841461096f5760405162461bcd60e51b815260040161083190613bf9565b610995565b80548411156109955760405162461bcd60e51b815260040161083190614040565b61099e8561144c565b6000858152600d60205260409020546109b79085612af5565b6000868152600d6020526040902055600782015415610d2c5781600701548160030154016109e3612183565b1015610b41578315610ab25780546109fb9085612af5565b8155610a078533612b37565b6000610a2c612710610a26856006015488612b8c90919063ffffffff16565b90612bc6565b90506000610a3a8683612af5565b8454909150610a55906001600160a01b031661dead84612c08565b8354610a6b906001600160a01b03163383612c08565b86336001600160a01b03167f743033787f4738ff4d6a7225ce2bd0977ee5f86b91a902a58f5e4d0b297b46448385604051610aa7929190614147565b60405180910390a350505b600060048201819055600582015560038201548154610adb9164e8d4a5100091610a2691612b8c565b600182015560048201548154610afb9164e8d4a5100091610a2691612b8c565b6002820155604051859033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56890610b3490889061413e565b60405180910390a3610d27565b6000610b838260040154610b7d8460010154610b7764e8d4a51000610a2689600301548960000154612b8c90919063ffffffff16565b90612af5565b90612c63565b90508015610b9557610b953382612c88565b6009830154610100900460ff1615610bf1576000610bdd8360050154610b7d8560020154610b7764e8d4a51000610a268a600401548a60000154612b8c90919063ffffffff16565b90508015610bef57610bef3382612edd565b505b8415610c9b578154610c039086612af5565b8255610c0f8633612b37565b61271083600501541415610c3a578254610c35906001600160a01b031661dead87612c08565b610c9b565b6000610c59612710610a26866005015489612b8c90919063ffffffff16565b90506000610c678783612af5565b8554909150610c82906001600160a01b031661dead84612c08565b8454610c98906001600160a01b03163383612c08565b50505b600060048301819055600583015560038301548254610cc49164e8d4a5100091610a2691612b8c565b600183015560048301548254610ce49164e8d4a5100091610a2691612b8c565b6002830155604051869033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56890610d1d90899061413e565b60405180910390a3505b610e90565b6000610d628260040154610b7d8460010154610b7764e8d4a51000610a2689600301548960000154612b8c90919063ffffffff16565b90508015610d7457610d743382612c88565b6009830154610100900460ff1615610dd0576000610dbc8360050154610b7d8560020154610b7764e8d4a51000610a268a600401548a60000154612b8c90919063ffffffff16565b90508015610dce57610dce3382612edd565b505b8415610e04578154610de29086612af5565b8255610dee8633612b37565b8254610e04906001600160a01b03163387612c08565b600060048301819055600583015560038301548254610e2d9164e8d4a5100091610a2691612b8c565b600183015560048301548254610e4d9164e8d4a5100091610a2691612b8c565b6002830155604051869033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56890610e8690899061413e565b60405180910390a3505b505060018055505050565b610ea3612af1565b6000546001600160a01b03908116911614610ed05760405162461bcd60e51b815260040161083190613e95565b6001600160a01b038216610ef65760405162461bcd60e51b815260040161083190613eca565b6001600160a01b0382166000818152600c602052604090819020805460ff1916841515179055517fffccedd4f65bd8c40a111a5a9a7e3a7917dbde9ee4eb251ded57fcc29e193a0090610f4a90849061393a565b60405180910390a25050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60085482908110610f9d5760405162461bcd60e51b8152600401610831906140cc565b60026001541415610fc05760405162461bcd60e51b8152600401610831906140f8565b6002600181905550600060088481548110610fd757fe5b600091825260208083208784526009825260408085206001600160a01b038b1686529092529220600a90910290910191506110118561144c565b805415611022576110228686612f8f565b83156113975760088201541561121d576000611051612710610a26856008015488612b8c90919063ffffffff16565b9050600061105f8683612af5565b600985015490915060ff161561108d578354611088906001600160a01b03163361dead856130b2565b6110ab565b60025484546110ab916001600160a01b0391821691339116856130b2565b83546040516370a0823160e01b81526000916001600160a01b0316906370a08231906110db903090600401613809565b60206040518083038186803b1580156110f357600080fd5b505afa158015611107573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112b9190613684565b8554909150611145906001600160a01b03163330856130b2565b84546040516370a0823160e01b81526000916001600160a01b0316906370a0823190611175903090600401613809565b60206040518083038186803b15801561118d57600080fd5b505afa1580156111a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c59190613684565b90506111d18183612af5565b60008a8152600d60205260409020549093506111ed9084612c63565b60008a8152600d602052604090205584546112089084612c63565b8555611214898b612b37565b50505050611389565b81546040516370a0823160e01b81526000916001600160a01b0316906370a082319061124d903090600401613809565b60206040518083038186803b15801561126557600080fd5b505afa158015611279573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061129d9190613684565b83549091506112b7906001600160a01b03163330886130b2565b82546040516370a0823160e01b81526000916001600160a01b0316906370a08231906112e7903090600401613809565b60206040518083038186803b1580156112ff57600080fd5b505afa158015611313573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113379190613684565b90506113438183612af5565b6000888152600d602052604090205490965061135f9087612c63565b6000888152600d6020526040902055825461137a9087612c63565b83556113868789612b37565b50505b611391612183565b60038201555b600382015481546113b29164e8d4a5100091610a2691612b8c565b6001820155600482015481546113d29164e8d4a5100091610a2691612b8c565b816002018190555084866001600160a01b03167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1586604051611414919061413e565b60405180910390a350506001805550505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6008548190811061146f5760405162461bcd60e51b8152600401610831906140cc565b60006008838154811061147e57fe5b90600052602060002090600a020190508060020154431161149f57506116c8565b6000838152600d6020526040902054806114c05750436002909101556116c8565b60006114d0836002015443611dba565b905060006114fd600e54610a2686600101546114f760055487612b8c90919063ffffffff16565b90612b8c565b6002549091506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116916340c10f199116611548612710610a2686610320612b8c565b6040518363ffffffff1660e01b815260040161156592919061385c565b600060405180830381600087803b15801561157f57600080fd5b505af1158015611593573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506340c10f1991506115e5903090859060040161385c565b600060405180830381600087803b1580156115ff57600080fd5b505af1158015611613573d6000803e3d6000fd5b5050505061164161163684610a2664e8d4a5100085612b8c90919063ffffffff16565b600386015490612c63565b60038501556009840154610100900460ff16156116ba576000611668856002015443612134565b9050600061168f600f54610a2688600101546114f760065487612b8c90919063ffffffff16565b90506116b26116a786610a268464e8d4a51000612b8c565b600488015490612c63565b600487015550505b438460020181905550505050505b5050565b600854819081106116ef5760405162461bcd60e51b8152600401610831906140cc565b600260015414156117125760405162461bcd60e51b8152600401610831906140f8565b600260018190555060006008838154811061172957fe5b6000918252602080832086845260098252604080852033865290925292206007600a90920290920190810154909250156117755760405162461bcd60e51b815260040161083190613b56565b80548254611790916001600160a01b03909116903390612c08565b8054604051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595916117c49161413e565b60405180910390a380546000858152600d60205260409020546117e691612af5565b6000858152600d6020526040812091909155808255600182018190556002820181905560048201819055600582015561181f8433612b37565b5050600180555050565b61271081565b611837612af1565b6000546001600160a01b039081169116146118645760405162461bcd60e51b815260040161083190613e95565b6001600160a01b03811661188a5760405162461bcd60e51b815260040161083190613f1b565b600480546001600160a01b0319166001600160a01b0383169081179091556040517f4f783057b6829d466e48f6b07c12b7d012cdbf077773c9bc31ba1a2616a2b36d90600090a250565b6118dc612af1565b6000546001600160a01b039081169116146119095760405162461bcd60e51b815260040161083190613e95565b60078190556040517fa0be54773ac26c27d6d0e44698c6b7c95df74fcf44847d1561849a34fc48b0789061193e90839061413e565b60405180910390a150565b60085460005b818110156116c8576119608161144c565b60010161194f565b600f5481565b600b602052816000526040600020818154811061198757fe5b90600052602060002001600091509150505481565b6000818152600a602052604081206119b3906130d3565b5192915050565b6119c2612af1565b6000546001600160a01b039081169116146119ef5760405162461bcd60e51b815260040161083190613e95565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60065481565b6004546001600160a01b031681565b611a56612af1565b6000546001600160a01b03908116911614611a835760405162461bcd60e51b815260040161083190613e95565b60085489908110611aa65760405162461bcd60e51b8152600401610831906140cc565b6103e8851115611ac85760405162461bcd60e51b815260040161083190613e50565b612710881115611aea5760405162461bcd60e51b815260040161083190613e50565b6109c4871115611b0c5760405162461bcd60e51b8152600401610831906139d5565b62278d00861115611b2f5760405162461bcd60e51b815260040161083190613ad5565b8115611b3d57611b3d611949565b600060088b81548110611b4c57fe5b90600052602060002090600a02016001015490508960088c81548110611b6e57fe5b90600052602060002090600a0201600101819055508860088c81548110611b9157fe5b90600052602060002090600a0201600501819055508760088c81548110611bb457fe5b90600052602060002090600a0201600601819055508660088c81548110611bd757fe5b90600052602060002090600a0201600701819055508560088c81548110611bfa57fe5b90600052602060002090600a0201600801819055508460088c81548110611c1d57fe5b60009182526020909120600a90910201600901805460ff1916911515919091179055898114611c6357611c5f8a610b7d83600e54612af590919063ffffffff16565b600e555b8315611c7a57600f54611c76908b612c63565b600f555b60088b81548110611c8757fe5b90600052602060002090600a020160090160019054906101000a900460ff1615611cbc57600f54611cb89082612af5565b600f555b8360088c81548110611cca57fe5b90600052602060002090600a020160090160016101000a81548160ff0219169083151502179055505050505050505050505050565b6002546001600160a01b03163314611d295760405162461bcd60e51b815260040161083190613dec565b6001600160a01b038116611d4f5760405162461bcd60e51b815260040161083190613c7b565b6002546040516001600160a01b038084169216907f7b4a3682445cf2b8276b6dde2faa9f9a653ea60d9ebadf169518e64f55666aae90600090a3600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031690565b600754600090611dce906114f78486612af5565b90505b92915050565b6009602090815260009283526040808420909152908252902080546001820154600283015460038401546004850154600590950154939492939192909186565b600080836008805490508110611e3f5760405162461bcd60e51b8152600401610831906140cc565b600060088681548110611e4e57fe5b600091825260208083208984526009825260408085206001600160a01b038b16865283528085206003600a9095029092019384015460048501548c8752600d90945290852054600285015494965091949093819043118015611eaf57508215155b15611f7d576000611ec4886002015443611dba565b90506000611eeb600e54610a268b600101546114f760055487612b8c90919063ffffffff16565b9050611f0a611f0386610a268464e8d4a51000612b8c565b8890612c63565b60098a0154909750610100900460ff1615611f7a576000611f2f8a6002015443612134565b90506000611f56600f54610a268d600101546114f760065487612b8c90919063ffffffff16565b9050611f75611f6e88610a268464e8d4a51000612b8c565b8990612c63565b975050505b50505b611fad8660040154610b7d8860010154610b7764e8d4a51000610a268b8d60000154612b8c90919063ffffffff16565b9150611fdf8660050154610b7d8860020154610b7764e8d4a51000610a268a8d60000154612b8c90919063ffffffff16565b919c919b50909950505050505050505050565b611ffa612af1565b6000546001600160a01b039081169116146120275760405162461bcd60e51b815260040161083190613e95565b604051636b27dcbd60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636b27dcbd90612073908490600401613809565b600060405180830381600087803b15801561208d57600080fd5b505af11580156120a1573d6000803e3d6000fd5b5050505050565b6120b0612af1565b6000546001600160a01b039081169116146120dd5760405162461bcd60e51b815260040161083190613e95565b806120fa5760405162461bcd60e51b815260040161083190613d77565b60058190556040517f7b46a9a50b9ac34a804318626dc8625998b7edf7181e8ee77501bf7805c12f2f9061193e90839061413e565b600081565b6000601054821161215757600754612150906114f78486612af5565b9050611dd1565b601054831061216857506000611dd1565b6121506007546114f785601054612af590919063ffffffff16565b4290565b60075481565b6000808052600d6020527f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee546040516370a0823160e01b8152829161225b916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a082319061220b903090600401613809565b60206040518083038186803b15801561222357600080fd5b505afa158015612237573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b779190613684565b91505090565b60055481565b61226f612af1565b6000546001600160a01b0390811691161461229c5760405162461bcd60e51b815260040161083190613e95565b6001600160a01b0381166122c25760405162461bcd60e51b815260040161083190613f1b565b600380546001600160a01b0319166001600160a01b0383169081179091556040517f7d0f44299c1c97a800e0c8aabdb22b6b3e1be8deaf026e35bd84c8bfb4f12d1b90600090a250565b60105481565b61231a612af1565b6000546001600160a01b039081169116146123475760405162461bcd60e51b815260040161083190613e95565b806123645760405162461bcd60e51b815260040161083190613fcc565b60068190556040517f723597593507f57cc1c9eab2e7cf1ed895a33b61dff8b29e795e7bee3ccb277b9061193e90839061413e565b6123a1612af1565b6000546001600160a01b039081169116146123ce5760405162461bcd60e51b815260040161083190613e95565b604051630189373560e71b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c49b9a809061207390849060040161393a565b6000818152600a60205260409020606090611dd1906130d3565b61243c612af1565b6000546001600160a01b039081169116146124695760405162461bcd60e51b815260040161083190613e95565b604051632e5bb6ff60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690632e5bb6ff9061207390849060040161412f565b6002546001600160a01b031681565b6124cc612af1565b6000546001600160a01b039081169116146124f95760405162461bcd60e51b815260040161083190613e95565b60085461255657876001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146125515760405162461bcd60e51b815260040161083190613f52565b6125a8565b876001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031614156125a85760405162461bcd60e51b815260040161083190613d40565b6103e88411156125ca5760405162461bcd60e51b815260040161083190613a22565b6127108711156125ec5760405162461bcd60e51b815260040161083190613a22565b6109c486111561260e5760405162461bcd60e51b815260040161083190613cf3565b62278d008511156126315760405162461bcd60e51b815260040161083190613c44565b801561263f5761263f611949565b60007f0000000000000000000000000000000000000000000000000000000000000000431161268e577f0000000000000000000000000000000000000000000000000000000000000000612690565b435b600e549091506126a0908b612c63565b600e5582156126ba57600f546126b6908b612c63565b600f555b60408051610160810182526001600160a01b039a8b168152602081019b8c529081019182526000606082018181526080830182815260a084019b8c5260c084019a8b5260e08401998a52610100808501998a529715156101208501908152961515610140850190815260088054600181018255945293517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3600a90940293840180546001600160a01b03191691909e1617909c559b517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee482015591517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee583015599517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee682015597517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee78901555094517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee887015592517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee986015590517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636eea850155517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636eeb84015590517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636eec9092018054935160ff19949094169215159290921761ff00191692151502919091179055565b7f000000000000000000000000000000000000000000000000000000000000000081565b6116c8338383610f7a565b61291e611dab565b6001600160a01b031661292f612af1565b6001600160a01b031614806129695750600c600061294b612af1565b6001600160a01b0316815260208101919091526040016000205460ff165b6129855760405162461bcd60e51b81526004016108319061406c565b6003546001600160a01b03163314806129a857506004546001600160a01b031633145b6129c45760405162461bcd60e51b815260040161083190613a67565b4381116129e35760405162461bcd60e51b815260040161083190613ca6565b6129ec8361144c565b6010819055612a266001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330856130b2565b6000612a3061218d565b90506000612a4943601054612af590919063ffffffff16565b9050612a558282612bc6565b60065560405133907f6cc060d4dc004dc26049b585f4a49480601b04700d27350d704a87558808d38f90612a8c9087908790614147565b60405180910390a25050505050565b612aa3612af1565b6000546001600160a01b03908116911614612ad05760405162461bcd60e51b815260040161083190613e95565b612ad981613139565b50565b6003546001600160a01b031681565b61dead81565b3390565b6000611dce83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506131ba565b6000828152600a60209081526040808320600983528184206001600160a01b0386168552909252909120548015612b7757612b7282846131e6565b612b86565b80612b86576120a18284613225565b50505050565b600082612b9b57506000611dd1565b82820282848281612ba857fe5b0414611dce5760405162461bcd60e51b815260040161083190613e0f565b6000611dce83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061331c565b612c5e8363a9059cbb60e01b8484604051602401612c2792919061385c565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613353565b505050565b600082820183811015611dce5760405162461bcd60e51b815260040161083190613bc2565b6040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190612cd7903090600401613809565b60206040518083038186803b158015612cef57600080fd5b505afa158015612d03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d279190613684565b9050600081831115612dda5760405163a9059cbb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb90612d81908790869060040161385c565b602060405180830381600087803b158015612d9b57600080fd5b505af1158015612daf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dd3919061362e565b9050612e7d565b60405163a9059cbb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb90612e28908790879060040161385c565b602060405180830381600087803b158015612e4257600080fd5b505af1158015612e56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e7a919061362e565b90505b836001600160a01b03167f7fa9aafeb8bb803d77de5d84bc2f2edbd842ca91b20cd5020aa21dfe26ab0be98484604051612eb8929190614147565b60405180910390a280612b865760405162461bcd60e51b8152600401610831906140a3565b6000612ee761218d565b9050600081831115612f415760405163a9059cbb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb90612d81908790869060040161385c565b60405163a9059cbb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb90612e28908790879060040161385c565b600060088281548110612f9e57fe5b600091825260208083208584526009825260408085206001600160a01b038916865290925290832060048101546001820154600a94909402909201600381015482549196509194936130039392610b7d92610b779164e8d4a5100091610a2691612b8c565b9050600061303b8360050154610b7d8560020154610b7764e8d4a51000610a268a600401548a60000154612b8c90919063ffffffff16565b6007850154909150156130a257600483018290556005830181905560405185906001600160a01b038816907f9e07f6ce6df62e6493fb66f97aa2619c750b99a22a2ee66e8062775483d3c77b906130959086908690614147565b60405180910390a36108b6565b81156108b6576108b68683612c88565b612b86846323b872dd60e01b858585604051602401612c279392919061381d565b60608160000180548060200260200160405190810160405280929190818152602001828054801561312d57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161310f575b50505050509050919050565b6001600160a01b03811661315f5760405162461bcd60e51b815260040161083190613b7c565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600081848411156131de5760405162461bcd60e51b815260040161083191906139a2565b505050900390565b6131f082826133e2565b6116c85781546001810183556000838152602090200180546001600160a01b0383166001600160a01b03199091161790555050565b6000805b6132328461343c565b81101561331257826001600160a01b031684600001828154811061325257fe5b6000918252602090912001546001600160a01b0316141561330a578360016132798261343c565b038154811061328457fe5b60009182526020909120015484546001600160a01b03909116908590839081106132aa57fe5b600091825260209091200180546001600160a01b0319166001600160a01b039290921691909117905583548490806132de57fe5b600082815260209020810160001990810180546001600160a01b03191690550190555060019050611dd1565b600101613229565b5060009392505050565b6000818361333d5760405162461bcd60e51b815260040161083191906139a2565b50600083858161334957fe5b0495945050505050565b60606133a8826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166134409092919063ffffffff16565b805190915015612c5e57808060200190518101906133c6919061362e565b612c5e5760405162461bcd60e51b815260040161083190613b0c565b6000805b6133ef8461343c565b81101561331257826001600160a01b031684600001828154811061340f57fe5b6000918252602090912001546001600160a01b03161415613434576001915050611dd1565b6001016133e6565b5490565b606061344f8484600085613457565b949350505050565b60606134628561351b565b61347e5760405162461bcd60e51b815260040161083190613f95565b60006060866001600160a01b0316858760405161349b91906137ed565b60006040518083038185875af1925050503d80600081146134d8576040519150601f19603f3d011682016040523d82523d6000602084013e6134dd565b606091505b509150915081156134f157915061344f9050565b8051156135015780518082602001fd5b8360405162461bcd60e51b815260040161083191906139a2565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061344f575050151592915050565b6040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b60006020828403121561359b578081fd5b8135611dce816141a9565b600080604083850312156135b8578081fd5b82356135c3816141a9565b915060208301356135d3816141be565b809150509250929050565b6000806000606084860312156135f2578081fd5b83356135fd816141a9565b95602085013595506040909401359392505050565b600060208284031215613623578081fd5b8135611dce816141be565b60006020828403121561363f578081fd5b8151611dce816141be565b60006020828403121561365b578081fd5b813561ffff81168114611dce578182fd5b60006020828403121561367d578081fd5b5035919050565b600060208284031215613695578081fd5b5051919050565b600080604083850312156136ae578182fd5b8235915060208301356135d3816141a9565b60008060008060008060008060006101208a8c0312156136de578485fd5b8935985060208a01356136f0816141a9565b975060408a0135965060608a0135955060808a0135945060a08a0135935060c08a013561371c816141be565b925060e08a013561372c816141be565b91506101008a013561373d816141be565b809150509295985092959850929598565b60008060408385031215613760578182fd5b50508035926020909101359150565b600080600060608486031215613783578283fd5b505081359360208301359350604090920135919050565b60008060008060008060008060006101208a8c0312156137b8578283fd5b8935985060208a0135975060408a0135965060608a0135955060808a0135945060a08a0135935060c08a013561371c816141be565b600082516137ff81846020870161417d565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b039290921682521515602082015260400190565b6001600160a01b03929092168252602082015260400190565b6020808252825182820181905260009190848201906040850190845b818110156138b65783516001600160a01b031683529284019291840191600101613891565b50909695505050505050565b602080825282518282018190526000919060409081850190868401855b8281101561392d5781518051855286810151878601528581015186860152606080820151908601526080808201519086015260a0908101519085015260c090930192908501906001016138df565b5091979650505050505050565b901515815260200190565b6001600160a01b039b909b168b5260208b019990995260408a01979097526060890195909552608088019390935260a087019190915260c086015260e0850152610100840152151561012083015215156101408201526101600190565b60006020825282518060208401526139c181604085016020870161417d565b601f01601f19169190910160400192915050565b6020808252602d908201527f7365743a20696e76616c696420656d657267656e6379206272756e207261746560408201526c20626173697320706f696e747360981b606082015260800190565b60208082526025908201527f6164643a20696e76616c6964206465706f7369742066656520626173697320706040820152646f696e747360d81b606082015260800190565b60208082526048908201527f4d6173746572436865664d6f6e65792e757064617465456d697373696f6e536560408201527f7474696e67733a206d73672073656e6465722073686f756c642062652062757360608201526732103332b2b232b960c11b608082015260a00190565b60208082526018908201527f7365743a20696e76616c6964206c6f636b20706572696f640000000000000000604082015260600190565b6020808252602a908201527f5361666542455032303a204245503230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252600c908201526b75736520776974686472617760a01b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252602b908201527f77697468647261773a2053686f756c6420756e7374616b652031303025206f6660408201526a103a34b6b2903a37b5b2b760a91b606082015260800190565b60208082526018908201527f6164643a20696e76616c6964206c6f636b20706572696f640000000000000000604082015260600190565b6020808252601190820152706465763a207a65726f206164647265737360781b604082015260600190565b6020808252602d908201527f456e6420626c6f636b2073686f756c6420626520626967676572207468616e2060408201526c63757272656e7420626c6f636b60981b606082015260800190565b6020808252602d908201527f6164643a20696e76616c696420656d657267656e6379206272756e207261746560408201526c20626173697320706f696e747360981b606082015260800190565b60208082526017908201527f6275736420706f6f6c20616c7265616479206164646564000000000000000000604082015260600190565b6020808252604f908201527f4d6173746572436865664d6f6e65792e7570646174654d6f6e6579506572426c60408201527f6f636b3a2052657761726420746f6b656e20636f756e742070657220626c6f6360608201526e6b2063616e2774206265207a65726f60881b608082015260a00190565b6020808252600990820152686465763a207775743f60b81b604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b60208082526025908201527f7365743a20696e76616c6964206465706f7369742066656520626173697320706040820152646f696e747360d81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4d6173746572436865664d6f6e65792e736574417574686f72697a656443616c6040820152706c65723a205a65726f206164647265737360781b606082015260800190565b6020808252601b908201527f736574427573644665656465723a207a65726f20616464726573730000000000604082015260600190565b60208082526023908201527f6164643a20666972737420706f6f6c2073686f756c64206265206275736420706040820152621bdbdb60ea1b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252604e908201527f4d6173746572436865664d6f6e65792e75706461746542757364506572426c6f60408201527f636b3a2052657761726420746f6b656e20636f756e742070657220626c6f636b60608201526d2063616e2774206265207a65726f60901b608082015260a00190565b6020808252601290820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604082015260600190565b6020808252601a908201527f4d494e545f43414c4c45525f4e4f545f415554484f52495a4544000000000000604082015260600190565b6020808252600f908201526e1d1c985b9cd9995c8819985a5b1959608a1b604082015260600190565b6020808252601290820152711c1bdbdb081a59081b9bdd08195e1a5cda5d60721b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b61ffff91909116815260200190565b90815260200190565b918252602082015260400190565b958652602086019490945260408501929092526060840152608083015260a082015260c00190565b60005b83811015614198578181015183820152602001614180565b83811115612b865750506000910152565b6001600160a01b0381168114612ad957600080fd5b8015158114612ad957600080fdfea264697066735822122088a85fe43dace49f235f1a0254b03acd55b8699527fa733f6f8ddef0b30fb8bc64736f6c634300060c00334d6173746572436865664d6f6e65792e436f6e7374727563746f723a204d6f6e4d6173746572436865664d6f6e65792e436f6e7374727563746f723a2042757300000000000000000000000044da393fd39f82eee7d57d7161ea6e0736e57956000000000000000000000000e9e7cea3dedca5984780bafc599bd69add087d560000000000000000000000000c516a87a9df7d1579506aa7f56b5ff511dda8e2000000000000000000000000c610422fbd4ab646b3a7b6144d706301a7d67e91000000000000000000000000b2e9c3507c9867943152b74d0001aa11279d70f800000000000000000000000000000000000000000000000053444835ec58000000000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000000009d4b2a0000000000000000000000000000000000000000000000000000000000000000

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

00000000000000000000000044da393fd39f82eee7d57d7161ea6e0736e57956000000000000000000000000e9e7cea3dedca5984780bafc599bd69add087d560000000000000000000000000c516a87a9df7d1579506aa7f56b5ff511dda8e2000000000000000000000000c610422fbd4ab646b3a7b6144d706301a7d67e91000000000000000000000000b2e9c3507c9867943152b74d0001aa11279d70f800000000000000000000000000000000000000000000000053444835ec58000000000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000000009d4b2a0000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _money (address): 0x44da393fd39f82eee7d57d7161ea6e0736e57956
Arg [1] : _busdToken (address): 0xe9e7cea3dedca5984780bafc599bd69add087d56
Arg [2] : _devaddr (address): 0x0c516a87a9df7d1579506aa7f56b5ff511dda8e2
Arg [3] : _busdFeeder1 (address): 0xc610422fbd4ab646b3a7b6144d706301a7d67e91
Arg [4] : _busdFeeder2 (address): 0xb2e9c3507c9867943152b74d0001aa11279d70f8
Arg [5] : _moneyPerBlock (uint256): 6000000000000000000
Arg [6] : _busdPerBlock (uint256): 1000000
Arg [7] : _startBlock (uint256): 10308394
Arg [8] : _busdEndBlock (uint256): 0

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000044da393fd39f82eee7d57d7161ea6e0736e57956
Arg [1] : 000000000000000000000000e9e7cea3dedca5984780bafc599bd69add087d56
Arg [2] : 0000000000000000000000000c516a87a9df7d1579506aa7f56b5ff511dda8e2
Arg [3] : 000000000000000000000000c610422fbd4ab646b3a7b6144d706301a7d67e91
Arg [4] : 000000000000000000000000b2e9c3507c9867943152b74d0001aa11279d70f8
Arg [5] : 00000000000000000000000000000000000000000000000053444835ec580000
Arg [6] : 00000000000000000000000000000000000000000000000000000000000f4240
Arg [7] : 00000000000000000000000000000000000000000000000000000000009d4b2a
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000000


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.