Contract 0xcce949De564fE60e7f96C85e55177F8B9E4CF61b

 
Txn Hash
Block
From
To
Value [Txn Fee]
0x28f6166da7b4ee51931e29304b399579363b125bd67cadf004c83c1e151828c484699192021-06-20 19:52:0239 secs ago0x177757d4cd2e9cb098a5ecb581dd20af565c0f41 IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.001412755
0x0c1ad231592daa012165e07d6e5352632d46090b0eb77c0e59fb3429bb8f00bd84694082021-06-20 19:26:2926 mins ago0xedc408dd742f7491687f2f0f411f2e3c61154b37 IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.002176015
0xfeafa79ce2985b9d3dff9a4cc30d8696967baa1f0a9851b701fc3af4734a9b8184693192021-06-20 19:22:0230 mins ago0x258a4963c983138ead92d71aeb2a8dbfc56708ca IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.00182189
0x3c296a21898a2ff22d6616d27ecee621df337fea3fbab63a6168f49f20f5c41c84692842021-06-20 19:20:1732 mins ago0x923b9a0a3b2734596881d19f222a67443f4c4eb6 IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.001412695
0x3afbcb45aaa9e83c4e03c6276edc1d069b54356f2e4be3ed01931c7c62e7731084692812021-06-20 19:20:0832 mins ago0x9addefcc5ca3b46ddd6d3c9070e03ed8306a8198 IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.001993115
0x6c1883ef72fb11b6db9842e68038908ad53911c581caaec3b0083a2ae7b8a17884692662021-06-20 19:19:2333 mins ago0x29d0653f629a8ea665a36e937323a10c8762141b IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.003662253
0x334188349b7ca31f8539be43a645e254cc2fd9738b134d60f11d43766b2b6d2c84691462021-06-20 19:13:2339 mins ago0xbe8b2ae64ca47b09fe8e57b18053860944b09bab IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.002034585
0x50a2be61d7da9048dfd0453dbbc46e4495e33fd478c977a2d483d5e2b4fd815884691052021-06-20 19:11:2041 mins ago0x72b223de2f773c814465c4a8f2ef9faae702cfb3 IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.001843115
0x5448b2053f55b48b2c545c651a528f37191ae83756768fe67c9eee620213737d84689462021-06-20 19:03:2349 mins ago0xddf666c32d0b7f56f52da0c1ff98bc2a8f7b3b0e IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.00201342
0x994cd54b8d76f7e2791497c5e9c847414ca337c51b0eb9fd7b23f09c6656629884689442021-06-20 19:03:1749 mins ago0x72b223de2f773c814465c4a8f2ef9faae702cfb3 IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.001949195
0x36e850907b2d2a9460cc9fe34ad9d298d3903259d0a1a758f08f3d58669abaa484689382021-06-20 19:02:5949 mins ago0x72b223de2f773c814465c4a8f2ef9faae702cfb3 IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.00125547
0xf0bec47117a562888c081b215a9aefde056d4652505e4d4731c0cfc8b6b617c784689382021-06-20 19:02:5949 mins ago0xb01ea75e8eed3a073b39567c8e9b2c392b273531 IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.002382225
0x400c8df78c946558a7be08b90b6804abef58ab50b9840316a6e4c7183581601884688552021-06-20 18:58:5053 mins ago0xb01ea75e8eed3a073b39567c8e9b2c392b273531 IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.001993115
0x71b56c7fecf4bdecce0eda5b1b1495f72d1793d04fa250dcf93dea188b55c0e884685372021-06-20 18:42:561 hr 9 mins ago0xbaf11b369c45f3a3b5ba49a536b2a4758b9e5b84 IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.001843175
0x482fa0b07828ceafcf116eab23edaa5e607bbdf0cd988950601e576f1c10627984685302021-06-20 18:42:351 hr 10 mins ago0xbaf11b369c45f3a3b5ba49a536b2a4758b9e5b84 IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.002176075
0x46f0fe1e269246abe447e1499041630bf6bc411efa2434c8dcbc5a598ba2e44784684842021-06-20 18:40:171 hr 12 mins ago0xa5ca77110aaa5c0daa34975ff0f841e28e844c45 IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.00208836
0x7b36b85181d6058016a34e87529cc9d443bd5c985117746d745527f9445879d284682802021-06-20 18:30:051 hr 22 mins ago0x5db5286cec9a28d76feb4ee22e0722e6a6912b22 IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.00249911
0x320dfb696556dae4ae2a0884f6155f2067a5d29aea65e27c1cf01a9e2b3075b184680882021-06-20 18:20:291 hr 32 mins ago0xf96da4775776ea43c42795b116c7a6eccd6e71b5 IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.00189689
0x5bf781c90c34c5538552b0b1a772bd73466176ebb8d70c5b3c30ded1efc4e42584680242021-06-20 18:17:171 hr 35 mins ago0x902f610faaa25a76c7579953a15f039639541a84 IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.00206951
0x6c6e554ab53dcb5639288fdd857151472e86f6c78bc5e4d06d47d8499e46445b84679302021-06-20 18:12:351 hr 40 mins ago0x6dd31c45b81fa717db5833ad95724091231d6e10 IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.002326015
0x0d25490c37a165fb61d637c8afd8ad51ca61cdf1b3a32f3c1d6ea207a698713384677452021-06-20 18:03:201 hr 49 mins ago0xd7d790e15ab37ceb124de88a207e826f5346c16a IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.001090415
0x7bd9993ea26c3ee237ed3725b83ee0b9adf82de4194494ecf60f848e06b656db84673162021-06-20 17:41:532 hrs 10 mins ago0x0bcccc4fb4d8627f217c686c35c56f7fda80a2f8 IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.001468855
0x252961d9c9ac20afef450dda89305f64e66377fa3099fb8b133ca4cf42f6121884672732021-06-20 17:39:442 hrs 12 mins ago0x258a4963c983138ead92d71aeb2a8dbfc56708ca IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.00182189
0x2d44bc59642932c7761d40152c6298cfe556cfe9c51fa4da077043718c37f59d84672312021-06-20 17:37:382 hrs 15 mins ago0xd918d6768c7e6096fc3d09a39673baf4e3126440 IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.00201336
0x43feae566e0f306ed65e0c060b7b9af8b2c15c53d43eb0b66891aaa693dfb70384672102021-06-20 17:36:352 hrs 16 mins ago0x55f7bfde54728b39cc103f729f8b64191af59488 IN  0xcce949de564fe60e7f96c85e55177f8b9e4cf61b0 BNB0.001412755
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LpTokenStaker

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

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

// SPDX-License-Identifier: MIT

pragma solidity 0.7.6;



// Part: Minter

interface Minter {
    function mint(address _receiver, uint256 _amount) external;
}

// Part: OpenZeppelin/[email protected]/Address

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

// Part: OpenZeppelin/[email protected]/Context

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

// Part: OpenZeppelin/[email protected]/IERC20

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

// Part: OpenZeppelin/[email protected]/SafeMath

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

// Part: Oracle

interface Oracle {
    function latestAnswer() external view returns (int256);
}

// Part: OpenZeppelin/[email protected]/Ownable

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

// Part: OpenZeppelin/[email protected]/SafeERC20

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 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 SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

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

    function safeTransferFrom(IERC20 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
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 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),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 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(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: 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(IERC20 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, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File: LpTokenStaker.sol

// LP token staking contract for http://ellipsis.finance/
// LP tokens are staked within this contract to generate EPS, Ellipsis' value-capture token
// Based on the Sushi MasterChef contract by Chef Nomi - https://github.com/sushiswap/sushiswap/
contract LpTokenStaker is Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // Info of each user.
    struct UserInfo {
        uint256 amount;
        uint256 rewardDebt;
    }
    // Info of each pool.
    struct PoolInfo {
        IERC20 lpToken; // Address of LP token contract.
        uint256 oracleIndex; // Index value for oracles array indicating which price multiplier to use.
        uint256 allocPoint; // How many allocation points assigned to this pool.
        uint256 lastRewardTime; // Last second that reward distribution occurs.
        uint256 accRewardPerShare; // Accumulated rewards per share, times 1e12. See below.
    }
    // Info about token emissions for a given time period.
    struct EmissionPoint {
        uint128 startTimeOffset;
        uint128 rewardsPerSecond;
    }

    Minter public rewardMinter;
    uint256 public rewardsPerSecond;
    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Data about the future reward rates. emissionSchedule stored in reverse chronological order,
    // whenever the number of blocks since the start block exceeds the next block offset a new
    // reward rate is applied.
    EmissionPoint[] public emissionSchedule;
    // Info of each user that stakes LP tokens.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    // Total allocation poitns. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;
    // The block number when reward mining starts.
    uint256 public startTime;

    // List of Chainlink oracle addresses.
    Oracle[] public oracles;

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

    constructor(
        uint128[] memory _startTimeOffset,
        uint128[] memory _rewardsPerSecond,
        IERC20 _fixedRewardToken
    ) public {
        uint256 length = _startTimeOffset.length;
        for (uint256 i = length - 1; i + 1 != 0; i--) {
            emissionSchedule.push(
                EmissionPoint({
                    startTimeOffset: _startTimeOffset[i],
                    rewardsPerSecond: _rewardsPerSecond[i]
                })
            );
        }
        // Pool values are based on USD so the first oracle is 0x00 and the price is always $1
        oracles.push(Oracle(0));
        // The first pool receives special treatment, it always has 20% of the totalAllocPoint
        poolInfo.push(
            PoolInfo({
                lpToken: _fixedRewardToken,
                oracleIndex: 0,
                allocPoint: 0,
                lastRewardTime: block.timestamp,
                accRewardPerShare: 0
            })
        );
    }

    // Start the party
    function start() public onlyOwner {
        require(startTime == 0);
        startTime = block.timestamp;
    }

    function setMinter(Minter _rewardMinter) public onlyOwner {
        require(rewardMinter == Minter(0));
        rewardMinter = _rewardMinter;
    }

    // Add a new lp to the pool. Can only be called by the owner.
    // XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do.
    function addPool(IERC20 _lpToken, uint256 _oracleIndex) public onlyOwner {
        require(_oracleIndex < oracles.length);
        _massUpdatePools();
        poolInfo.push(
            PoolInfo({
                lpToken: _lpToken,
                oracleIndex: _oracleIndex,
                allocPoint: 0,
                lastRewardTime: block.timestamp,
                accRewardPerShare: 0
            })
        );
    }

    // Add a new oracle address. Should only be added if required by pool.
    function addOracle(Oracle _oracle) external onlyOwner {
        _oracle.latestAnswer();  // Validates that this is actually an oracle!
        oracles.push(_oracle);
    }

    // Calculate the final allocation points for each pool.
    // This is the main logical deviation from the original MasterChef contract.
    // The pool at pid 0 always recieves exactly 20% of the allocation points.
    // All remaining pools receive an "equal" allocation, based on their rough value in USD
    // For pools handling USD-based Ellipsis LP tokens the value per token is assumed as $1,
    // for non-USD pools a rate is queried from a Chainlink oracle.
    function _getAllocPoints() internal view returns (uint256[] memory allocPoints, uint256 totalAP) {
        // Get the oracle prices. Oracle[0] is USD and fixed at $1 (100000000)
        uint256[] memory latestPrices = new uint256[](oracles.length+1);
        latestPrices[0] = 100000000;
        for (uint256 i = 1; i < oracles.length; i++) {
            latestPrices[i] = uint256(oracles[i].latestAnswer());
        }

        // Apply oracle prices to calculate final allocation points for each pool
        uint256 length = poolInfo.length;
        allocPoints = new uint256[](length);
        for (uint256 pid = 1; pid < length; ++pid) {
            PoolInfo storage pool = poolInfo[pid];
            allocPoints[pid] = pool.allocPoint.mul(latestPrices[pool.oracleIndex]);
            totalAP = totalAP.add(allocPoints[pid]);
        }
        // Special treatment for pool 0 to always have 20%
        totalAP = totalAP.mul(100).div(80);
        allocPoints[0] = totalAP.div(5);

        return (allocPoints, totalAP);
    }

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

    // View function to see pending reward tokens on frontend.
    function claimableReward(uint256 _pid, address _user)
        external
        view
        returns (uint256)
    {
        (uint256[] memory allocPoints, uint256 totalAP) = _getAllocPoints();
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accRewardPerShare = pool.accRewardPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.timestamp > pool.lastRewardTime && lpSupply != 0) {
            uint256 duration = block.timestamp.sub(pool.lastRewardTime);
            uint256 reward = duration.mul(rewardsPerSecond).mul(allocPoints[_pid]).div(totalAP);
            accRewardPerShare = accRewardPerShare.add(reward.mul(1e12).div(lpSupply));
        }
        return user.amount.mul(accRewardPerShare).div(1e12).sub(user.rewardDebt);
    }

    // Update reward variables for all pools
    function _massUpdatePools() internal {
        (uint256[] memory allocPoints, uint256 totalAP) = _getAllocPoints();
        for (uint256 pid = 0; pid < allocPoints.length; ++pid) {
            _updatePool(pid, allocPoints[pid], totalAP);
        }
        uint256 length = emissionSchedule.length;
        if (startTime > 0 && length > 0) {
            EmissionPoint memory e = emissionSchedule[length-1];
            if (block.timestamp.sub(startTime) > e.startTimeOffset) {
                rewardsPerSecond = uint256(e.rewardsPerSecond);
                emissionSchedule.pop();
            }
        }
    }

    // Update reward variables of the given pool to be up-to-date.
    function _updatePool(uint256 _pid, uint256 _allocPoint, uint256 _totalAllocPoint) internal {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.timestamp <= pool.lastRewardTime) {
            return;
        }
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (lpSupply == 0 || _totalAllocPoint == 0) {
            pool.lastRewardTime = block.timestamp;
            return;
        }
        uint256 duration = block.timestamp.sub(pool.lastRewardTime);
        uint256 reward = duration.mul(rewardsPerSecond).mul(_allocPoint).div(_totalAllocPoint);
        pool.accRewardPerShare = pool.accRewardPerShare.add(reward.mul(1e12).div(lpSupply));
        pool.lastRewardTime = block.timestamp;
    }

    // Deposit LP tokens into the contract. Also triggers a claim.
    function deposit(uint256 _pid, uint256 _amount) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        _massUpdatePools();
        if (user.amount > 0) {
            uint256 pending =
                user.amount.mul(pool.accRewardPerShare).div(1e12).sub(
                    user.rewardDebt
                );
            rewardMinter.mint(msg.sender, pending);
        }
        pool.lpToken.safeTransferFrom(
            address(msg.sender),
            address(this),
            _amount
        );
        user.amount = user.amount.add(_amount);
        user.rewardDebt = user.amount.mul(pool.accRewardPerShare).div(1e12);
        if (_pid > 0) {
            pool.allocPoint = pool.allocPoint.add(_amount);
            totalAllocPoint = totalAllocPoint.add(_amount);
        }
        emit Deposit(msg.sender, _pid, _amount);
    }

    // Withdraw LP tokens. Also triggers a claim.
    function withdraw(uint256 _pid, uint256 _amount) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        _massUpdatePools();
        uint256 pending =
            user.amount.mul(pool.accRewardPerShare).div(1e12).sub(
                user.rewardDebt
            );
        if (pending > 0) {
            rewardMinter.mint(msg.sender, pending);
        }
        user.amount = user.amount.sub(_amount);
        user.rewardDebt = user.amount.mul(pool.accRewardPerShare).div(1e12);
        if (_pid > 0) {
            pool.allocPoint = pool.allocPoint.sub(_amount);
            totalAllocPoint = totalAllocPoint.sub(_amount);
        }
        pool.lpToken.safeTransfer(address(msg.sender), _amount);
        emit Withdraw(msg.sender, _pid, _amount);
    }

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

        if (_pid > 0) {
            if (pool.allocPoint >= amount) {
                pool.allocPoint = pool.allocPoint.sub(amount);
            } else {
                pool.allocPoint = 0;
            }
            if (totalAllocPoint >= amount) {
                totalAllocPoint = totalAllocPoint.sub(amount);
            } else {
                totalAllocPoint = 0;
            }
        }
    }

    // Claim pending rewards for one or more pools.
    // Rewards are not received directly, they are minted by the rewardMinter.
    function claim(uint256[] calldata _pids) external {
        _massUpdatePools();
        uint256 pending;
        for (uint i = 0; i < _pids.length; i++) {
            PoolInfo storage pool = poolInfo[_pids[i]];
            UserInfo storage user = userInfo[_pids[i]][msg.sender];
            pending = pending.add(user.amount.mul(pool.accRewardPerShare).div(1e12).sub(user.rewardDebt));
            user.rewardDebt = user.amount.mul(pool.accRewardPerShare).div(1e12);
        }
        if (pending > 0) {
            rewardMinter.mint(msg.sender, pending);
        }
    }

}

Contract ABI

[{"inputs":[{"internalType":"uint128[]","name":"_startTimeOffset","type":"uint128[]"},{"internalType":"uint128[]","name":"_rewardsPerSecond","type":"uint128[]"},{"internalType":"contract IERC20","name":"_fixedRewardToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"contract Oracle","name":"_oracle","type":"address"}],"name":"addOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"uint256","name":"_oracleIndex","type":"uint256"}],"name":"addPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_pids","type":"uint256[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"claimableReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"emissionSchedule","outputs":[{"internalType":"uint128","name":"startTimeOffset","type":"uint128"},{"internalType":"uint128","name":"rewardsPerSecond","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"oracles","outputs":[{"internalType":"contract Oracle","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"oracleIndex","type":"uint256"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"accRewardPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardMinter","outputs":[{"internalType":"contract Minter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract Minter","name":"_rewardMinter","type":"address"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"start","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","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":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260006006553480156200001657600080fd5b506040516200204b3803806200204b833981810160405260608110156200003c57600080fd5b81019080805160405193929190846401000000008211156200005d57600080fd5b9083019060208201858111156200007357600080fd5b82518660208202830111640100000000821117156200009157600080fd5b82525081516020918201928201910280838360005b83811015620000c0578181015183820152602001620000a6565b5050505090500160405260200180516040519392919084640100000000821115620000ea57600080fd5b9083019060208201858111156200010057600080fd5b82518660208202830111640100000000821117156200011e57600080fd5b82525081516020918201928201910280838360005b838110156200014d57818101518382015260200162000133565b505050509190910160405250602001519150600090506200016d620003c5565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350825160001981015b6001810115620002685760046040518060400160405280878481518110620001e357fe5b60200260200101516001600160801b031681526020018684815181106200020657fe5b6020908102919091018101516001600160801b03908116909252835460018101855560009485529381902083519401805493909101518216600160801b029382166001600160801b0319909316929092171691909117905560001901620001bf565b50506008805460018082019092557ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30180546001600160a01b03199081169091556040805160a0810182526001600160a01b03948516815260006020820181815292820181815242606084019081526080840183815260038054988901815590935292517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b6005909702968701805490961697169690961790935590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c84015592517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d83015591517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85e82015590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85f9091015550620003c99050565b3390565b611c7280620003d96000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c806378e97925116100b8578063d60b51641161007c578063d60b516414610380578063df5dd1a5146103ac578063e2bbb158146103d2578063eacdaabc146103f5578063f2fde38b146103fd578063fca3b5aa1461042357610137565b806378e979251461031b5780638da5cb5b1461032357806393f1a40b1461032b5780639b8e556314610370578063be9a65551461037857610137565b8063441a3e70116100ff578063441a3e701461022a5780635312ea8e1461024d5780635b69a7d81461026a5780636ba4c138146102a3578063715018a61461031357610137565b8063081e3eda1461013c5780631526fe271461015657806317caf6f1146101a857806332a9caba146101b0578063334d0bbd146101de575b600080fd5b610144610449565b60408051918252519081900360200190f35b6101736004803603602081101561016c57600080fd5b503561044f565b604080516001600160a01b03909616865260208601949094528484019290925260608401526080830152519081900360a00190f35b61014461049a565b6101dc600480360360408110156101c657600080fd5b506001600160a01b0381351690602001356104a0565b005b6101fb600480360360208110156101f457600080fd5b5035610632565b60405180836001600160801b03168152602001826001600160801b031681526020019250505060405180910390f35b6101dc6004803603604081101561024057600080fd5b5080359060200135610667565b6101dc6004803603602081101561026357600080fd5b503561084e565b6102876004803603602081101561028057600080fd5b503561093c565b604080516001600160a01b039092168252519081900360200190f35b6101dc600480360360208110156102b957600080fd5b8101906020810181356401000000008111156102d457600080fd5b8201836020820111156102e657600080fd5b8035906020019184602083028401116401000000008311171561030857600080fd5b509092509050610966565b6101dc610adc565b610144610b88565b610287610b8e565b6103576004803603604081101561034157600080fd5b50803590602001356001600160a01b0316610b9d565b6040805192835260208301919091528051918290030190f35b610287610bc1565b6101dc610bd0565b6101446004803603604081101561039657600080fd5b50803590602001356001600160a01b0316610c45565b6101dc600480360360208110156103c257600080fd5b50356001600160a01b0316610dcd565b6101dc600480360360408110156103e857600080fd5b5080359060200135610ee6565b610144611077565b6101dc6004803603602081101561041357600080fd5b50356001600160a01b031661107d565b6101dc6004803603602081101561043957600080fd5b50356001600160a01b031661117f565b60035490565b6003818154811061045f57600080fd5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909185565b60065481565b6104a8611219565b6001600160a01b03166104b9610b8e565b6001600160a01b031614610502576040805162461bcd60e51b81526020600482018190526024820152600080516020611bf3833981519152604482015290519081900360640190fd5b600854811061051057600080fd5b61051861121d565b6040805160a0810182526001600160a01b03938416815260208101928352600091810182815242606083019081526080830184815260038054600181018255955292517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b600590950294850180546001600160a01b031916919097161790955592517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c83015591517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d82015591517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85e830155517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85f90910155565b6004818154811061064257600080fd5b6000918252602090912001546001600160801b038082169250600160801b9091041682565b60006003838154811061067657fe5b60009182526020808320868452600580835260408086203387529093529190932080549290910290920192508311156106eb576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b6106f361121d565b600061072d826001015461072764e8d4a510006107218760040154876000015461131190919063ffffffff16565b90611371565b906113d8565b905080156107a157600154604080516340c10f1960e01b81523360048201526024810184905290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b15801561078857600080fd5b505af115801561079c573d6000803e3d6000fd5b505050505b81546107ad90856113d8565b80835560048401546107ca9164e8d4a51000916107219190611311565b600183015584156107fa5760028301546107e490856113d8565b60028401556006546107f690856113d8565b6006555b8254610810906001600160a01b03163386611435565b604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b60006003828154811061085d57fe5b600091825260208083208584526005808352604080862033808852945290942080549390940201805490945061089f916001600160a01b039091169083611435565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a3600080835560018301558315610936578083600201541061090a57600283015461090090826113d8565b6002840155610912565b600060028401555b80600654106109305760065461092890826113d8565b600655610936565b60006006555b50505050565b6008818154811061094c57600080fd5b6000918252602090912001546001600160a01b0316905081565b61096e61121d565b6000805b82811015610a64576000600385858481811061098a57fe5b905060200201358154811061099b57fe5b906000526020600020906005020190506000600560008787868181106109bd57fe5b9050602002013581526020019081526020016000206000336001600160a01b03166001600160a01b031681526020019081526020016000209050610a2d610a26826001015461072764e8d4a510006107218760040154876000015461131190919063ffffffff16565b8590611487565b9350610a5364e8d4a510006107218460040154846000015461131190919063ffffffff16565b600191820155919091019050610972565b508015610ad757600154604080516340c10f1960e01b81523360048201526024810184905290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b158015610abe57600080fd5b505af1158015610ad2573d6000803e3d6000fd5b505050505b505050565b610ae4611219565b6001600160a01b0316610af5610b8e565b6001600160a01b031614610b3e576040805162461bcd60e51b81526020600482018190526024820152600080516020611bf3833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60075481565b6000546001600160a01b031690565b60056020908152600092835260408084209091529082529020805460019091015482565b6001546001600160a01b031681565b610bd8611219565b6001600160a01b0316610be9610b8e565b6001600160a01b031614610c32576040805162461bcd60e51b81526020600482018190526024820152600080516020611bf3833981519152604482015290519081900360640190fd5b60075415610c3f57600080fd5b42600755565b6000806000610c526114e1565b91509150600060038681548110610c6557fe5b60009182526020808320898452600580835260408086206001600160a01b038c8116885290855281872095909202909201600481810154825485516370a0823160e01b81523093810193909352945192985095969493909216926370a082319260248082019391829003018186803b158015610ce057600080fd5b505afa158015610cf4573d6000803e3d6000fd5b505050506040513d6020811015610d0a57600080fd5b5051600385015490915042118015610d2157508015155b15610d96576000610d3f8560030154426113d890919063ffffffff16565b90506000610d79876107218a8e81518110610d5657fe5b6020026020010151610d736002548761131190919063ffffffff16565b90611311565b9050610d91610a26846107218464e8d4a51000611311565b935050505b610dbe836001015461072764e8d4a5100061072186886000015461131190919063ffffffff16565b96505050505050505b92915050565b610dd5611219565b6001600160a01b0316610de6610b8e565b6001600160a01b031614610e2f576040805162461bcd60e51b81526020600482018190526024820152600080516020611bf3833981519152604482015290519081900360640190fd5b806001600160a01b03166350d25bcd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610e6857600080fd5b505afa158015610e7c573d6000803e3d6000fd5b505050506040513d6020811015610e9257600080fd5b5050600880546001810182556000919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30180546001600160a01b0319166001600160a01b0392909216919091179055565b600060038381548110610ef557fe5b60009182526020808320868452600580835260408086203387529093529190932091029091019150610f2561121d565b805415610fca576000610f5a826001015461072764e8d4a510006107218760040154876000015461131190919063ffffffff16565b600154604080516340c10f1960e01b81523360048201526024810184905290519293506001600160a01b03909116916340c10f199160448082019260009290919082900301818387803b158015610fb057600080fd5b505af1158015610fc4573d6000803e3d6000fd5b50505050505b8154610fe1906001600160a01b0316333086611725565b8054610fed9084611487565b808255600483015461100a9164e8d4a51000916107219190611311565b6001820155831561103a5760028201546110249084611487565b60028301556006546110369084611487565b6006555b604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050565b60025481565b611085611219565b6001600160a01b0316611096610b8e565b6001600160a01b0316146110df576040805162461bcd60e51b81526020600482018190526024820152600080516020611bf3833981519152604482015290519081900360640190fd5b6001600160a01b0381166111245760405162461bcd60e51b8152600401808060200182810382526026815260200180611b866026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b611187611219565b6001600160a01b0316611198610b8e565b6001600160a01b0316146111e1576040805162461bcd60e51b81526020600482018190526024820152600080516020611bf3833981519152604482015290519081900360640190fd5b6001546001600160a01b0316156111f757600080fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b6000806112286114e1565b9150915060005b825181101561125e576112568184838151811061124857fe5b60200260200101518461177f565b60010161122f565b50600454600754158015906112735750600081115b15610ad75760006004600183038154811061128a57fe5b6000918252602091829020604080518082019091529101546001600160801b03808216808452600160801b90920416928201929092526007549092506112d19042906113d8565b11156109365760208101516001600160801b031660025560048054806112f357fe5b60008281526020812082016000199081019190915501905550505050565b60008261132057506000610dc7565b8282028284828161132d57fe5b041461136a5760405162461bcd60e51b8152600401808060200182810382526021815260200180611bd26021913960400191505060405180910390fd5b9392505050565b60008082116113c7576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816113d057fe5b049392505050565b60008282111561142f576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610ad79084906118b8565b60008282018381101561136a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b606060008060088054905060010167ffffffffffffffff8111801561150557600080fd5b5060405190808252806020026020018201604052801561152f578160200160208202803683370190505b5090506305f5e1008160008151811061154457fe5b602090810291909101015260015b6008548110156115ff576008818154811061156957fe5b60009182526020918290200154604080516350d25bcd60e01b815290516001600160a01b03909216926350d25bcd92600480840193829003018186803b1580156115b257600080fd5b505afa1580156115c6573d6000803e3d6000fd5b505050506040513d60208110156115dc57600080fd5b505182518390839081106115ec57fe5b6020908102919091010152600101611552565b506003548067ffffffffffffffff8111801561161a57600080fd5b50604051908082528060200260200182016040528015611644578160200160208202803683370190505b50935060015b818110156116e85760006003828154811061166157fe5b9060005260206000209060050201905061169f8482600101548151811061168457fe5b6020026020010151826002015461131190919063ffffffff16565b8683815181106116ab57fe5b6020026020010181815250506116dd8683815181106116c657fe5b60200260200101518661148790919063ffffffff16565b94505060010161164a565b506116f96050610721856064611311565b9250611706836005611371565b8460008151811061171357fe5b60200260200101818152505050509091565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526109369085906118b8565b60006003848154811061178e57fe5b90600052602060002090600502019050806003015442116117af5750610ad7565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156117f957600080fd5b505afa15801561180d573d6000803e3d6000fd5b505050506040513d602081101561182357600080fd5b50519050801580611832575082155b15611844575042600390910155610ad7565b600061185d8360030154426113d890919063ffffffff16565b9050600061187e8561072188610d736002548761131190919063ffffffff16565b90506118a1611896846107218464e8d4a51000611311565b600486015490611487565b600485015550504260039092019190915550505050565b600061190d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166119699092919063ffffffff16565b805190915015610ad75780806020019051602081101561192c57600080fd5b5051610ad75760405162461bcd60e51b815260040180806020018281038252602a815260200180611c13602a913960400191505060405180910390fd5b60606119788484600085611980565b949350505050565b6060824710156119c15760405162461bcd60e51b8152600401808060200182810382526026815260200180611bac6026913960400191505060405180910390fd5b6119ca85611adb565b611a1b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310611a595780518252601f199092019160209182019101611a3a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611abb576040519150601f19603f3d011682016040523d82523d6000602084013e611ac0565b606091505b5091509150611ad0828286611ae1565b979650505050505050565b3b151590565b60608315611af057508161136a565b825115611b005782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611b4a578181015183820152602001611b32565b50505050905090810190601f168015611b775780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212206f3ebf8ab44f9a788d4a3eba2e7a736497f505bdc0e06f4defdf0948bb02fcdf64736f6c63430007060033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000f9045866e7b372def1eff3712ce55fac1a98daf000000000000000000000000000000000000000000000000000000000000000090000000000000000000000000000000000000000000000000000000000000e100000000000000000000000000000000000000000000000000000000000279b1000000000000000000000000000000000000000000000000000000000004f2810000000000000000000000000000000000000000000000000000000000076b5100000000000000000000000000000000000000000000000000000000001e141900000000000000000000000000000000000000000000000000000000003c275100000000000000000000000000000000000000000000000000000000005a3a890000000000000000000000000000000000000000000000000000000000784dc100000000000000000000000000000000000000000000000000000000009660f9000000000000000000000000000000000000000000000000000000000000000090000000000000000000000000000000000000000000000010bb449149b67d3c0000000000000000000000000000000000000000000000000d629d4107c530fcd000000000000000000000000000000000000000000000000a09f5f0c5d3e4bda00000000000000000000000000000000000000000000000069227f608781364d0000000000000000000000000000000000000000000000003701f9f9b6ba28010000000000000000000000000000000000000000000000001b80fcfcdb5d14000000000000000000000000000000000000000000000000000dc07e7e6dae8a000000000000000000000000000000000000000000000000000dc07e7e6dae8a000000000000000000000000000000000000000000000000000000000000000000

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000f9045866e7b372def1eff3712ce55fac1a98daf000000000000000000000000000000000000000000000000000000000000000090000000000000000000000000000000000000000000000000000000000000e100000000000000000000000000000000000000000000000000000000000279b1000000000000000000000000000000000000000000000000000000000004f2810000000000000000000000000000000000000000000000000000000000076b5100000000000000000000000000000000000000000000000000000000001e141900000000000000000000000000000000000000000000000000000000003c275100000000000000000000000000000000000000000000000000000000005a3a890000000000000000000000000000000000000000000000000000000000784dc100000000000000000000000000000000000000000000000000000000009660f9000000000000000000000000000000000000000000000000000000000000000090000000000000000000000000000000000000000000000010bb449149b67d3c0000000000000000000000000000000000000000000000000d629d4107c530fcd000000000000000000000000000000000000000000000000a09f5f0c5d3e4bda00000000000000000000000000000000000000000000000069227f608781364d0000000000000000000000000000000000000000000000003701f9f9b6ba28010000000000000000000000000000000000000000000000001b80fcfcdb5d14000000000000000000000000000000000000000000000000000dc07e7e6dae8a000000000000000000000000000000000000000000000000000dc07e7e6dae8a000000000000000000000000000000000000000000000000000000000000000000

-----Encoded View---------------
23 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [2] : 000000000000000000000000f9045866e7b372def1eff3712ce55fac1a98daf0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000e10
Arg [5] : 0000000000000000000000000000000000000000000000000000000000279b10
Arg [6] : 00000000000000000000000000000000000000000000000000000000004f2810
Arg [7] : 000000000000000000000000000000000000000000000000000000000076b510
Arg [8] : 0000000000000000000000000000000000000000000000000000000001e14190
Arg [9] : 0000000000000000000000000000000000000000000000000000000003c27510
Arg [10] : 0000000000000000000000000000000000000000000000000000000005a3a890
Arg [11] : 000000000000000000000000000000000000000000000000000000000784dc10
Arg [12] : 0000000000000000000000000000000000000000000000000000000009660f90
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [14] : 0000000000000000000000000000000000000000000000010bb449149b67d3c0
Arg [15] : 000000000000000000000000000000000000000000000000d629d4107c530fcd
Arg [16] : 000000000000000000000000000000000000000000000000a09f5f0c5d3e4bda
Arg [17] : 00000000000000000000000000000000000000000000000069227f608781364d
Arg [18] : 0000000000000000000000000000000000000000000000003701f9f9b6ba2801
Arg [19] : 0000000000000000000000000000000000000000000000001b80fcfcdb5d1400
Arg [20] : 0000000000000000000000000000000000000000000000000dc07e7e6dae8a00
Arg [21] : 0000000000000000000000000000000000000000000000000dc07e7e6dae8a00
Arg [22] : 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.