Contract 0xcf505cf97087562971e0e77913959742316bd5fa

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x6fac7cff618686d4fb6965dc39ceed09e4c1bac2eb9963086920cb4b809bf734Withdraw111968282021-09-24 15:14:401 day 17 hrs ago0x1ac7c010a7623f646d391c0c3e95135004702c8f IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.000117085
0xedc96c979dae03e3b2b94f2ccbce13cfb2f913d00116e1a32fc9ac0fd60679c1Withdraw111968122021-09-24 15:13:521 day 17 hrs ago0x1ac7c010a7623f646d391c0c3e95135004702c8f IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.000320315
0xeabd630184f7b4f23a7e063fe3a8328d2d5cfeafc014ff91f44e83169ba5a171Withdraw110895352021-09-20 21:17:295 days 11 hrs ago0x309156fcb6d32e6a117e578553df76b326b62e28 IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.000320255
0x7d5a8a34f1dcc020791fde29a9254ef077b4b434ac9d9b939e102db1394b29d9Withdraw108517612021-09-12 14:28:4213 days 18 hrs ago0xef8cf3f5fa824d6ea7e765b3242608d32d5567d0 IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.000395435
0xaa1f3ece6916620a81ab654edfda29b14a49973218fce177174392b2131f8888Withdraw107410712021-09-08 17:22:1717 days 15 hrs ago0xda0c0cef1b50daf082189418ca637e7cdbf59b94 IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.000395375
0xee0dddfcf0dc6c423a2c95b733d267849e23f21fc60a555115f246571b71940bWithdraw105866522021-09-03 7:27:5123 days 1 hr ago0xe87a756b18f9e74d2ede0bcfe72aa8b0ca19112f IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.000395315
0x24652eef8315eb438d2e5522e7df23428f52a541d7ed07d9d3c27072c70d829bWithdraw105704672021-09-02 17:48:3023 days 15 hrs ago0xfe3e4b5823c286f3a6ffb3c46a6de5d6f3d717bd IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.000230845
0x7cd6ac19639f44243036d825b98beab588e7b25f736c5aa76423d5b3f8e92007Deposit105704542021-09-02 17:47:5123 days 15 hrs ago0xfe3e4b5823c286f3a6ffb3c46a6de5d6f3d717bd IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.00043489
0xfc699f8ede9a0097a1e9ec004c62763024f9b55a7938ba77a95437b665ffd6d7Withdraw105160632021-08-31 19:52:5925 days 12 hrs ago0x8780a19c2bb4c3745047e7f2584a6ef0fb5b59e7 IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.000395315
0x5eff93d09f5bfe121a493b51491fdbbdd97d40bfe42c52683bf5efd20b037d75Withdraw105072382021-08-31 12:23:5125 days 20 hrs ago0xca082f9f8c80d00c14e7404c450f1b451b5818a5 IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.000395315
0x2da24aced7ff3aca3b0c55b9ced8b2b531881ff6d1780643f5fe367fd2e95b1aWithdraw104907222021-08-30 22:23:1426 days 10 hrs ago0xef997b17582bc8a960a3bb3db0bd245d7cef2480 IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.000230845
0xc5633002a1862532030f5ca9576e29bd43a50ff42ba3dd7b024fdfa7e945d2d8Withdraw104872962021-08-30 19:30:5426 days 13 hrs ago0x45f173f134685395d24024084c34ed3edeee807f IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.000230785
0x0332131ca68678603791485cc0f48c670fb6d65bfc49602fd51f1e9dc8e2554aDeposit104871602021-08-30 19:23:4626 days 13 hrs ago0x45f173f134685395d24024084c34ed3edeee807f IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.00043489
0x7bee1b1073247037bf0ea562a1838f8923de8db13279ceb8a46d47460ebdf15cWithdraw104603622021-08-29 20:42:5227 days 12 hrs ago0x32e7f912e5b58b9e72f48faeba70995808ca5751 IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.000230785
0x41bb2817f0e1abc76c6e11512b4e550cd9904847a17eacf0f48e03a677d7b2aaDeposit104602992021-08-29 20:39:4327 days 12 hrs ago0x32e7f912e5b58b9e72f48faeba70995808ca5751 IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.00043489
0x65a7797734c26ac993361fa3b113d8ea4c9c0cce0fa993d45883e616c7996309Withdraw104573662021-08-29 18:12:2227 days 14 hrs ago0xb0ff1edf2b9cfd4913d3d7755b4b123d230a4c33 IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.000320255
0x2a9a7f51f775c51047c08b330f6e58615921b4a51043d91c9162e16b06a62938Withdraw104569622021-08-29 17:52:1027 days 14 hrs ago0xd0901dac5825a1ea5a7540419c019f744d04d84c IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.000320315
0xb7ddafe81c0bac9003d9c11743ed6390e5d4c99ed319e1162e16e58efd84644cWithdraw104300222021-08-28 19:22:4528 days 13 hrs ago0x998caf56653ed13dfe386757241e85cc3aaa67d7 IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.000230785
0x546ee7431e5b431a73c68b311ead509de6043c2595cb6e294e5e694315599dc7Deposit104299802021-08-28 19:20:3928 days 13 hrs ago0x998caf56653ed13dfe386757241e85cc3aaa67d7 IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.00035989
0x05ae79141a643421ca2699f94149f52f5e7030dee6564dcc87353179d99bf827Withdraw104035792021-08-27 21:01:5329 days 11 hrs ago0x3959b57370d45e49a42882dea3d4ffbdb920d510 IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.000230785
0x331c0e4c9db77e22cf2ffac0447868cf722c7c385b797421756fe85c2eb31266Deposit104035682021-08-27 21:01:2029 days 11 hrs ago0x3959b57370d45e49a42882dea3d4ffbdb920d510 IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.00035989
0xcf8b8e812141c4b1359d8ffb0a7ffd18e192054f3fee1db257ba7f1e4583c3daWithdraw103568102021-08-26 5:07:0431 days 3 hrs ago0x1a4f607ef8ef955bbe691aeb1a32a2f1a3e58ead IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.000395255
0x2de3a8de04c9438ab98df039f416e9cff6c600939f7224227288ef9ce62b5133Withdraw103554362021-08-26 3:58:2131 days 4 hrs ago0x349be62a33a1b3e4a8eaafbd9f853823dd25e97a IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.000230905
0xedc77cdc14c21e4d88a2a342c127a13e1951246528cdd3fa0d96409e306646f9Deposit103553912021-08-26 3:56:0631 days 4 hrs ago0x349be62a33a1b3e4a8eaafbd9f853823dd25e97a IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.00035989
0x3226a6a1d3165a57f6b4eb39a8f715f53dbd5b4c228cd797d6869c758d81a2beWithdraw103519682021-08-26 1:03:5231 days 7 hrs ago0x1f79585ec95343424737373ce314c6ca39911c5e IN  0xcf505cf97087562971e0e77913959742316bd5fa0 BNB0.000320315
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x109eaa8b5ea469fb5ace0647a93695d8dcd5e836

Contract Name:
SmartChef

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 666666 runs

Other Settings:
istanbul EvmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-07-03
*/

pragma solidity 0.6.12;

library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, 'SafeMath: addition overflow');

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, 'SafeMath: subtraction overflow');
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, 'SafeMath: multiplication overflow');

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, 'SafeMath: division by zero');
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, 'SafeMath: modulo by zero');
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }

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

    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    function sqrt(uint256 y) internal pure returns (uint256 z) {
        if (y > 3) {
            z = y;
            uint256 x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
    }
}
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);
}
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            codehash := extcodehash(account)
        }
        return (codehash != accountHash && codehash != 0x0);
    }

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

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

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

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{value: weiValue}(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}
/**
 * @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');
        }
    }
}
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor() internal {}

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

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Context {
    address private _owner;

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

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

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

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

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

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

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

contract SmartChef 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.
    }

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

    // The BSW TOKEN!
    IBEP20 public biswap;
    IBEP20 public rewardToken;

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

    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user that stakes LP tokens.
    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 BSW mining starts.
    uint256 public startBlock;
    // The block number when BSW mining ends.
    uint256 public bonusEndBlock;
    // limit 100 BSW
    uint256 public limitAmount = 200000000000000000000;

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

    constructor(
        IBEP20 _bsw,
        IBEP20 _rewardToken,
        uint256 _rewardPerBlock,
        uint256 _startBlock,
        uint256 _bonusEndBlock
    ) public {
        biswap = _bsw;
        rewardToken = _rewardToken;
        rewardPerBlock = _rewardPerBlock;
        startBlock = _startBlock;
        bonusEndBlock = _bonusEndBlock;

        // staking pool
        poolInfo.push(PoolInfo({
            lpToken: _bsw,
            allocPoint: 1000,
            lastRewardBlock: startBlock,
            accBSWPerShare: 0
        }));
        totalAllocPoint = 1000;
    }

    // Set the limit amount.
    function setLimitAmount(uint256 _amount) public onlyOwner {
        limitAmount = _amount;
    }

    // Return remaining limit amount
    function remainingLimitAmount() public view returns(uint256) {
        if (userInfo[msg.sender].amount >= limitAmount){
            return 0;
        }
        return limitAmount.sub(userInfo[msg.sender].amount);
    }

    // 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) {
        PoolInfo storage pool = poolInfo[0];
        UserInfo storage user = userInfo[_user];
        uint256 accBSWPerShare = pool.accBSWPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 BSWReward = multiplier.mul(rewardPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accBSWPerShare = accBSWPerShare.add(BSWReward.mul(1e12).div(lpSupply));
        }
        return user.amount.mul(accBSWPerShare).div(1e12).sub(user.rewardDebt);
    }

    // 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.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 BSWReward = multiplier.mul(rewardPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
        pool.accBSWPerShare = pool.accBSWPerShare.add(BSWReward.mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

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


    // Stake biswap tokens to SmartChef
    function deposit(uint256 _amount) public {
        PoolInfo storage pool = poolInfo[0];
        UserInfo storage user = userInfo[msg.sender];

        require(user.amount.add(_amount) <= limitAmount, 'Exceed limit amount');

        updatePool(0);
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accBSWPerShare).div(1e12).sub(user.rewardDebt);
            if(pending > 0) {
                rewardToken.safeTransfer(address(msg.sender), pending);
            }
        }
        if(_amount > 0) {
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            user.amount = user.amount.add(_amount);
        }
        user.rewardDebt = user.amount.mul(pool.accBSWPerShare).div(1e12);

        emit Deposit(msg.sender, _amount);
    }

    // Withdraw biswap tokens from STAKING.
    function withdraw(uint256 _amount) public {
        PoolInfo storage pool = poolInfo[0];
        UserInfo storage user = userInfo[msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(0);
        uint256 pending = user.amount.mul(pool.accBSWPerShare).div(1e12).sub(user.rewardDebt);
        if(pending > 0) {
            rewardToken.safeTransfer(address(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.accBSWPerShare).div(1e12);

        emit Withdraw(msg.sender, _amount);
    }

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

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

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IBEP20","name":"_bsw","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"}],"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":"currentPercent","type":"uint256"}],"name":"RefPercentChanged","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":"biswap","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bonusEndBlock","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":"limitAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"address","name":"_user","type":"address"}],"name":"pendingReward","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":"accBSWPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remainingLimitAmount","outputs":[{"internalType":"uint256","name":"","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":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setLimitAmount","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":"_pid","type":"uint256"}],"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":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600655680ad78ebc5ac620000060095534801561002257600080fd5b50604051611a76380380611a76833981810160405260a081101561004557600080fd5b50805160208201516040830151606084015160809094015192939192909190600061006e6101de565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b039687166001600160a01b03199182168117835560028054978916978316979097179096556003949094556007839055600891909155604080516080810182529485526103e86020860181815291860193845260006060870181815260048054958601815591829052965193027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b8101805494909816939095169290921790955593517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c830155517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d82015590517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e909101556006556101e2565b3390565b611885806101f16000396000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c806378abafaf116100d8578063bed57e211161008c578063f2fde38b11610066578063f2fde38b14610376578063f40f0f52146103a9578063f7c618c1146103dc57610182565b8063bed57e211461035e578063cb0c6a9114610366578063db2e21bc1461036e57610182565b80638da5cb5b116100bd5780638da5cb5b146102ed5780638dbb1e3a1461031e578063b6b55f251461034157610182565b806378abafaf146102dd5780638ae39cac146102e557610182565b80632e1a7d4d1161013a57806351eb05a61161011457806351eb05a6146102b0578063630b5ba1146102cd578063715018a6146102d557610182565b80632e1a7d4d1461026e5780633279beab1461028b57806348cd4cb1146102a857610182565b80631959a0021161016b5780631959a002146101fb5780631aed6553146102475780631f107a451461024f57610182565b80631526fe271461018757806317caf6f1146101e1575b600080fd5b6101a46004803603602081101561019d57600080fd5b50356103e4565b6040805173ffffffffffffffffffffffffffffffffffffffff90951685526020850193909352838301919091526060830152519081900360800190f35b6101e9610432565b60408051918252519081900360200190f35b61022e6004803603602081101561021157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610438565b6040805192835260208301919091528051918290030190f35b6101e9610451565b61026c6004803603602081101561026557600080fd5b5035610457565b005b61026c6004803603602081101561028457600080fd5b50356104ed565b61026c600480360360208110156102a157600080fd5b5035610691565b6101e9610854565b61026c600480360360208110156102c657600080fd5b503561085a565b61026c6109af565b61026c6109d2565b6101e9610ad2565b6101e9610ad8565b6102f5610ade565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101e96004803603604081101561033457600080fd5b5080359060200135610afb565b61026c6004803603602081101561035757600080fd5b5035610b3b565b6102f5610ceb565b6101e9610d07565b61026c610d4a565b61026c6004803603602081101561038c57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610dea565b6101e9600480360360208110156103bf57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610e84565b6102f5611002565b600481815481106103f157fe5b6000918252602090912060049091020180546001820154600283015460039093015473ffffffffffffffffffffffffffffffffffffffff9092169350919084565b60065481565b6005602052600090815260409020805460019091015482565b60085481565b61045f61101e565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146104e857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600955565b600060046000815481106104fd57fe5b600091825260208083203384526005909152604090922080546004909202909201925083111561058e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f77697468647261773a206e6f7420676f6f640000000000000000000000000000604482015290519081900360640190fd5b610598600061085a565b60006105d282600101546105cc64e8d4a510006105c68760030154876000015461102290919063ffffffff16565b9061109c565b906110de565b905080156105fe576002546105fe9073ffffffffffffffffffffffffffffffffffffffff163383611120565b831561063557815461061090856110de565b825582546106359073ffffffffffffffffffffffffffffffffffffffff163386611120565b600383015482546106509164e8d4a51000916105c691611022565b600183015560408051858152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a250505050565b61069961101e565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461072257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600254604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b15801561079357600080fd5b505afa1580156107a7573d6000803e3d6000fd5b505050506040513d60208110156107bd57600080fd5b505181111561082d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f6e6f7420656e6f75676820746f6b656e00000000000000000000000000000000604482015290519081900360640190fd5b6002546108519073ffffffffffffffffffffffffffffffffffffffff163383611120565b50565b60075481565b60006004828154811061086957fe5b906000526020600020906004020190508060020154431161088a5750610851565b8054604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b1580156108fa57600080fd5b505afa15801561090e573d6000803e3d6000fd5b505050506040513d602081101561092457600080fd5b505190508061093a575043600290910155610851565b600061094a836002015443610afb565b905060006109776006546105c686600101546109716003548761102290919063ffffffff16565b90611022565b905061099a61098f846105c68464e8d4a51000611022565b6003860154906111b2565b60038501555050436002909201919091555050565b60045460005b818110156109ce576109c68161085a565b6001016109b5565b5050565b6109da61101e565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614610a6357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60095481565b60035481565b60005473ffffffffffffffffffffffffffffffffffffffff165b90565b60006008548211610b1757610b1082846110de565b9050610b35565b6008548310610b2857506000610b35565b600854610b1090846110de565b92915050565b60006004600081548110610b4b57fe5b60009182526020808320338452600590915260409092206009548154600490930290930193509190610b7d90856111b2565b1115610bea57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f457863656564206c696d697420616d6f756e7400000000000000000000000000604482015290519081900360640190fd5b610bf4600061085a565b805415610c57576000610c2982600101546105cc64e8d4a510006105c68760030154876000015461102290919063ffffffff16565b90508015610c5557600254610c559073ffffffffffffffffffffffffffffffffffffffff163383611120565b505b8215610c90578154610c819073ffffffffffffffffffffffffffffffffffffffff16333086611226565b8054610c8d90846111b2565b81555b60038201548154610cab9164e8d4a51000916105c691611022565b600182015560408051848152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a2505050565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60095433600090815260056020526040812054909111610d2957506000610af8565b33600090815260056020526040902054600954610d45916110de565b905090565b60006004600081548110610d5a57fe5b60009182526020808320338452600590915260408320805484825560018201949094556004909202019250908015610daf578254610daf9073ffffffffffffffffffffffffffffffffffffffff163383611120565b60408051828152905133917f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695919081900360200190a2505050565b610df261101e565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614610e7b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610851816112c1565b6000806004600081548110610e9557fe5b6000918252602080832073ffffffffffffffffffffffffffffffffffffffff878116855260058352604080862060049586029093016003810154815483517f70a082310000000000000000000000000000000000000000000000000000000081523098810198909852925191985093969395939491909216926370a082319260248083019392829003018186803b158015610f2f57600080fd5b505afa158015610f43573d6000803e3d6000fd5b505050506040513d6020811015610f5957600080fd5b5051600285015490915043118015610f7057508015155b15610fd0576000610f85856002015443610afb565b90506000610fac6006546105c688600101546109716003548761102290919063ffffffff16565b9050610fcb610fc4846105c68464e8d4a51000611022565b85906111b2565b935050505b610ff883600101546105cc64e8d4a510006105c686886000015461102290919063ffffffff16565b9695505050505050565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b3390565b60008261103157506000610b35565b8282028284828161103e57fe5b0414611095576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061182f6021913960400191505060405180910390fd5b9392505050565b600061109583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506113ba565b600061109583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611476565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526111ad9084906114ea565b505050565b60008282018381101561109557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790526112bb9085906114ea565b50505050565b73ffffffffffffffffffffffffffffffffffffffff811661132d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806118096026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60008183611460576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561142557818101518382015260200161140d565b50505050905090810190601f1680156114525780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161146c57fe5b0495945050505050565b600081848411156114e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181815283516024840152835190928392604490910191908501908083836000831561142557818101518382015260200161140d565b505050900390565b606061154c826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166115c29092919063ffffffff16565b8051909150156111ad5780806020019051602081101561156b57600080fd5b50516111ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806117df602a913960400191505060405180910390fd5b60606115d184846000856115d9565b949350505050565b60606115e4856117a5565b61164f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106116b957805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0909201916020918201910161167c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461171b576040519150601f19603f3d011682016040523d82523d6000602084013e611720565b606091505b509150915081156117345791506115d19050565b8051156117445780518082602001fd5b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181815286516024840152865187939192839260440191908501908083836000831561142557818101518382015260200161140d565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906115d157505015159291505056fe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a264697066735822122045ae0eb384b2a824ca5df6a6e3b9479afade5bededb5de6498134d62276f152864736f6c634300060c0033000000000000000000000000965f527d9159dce6288a2219db51fc6eef120dd1000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c00000000000000000000000000000000000000000000000000004769dcb53000000000000000000000000000000000000000000000000000000000000086cf13000000000000000000000000000000000000000000000000000000000093fe13

Deployed ByteCode Sourcemap

21617:7315:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22531:26;;;;;;;;;;;;;;;;-1:-1:-1;22531:26:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22753:34;;;:::i;:::-;;;;;;;;;;;;;;;;22613:45;;;;;;;;;;;;;;;;-1:-1:-1;22613:45:0;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;22922:28;;;:::i;23920:98::-;;;;;;;;;;;;;;;;-1:-1:-1;23920:98:0;;:::i;:::-;;27416:725;;;;;;;;;;;;;;;;-1:-1:-1;27416:725:0;;:::i;28700:227::-;;;;;;;;;;;;;;;;-1:-1:-1;28700:227:0;;:::i;22843:25::-;;;:::i;25543:683::-;;;;;;;;;;;;;;;;-1:-1:-1;25543:683:0;;:::i;26309:180::-;;;:::i;20871:140::-;;;:::i;22979:50::-;;;:::i;22466:29::-;;;:::i;20229:79::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24363:306;;;;;;;;;;;;;;;;-1:-1:-1;24363:306:0;;;;;;;:::i;26540:823::-;;;;;;;;;;;;;;;;-1:-1:-1;26540:823:0;;:::i;22367:20::-;;;:::i;24064:223::-;;;:::i;28212:439::-;;;:::i;21166:109::-;;;;;;;;;;;;;;;;-1:-1:-1;21166:109:0;;;;:::i;24734:733::-;;;;;;;;;;;;;;;;-1:-1:-1;24734:733:0;;;;:::i;22394:25::-;;;:::i;22531:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22531:26:0;;;:::o;22753:34::-;;;;:::o;22613:45::-;;;;;;;;;;;;;;;;;;;:::o;22922:28::-;;;;:::o;23920:98::-;20451:12;:10;:12::i;:::-;20441:6;;:22;:6;;;:22;;;20433:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23989:11:::1;:21:::0;23920:98::o;27416:725::-;27469:21;27493:8;27502:1;27493:11;;;;;;;;;;;;;;;;27548:10;27539:20;;:8;:20;;;;;;;27578:11;;27493;;;;;;;;-1:-1:-1;27578:22:0;-1:-1:-1;27578:22:0;27570:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27634:13;27645:1;27634:10;:13::i;:::-;27658:15;27676:67;27727:4;:15;;;27676:46;27717:4;27676:36;27692:4;:19;;;27676:4;:11;;;:15;;:36;;;;:::i;:::-;:40;;:46::i;:::-;:50;;:67::i;:::-;27658:85;-1:-1:-1;27757:11:0;;27754:97;;27785:11;;:54;;:11;;27818:10;27831:7;27785:24;:54::i;:::-;27864:11;;27861:151;;27906:11;;:24;;27922:7;27906:15;:24::i;:::-;27892:38;;27945:12;;:55;;:12;;27979:10;27992:7;27945:25;:55::i;:::-;28056:19;;;;28040:11;;:46;;28081:4;;28040:36;;:15;:36::i;:46::-;28022:15;;;:64;28104:29;;;;;;;;28113:10;;28104:29;;;;;;;;;;27416:725;;;;:::o;28700:227::-;20451:12;:10;:12::i;:::-;20441:6;;:22;:6;;;:22;;;20433:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28797:11:::1;::::0;:36:::1;::::0;;;;;28827:4:::1;28797:36;::::0;::::1;::::0;;;:11:::1;::::0;;::::1;::::0;:21:::1;::::0;:36;;;;;::::1;::::0;;;;;;;;;:11;:36;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;28797:36:0;28786:47;::::1;;28778:76;;;::::0;;::::1;::::0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;28865:11;::::0;:54:::1;::::0;:11:::1;;28898:10;28911:7:::0;28865:24:::1;:54::i;:::-;28700:227:::0;:::o;22843:25::-;;;;:::o;25543:683::-;25595:21;25619:8;25628:4;25619:14;;;;;;;;;;;;;;;;;;25595:38;;25664:4;:20;;;25648:12;:36;25644:75;;25701:7;;;25644:75;25748:12;;:37;;;;;;25779:4;25748:37;;;;;;25729:16;;25748:12;;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25748:37:0;;-1:-1:-1;25800:13:0;25796:102;;-1:-1:-1;25853:12:0;25830:20;;;;:35;25880:7;;25796:102;25908:18;25929:49;25943:4;:20;;;25965:12;25929:13;:49::i;:::-;25908:70;;25989:17;26009:72;26065:15;;26009:51;26044:4;:15;;;26009:30;26024:14;;26009:10;:14;;:30;;;;:::i;:::-;:34;;:51::i;:72::-;25989:92;-1:-1:-1;26114:58:0;26138:33;26162:8;26138:19;25989:92;26152:4;26138:13;:19::i;:33::-;26114:19;;;;;:23;:58::i;:::-;26092:19;;;:80;-1:-1:-1;;26206:12:0;26183:20;;;;:35;;;;-1:-1:-1;25543:683:0;:::o;26309:180::-;26371:8;:15;26354:14;26397:85;26425:6;26419:3;:12;26397:85;;;26455:15;26466:3;26455:10;:15::i;:::-;26433:5;;26397:85;;;;26309:180;:::o;20871:140::-;20451:12;:10;:12::i;:::-;20441:6;;:22;:6;;;:22;;;20433:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20970:1:::1;20954:6:::0;;20933:40:::1;::::0;::::1;20954:6:::0;;::::1;::::0;20933:40:::1;::::0;20970:1;;20933:40:::1;21001:1;20984:19:::0;;;::::1;::::0;;20871:140::o;22979:50::-;;;;:::o;22466:29::-;;;;:::o;20229:79::-;20267:7;20294:6;;;20229:79;;:::o;24363:306::-;24435:7;24466:13;;24459:3;:20;24455:207;;24503:14;:3;24511:5;24503:7;:14::i;:::-;24496:21;;;;24455:207;24548:13;;24539:5;:22;24535:127;;-1:-1:-1;24585:1:0;24578:8;;24535:127;24626:13;;:24;;24644:5;24626:17;:24::i;24535:127::-;24363:306;;;;:::o;26540:823::-;26592:21;26616:8;26625:1;26616:11;;;;;;;;;;;;;;;;26671:10;26662:20;;:8;:20;;;;;;;26731:11;;26703;;26616;;;;;;;;-1:-1:-1;26662:20:0;26731:11;26703:24;;26719:7;26703:15;:24::i;:::-;:39;;26695:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26779:13;26790:1;26779:10;:13::i;:::-;26807:11;;:15;26803:252;;26839:15;26857:67;26908:4;:15;;;26857:46;26898:4;26857:36;26873:4;:19;;;26857:4;:11;;;:15;;:36;;;;:::i;:67::-;26839:85;-1:-1:-1;26942:11:0;;26939:105;;26974:11;;:54;;:11;;27007:10;27020:7;26974:24;:54::i;:::-;26803:252;;27068:11;;27065:170;;27096:12;;:74;;:12;;27134:10;27155:4;27162:7;27096:29;:74::i;:::-;27199:11;;:24;;27215:7;27199:15;:24::i;:::-;27185:38;;27065:170;27279:19;;;;27263:11;;:46;;27304:4;;27263:36;;:15;:36::i;:46::-;27245:15;;;:64;27327:28;;;;;;;;27335:10;;27327:28;;;;;;;;;;26540:823;;;:::o;22367:20::-;;;;;;:::o;24064:223::-;24171:11;;24149:10;24116:7;24140:20;;;:8;:20;;;;;:27;24116:7;;-1:-1:-1;24136:82:0;;-1:-1:-1;24205:1:0;24198:8;;24136:82;24260:10;24251:20;;;;:8;:20;;;;;:27;24235:11;;:44;;:15;:44::i;:::-;24228:51;;24064:223;:::o;28212:439::-;28259:21;28283:8;28292:1;28283:11;;;;;;;;;;;;;;;;28338:10;28329:20;;:8;:20;;;;;;28387:11;;28409:15;;;-1:-1:-1;28435:15:0;;:19;;;;28283:11;;;;;;-1:-1:-1;28329:20:0;28469;;28465:116;;28505:12;;:64;;:12;;28539:10;28552:16;28505:25;:64::i;:::-;28596:47;;;;;;;;28614:10;;28596:47;;;;;;;;;;28212:439;;;:::o;21166:109::-;20451:12;:10;:12::i;:::-;20441:6;;:22;:6;;;:22;;;20433:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21239:28:::1;21258:8;21239:18;:28::i;24734:733::-:0;24795:7;24815:21;24839:8;24848:1;24839:11;;;;;;;;;;;;;;;;24885:15;;;;;;:8;:15;;;;;;24839:11;;;;;;;24936:19;;;;24985:12;;:37;;;;;25016:4;24985:37;;;;;;;;;24839:11;;-1:-1:-1;24885:15:0;;24936:19;;24839:11;;24985:12;;;;;:22;;:37;;;;;24839:11;24985:37;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24985:37:0;25052:20;;;;24985:37;;-1:-1:-1;25037:12:0;:35;:52;;;;-1:-1:-1;25076:13:0;;;25037:52;25033:347;;;25106:18;25127:49;25141:4;:20;;;25163:12;25127:13;:49::i;:::-;25106:70;;25191:17;25211:72;25267:15;;25211:51;25246:4;:15;;;25211:30;25226:14;;25211:10;:14;;:30;;;;:::i;:72::-;25191:92;-1:-1:-1;25315:53:0;25334:33;25358:8;25334:19;25191:92;25348:4;25334:13;:19::i;:33::-;25315:14;;:18;:53::i;:::-;25298:70;;25033:347;;;25397:62;25443:4;:15;;;25397:41;25433:4;25397:31;25413:14;25397:4;:11;;;:15;;:31;;;;:::i;:62::-;25390:69;24734:733;-1:-1:-1;;;;;;24734:733:0:o;22394:25::-;;;;;;:::o;18886:98::-;18966:10;18886:98;:::o;1678:471::-;1736:7;1981:6;1977:47;;-1:-1:-1;2011:1:0;2004:8;;1977:47;2048:5;;;2052:1;2048;:5;:1;2072:5;;;;;:10;2064:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2140:1;1678:471;-1:-1:-1;;;1678:471:0:o;2625:132::-;2683:7;2710:39;2714:1;2717;2710:39;;;;;;;;;;;;;;;;;:3;:39::i;754:136::-;812:7;839:43;843:1;846;839:43;;;;;;;;;;;;;;;;;:3;:43::i;15359:211::-;15503:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15526:23;15503:58;;;15476:86;;15496:5;;15476:19;:86::i;:::-;15359:211;;;:::o;290:181::-;348:7;380:5;;;404:6;;;;396:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15578:248;15749:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15772:27;15749:68;;;15722:96;;15742:5;;15722:19;:96::i;:::-;15578:248;;;;:::o;21381:229::-;21455:22;;;21447:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21557:6;;;21536:38;;;;;;;21557:6;;;21536:38;;;21585:6;:17;;;;;;;;;;;;;;;21381:229::o;3253:312::-;3373:7;3408:12;3401:5;3393:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3432:9;3448:1;3444;:5;;;;;;;3253:312;-1:-1:-1;;;;;3253:312:0:o;1193:226::-;1313:7;1349:12;1341:6;;;;1333:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1385:5:0;;;1193:226::o;17894:774::-;18318:23;18344:69;18372:4;18344:69;;;;;;;;;;;;;;;;;18352:5;18344:27;;;;:69;;;;;:::i;:::-;18428:17;;18318:95;;-1:-1:-1;18428:21:0;18424:237;;18583:10;18572:30;;;;;;;;;;;;;;;-1:-1:-1;18572:30:0;18564:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12287:230;12424:12;12456:53;12479:6;12487:4;12493:1;12496:12;12456:22;:53::i;:::-;12449:60;12287:230;-1:-1:-1;;;;12287:230:0:o;13775:1020::-;13948:12;13981:18;13992:6;13981:10;:18::i;:::-;13973:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14107:12;14121:23;14148:6;:11;;14167:8;14177:4;14148:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14106:76;;;;14197:7;14193:595;;;14228:10;-1:-1:-1;14221:17:0;;-1:-1:-1;14221:17:0;14193:595;14342:17;;:21;14338:439;;14605:10;14599:17;14666:15;14653:10;14649:2;14645:19;14638:44;14553:148;14741:20;;;;;;;;;;;;;;;;;;;;14748:12;;14741:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9150:641;9210:4;9691:20;;9521:66;9740:23;;;;;;:42;;-1:-1:-1;;9767:15:0;;;9732:51;-1:-1:-1;;9150:641:0:o

Swarm Source

ipfs://45ae0eb384b2a824ca5df6a6e3b9479afade5bededb5de6498134d62276f1528
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.