Contract 0xb02e3a4b5ebc315137753e24b6eb6aef7d602e40 3

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xceb83dfa68378e212ac29e2dc86a00cb2ab4cae283fce0cf17b59bf2901bf357Deposit288157462022-01-23 11:42:5435 secs ago0x39974027eb771adde9e831c3b16c31835d687426 IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.084044532
0xd6179f3ecf73e4cc11521c5d877e7749c9b73a8e14fab2736d9e3b5fb01f1c18Deposit288155652022-01-23 11:39:423 mins ago0x5a570f9db61e7b3cd3e2d268973d3c83138d5d9d IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.076816835174
0xf90b12576637ad09ac0fb966f3368df6080b7f398b501f8ad0e3ec3a14c8735fDeposit288154972022-01-23 11:38:394 mins ago0x1f2d2c33a4086cc06b137c62a9161074b0448e3a IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.07203463087
0x838af55f78c6af4c661bbf5d86a5dea1d6c00b14142c3b2346d4e3ba08b606acDeposit288154682022-01-23 11:38:035 mins ago0x1f2d2c33a4086cc06b137c62a9161074b0448e3a IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.066054920755
0x10abd6fc98c679ed838e2333be3c7277beb426a186ad3834e6c4dc95360bb299Deposit288153952022-01-23 11:36:526 mins ago0x453e8af62bfe737a0e05125020da45f17156a1f9 IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.090594464387
0x459cd3c7c9b9dadcc9232c876551dbac0f6547b79b74d2c36a02923bb79a0138Deposit288153872022-01-23 11:36:476 mins ago0x1f2d2c33a4086cc06b137c62a9161074b0448e3a IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.067182132336
0x11075fc89d97a075d86bd1389f1d63139087b4f11e54e47165c111049a4e0b4eDeposit288153492022-01-23 11:36:187 mins ago0x453e8af62bfe737a0e05125020da45f17156a1f9 IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.086165630073
0x393300ee7bb0e7242c5c65bb58b31d7797a188805e6f6d6de2377bd8ea474db0Deposit288153362022-01-23 11:36:077 mins ago0x1f2d2c33a4086cc06b137c62a9161074b0448e3a IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.067997456531
0x445d46cc8c0a58383f227dc68dc02fcbb4e3b418bc3ea0f8cc2b66971f268770Deposit288152202022-01-23 11:34:378 mins ago0x54a0c1216056f3cc6b4825c461ff6e4e49ebc9e7 IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.080777253478
0x58dc697e2a21335811451becb68f8ea6e5ea68f05132599abfbf1951106a0e16Deposit288151862022-01-23 11:34:079 mins ago0x54a0c1216056f3cc6b4825c461ff6e4e49ebc9e7 IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.065544308044
0x6350a6b8708d78837b6789e3b2cb9ad804b1fd436b3af31038ef0d4779fbb7f1Deposit288151742022-01-23 11:33:579 mins ago0x54a0c1216056f3cc6b4825c461ff6e4e49ebc9e7 IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.065540807961
0xeec6fd30c8914c063b732ad49d0c2946d92d7822b8cf296cd0db01016b21a49eDeposit288149542022-01-23 11:30:5212 mins ago0x4cbb9b77a1d8263346226fe86f7f51d5f537de71 IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.094497723904
0x7149b769421b20df58809e2d1f1eccbceed255d3d233bd3ee1db5695eae24d00Deposit288148322022-01-23 11:29:1514 mins ago0x4cbb9b77a1d8263346226fe86f7f51d5f537de71 IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.034019656192
0x50caaddb02466442c6b7282abad7732f616f85049c9bce82c918cb24e4a138daDeposit288148322022-01-23 11:29:1514 mins ago0x4cbb9b77a1d8263346226fe86f7f51d5f537de71 IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.0786513
0x4278e9906d25b1e42a0c2b652aaaf5d9123b95171b679e901536154fdaaa547aDeposit288147982022-01-23 11:28:4414 mins ago0xea7b522ff2abc9b9d71e18ece85b4d03096861a4 IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.060651730048
0xe80b6a2590dde0f938e81585dc050b9cd44c3604ddbc8a5a6c9832dfa1959d93Deposit288147742022-01-23 11:28:2015 mins ago0x4cbb9b77a1d8263346226fe86f7f51d5f537de71 IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.0604346787
0xfd7106f5b6a851887075c9f912b1a312bbda6daf99e4c640da077e245553d9cfDeposit288146042022-01-23 11:25:5517 mins ago0xcec0384502f4a00ca7863929fb8a8bb6680ffe72 IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.121168663
0x44488d948fd2bb4c72986fc2f85d2f7584dbf0fbe3cb94bd6e7008541681c886Deposit288143132022-01-23 11:21:2122 mins ago0xcec0384502f4a00ca7863929fb8a8bb6680ffe72 IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.098089407
0x07423136ef92b836a830f78a43e85f07a8cb1ad74c6cac987dbac326aaa9ddc7Withdraw288143082022-01-23 11:21:1422 mins ago0xf4636525535d64ed4af23537a9813286033161ad IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.0383519915
0x1884d242b1a794c91105fbbbf8436eba55937007c1f8ec25284f4f555bd5bc74Deposit288142812022-01-23 11:20:3822 mins ago0xafd6e75e1ae79f0199a52167fc0804747015b060 IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.099196950931
0xcec639f6a557cf90de5b04eab30e98525196597cb1b63c4cb2ac24a007d5a482Deposit288137982022-01-23 11:09:1734 mins ago0xf6bdd7d5810f9a2bbb2c6685188df21afdaba648 IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.056232099
0x066da1a6685b4183d316e65a92e1198fc9c345b43d1045257be1f96590715485Deposit288134812022-01-23 11:04:5838 mins ago0xf6bdd7d5810f9a2bbb2c6685188df21afdaba648 IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.052006374
0x54ed519b0deb7ca5d4081b4c34b697151ee0925cda36716041729675b790dcbbDeposit288134202022-01-23 11:04:0039 mins ago0x42dd6252b9be3dad03220e8f730c300564d741a8 IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.104326769659
0x8ae5d20d1b38e1df19fe4dd7920d745a196ddb140cefd88ef55c7615579d6e0aDeposit288133762022-01-23 11:03:2840 mins ago0x05db3ffc9fd3f5bef6e29ae05add64a83bbcc159 IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.048053224707
0xd937aecd67927104c642831ba20dcc5a0ac177db613a49e4efdc639d2aa85578Deposit288133422022-01-23 11:03:0240 mins ago0x42dd6252b9be3dad03220e8f730c300564d741a8 IN  0xb02e3a4b5ebc315137753e24b6eb6aef7d602e400 FTM0.112280447193
[ Download CSV Export 
Latest 4 internal transactions
Parent Txn Hash Block From To Value
0x9f06fc693c8120dd832b6d7e3db06f25ca4dbc136f0b5cce878a33729c8ee056284660982022-01-19 18:29:513 days 17 hrs ago 0x9b97b656e5b3828f1edd64395f4c4a6d91418c68 0xb02e3a4b5ebc315137753e24b6eb6aef7d602e402 FTM
0xe82806fbf6d8de00c3df655ccd5e1f75c99f2e07eef7cc6fa1bb3fddeef39fc5283596272022-01-18 16:57:054 days 18 hrs ago 0x294f9ba945027682d7fe232d466e8c40012af996 0xb02e3a4b5ebc315137753e24b6eb6aef7d602e401 FTM
0x4f01e319f8472472ba78e8414527a507e977ecbeb7130c3e72c145403cbabba9283574852022-01-18 16:20:194 days 19 hrs ago 0x294f9ba945027682d7fe232d466e8c40012af996 0xb02e3a4b5ebc315137753e24b6eb6aef7d602e401 FTM
0xceaf0d7b7faf03b646a488bb41299f1e840ced820228eae3700484a63bd9cebb230874952021-11-25 12:17:3958 days 23 hrs ago Undead Finance: Deployer  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MasterChef

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at FtmScan.com on 2021-11-25
*/

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

/**
 *Submitted for verification at BscScan.com on 2021-09-26
*/

/**
 *Submitted for verification at BscScan.com on 2021-09-24
*/

// SPDX-License-Identifier: MIT


pragma solidity >=0.6.2 <0.8.0;

/**
 * @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) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

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

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

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



pragma solidity >=0.6.0 <0.8.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;
    }
}





pragma solidity >=0.6.0 <0.8.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.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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










pragma solidity >=0.6.0 <0.8.0;


/**
 * @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.
 */
abstract contract Ownable is Context {
    address private _owner;

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

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

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

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

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

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




pragma solidity >=0.6.0 <0.8.0;

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





pragma solidity >=0.6.4;

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




pragma solidity >=0.4.0;

/**
 * @dev Implementation of the {IBEP20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {BEP20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-BEP20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of BEP20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IBEP20-approve}.
 */
contract BEP20 is Context, IBEP20, Ownable {
    using SafeMath for uint256;

    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

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

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

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

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

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

    /**
     * @dev See {BEP20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

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

    /**
     * @dev See {BEP20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {BEP20};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for `sender`'s tokens of at least
     * `amount`.
     */
    function transferFrom (address sender, address recipient, uint256 amount) public override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(
            sender,
            _msgSender(),
            _allowances[sender][_msgSender()].sub(amount, 'BEP20: transfer amount exceeds allowance')
        );
        return true;
    }

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

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

    /**
     * @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing
     * the total supply.
     *
     * Requirements
     *
     * - `msg.sender` must be the token owner
     */
    function mint(uint256 amount) public onlyOwner returns (bool) {
        _mint(_msgSender(), amount);
        return true;
    }

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

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

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

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

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

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

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
     *
     * This is internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve (address 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);
    }

    /**
     * @dev Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
        _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, 'BEP20: burn amount exceeds allowance'));
    }
}






pragma solidity ^0.6.12;



// KnightToken with Governance.
contract KnightToken is BEP20('DarkKnightSwap Token', 'dKNIGHT') {
    /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef).
    function mint(address _to, uint256 _amount) public onlyOwner {
        _mint(_to, _amount);
        _moveDelegates(address(0), _delegates[_to], _amount);
    }

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

    
    mapping (address => address) internal _delegates;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @notice Determine the prior number of votes for an account as of a block number
     * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
     * @param account The address of the account to check
     * @param blockNumber The block number to get the vote balance at
     * @return The number of votes the account had as of the given block
     */
    function getPriorVotes(address account, uint blockNumber)
        external
        view
        returns (uint256)
    {
        require(blockNumber < block.number, "dKnight::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 Knights (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, "dKnight::_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;
    }
}



pragma solidity 0.6.12;


// MasterChef is the master of Knight. He can make Knight 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 Knight is sufficiently
// distributed and the community can show to govern itself.
//
// Have fun reading it. Hopefully it's bug-free. God bless.
contract MasterChef is Ownable {
    using SafeMath for uint256;
    using SafeBEP20 for IBEP20;

    // Info of each user.
    struct UserInfo {
        uint256 amount;         // How many LP tokens the user has provided.
        uint256 rewardDebt;     // Reward debt. See explanation below.
        //
        // We do some fancy math here. Basically, any point in time, the amount of Knights
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accKnightPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accKnightPerShare` (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. Knights to distribute per block.
        uint256 lastRewardBlock;  // Last block number that Knights distribution occurs.
        uint256 accKnightPerShare;   // Accumulated Knights per share, times 1e12. See below.
        uint16 depositFeeBP;      // Deposit fee in basis points
    }

    // The Knight TOKEN!
    KnightToken public Knight;
    // Dev address.
    address public devaddr;
    // Knight tokens created per block.
    uint256 public KnightPerBlock;
    // Bonus muliplier for early Knight makers.
    uint256 public constant BONUS_MULTIPLIER = 1;
    // Deposit Fee address
    address public feeAddress;

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

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

    constructor(
        KnightToken _Knight,
        address _devaddr,
        address _feeAddress,
        uint256 _KnightPerBlock,
        uint256 _startBlock
    ) public {
        Knight = _Knight;
        devaddr = _devaddr;
        feeAddress = _feeAddress;
        KnightPerBlock = _KnightPerBlock;
        startBlock = _startBlock;
    }

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

    // Add a new lp to the pool. Can only be called by the owner.
    // XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do.
    function add(uint256 _allocPoint, IBEP20 _lpToken, uint16 _depositFeeBP, bool _withUpdate) public onlyOwner {
        require(_depositFeeBP <= 10000, "add: invalid deposit fee basis points");
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(PoolInfo({
            lpToken: _lpToken,
            allocPoint: _allocPoint,
            lastRewardBlock: lastRewardBlock,
            accKnightPerShare: 0,
            depositFeeBP: _depositFeeBP
        }));
    }

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

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

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

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



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

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

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

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

    // Safe Knight transfer function, just in case if rounding error causes pool to not have enough Knights.
    function safeKnightTransfer(address _to, uint256 _amount) internal {
        uint256 KnightBal = Knight.balanceOf(address(this));
        if (_amount > KnightBal) {
            Knight.transfer(_to, KnightBal);
        } else {
            Knight.transfer(_to, _amount);
        }
    }

    // Update dev address by the previous dev.
    function dev(address _devaddr) public {
        require(msg.sender == devaddr, "dev: wut?");
        devaddr = _devaddr;
    }

    function setFeeAddress(address _feeAddress) public{
        require(msg.sender == feeAddress, "setFeeAddress: FORBIDDEN");
        feeAddress = _feeAddress;
    }

    //Pancake has to add hidden dummy pools inorder to alter the emission, here we make it simple and transparent to all.
    function updateEmissionRate(uint256 _KnightPerBlock) public onlyOwner {
        massUpdatePools();
        KnightPerBlock = _KnightPerBlock;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract KnightToken","name":"_Knight","type":"address"},{"internalType":"address","name":"_devaddr","type":"address"},{"internalType":"address","name":"_feeAddress","type":"address"},{"internalType":"uint256","name":"_KnightPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BONUS_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Knight","outputs":[{"internalType":"contract KnightToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"KnightPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IBEP20","name":"_lpToken","type":"address"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","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":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingKnight","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":"accKnightPerShare","type":"uint256"},{"internalType":"uint16","name":"depositFeeBP","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeAddress","type":"address"}],"name":"setFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_KnightPerBlock","type":"uint256"}],"name":"updateEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600060075534801561001557600080fd5b50604051611c09380380611c09833981810160405260a081101561003857600080fd5b5080516020820151604083015160608401516080909401519293919290919060006100616100f7565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b03199081166001600160a01b0397881617909155600280548216958716959095179094556004805490941692909416919091179091556003556008556100fb565b3390565b611aff8061010a6000396000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c8063630b5ba1116100de5780638da5cb5b11610097578063d49e77cd11610071578063d49e77cd146103e6578063d9638422146103ee578063e2bbb15814610423578063f2fde38b1461044657610173565b80638da5cb5b146103765780638dbb1e3a1461037e57806393f1a40b146103a157610173565b8063630b5ba1146102d4578063715018a6146102dc57806384e82a33146102e45780638705fcd4146103225780638aa28550146103485780638d88a90e1461035057610173565b8063189e56e611610130578063189e56e6146102435780634127535814610267578063441a3e701461026f57806348cd4cb11461029257806351eb05a61461029a5780635312ea8e146102b757610173565b806303400a6514610178578063081e3eda146101b65780630ba84cd2146101be5780631313e13e146101dd5780631526fe27146101e557806317caf6f11461023b575b600080fd5b6101a46004803603604081101561018e57600080fd5b50803590602001356001600160a01b031661046c565b60408051918252519081900360200190f35b6101a46105de565b6101db600480360360208110156101d457600080fd5b50356105e4565b005b6101a4610649565b610202600480360360208110156101fb57600080fd5b503561064f565b604080516001600160a01b039096168652602086019490945284840192909252606084015261ffff166080830152519081900360a00190f35b6101a461069b565b61024b6106a1565b604080516001600160a01b039092168252519081900360200190f35b61024b6106b0565b6101db6004803603604081101561028557600080fd5b50803590602001356106bf565b6101a4610812565b6101db600480360360208110156102b057600080fd5b5035610818565b6101db600480360360208110156102cd57600080fd5b5035610a48565b6101db610ae4565b6101db610b07565b6101db600480360360808110156102fa57600080fd5b508035906001600160a01b036020820135169061ffff60408201351690606001351515610ba9565b6101db6004803603602081101561033857600080fd5b50356001600160a01b0316610db1565b6101a4610e32565b6101db6004803603602081101561036657600080fd5b50356001600160a01b0316610e37565b61024b610ea4565b6101a46004803603604081101561039457600080fd5b5080359060200135610eb3565b6103cd600480360360408110156103b757600080fd5b50803590602001356001600160a01b0316610ecb565b6040805192835260208301919091528051918290030190f35b61024b610eef565b6101db6004803603608081101561040457600080fd5b5080359060208101359061ffff60408201351690606001351515610efe565b6101db6004803603604081101561043957600080fd5b508035906020013561104e565b6101db6004803603602081101561045c57600080fd5b50356001600160a01b03166111c6565b6000806005848154811061047c57fe5b600091825260208083208784526006825260408085206001600160a01b0389811687529084528186206005959095029092016003810154815483516370a0823160e01b815230600482015293519298509596909590949316926370a082319260248082019391829003018186803b1580156104f657600080fd5b505afa15801561050a573d6000803e3d6000fd5b505050506040513d602081101561052057600080fd5b505160028501549091504311801561053757508015155b156105a357600061054c856002015443610eb3565b9050600061057f6007546105798860010154610573600354876112be90919063ffffffff16565b906112be565b90611317565b905061059e610597846105798464e8d4a510006112be565b8590611359565b935050505b6105d183600101546105cb64e8d4a510006105798688600001546112be90919063ffffffff16565b906113b3565b9450505050505b92915050565b60055490565b6105ec6113f5565b6000546001600160a01b0390811691161461063c576040805162461bcd60e51b81526020600482018190526024820152600080516020611aaa833981519152604482015290519081900360640190fd5b610644610ae4565b600355565b60035481565b6005818154811061065c57fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909161ffff1685565b60075481565b6001546001600160a01b031681565b6004546001600160a01b031681565b6000600583815481106106ce57fe5b600091825260208083208684526006825260408085203386529092529220805460059092029092019250831115610741576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b61074a84610818565b600061077882600101546105cb64e8d4a51000610579876003015487600001546112be90919063ffffffff16565b9050801561078a5761078a33826113f9565b83156107b457815461079c90856113b3565b825582546107b4906001600160a01b0316338661158a565b600383015482546107cf9164e8d4a5100091610579916112be565b6001830155604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b60085481565b60006005828154811061082757fe5b90600052602060002090600502019050806002015443116108485750610a45565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561089257600080fd5b505afa1580156108a6573d6000803e3d6000fd5b505050506040513d60208110156108bc57600080fd5b505190508015806108cf57506001820154155b156108e1575043600290910155610a45565b60006108f1836002015443610eb3565b905060006109186007546105798660010154610573600354876112be90919063ffffffff16565b6001546002549192506001600160a01b03908116916340c10f19911661093f84600a611317565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561098557600080fd5b505af1158015610999573d6000803e3d6000fd5b5050600154604080516340c10f1960e01b81523060048201526024810186905290516001600160a01b0390921693506340c10f19925060448082019260009290919082900301818387803b1580156109f057600080fd5b505af1158015610a04573d6000803e3d6000fd5b50505050610a32610a278461057964e8d4a51000856112be90919063ffffffff16565b600386015490611359565b6003850155505043600290920191909155505b50565b600060058281548110610a5757fe5b600091825260208083208584526006825260408085203380875293528420805485825560018201959095556005909302018054909450919291610aa7916001600160a01b0391909116908361158a565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b60055460005b81811015610b0357610afb81610818565b600101610aea565b5050565b610b0f6113f5565b6000546001600160a01b03908116911614610b5f576040805162461bcd60e51b81526020600482018190526024820152600080516020611aaa833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610bb16113f5565b6000546001600160a01b03908116911614610c01576040805162461bcd60e51b81526020600482018190526024820152600080516020611aaa833981519152604482015290519081900360640190fd5b6127108261ffff161115610c465760405162461bcd60e51b81526004018080602001828103825260258152602001806119c96025913960400191505060405180910390fd5b8015610c5457610c54610ae4565b60006008544311610c6757600854610c69565b435b600754909150610c799086611359565b6007556040805160a0810182526001600160a01b0395861681526020810196875290810191825260006060820181815261ffff95861660808401908152600580546001810182559381905293517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db09390940292830180546001600160a01b031916949098169390931790965595517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db187015590517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db286015592517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db38501555090517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db4909201805461ffff191692909116919091179055565b6004546001600160a01b03163314610e10576040805162461bcd60e51b815260206004820152601860248201527f736574466565416464726573733a20464f5242494444454e0000000000000000604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b600181565b6002546001600160a01b03163314610e82576040805162461bcd60e51b81526020600482015260096024820152686465763a207775743f60b81b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031690565b6000610ec4600161057384866113b3565b9392505050565b60066020908152600092835260408084209091529082529020805460019091015482565b6002546001600160a01b031681565b610f066113f5565b6000546001600160a01b03908116911614610f56576040805162461bcd60e51b81526020600482018190526024820152600080516020611aaa833981519152604482015290519081900360640190fd5b6127108261ffff161115610f9b5760405162461bcd60e51b8152600401808060200182810382526025815260200180611a856025913960400191505060405180910390fd5b8015610fa957610fa9610ae4565b610fe683610fe060058781548110610fbd57fe5b9060005260206000209060050201600101546007546113b390919063ffffffff16565b90611359565b6007819055508260058581548110610ffa57fe5b906000526020600020906005020160010181905550816005858154811061101d57fe5b906000526020600020906005020160040160006101000a81548161ffff021916908361ffff16021790555050505050565b60006005838154811061105d57fe5b6000918252602080832086845260068252604080852033865290925292206005909102909101915061108e84610818565b8054156110d75760006110c382600101546105cb64e8d4a51000610579876003015487600001546112be90919063ffffffff16565b905080156110d5576110d533826113f9565b505b82156111695781546110f4906001600160a01b03163330866115dc565b600482015461ffff161561115a576004820154600090611121906127109061057990879061ffff166112be565b6004548454919250611140916001600160a01b0390811691168361158a565b81546111529082906105cb9087611359565b825550611169565b80546111669084611359565b81555b600382015481546111849164e8d4a5100091610579916112be565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050565b6111ce6113f5565b6000546001600160a01b0390811691161461121e576040805162461bcd60e51b81526020600482018190526024820152600080516020611aaa833981519152604482015290519081900360640190fd5b6001600160a01b0381166112635760405162461bcd60e51b8152600401808060200182810382526026815260200180611a186026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000826112cd575060006105d8565b828202828482816112da57fe5b0414610ec45760405162461bcd60e51b8152600401808060200182810382526021815260200180611a646021913960400191505060405180910390fd5b6000610ec483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061163c565b600082820183811015610ec4576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000610ec483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506116de565b3390565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561144457600080fd5b505afa158015611458573d6000803e3d6000fd5b505050506040513d602081101561146e57600080fd5b5051905080821115611502576001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156114d057600080fd5b505af11580156114e4573d6000803e3d6000fd5b505050506040513d60208110156114fa57600080fd5b506115859050565b6001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561155857600080fd5b505af115801561156c573d6000803e3d6000fd5b505050506040513d602081101561158257600080fd5b50505b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611585908490611738565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611636908590611738565b50505050565b600081836116c85760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561168d578181015183820152602001611675565b50505050905090810190601f1680156116ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816116d457fe5b0495945050505050565b600081848411156117305760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561168d578181015183820152602001611675565b505050900390565b606061178d826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166117e99092919063ffffffff16565b805190915015611585578080602001905160208110156117ac57600080fd5b50516115855760405162461bcd60e51b815260040180806020018281038252602a8152602001806119ee602a913960400191505060405180910390fd5b60606117f88484600085611800565b949350505050565b6060824710156118415760405162461bcd60e51b8152600401808060200182810382526026815260200180611a3e6026913960400191505060405180910390fd5b61184a8561195c565b61189b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106118da5780518252601f1990920191602091820191016118bb565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461193c576040519150601f19603f3d011682016040523d82523d6000602084013e611941565b606091505b5091509150611951828286611962565b979650505050505050565b3b151590565b60608315611971575081610ec4565b8251156119815782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561168d57818101518382015260200161167556fe6164643a20696e76616c6964206465706f7369742066656520626173697320706f696e74735361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f777365743a20696e76616c6964206465706f7369742066656520626173697320706f696e74734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122031c170d4ee1482a723540b45945efce8013f848b050dd1a7d00560022e4da4fc64736f6c634300060c00330000000000000000000000006cc0e0aedbbd3c35283e38668d959f6eb30348560000000000000000000000004483af89d86114e2f8b16b15d64c84241922ed780000000000000000000000004483af89d86114e2f8b16b15d64c84241922ed780000000000000000000000000000000000000000000000004563918244f40000000000000000000000000000000000000000000000000000000000000162d534

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

0000000000000000000000006cc0e0aedbbd3c35283e38668d959f6eb30348560000000000000000000000004483af89d86114e2f8b16b15d64c84241922ed780000000000000000000000004483af89d86114e2f8b16b15d64c84241922ed780000000000000000000000000000000000000000000000004563918244f40000000000000000000000000000000000000000000000000000000000000162d534

-----Decoded View---------------
Arg [0] : _Knight (address): 0x6cc0e0aedbbd3c35283e38668d959f6eb3034856
Arg [1] : _devaddr (address): 0x4483af89d86114e2f8b16b15d64c84241922ed78
Arg [2] : _feeAddress (address): 0x4483af89d86114e2f8b16b15d64c84241922ed78
Arg [3] : _KnightPerBlock (uint256): 5000000000000000000
Arg [4] : _startBlock (uint256): 23254324

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000006cc0e0aedbbd3c35283e38668d959f6eb3034856
Arg [1] : 0000000000000000000000004483af89d86114e2f8b16b15d64c84241922ed78
Arg [2] : 0000000000000000000000004483af89d86114e2f8b16b15d64c84241922ed78
Arg [3] : 0000000000000000000000000000000000000000000000004563918244f40000
Arg [4] : 000000000000000000000000000000000000000000000000000000000162d534


Deployed ByteCode Sourcemap

41975:10031:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46568:803;;;;;;;;;;;;;;;;-1:-1:-1;46568:803:0;;;;;;-1:-1:-1;;;;;46568:803:0;;:::i;:::-;;;;;;;;;;;;;;;;44780:95;;;:::i;51854:149::-;;;;;;;;;;;;;;;;-1:-1:-1;51854:149:0;;:::i;:::-;;43573:29;;;:::i;43798:26::-;;;;;;;;;;;;;;;;-1:-1:-1;43798:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;43798:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44041:34;;;:::i;43450:25::-;;;:::i;:::-;;;;-1:-1:-1;;;;;43450:25:0;;;;;;;;;;;;;;43737;;;:::i;49732:767::-;;;;;;;;;;;;;;;;-1:-1:-1;49732:767:0;;;;;;;:::i;44134:25::-;;;:::i;47714:836::-;;;;;;;;;;;;;;;;-1:-1:-1;47714:836:0;;:::i;50570:385::-;;;;;;;;;;;;;;;;-1:-1:-1;50570:385:0;;:::i;47454:180::-;;;:::i;15211:148::-;;;:::i;45044:662::-;;;;;;;;;;;;;;;;-1:-1:-1;45044:662:0;;;-1:-1:-1;;;;;45044:662:0;;;;;;;;;;;;;;;;;;;:::i;51558:165::-;;;;;;;;;;;;;;;;-1:-1:-1;51558:165:0;-1:-1:-1;;;;;51558:165:0;;:::i;43658:44::-;;;:::i;51421:129::-;;;;;;;;;;;;;;;;-1:-1:-1;51421:129:0;-1:-1:-1;;;;;51421:129:0;;:::i;14569:79::-;;;:::i;46359:143::-;;;;;;;;;;;;;;;;-1:-1:-1;46359:143:0;;;;;;;:::i;43880:66::-;;;;;;;;;;;;;;;;-1:-1:-1;43880:66:0;;;;;;-1:-1:-1;;;;;43880:66:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;43503:22;;;:::i;45820:463::-;;;;;;;;;;;;;;;;-1:-1:-1;45820:463:0;;;;;;;;;;;;;;;;;;;;;:::i;48621:1059::-;;;;;;;;;;;;;;;;-1:-1:-1;48621:1059:0;;;;;;;:::i;15514:244::-;;;;;;;;;;;;;;;;-1:-1:-1;15514:244:0;-1:-1:-1;;;;;15514:244:0;;:::i;46568:803::-;46643:7;46663:21;46687:8;46696:4;46687:14;;;;;;;;;;;;;;;;46736;;;:8;:14;;;;;;-1:-1:-1;;;;;46736:21:0;;;;;;;;;;;46687:14;;;;;;;;46796:22;;;;46848:12;;:37;;-1:-1:-1;;;46848:37:0;;46879:4;46848:37;;;;;;46687:14;;-1:-1:-1;46736:21:0;;46796:22;;46687:14;;46848:12;;;:22;;:37;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46848:37:0;46915:20;;;;46848:37;;-1:-1:-1;46900:12:0;:35;:52;;;;-1:-1:-1;46939:13:0;;;46900:52;46896:378;;;46969:18;46990:49;47004:4;:20;;;47026:12;46990:13;:49::i;:::-;46969:70;;47054:20;47077:72;47133:15;;47077:51;47112:4;:15;;;47077:30;47092:14;;47077:10;:14;;:30;;;;:::i;:::-;:34;;:51::i;:::-;:55;;:72::i;:::-;47054:95;-1:-1:-1;47193:59:0;47215:36;47242:8;47215:22;47054:95;47232:4;47215:16;:22::i;:36::-;47193:17;;:21;:59::i;:::-;47173:79;;46896:378;;;47291:65;47340:4;:15;;;47291:44;47330:4;47291:34;47307:17;47291:4;:11;;;:15;;:34;;;;:::i;:44::-;:48;;:65::i;:::-;47284:72;;;;;;46568:803;;;;;:::o;44780:95::-;44852:8;:15;44780:95;:::o;51854:149::-;14791:12;:10;:12::i;:::-;14781:6;;-1:-1:-1;;;;;14781:6:0;;;:22;;;14773:67;;;;;-1:-1:-1;;;14773:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;14773:67:0;;;;;;;;;;;;;;;51935:17:::1;:15;:17::i;:::-;51963:14;:32:::0;51854:149::o;43573:29::-;;;;:::o;43798:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;43798:26:0;;;;-1:-1:-1;43798:26:0;;;;;;;:::o;44041:34::-;;;;:::o;43450:25::-;;;-1:-1:-1;;;;;43450:25:0;;:::o;43737:::-;;;-1:-1:-1;;;;;43737:25:0;;:::o;49732:767::-;49799:21;49823:8;49832:4;49823:14;;;;;;;;;;;;;;;;49872;;;:8;:14;;;;;;49887:10;49872:26;;;;;;;49917:11;;49823:14;;;;;;;;-1:-1:-1;49917:22:0;-1:-1:-1;49917:22:0;49909:53;;;;;-1:-1:-1;;;49909:53:0;;;;;;;;;;;;-1:-1:-1;;;49909:53:0;;;;;;;;;;;;;;;49973:16;49984:4;49973:10;:16::i;:::-;50021:15;50039:70;50093:4;:15;;;50039:49;50083:4;50039:39;50055:4;:22;;;50039:4;:11;;;:15;;:39;;;;:::i;:70::-;50021:88;-1:-1:-1;50123:11:0;;50120:82;;50151:39;50170:10;50182:7;50151:18;:39::i;:::-;50215:11;;50212:151;;50257:11;;:24;;50273:7;50257:15;:24::i;:::-;50243:38;;50296:12;;:55;;-1:-1:-1;;;;;50296:12:0;50330:10;50343:7;50296:25;:55::i;:::-;50407:22;;;;50391:11;;:49;;50435:4;;50391:39;;:15;:39::i;:49::-;50373:15;;;:67;50456:35;;;;;;;;50477:4;;50465:10;;50456:35;;;;;;;;;49732:767;;;;;:::o;44134:25::-;;;;:::o;47714:836::-;47766:21;47790:8;47799:4;47790:14;;;;;;;;;;;;;;;;;;47766:38;;47835:4;:20;;;47819:12;:36;47815:75;;47872:7;;;47815:75;47919:12;;:37;;;-1:-1:-1;;;47919:37:0;;47950:4;47919:37;;;;;;47900:16;;-1:-1:-1;;;;;47919:12:0;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47919:37:0;;-1:-1:-1;47971:13:0;;;:37;;-1:-1:-1;47988:15:0;;;;:20;47971:37;47967:126;;;-1:-1:-1;48048:12:0;48025:20;;;;:35;48075:7;;47967:126;48103:18;48124:49;48138:4;:20;;;48160:12;48124:13;:49::i;:::-;48103:70;;48184:20;48207:72;48263:15;;48207:51;48242:4;:15;;;48207:30;48222:14;;48207:10;:14;;:30;;;;:::i;:72::-;48290:6;;48302:7;;48184:95;;-1:-1:-1;;;;;;48290:6:0;;;;:11;;48302:7;48311:20;48184:95;48328:2;48311:16;:20::i;:::-;48290:42;;;;;;;;;;;;;-1:-1:-1;;;;;48290:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;48343:6:0;;:40;;;-1:-1:-1;;;48343:40:0;;48363:4;48343:40;;;;;;;;;;;;-1:-1:-1;;;;;48343:6:0;;;;-1:-1:-1;48343:11:0;;-1:-1:-1;48343:40:0;;;;;:6;;:40;;;;;;;;:6;;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48432:64;48459:36;48486:8;48459:22;48476:4;48459:12;:16;;:22;;;;:::i;:36::-;48432:22;;;;;:26;:64::i;:::-;48407:22;;;:89;-1:-1:-1;;48530:12:0;48507:20;;;;:35;;;;-1:-1:-1;47714:836:0;;:::o;50570:385::-;50629:21;50653:8;50662:4;50653:14;;;;;;;;;;;;;;;;50702;;;:8;:14;;;;;;50717:10;50702:26;;;;;;;50756:11;;50778:15;;;-1:-1:-1;50804:15:0;;:19;;;;50653:14;;;;;50834:12;;50653:14;;-1:-1:-1;50702:26:0;;50756:11;50834:54;;-1:-1:-1;;;;;50834:12:0;;;;;50756:11;50834:25;:54::i;:::-;50904:43;;;;;;;;50934:4;;50922:10;;50904:43;;;;;;;;;50570:385;;;;:::o;47454:180::-;47516:8;:15;47499:14;47542:85;47570:6;47564:3;:12;47542:85;;;47600:15;47611:3;47600:10;:15::i;:::-;47578:5;;47542:85;;;;47454:180;:::o;15211:148::-;14791:12;:10;:12::i;:::-;14781:6;;-1:-1:-1;;;;;14781:6:0;;;:22;;;14773:67;;;;;-1:-1:-1;;;14773:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;14773:67:0;;;;;;;;;;;;;;;15318:1:::1;15302:6:::0;;15281:40:::1;::::0;-1:-1:-1;;;;;15302:6:0;;::::1;::::0;15281:40:::1;::::0;15318:1;;15281:40:::1;15349:1;15332:19:::0;;-1:-1:-1;;;;;;15332:19:0::1;::::0;;15211:148::o;45044:662::-;14791:12;:10;:12::i;:::-;14781:6;;-1:-1:-1;;;;;14781:6:0;;;:22;;;14773:67;;;;;-1:-1:-1;;;14773:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;14773:67:0;;;;;;;;;;;;;;;45188:5:::1;45171:13;:22;;;;45163:72;;;;-1:-1:-1::0;;;45163:72:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45250:11;45246:61;;;45278:17;:15;:17::i;:::-;45317:23;45358:10;;45343:12;:25;:53;;45386:10;;45343:53;;;45371:12;45343:53;45425:15;::::0;45317:79;;-1:-1:-1;45425:32:0::1;::::0;45445:11;45425:19:::1;:32::i;:::-;45407:15;:50:::0;45482:215:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;45482:215:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;45482:215:0;;;;;;::::1;::::0;;::::1;::::0;;;;;;45468:8:::1;:230:::0;;::::1;::::0;::::1;::::0;;;;;;;;;;;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;45468:230:0::1;::::0;;;::::1;::::0;;;::::1;::::0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45468:230:0;;;;;;;;-1:-1:-1;;45468:230:0::1;::::0;;;::::1;::::0;;;::::1;::::0;;45044:662::o;51558:165::-;51641:10;;-1:-1:-1;;;;;51641:10:0;51627;:24;51619:61;;;;;-1:-1:-1;;;51619:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;51691:10;:24;;-1:-1:-1;;;;;;51691:24:0;-1:-1:-1;;;;;51691:24:0;;;;;;;;;;51558:165::o;43658:44::-;43701:1;43658:44;:::o;51421:129::-;51492:7;;-1:-1:-1;;;;;51492:7:0;51478:10;:21;51470:43;;;;;-1:-1:-1;;;51470:43:0;;;;;;;;;;;;-1:-1:-1;;;51470:43:0;;;;;;;;;;;;;;;51524:7;:18;;-1:-1:-1;;;;;;51524:18:0;-1:-1:-1;;;;;51524:18:0;;;;;;;;;;51421:129::o;14569:79::-;14607:7;14634:6;-1:-1:-1;;;;;14634:6:0;14569:79;:::o;46359:143::-;46431:7;46458:36;43701:1;46458:14;:3;46466:5;46458:7;:14::i;:36::-;46451:43;46359:143;-1:-1:-1;;;46359:143:0:o;43880:66::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;43503:22::-;;;-1:-1:-1;;;;;43503:22:0;;:::o;45820:463::-;14791:12;:10;:12::i;:::-;14781:6;;-1:-1:-1;;;;;14781:6:0;;;:22;;;14773:67;;;;;-1:-1:-1;;;14773:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;14773:67:0;;;;;;;;;;;;;;;45961:5:::1;45944:13;:22;;;;45936:72;;;;-1:-1:-1::0;;;45936:72:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46023:11;46019:61;;;46051:17;:15;:17::i;:::-;46108:63;46159:11;46108:46;46128:8;46137:4;46128:14;;;;;;;;;;;;;;;;;;:25;;;46108:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::1;:63::i;:::-;46090:15;:81;;;;46210:11;46182:8;46191:4;46182:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;46262:13;46232:8;46241:4;46232:14;;;;;;;;;;;;;;;;;;:27;;;:43;;;;;;;;;;;;;;;;;;45820:463:::0;;;;:::o;48621:1059::-;48687:21;48711:8;48720:4;48711:14;;;;;;;;;;;;;;;;48760;;;:8;:14;;;;;;48775:10;48760:26;;;;;;;48711:14;;;;;;;;-1:-1:-1;48797:16:0;48769:4;48797:10;:16::i;:::-;48828:11;;:15;48824:240;;48860:15;48878:70;48932:4;:15;;;48878:49;48922:4;48878:39;48894:4;:22;;;48878:4;:11;;;:15;;:39;;;;:::i;:70::-;48860:88;-1:-1:-1;48966:11:0;;48963:90;;48998:39;49017:10;49029:7;48998:18;:39::i;:::-;48824:240;;49077:11;;49074:471;;49105:12;;:74;;-1:-1:-1;;;;;49105:12:0;49143:10;49164:4;49171:7;49105:29;:74::i;:::-;49197:17;;;;;;:21;49194:340;;49271:17;;;;49238:18;;49259:41;;49294:5;;49259:30;;:7;;49271:17;;49259:11;:30::i;:41::-;49345:10;;49319:12;;49238:62;;-1:-1:-1;49319:49:0;;-1:-1:-1;;;;;49319:12:0;;;;49345:10;49238:62;49319:25;:49::i;:::-;49401:11;;:40;;49430:10;;49401:24;;49417:7;49401:15;:24::i;:40::-;49387:54;;-1:-1:-1;49194:340:0;;;49494:11;;:24;;49510:7;49494:15;:24::i;:::-;49480:38;;49194:340;49589:22;;;;49573:11;;:49;;49617:4;;49573:39;;:15;:39::i;:49::-;49555:15;;;:67;49638:34;;;;;;;;49658:4;;49646:10;;49638:34;;;;;;;;;48621:1059;;;;:::o;15514:244::-;14791:12;:10;:12::i;:::-;14781:6;;-1:-1:-1;;;;;14781:6:0;;;:22;;;14773:67;;;;;-1:-1:-1;;;14773:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;14773:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;15603:22:0;::::1;15595:73;;;;-1:-1:-1::0;;;15595:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15705:6;::::0;;15684:38:::1;::::0;-1:-1:-1;;;;;15684:38:0;;::::1;::::0;15705:6;::::1;::::0;15684:38:::1;::::0;::::1;15733:6;:17:::0;;-1:-1:-1;;;;;;15733:17:0::1;-1:-1:-1::0;;;;;15733:17:0;;;::::1;::::0;;;::::1;::::0;;15514:244::o;9451:471::-;9509:7;9754:6;9750:47;;-1:-1:-1;9784:1:0;9777:8;;9750:47;9821:5;;;9825:1;9821;:5;:1;9845:5;;;;;:10;9837:56;;;;-1:-1:-1;;;9837:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10398:132;10456:7;10483:39;10487:1;10490;10483:39;;;;;;;;;;;;;;;;;:3;:39::i;8097:181::-;8155:7;8187:5;;;8211:6;;;;8203:46;;;;;-1:-1:-1;;;8203:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;8561:136;8619:7;8646:43;8650:1;8653;8646:43;;;;;;;;;;;;;;;;;:3;:43::i;13143:106::-;13231:10;13143:106;:::o;51073:292::-;51171:6;;:31;;;-1:-1:-1;;;51171:31:0;;51196:4;51171:31;;;;;;51151:17;;-1:-1:-1;;;;;51171:6:0;;:16;;:31;;;;;;;;;;;;;;:6;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51171:31:0;;-1:-1:-1;51217:19:0;;;51213:145;;;51253:6;;:31;;;-1:-1:-1;;;51253:31:0;;-1:-1:-1;;;;;51253:31:0;;;;;;;;;;;;;;;:6;;;;;:15;;:31;;;;;;;;;;;;;;:6;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51213:145:0;;-1:-1:-1;51213:145:0;;51317:6;;:29;;;-1:-1:-1;;;51317:29:0;;-1:-1:-1;;;;;51317:29:0;;;;;;;;;;;;;;;:6;;;;;:15;;:29;;;;;;;;;;;;;;:6;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;51213:145:0;51073:292;;;:::o;16365:177::-;16475:58;;;-1:-1:-1;;;;;16475:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16475:58:0;-1:-1:-1;;;16475:58:0;;;16448:86;;16468:5;;16448:19;:86::i;16550:205::-;16678:68;;;-1:-1:-1;;;;;16678:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16678:68:0;-1:-1:-1;;;16678:68:0;;;16651:96;;16671:5;;16651:19;:96::i;:::-;16550:205;;;;:::o;11026:278::-;11112:7;11147:12;11140:5;11132:28;;;;-1:-1:-1;;;11132:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11171:9;11187:1;11183;:5;;;;;;;11026:278;-1:-1:-1;;;;;11026:278:0:o;9000:192::-;9086:7;9122:12;9114:6;;;;9106:29;;;;-1:-1:-1;;;9106:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9158:5:0;;;9000:192::o;18670:761::-;19094:23;19120:69;19148:4;19120:69;;;;;;;;;;;;;;;;;19128:5;-1:-1:-1;;;;;19120:27:0;;;:69;;;;;:::i;:::-;19204:17;;19094:95;;-1:-1:-1;19204:21:0;19200:224;;19346:10;19335:30;;;;;;;;;;;;;;;-1:-1:-1;19335:30:0;19327:85;;;;-1:-1:-1;;;19327:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3881:195;3984:12;4016:52;4038:6;4046:4;4052:1;4055:12;4016:21;:52::i;:::-;4009:59;3881:195;-1:-1:-1;;;;3881:195:0:o;4933:530::-;5060:12;5118:5;5093:21;:30;;5085:81;;;;-1:-1:-1;;;5085:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5185:18;5196:6;5185:10;:18::i;:::-;5177:60;;;;;-1:-1:-1;;;5177:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;5311:12;5325:23;5352:6;-1:-1:-1;;;;;5352:11:0;5372:5;5380:4;5352:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5352:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5310:75;;;;5403:52;5421:7;5430:10;5442:12;5403:17;:52::i;:::-;5396:59;4933:530;-1:-1:-1;;;;;;;4933:530:0:o;963:422::-;1330:20;1369:8;;;963:422::o;6469:742::-;6584:12;6613:7;6609:595;;;-1:-1:-1;6644:10:0;6637:17;;6609:595;6758:17;;:21;6754:439;;7021:10;7015:17;7082:15;7069:10;7065:2;7061:19;7054:44;6969:148;7157:20;;-1:-1:-1;;;7157:20:0;;;;;;;;;;;;;;;;;7164:12;;7157:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://31c170d4ee1482a723540b45945efce8013f848b050dd1a7d00560022e4da4fc
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.