Contract 0x5bc0d412a9e50b59d292363b95f77f0123612b45

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x0f60cb9d425b5aea7623c17b4fdf8a3339d17a772a35aa71d663f5692e11c02bWithdraw107957152021-09-10 15:22:1047 days 4 hrs ago0x0070bc9033adf1e49517f98304f41f778d370208 IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.00022364
0x02980b8f1ed793ddfd3056bf2b1e19744ba8de9a05ee833f1e8dc4f13567a444Deposit107957112021-09-10 15:21:5847 days 4 hrs ago0x0070bc9033adf1e49517f98304f41f778d370208 IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.000356495
0xf0d137c4dc2cd7f41909066a6b4163138ab358976119401abddad104e1defa3eWithdraw100530172021-08-15 14:39:2173 days 4 hrs ago0x9dc01f08f3e17ed16410b59d2179c7df9ae55b61 IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.00029852
0xdcca35ca790d3ebb7cf35381e9a535faa7c25248a1a17654dbba5f104ae2ee63Deposit100046382021-08-13 22:04:1974 days 21 hrs ago0x9dc01f08f3e17ed16410b59d2179c7df9ae55b61 IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.00055891
0x0eb2a840cd042dcf93d46b15860b53b9f13bbf5615a531aca357ba300da25117Withdraw97670862021-08-05 10:50:2183 days 8 hrs ago0xb96a1688ddce8da1f2e2add33962768224e39e4c IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.00047684
0xc29005cabbcc9992a0373971fa41c205bacc3143d7b5a3fca48a2f28a94c6b9cWithdraw94068372021-07-23 11:13:5796 days 8 hrs ago0x2013a1c57a698d8dc42c539bc2e28d60830f8233 IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.00022352
0x85c5e9cdbbd807bc84ebeb1fa9abf940f17ac4e3c4c94eb4b4bdfd2f7e034439Deposit88995122021-07-05 20:06:01113 days 23 hrs ago0x2013a1c57a698d8dc42c539bc2e28d60830f8233 IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.00055891
0x2c9150165b771ad234a9c4bdf7ba277163e1cd458a494a9647ab6f2ea971805cWithdraw87167332021-06-29 10:23:52120 days 9 hrs ago0xdf59b1e7c6142bae89ed584de210c966144c9145 IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.00040196
0xd98371f57011634b075386c7622c28075e2cc175964cb7d6a384cf4e3bb463ddWithdraw86941142021-06-28 15:23:54121 days 4 hrs ago0xcb2b7d96ff7e30780957164756c1ad697f07538b IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.00032702
0x245084edb065289b172b6e8276ff1a3981eebcf02bd8bbc89f059a716e5aaa3aDeposit86930572021-06-28 14:29:45121 days 5 hrs ago0xd55292e70e52f256b1274dbdbb588fbff71f8c4e IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.000218595
0xa38b1287f8ced3194f2562bc6cdcba455817d54d2f4cf739b42b2987337fe2cbWithdraw86930462021-06-28 14:29:12121 days 5 hrs ago0xd55292e70e52f256b1274dbdbb588fbff71f8c4e IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.00047702
0x85b375ed494ae289cdf2ef9cf368d571e7285f77efccef268fb2a5d067208ad9Withdraw86806022021-06-28 4:04:21121 days 15 hrs ago0x460df96aa06ff67d0ea253a0168902ade08f5857 IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.00029864
0x2ebb8d79952c28f21266aa4c8dd510e35ea6ba4a5f32ea8d0f5985335f832f25Deposit86805952021-06-28 4:04:00121 days 15 hrs ago0x460df96aa06ff67d0ea253a0168902ade08f5857 IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.000506495
0xc6aa5bfd4a22ba82803607f66b557097e4e72fe0dd25d97762e20624c3396d67Withdraw86652072021-06-27 15:10:23122 days 4 hrs ago0xa8223cf18fb7801c98de2ab9693196edea41c965 IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.00022364
0x1ed478221590430c4965e33e9eeceeaaea60516b7ab4a4dc49c3a2aa54cf7208Deposit86651772021-06-27 15:08:53122 days 4 hrs ago0xa8223cf18fb7801c98de2ab9693196edea41c965 IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.000431495
0xb6e10e7942c9fade9ac2a00fb22df8a5fcfc1e4e851425d80470398c9e861f18Withdraw86604492021-06-27 11:11:07122 days 8 hrs ago0xf1613a97e4d618d281f855d84b51f69b0f777732 IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.00029864
0xd73a8c5cc823ffed646cd2fd9d4ca9a654eb91c5e49b391a96786507c67d7c05Deposit86603312021-06-27 11:05:13122 days 8 hrs ago0xf1613a97e4d618d281f855d84b51f69b0f777732 IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.000506495
0xf65b4f73b6335cce20caa73dfe6d26bb8d94893028c9476d335848cd285d8bb9Withdraw86416982021-06-26 19:31:34123 days 5 mins ago0x897b863bd91b8876c7d8a56362c8aa1ac90b8986 IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.00040184
0x5632746d26b6186c72773369ff3783469db50623baf6ac11317f78f5187f4035Withdraw86398572021-06-26 17:59:31123 days 1 hr ago0x0f48a6450975168e0e9c7fe5805873331812509c IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.00053102
0xc3fb48a8e92a0e29a3ac05b744b6e5a607da0328feee8a6bf1b442bc07e8e7f0Withdraw86308942021-06-26 10:31:19123 days 9 hrs ago0xd2cff943181499e0eb61d514e348327cc18a8fc2 IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.00040202
0xd9fd3285d2aeaa224a9fb4a7aead4c95e4f404ab7fbedd0a14a0f053eba9ed2eWithdraw86274382021-06-26 7:37:34123 days 11 hrs ago0xe97976cfeaf3db501e33f3142fa33b1bb5e502bb IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.00029864
0x9d9e1d21624e6f81abf16247c089d493dc23b968a663a277fcee641beb4eb82cDeposit86274212021-06-26 7:36:43123 days 12 hrs ago0xe97976cfeaf3db501e33f3142fa33b1bb5e502bb IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.000356495
0xb27ff65712305d9d5030d698ab9e416bccdf451dfc8c1362030c36fe65ae7156Withdraw86226772021-06-26 3:39:30123 days 15 hrs ago0x88f499033717a8a61c48217d4a34165de94aade7 IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.00032702
0xa84caada2f9af10afaf5339625f4a14b3d7437e16377c1138f692397c86f4e1cWithdraw86178602021-06-25 23:37:23123 days 19 hrs ago0x8abbf5f4ae2ab24670434f41a8cda8fef70e9542 IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.00053102
0xf0fb69bb5c794cb1786871c807f883e68cabc04070ff64ca37b7f7eca66596aeWithdraw86172392021-06-25 23:06:20123 days 20 hrs ago0xbd575ca799c10d4ff0bdeb92302321197ff31d20 IN  0x5bc0d412a9e50b59d292363b95f77f0123612b450 BNB0.00029858
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SmartChef

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 1 : SmartChef.sol
pragma solidity 0.6.12;

/**
 * @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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @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) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @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) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * 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);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

interface IBEP20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address _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);
}


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

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

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

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

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

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


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


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

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

}

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

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

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

contract SmartChef is Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeBEP20 for IBEP20;

    // Info of each user.
    struct UserInfo {
        uint256 amount;     // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
    }

    // Info of each pool.
    struct Pool {
        IBEP20 syrup;       // Address of SUPPLY token contract.
        uint256 lastRewardBlock;  // Last block number that Rewards distribution occurs.
        uint256 accRewardPerShare;// Accumulated Rewards per share, times 1e18. See below.
    }

    IBEP20 public syrup;
    IBEP20 public rewardToken;
    address public BURN;

    // Reward tokens created per block.
    uint256 public rewardPerBlock;

    // Info of pool.
    Pool public pool;
    // Info of each user that stakes LP tokens.
    mapping (address => UserInfo) public userInfo;
    // The block number when Reward mining starts.
    uint256 public startBlock;
    // The block number when Reward mining ends.
    uint256 public bonusEndBlock;

    uint256 public burnMultiplier;

    event Deposit(address indexed user, uint256 amount);
    event Withdraw(address indexed user, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 amount);
    event StopReward(uint256 previousEndBlock, uint256 newEndBlock);

    constructor(
        IBEP20 _syrup,
        IBEP20 _rewardToken,
        uint256 _rewardPerBlock,
        uint256 _startBlock,
        uint256 _bonusEndBlock,
        uint256 _burnMultiplier
    ) public {
        require(_syrup != _rewardToken, 'constructor: supply and reward token cannot be same');
        require(_burnMultiplier <= 10000, 'constructor: invalid burnMultiplier');

        syrup = _syrup;
        rewardToken = _rewardToken;
        rewardPerBlock = _rewardPerBlock;
        startBlock = _startBlock;
        bonusEndBlock = _bonusEndBlock;
        burnMultiplier = _burnMultiplier;

        BURN = address(0x00dead);

        // staking pool
        pool = Pool({
            syrup: _syrup,
            lastRewardBlock: startBlock,
            accRewardPerShare: 0
        });

    }

    // SET BURN ADDRESS
    function setBurnAddress(address _burn) public onlyOwner {
        BURN = _burn;
    }    

    function stopReward() public onlyOwner {
        uint256 previousEndBlock = bonusEndBlock;
        bonusEndBlock = block.number;
        emit StopReward(previousEndBlock, bonusEndBlock);
    }

    function adjustBlockEnd() public onlyOwner {
        uint256 totalLeft = rewardToken.balanceOf(address(this));
        bonusEndBlock = totalLeft.div(rewardPerBlock).add(block.number);
    }

    // Reward Token balance in the pool
    function rewardTokenAvailable() external view returns (uint256) {
        return rewardToken.balanceOf(address(this));
    }

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

    // View function to see pending Reward on frontend.
    function pendingReward(address _user) external view returns (uint256) {
        UserInfo storage user = userInfo[_user];
        uint256 accRewardPerShare = pool.accRewardPerShare;
        uint256 syrupSupplied = pool.syrup.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && syrupSupplied != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 rewardTokenReward = multiplier.mul(rewardPerBlock);
            accRewardPerShare = accRewardPerShare.add(rewardTokenReward.mul(1e18).div(syrupSupplied));
        }
        return user.amount.mul(accRewardPerShare).div(1e18).sub(user.rewardDebt);
    }

    // View function to get user Supply Token Balance
    function userSupplyBalance() external view returns (uint256) {
        UserInfo storage user = userInfo[msg.sender];
        return user.amount;
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool() public {
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 syrupSupplied = pool.syrup.balanceOf(address(this));
        if (syrupSupplied == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 rewardTokenReward = multiplier.mul(rewardPerBlock);
        pool.accRewardPerShare = pool.accRewardPerShare.add(rewardTokenReward.mul(1e18).div(syrupSupplied));
        pool.lastRewardBlock = block.number;
    }

    // Stake SUPPLY tokens to SmartChef
    function deposit(uint256 _amount) public nonReentrant {
        UserInfo storage user = userInfo[msg.sender];
        updatePool();
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accRewardPerShare).div(1e18).sub(user.rewardDebt);
            if (pending > 0) {
                user.rewardDebt = user.amount.mul(pool.accRewardPerShare).div(1e18);
                rewardToken.safeTransfer(address(msg.sender), pending);
            }
        }
        if(_amount > 0) {
            uint256 burnAmount = _amount.mul(burnMultiplier).div(10000);
            pool.syrup.safeTransferFrom(address(msg.sender), address(this), _amount.sub(burnAmount));
            if (burnAmount > 0) {
                pool.syrup.safeTransferFrom(address(msg.sender), BURN, burnAmount);
            }
            user.amount = user.amount.add(_amount.sub(burnAmount));
        }
        user.rewardDebt = user.amount.mul(pool.accRewardPerShare).div(1e18);

        emit Deposit(msg.sender, _amount);
    }

    // Withdraw SUPPLY tokens from STAKING.
    function withdraw(uint256 _amount) public nonReentrant {
        UserInfo storage user = userInfo[msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool();
        uint256 pending = user.amount.mul(pool.accRewardPerShare).div(1e18).sub(user.rewardDebt);
        if (pending > 0) {
            safeRewardTransfer(address(msg.sender), pending);
        }
        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.syrup.safeTransfer(address(msg.sender), _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accRewardPerShare).div(1e18);

        emit Withdraw(msg.sender, _amount);
    }

    // Safe Reward Transfer function, just in case if rounding error causes pool to not have enough REWARDS.
    function safeRewardTransfer(address _to, uint256 _amount) internal {
        uint256 rewardBal = rewardToken.balanceOf(address(this));
        bool transferSuccess = false;
        if (_amount > rewardBal) {
            transferSuccess = rewardToken.transfer(_to, rewardBal);
        } else {
            transferSuccess = rewardToken.transfer(_to, _amount);
        }
        require(transferSuccess, "safePlumTransfer: transfer failed");
    }

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

    // Withdraw reward. EMERGENCY ONLY.
    function emergencyRewardWithdraw(uint256 _amount) public onlyOwner nonReentrant {
        require(_amount <= rewardToken.balanceOf(address(this)), 'emergencyRewardWithdraw: not enough token');
        safeRewardTransfer(address(msg.sender), _amount);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IBEP20","name":"_syrup","type":"address"},{"internalType":"contract IBEP20","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_bonusEndBlock","type":"uint256"},{"internalType":"uint256","name":"_burnMultiplier","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"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":false,"internalType":"uint256","name":"previousEndBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newEndBlock","type":"uint256"}],"name":"StopReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BURN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adjustBlockEnd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bonusEndBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"emergencyRewardWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pool","outputs":[{"internalType":"contract IBEP20","name":"syrup","type":"address"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accRewardPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardTokenAvailable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_burn","type":"address"}],"name":"setBurnAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stopReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"syrup","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":[],"name":"userSupplyBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5060405162001bc338038062001bc3833981810160405260c081101561003557600080fd5b508051602082015160408301516060840151608085015160a090950151939492939192909160006100646101c5565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180556001600160a01b0386811690861614156100fe5760405162461bcd60e51b815260040180806020018281038252603381526020018062001b906033913960400191505060405180910390fd5b6127108111156101405760405162461bcd60e51b815260040180806020018281038252602381526020018062001b6d6023913960400191505060405180910390fd5b600280546001600160a01b039788166001600160a01b03199182168117909255600380549790981696811696909617909655600593909355600a829055600b55600c9190915560048054831661dead179055604080516060810182528481526020810183905260009101819052600680549093169093179091556007556008556101c9565b3390565b61199480620001d96000396000f3fe608060405234801561001057600080fd5b50600436106101985760003560e01c80638da5cb5b116100e3578063e3161ddd1161008c578063f40f0f5211610066578063f40f0f521461036a578063f7c618c114610390578063fd75e1e61461039857610198565b8063e3161ddd14610334578063e36b04891461033c578063f2fde38b1461034457610198565b8063c0a2526c116100bd578063c0a2526c1461031c578063c9abe93014610324578063db2e21bc1461032c57610198565b80638da5cb5b146102d45780638dbb1e3a146102dc578063b6b55f25146102ff57610198565b806348cd4cb11161014557806380dc06721161011f57806380dc0672146102a057806386a952c4146102a85780638ae39cac146102cc57610198565b806348cd4cb11461026a5780634b0e721614610272578063715018a61461029857610198565b80632e1a7d4d116101765780632e1a7d4d146102265780633279beab146102455780633939a8971461026257610198565b806316f0115b1461019d5780631959a002146101cd5780631aed65531461020c575b600080fd5b6101a56103a0565b604080516001600160a01b039094168452602084019290925282820152519081900360600190f35b6101f3600480360360208110156101e357600080fd5b50356001600160a01b03166103b8565b6040805192835260208301919091528051918290030190f35b6102146103d1565b60408051918252519081900360200190f35b6102436004803603602081101561023c57600080fd5b50356103d7565b005b6102436004803603602081101561025b57600080fd5b503561057c565b610214610713565b610214610719565b6102436004803603602081101561028857600080fd5b50356001600160a01b031661071f565b6102436107c2565b61024361088d565b6102b061094b565b604080516001600160a01b039092168252519081900360200190f35b61021461095a565b6102b0610960565b610214600480360360408110156102f257600080fd5b508035906020013561096f565b6102436004803603602081101561031557600080fd5b50356109af565b6102b0610b83565b610214610b92565b610243610c0e565b610243610cda565b610214610dcb565b6102436004803603602081101561035a57600080fd5b50356001600160a01b0316610dde565b6102146004803603602081101561038057600080fd5b50356001600160a01b0316610eff565b6102b061102b565b61024361103a565b6006546007546008546001600160a01b039092169183565b6009602052600090815260409020805460019091015482565b600b5481565b6002600154141561042f576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001553360009081526009602052604090208054821115610499576040805162461bcd60e51b815260206004820152601260248201527f77697468647261773a206e6f7420676f6f640000000000000000000000000000604482015290519081900360640190fd5b6104a1610cda565b60006104df82600101546104d9670de0b6b3a76400006104d3600660020154876000015461114890919063ffffffff16565b906111a8565b9061120f565b905080156104f1576104f1338261126c565b821561051c578154610503908461120f565b825560065461051c906001600160a01b0316338561143f565b600854825461053891670de0b6b3a7640000916104d391611148565b600183015560408051848152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a250506001805550565b6105846114ab565b6001600160a01b0316610595610960565b6001600160a01b0316146105f0576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60026001541415610648576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600155600354604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561069857600080fd5b505afa1580156106ac573d6000803e3d6000fd5b505050506040513d60208110156106c257600080fd5b50518111156107025760405162461bcd60e51b81526004018080602001828103825260298152602001806119366029913960400191505060405180910390fd5b61070c338261126c565b5060018055565b600c5481565b600a5481565b6107276114ab565b6001600160a01b0316610738610960565b6001600160a01b031614610793576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6107ca6114ab565b6001600160a01b03166107db610960565b6001600160a01b031614610836576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b6108956114ab565b6001600160a01b03166108a6610960565b6001600160a01b031614610901576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600b80544391829055604080518281526020810193909352805191927f77c9f1621f2921a3ab89e993b6ad7a1d3730679e06bc9f1de09086d6a010e62c929081900390910190a150565b6002546001600160a01b031681565b60055481565b6000546001600160a01b031690565b6000600b54821161098b57610984828461120f565b90506109a9565b600b54831061099c575060006109a9565b600b54610984908461120f565b92915050565b60026001541415610a07576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600155336000908152600960205260409020610a23610cda565b805415610a9e576000610a5c82600101546104d9670de0b6b3a76400006104d3600660020154876000015461114890919063ffffffff16565b90508015610a9c576008548254610a8091670de0b6b3a7640000916104d391611148565b6001830155600354610a9c906001600160a01b0316338361143f565b505b8115610b24576000610ac16127106104d3600c548661114890919063ffffffff16565b9050610ae63330610ad2868561120f565b6006546001600160a01b03169291906114af565b8015610b0b57600454600654610b0b916001600160a01b0391821691339116846114af565b610b20610b18848361120f565b835490611537565b8255505b6008548154610b4091670de0b6b3a7640000916104d391611148565b600182015560408051838152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a2505060018055565b6004546001600160a01b031681565b600354604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610bdd57600080fd5b505afa158015610bf1573d6000803e3d6000fd5b505050506040513d6020811015610c0757600080fd5b5051905090565b60026001541415610c66576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015533600081815260096020526040902080546006549192610c94926001600160a01b03169161143f565b8054604080519182525133917f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695919081900360200190a260008082556001918201558055565b6007544311610ce857610dc9565b600654604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610d3357600080fd5b505afa158015610d47573d6000803e3d6000fd5b505050506040513d6020811015610d5d57600080fd5b5051905080610d70575043600755610dc9565b6000610d816006600101544361096f565b90506000610d9a6005548361114890919063ffffffff16565b9050610dbe610db5846104d384670de0b6b3a7640000611148565b60085490611537565b600855505043600755505b565b3360009081526009602052604090205490565b610de66114ab565b6001600160a01b0316610df7610960565b6001600160a01b031614610e52576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610e975760405162461bcd60e51b81526004018080602001828103825260268152602001806118a86026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6001600160a01b03808216600090815260096020908152604080832060085460065483516370a0823160e01b81523060048201529351959692959194879491909316926370a0823192602480840193829003018186803b158015610f6257600080fd5b505afa158015610f76573d6000803e3d6000fd5b505050506040513d6020811015610f8c57600080fd5b505160075490915043118015610fa157508015155b15610ff7576000610fb76006600101544361096f565b90506000610fd06005548361114890919063ffffffff16565b9050610ff2610feb846104d384670de0b6b3a7640000611148565b8590611537565b935050505b61102283600101546104d9670de0b6b3a76400006104d386886000015461114890919063ffffffff16565b95945050505050565b6003546001600160a01b031681565b6110426114ab565b6001600160a01b0316611053610960565b6001600160a01b0316146110ae576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600354604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156110f957600080fd5b505afa15801561110d573d6000803e3d6000fd5b505050506040513d602081101561112357600080fd5b505160055490915061114290439061113c9084906111a8565b90611537565b600b5550565b600082611157575060006109a9565b8282028284828161116457fe5b04146111a15760405162461bcd60e51b81526004018080602001828103825260218152602001806118f46021913960400191505060405180910390fd5b9392505050565b60008082116111fe576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161120757fe5b049392505050565b600082821115611266576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600354604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156112b757600080fd5b505afa1580156112cb573d6000803e3d6000fd5b505050506040513d60208110156112e157600080fd5b50519050600081831115611378576003546040805163a9059cbb60e01b81526001600160a01b038781166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561134557600080fd5b505af1158015611359573d6000803e3d6000fd5b505050506040513d602081101561136f57600080fd5b505190506113fd565b6003546040805163a9059cbb60e01b81526001600160a01b038781166004830152602482018790529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156113ce57600080fd5b505af11580156113e2573d6000803e3d6000fd5b505050506040513d60208110156113f857600080fd5b505190505b806114395760405162461bcd60e51b81526004018080602001828103825260218152602001806119156021913960400191505060405180910390fd5b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b1790526114a6908490611591565b505050565b3390565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052611439908590611591565b6000828201838110156111a1576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60606115e6826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116429092919063ffffffff16565b8051909150156114a65780806020019051602081101561160557600080fd5b50516114a65760405162461bcd60e51b815260040180806020018281038252602a81526020018061187e602a913960400191505060405180910390fd5b60606116518484600085611659565b949350505050565b60608247101561169a5760405162461bcd60e51b81526004018080602001828103825260268152602001806118ce6026913960400191505060405180910390fd5b6116a3856117d3565b6116f4576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061175157805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101611714565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146117b3576040519150601f19603f3d011682016040523d82523d6000602084013e6117b8565b606091505b50915091506117c88282866117d9565b979650505050505050565b3b151590565b606083156117e85750816111a1565b8251156117f85782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561184257818101518382015260200161182a565b50505050905090810190601f16801561186f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7773616665506c756d5472616e736665723a207472616e73666572206661696c6564656d657267656e637952657761726457697468647261773a206e6f7420656e6f75676820746f6b656ea2646970667358221220778fb910dbf07f052a7380e605905b5af443d6281ec821c87fc8ce57f73fcbd864736f6c634300060c0033636f6e7374727563746f723a20696e76616c6964206275726e4d756c7469706c696572636f6e7374727563746f723a20737570706c7920616e642072657761726420746f6b656e2063616e6e6f742062652073616d650000000000000000000000000288d3e353fe2299f11ea2c2e1696b4a648ecc070000000000000000000000002170ed0880ac9a755fd29b2688956bd959f933f8000000000000000000000000000000000000000000000000000001d1a94a200000000000000000000000000000000000000000000000000000000000007fac46000000000000000000000000000000000000000000000000000000000082bfc60000000000000000000000000000000000000000000000000000000000000000

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

0000000000000000000000000288d3e353fe2299f11ea2c2e1696b4a648ecc070000000000000000000000002170ed0880ac9a755fd29b2688956bd959f933f8000000000000000000000000000000000000000000000000000001d1a94a200000000000000000000000000000000000000000000000000000000000007fac46000000000000000000000000000000000000000000000000000000000082bfc60000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _syrup (address): 0x0288d3e353fe2299f11ea2c2e1696b4a648ecc07
Arg [1] : _rewardToken (address): 0x2170ed0880ac9a755fd29b2688956bd959f933f8
Arg [2] : _rewardPerBlock (uint256): 2000000000000
Arg [3] : _startBlock (uint256): 8367174
Arg [4] : _bonusEndBlock (uint256): 8568774
Arg [5] : _burnMultiplier (uint256): 0

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000288d3e353fe2299f11ea2c2e1696b4a648ecc07
Arg [1] : 0000000000000000000000002170ed0880ac9a755fd29b2688956bd959f933f8
Arg [2] : 000000000000000000000000000000000000000000000000000001d1a94a2000
Arg [3] : 00000000000000000000000000000000000000000000000000000000007fac46
Arg [4] : 000000000000000000000000000000000000000000000000000000000082bfc6
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000000


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