ETH Price: $3,279.68 (+0.44%)
Gas: 29 Gwei

Contract

0x9e71245B9c606dEcc4DF234FeA1B314763C99614
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw132238452021-09-14 12:23:521047 days ago1631622232IN
0x9e71245B...763C99614
0 ETH0.0027932831.00000145
Withdraw132235902021-09-14 11:29:261047 days ago1631618966IN
0x9e71245B...763C99614
0 ETH0.0035377933.00000145
Withdraw131196502021-08-29 9:47:411063 days ago1630230461IN
0x9e71245B...763C99614
0 ETH0.0041027951.00000145
Withdraw130724342021-08-22 2:34:031070 days ago1629599643IN
0x9e71245B...763C99614
0 ETH0.0014480418.00000145
Withdraw130698982021-08-21 17:08:021071 days ago1629565682IN
0x9e71245B...763C99614
0 ETH0.0044524374.00000156
Withdraw130652852021-08-20 23:52:131071 days ago1629503533IN
0x9e71245B...763C99614
0 ETH0.0012499316.72000023
Withdraw130371352021-08-16 15:50:541076 days ago1629129054IN
0x9e71245B...763C99614
0 ETH0.0047031958.4633121
Withdraw130157712021-08-13 8:34:551079 days ago1628843695IN
0x9e71245B...763C99614
0 ETH0.0019855433.00000145
Withdraw130157652021-08-13 8:33:161079 days ago1628843596IN
0x9e71245B...763C99614
0 ETH0.0025417334.00000145
Withdraw130121162021-08-12 18:57:341080 days ago1628794654IN
0x9e71245B...763C99614
0 ETH0.0022863838.00000134
Withdraw130120322021-08-12 18:41:241080 days ago1628793684IN
0x9e71245B...763C99614
0 ETH0.0029155239.00000134
Withdraw130113282021-08-12 16:03:241080 days ago1628784204IN
0x9e71245B...763C99614
0 ETH0.0027777739.77399485
Withdraw130092032021-08-12 8:14:151080 days ago1628756055IN
0x9e71245B...763C99614
0 ETH0.0029155239
Withdraw130090232021-08-12 7:30:581080 days ago1628753458IN
0x9e71245B...763C99614
0 ETH0.0020369233.84716105
Withdraw130090072021-08-12 7:27:511080 days ago1628753271IN
0x9e71245B...763C99614
0 ETH0.0029790639.85
Withdraw130083362021-08-12 4:55:591080 days ago1628744159IN
0x9e71245B...763C99614
0 ETH0.0010691832
Withdraw130083362021-08-12 4:55:591080 days ago1628744159IN
0x9e71245B...763C99614
0 ETH0.003121532
Withdraw130082292021-08-12 4:35:521080 days ago1628742952IN
0x9e71245B...763C99614
0 ETH0.0018343335.57053643
Withdraw130079822021-08-12 3:42:171080 days ago1628739737IN
0x9e71245B...763C99614
0 ETH0.0033684441.87166611
Withdraw130023712021-08-11 6:47:041081 days ago1628664424IN
0x9e71245B...763C99614
0 ETH0.0045021346.15352546
Withdraw130022282021-08-11 6:13:561081 days ago1628662436IN
0x9e71245B...763C99614
0 ETH0.00378147.00000145
Withdraw130021592021-08-11 5:58:121081 days ago1628661492IN
0x9e71245B...763C99614
0 ETH0.0032190533.00000134
Withdraw130020962021-08-11 5:44:471081 days ago1628660687IN
0x9e71245B...763C99614
0 ETH0.0027351934.00000134
Withdraw129964922021-08-10 9:09:241082 days ago1628586564IN
0x9e71245B...763C99614
0 ETH0.0021203635.2407
Withdraw129964782021-08-10 9:07:101082 days ago1628586430IN
0x9e71245B...763C99614
0 ETH0.0035818647.9135
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OneCoinStake

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-08-10
*/

// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;

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.3._
     */
    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.3._
     */
    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);
            }
        }
    }
}

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

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

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

contract OneCoinStake {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;
    address public ownerAddr;

    // 用户信息.
    struct UserInfo {
        uint256 amount; // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
    }

    // 池子信息.
    struct PoolInfo {
        IERC20 lpToken; // Address of LP token contract.
        //uint256 allocPoint; // How many allocation points assigned to this pool. CAKEs to distribute per block.
        uint256 lastRewardTime; // Last reward time that CAKEs distribution occurs.
        uint256 accCakePerShare; // Accumulated CAKEs per share, times 1e12. See below.
    }

    // The CAKE TOKEN!
    IERC20 public syrup;
    IERC20 public rewardToken;

    // CAKE tokens created per day.
    uint256 public rewardPerDay;
    // Secends per day.
    uint256 private secendsPerDay = 24*60*60;

    // Info of each pool.
    PoolInfo public poolInfo;
    // Info of each user that stakes LP tokens.
    mapping(address => UserInfo) public userInfo;
    // The timestamp when CAKE mining starts.
    uint256 public startTime;
    // The timestamp when CAKE mining ends.
    uint256 public bonusEndTime;
    //Allow to deposit.
    bool private canDeposit = true;

    event Deposit(address indexed user, uint256 amount);
    event Withdraw(address indexed user, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 amount);
    event ChangeDeposit(address indexed src, bool canDeposit);

    constructor(
        address _ownerAddr,
        IERC20 _syrup,
        IERC20 _rewardToken,
        uint256 _rewardPerDay,
        uint256 _startTime,
        uint256 _bonusEndTime
    ) public {
        ownerAddr = _ownerAddr;
        syrup = _syrup;
        rewardToken = _rewardToken;
        rewardPerDay = _rewardPerDay;
        startTime = _startTime;
        bonusEndTime = _bonusEndTime;

        // staking pool
        poolInfo = PoolInfo({ lpToken: _syrup, lastRewardTime: startTime, accCakePerShare: 0 });
        
    }

    function stopReward() public {
        require(msg.sender == ownerAddr, "Only ownerAddr can stop reward.");
        bonusEndTime = block.timestamp;
    }

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

    // View function to see pending Reward on frontend.
    function pendingReward(address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo;
        UserInfo storage user = userInfo[_user];
        uint256 accCakePerShare = pool.accCakePerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.timestamp > pool.lastRewardTime && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp);
            uint256 cakeReward = multiplier.mul(rewardPerDay).div(secendsPerDay);
            accCakePerShare = accCakePerShare.add( cakeReward.mul(1e12).div(lpSupply) );
        }
        return user.amount.mul(accCakePerShare).div(1e12).sub(user.rewardDebt);
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool() public {
        PoolInfo storage pool = poolInfo;
        uint256 timestamp = block.timestamp;
        if (block.timestamp <= pool.lastRewardTime) {
            return;
        }
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (lpSupply == 0) {
            pool.lastRewardTime = timestamp;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardTime, timestamp);
        uint256 cakeReward = multiplier.mul(rewardPerDay).div(secendsPerDay);
        pool.accCakePerShare = pool.accCakePerShare.add(
            cakeReward.mul(1e12).div(lpSupply)
        );
        pool.lastRewardTime = timestamp;
    }

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

        // require (_amount.add(user.amount) <= maxStaking, 'exceed max stake');

        updatePool();
        if (user.amount > 0) {
            uint256 pending =
                user.amount.mul(pool.accCakePerShare).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.accCakePerShare).div(1e12);

        emit Deposit(msg.sender, _amount);
    }

    function changeDeposit(bool _canDeposit) public {
        require(msg.sender == ownerAddr, "Only ownerAddr can change Deposit State.");
        canDeposit = _canDeposit;
        emit ChangeDeposit(msg.sender, _canDeposit);
    }

    // Withdraw SYRUP tokens from STAKING.
    function withdraw(uint256 _amount) public {
        PoolInfo storage pool = poolInfo;
        UserInfo storage user = userInfo[msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool();
        uint256 pending = user.amount.mul(pool.accCakePerShare).div(1e12).sub(user.rewardDebt);
        user.amount = user.amount.sub(_amount);
        user.rewardDebt = user.amount.mul(pool.accCakePerShare).div(1e12);
        if (pending > 0) {
            rewardToken.safeTransfer(address(msg.sender), pending);
        }
        if (_amount > 0) {
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
        }

        emit Withdraw(msg.sender, _amount);
    }

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_ownerAddr","type":"address"},{"internalType":"contract IERC20","name":"_syrup","type":"address"},{"internalType":"contract IERC20","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_rewardPerDay","type":"uint256"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_bonusEndTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"src","type":"address"},{"indexed":false,"internalType":"bool","name":"canDeposit","type":"bool"}],"name":"ChangeDeposit","type":"event"},{"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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"bonusEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_canDeposit","type":"bool"}],"name":"changeDeposit","outputs":[],"stateMutability":"nonpayable","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":"ownerAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"accCakePerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stopReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"syrup","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052620151806004556001600b60006101000a81548160ff02191690831515021790555034801561003257600080fd5b50604051611e2e380380611e2e833981810160405260c081101561005557600080fd5b81019080805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190505050856000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550826003819055508160098190555080600a8190555060405180606001604052808673ffffffffffffffffffffffffffffffffffffffff16815260200160095481526020016000815250600560008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020155905050505050505050611c16806102186000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80639c675eaa116100a2578063e29a3b4011610071578063e29a3b401461033f578063e3161ddd1461036f578063ee1a629514610379578063f40f0f5214610397578063f7c618c1146103ef5761010b565b80639c675eaa146102b5578063af8f42b8146102e9578063b6b55f2514610307578063db2e21bc146103355761010b565b806378e97925116100de57806378e979251461020d57806380dc06721461022b57806386a952c4146102355780638dbb1e3a146102695761010b565b80631959a002146101105780632e1a7d4d1461016f5780633279beab1461019d5780635a2f3d09146101cb575b600080fd5b6101526004803603602081101561012657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610423565b604051808381526020018281526020019250505060405180910390f35b61019b6004803603602081101561018557600080fd5b8101908080359060200190929190505050610447565b005b6101c9600480360360208110156101b357600080fd5b81019080803590602001909291905050506106bb565b005b6101d3610904565b604051808473ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390f35b61021561093c565b6040518082815260200191505060405180910390f35b610233610942565b005b61023d610a0c565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61029f6004803603604081101561027f57600080fd5b810190808035906020019092919080359060200190929190505050610a32565b6040518082815260200191505060405180910390f35b6102bd610a87565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102f1610aab565b6040518082815260200191505060405180910390f35b6103336004803603602081101561031d57600080fd5b8101908080359060200190929190505050610ab1565b005b61033d610cd4565b005b61036d6004803603602081101561035557600080fd5b81019080803515159060200190929190505050610e52565b005b610377610f63565b005b6103816110fc565b6040518082815260200191505060405180910390f35b6103d9600480360360208110156103ad57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611102565b6040518082815260200191505060405180910390f35b6103f7611307565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60086020528060005260406000206000915090508060000154908060010154905082565b6000600590506000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050828160000154101561050a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f77697468647261773a206e6f7420676f6f64000000000000000000000000000081525060200191505060405180910390fd5b610512610f63565b600061055c826001015461054e64e8d4a510006105408760020154876000015461132d90919063ffffffff16565b6113b390919063ffffffff16565b6113fd90919063ffffffff16565b90506105758483600001546113fd90919063ffffffff16565b82600001819055506105af64e8d4a510006105a18560020154856000015461132d90919063ffffffff16565b6113b390919063ffffffff16565b8260010181905550600081111561060e5761060d3382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166114479092919063ffffffff16565b5b60008411156106675761066633858560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166114479092919063ffffffff16565b5b3373ffffffffffffffffffffffffffffffffffffffff167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364856040518082815260200191505060405180910390a250505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461077c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f4f6e6c79206f776e6572416464722063616e2073746f70207265776172642e0081525060200191505060405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561080557600080fd5b505afa158015610819573d6000803e3d6000fd5b505050506040513d602081101561082f57600080fd5b810190808051906020019092919050505081106108b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f6e6f7420656e6f75676820746f6b656e0000000000000000000000000000000081525060200191505060405180910390fd5b6109013382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166114479092919063ffffffff16565b50565b60058060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154905083565b60095481565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a03576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f4f6e6c79206f776e6572416464722063616e2073746f70207265776172642e0081525060200191505060405180910390fd5b42600a81905550565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600a548211610a5757610a5083836113fd90919063ffffffff16565b9050610a81565b600a548310610a695760009050610a81565b610a7e83600a546113fd90919063ffffffff16565b90505b92915050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b600b60009054906101000a900460ff16610aca57600080fd5b6000600590506000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050610b1b610f63565b600081600001541115610bcd576000610b728260010154610b6464e8d4a51000610b568760020154876000015461132d90919063ffffffff16565b6113b390919063ffffffff16565b6113fd90919063ffffffff16565b90506000811115610bcb57610bca3382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166114479092919063ffffffff16565b5b505b6000831115610c4757610c273330858560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166114e9909392919063ffffffff16565b610c3e8382600001546115aa90919063ffffffff16565b81600001819055505b610c7964e8d4a51000610c6b8460020154846000015461132d90919063ffffffff16565b6113b390919063ffffffff16565b81600101819055503373ffffffffffffffffffffffffffffffffffffffff167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c846040518082815260200191505060405180910390a2505050565b6000600590506000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154905060008111610d9c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f68617665206e6f207374616b650000000000000000000000000000000000000081525060200191505060405180910390fd5b6000826000018190555060008260010181905550610dff33828560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166114479092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695826040518082815260200191505060405180910390a2505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ef6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180611b6e6028913960400191505060405180910390fd5b80600b60006101000a81548160ff0219169083151502179055503373ffffffffffffffffffffffffffffffffffffffff167fc03f33f8e333cebba750ee0837820bec6d22768bde06b06665dbb5709548cda28260405180821515815260200191505060405180910390a250565b600060059050600042905081600101544211610f805750506110fa565b60008260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561100d57600080fd5b505afa158015611021573d6000803e3d6000fd5b505050506040513d602081101561103757600080fd5b810190808051906020019092919050505090506000811415611064578183600101819055505050506110fa565b6000611074846001015484610a32565b905060006110a16004546110936003548561132d90919063ffffffff16565b6113b390919063ffffffff16565b90506110e36110d0846110c264e8d4a510008561132d90919063ffffffff16565b6113b390919063ffffffff16565b86600201546115aa90919063ffffffff16565b856002018190555083856001018190555050505050505b565b600a5481565b600080600590506000600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008260020154905060008360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156111e257600080fd5b505afa1580156111f6573d6000803e3d6000fd5b505050506040513d602081101561120c57600080fd5b81019080805190602001909291905050509050836001015442118015611233575060008114155b156112b8576000611248856001015442610a32565b905060006112756004546112676003548561132d90919063ffffffff16565b6113b390919063ffffffff16565b90506112b36112a48461129664e8d4a510008561132d90919063ffffffff16565b6113b390919063ffffffff16565b856115aa90919063ffffffff16565b935050505b6112fc83600101546112ee64e8d4a510006112e086886000015461132d90919063ffffffff16565b6113b390919063ffffffff16565b6113fd90919063ffffffff16565b945050505050919050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008083141561134057600090506113ad565b600082840290508284828161135157fe5b04146113a8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611b966021913960400191505060405180910390fd5b809150505b92915050565b60006113f583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611632565b905092915050565b600061143f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506116f8565b905092915050565b6114e48363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506117b8565b505050565b6115a4846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506117b8565b50505050565b600080828401905083811015611628576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600080831182906116de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116a3578082015181840152602081019050611688565b50505050905090810190601f1680156116d05780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816116ea57fe5b049050809150509392505050565b60008383111582906117a5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561176a57808201518184015260208101905061174f565b50505050905090810190601f1680156117975780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b606061181a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166118a79092919063ffffffff16565b90506000815111156118a25780806020019051602081101561183b57600080fd5b81019080805190602001909291905050506118a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611bb7602a913960400191505060405180910390fd5b5b505050565b60606118b684846000856118bf565b90509392505050565b60608247101561191a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611b486026913960400191505060405180910390fd5b61192385611a68565b611995576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106119e557805182526020820191506020810190506020830392506119c2565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611a47576040519150601f19603f3d011682016040523d82523d6000602084013e611a4c565b606091505b5091509150611a5c828286611a7b565b92505050949350505050565b600080823b905060008111915050919050565b60608315611a8b57829050611b40565b600083511115611a9e5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611b05578082015181840152602081019050611aea565b50505050905090810190601f168015611b325780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4f6e6c79206f776e6572416464722063616e206368616e6765204465706f7369742053746174652e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220244d7ac56f804fc0e24696d3c12ad07805b53ec3963d16ea0b65e8942542e8ce64736f6c634300060c003300000000000000000000000090786121e346cb6c016cb35c4e7bb9edd1d485c4000000000000000000000000f846eb10a5c50b8ac2c49647f741560e4fb7f4700000000000000000000000007a51028299ae19b4c56bf8d66b42fd53e42f43ab00000000000000000000000000000000000000000000010f0cf064dd592000000000000000000000000000000000000000000000000000000000000060adf2020000000000000000000000000000000000000000000000000000000064705902

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061010b5760003560e01c80639c675eaa116100a2578063e29a3b4011610071578063e29a3b401461033f578063e3161ddd1461036f578063ee1a629514610379578063f40f0f5214610397578063f7c618c1146103ef5761010b565b80639c675eaa146102b5578063af8f42b8146102e9578063b6b55f2514610307578063db2e21bc146103355761010b565b806378e97925116100de57806378e979251461020d57806380dc06721461022b57806386a952c4146102355780638dbb1e3a146102695761010b565b80631959a002146101105780632e1a7d4d1461016f5780633279beab1461019d5780635a2f3d09146101cb575b600080fd5b6101526004803603602081101561012657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610423565b604051808381526020018281526020019250505060405180910390f35b61019b6004803603602081101561018557600080fd5b8101908080359060200190929190505050610447565b005b6101c9600480360360208110156101b357600080fd5b81019080803590602001909291905050506106bb565b005b6101d3610904565b604051808473ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390f35b61021561093c565b6040518082815260200191505060405180910390f35b610233610942565b005b61023d610a0c565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61029f6004803603604081101561027f57600080fd5b810190808035906020019092919080359060200190929190505050610a32565b6040518082815260200191505060405180910390f35b6102bd610a87565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102f1610aab565b6040518082815260200191505060405180910390f35b6103336004803603602081101561031d57600080fd5b8101908080359060200190929190505050610ab1565b005b61033d610cd4565b005b61036d6004803603602081101561035557600080fd5b81019080803515159060200190929190505050610e52565b005b610377610f63565b005b6103816110fc565b6040518082815260200191505060405180910390f35b6103d9600480360360208110156103ad57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611102565b6040518082815260200191505060405180910390f35b6103f7611307565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60086020528060005260406000206000915090508060000154908060010154905082565b6000600590506000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050828160000154101561050a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f77697468647261773a206e6f7420676f6f64000000000000000000000000000081525060200191505060405180910390fd5b610512610f63565b600061055c826001015461054e64e8d4a510006105408760020154876000015461132d90919063ffffffff16565b6113b390919063ffffffff16565b6113fd90919063ffffffff16565b90506105758483600001546113fd90919063ffffffff16565b82600001819055506105af64e8d4a510006105a18560020154856000015461132d90919063ffffffff16565b6113b390919063ffffffff16565b8260010181905550600081111561060e5761060d3382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166114479092919063ffffffff16565b5b60008411156106675761066633858560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166114479092919063ffffffff16565b5b3373ffffffffffffffffffffffffffffffffffffffff167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364856040518082815260200191505060405180910390a250505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461077c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f4f6e6c79206f776e6572416464722063616e2073746f70207265776172642e0081525060200191505060405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561080557600080fd5b505afa158015610819573d6000803e3d6000fd5b505050506040513d602081101561082f57600080fd5b810190808051906020019092919050505081106108b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f6e6f7420656e6f75676820746f6b656e0000000000000000000000000000000081525060200191505060405180910390fd5b6109013382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166114479092919063ffffffff16565b50565b60058060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154905083565b60095481565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a03576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f4f6e6c79206f776e6572416464722063616e2073746f70207265776172642e0081525060200191505060405180910390fd5b42600a81905550565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600a548211610a5757610a5083836113fd90919063ffffffff16565b9050610a81565b600a548310610a695760009050610a81565b610a7e83600a546113fd90919063ffffffff16565b90505b92915050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b600b60009054906101000a900460ff16610aca57600080fd5b6000600590506000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050610b1b610f63565b600081600001541115610bcd576000610b728260010154610b6464e8d4a51000610b568760020154876000015461132d90919063ffffffff16565b6113b390919063ffffffff16565b6113fd90919063ffffffff16565b90506000811115610bcb57610bca3382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166114479092919063ffffffff16565b5b505b6000831115610c4757610c273330858560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166114e9909392919063ffffffff16565b610c3e8382600001546115aa90919063ffffffff16565b81600001819055505b610c7964e8d4a51000610c6b8460020154846000015461132d90919063ffffffff16565b6113b390919063ffffffff16565b81600101819055503373ffffffffffffffffffffffffffffffffffffffff167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c846040518082815260200191505060405180910390a2505050565b6000600590506000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154905060008111610d9c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f68617665206e6f207374616b650000000000000000000000000000000000000081525060200191505060405180910390fd5b6000826000018190555060008260010181905550610dff33828560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166114479092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695826040518082815260200191505060405180910390a2505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ef6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180611b6e6028913960400191505060405180910390fd5b80600b60006101000a81548160ff0219169083151502179055503373ffffffffffffffffffffffffffffffffffffffff167fc03f33f8e333cebba750ee0837820bec6d22768bde06b06665dbb5709548cda28260405180821515815260200191505060405180910390a250565b600060059050600042905081600101544211610f805750506110fa565b60008260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561100d57600080fd5b505afa158015611021573d6000803e3d6000fd5b505050506040513d602081101561103757600080fd5b810190808051906020019092919050505090506000811415611064578183600101819055505050506110fa565b6000611074846001015484610a32565b905060006110a16004546110936003548561132d90919063ffffffff16565b6113b390919063ffffffff16565b90506110e36110d0846110c264e8d4a510008561132d90919063ffffffff16565b6113b390919063ffffffff16565b86600201546115aa90919063ffffffff16565b856002018190555083856001018190555050505050505b565b600a5481565b600080600590506000600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008260020154905060008360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156111e257600080fd5b505afa1580156111f6573d6000803e3d6000fd5b505050506040513d602081101561120c57600080fd5b81019080805190602001909291905050509050836001015442118015611233575060008114155b156112b8576000611248856001015442610a32565b905060006112756004546112676003548561132d90919063ffffffff16565b6113b390919063ffffffff16565b90506112b36112a48461129664e8d4a510008561132d90919063ffffffff16565b6113b390919063ffffffff16565b856115aa90919063ffffffff16565b935050505b6112fc83600101546112ee64e8d4a510006112e086886000015461132d90919063ffffffff16565b6113b390919063ffffffff16565b6113fd90919063ffffffff16565b945050505050919050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008083141561134057600090506113ad565b600082840290508284828161135157fe5b04146113a8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611b966021913960400191505060405180910390fd5b809150505b92915050565b60006113f583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611632565b905092915050565b600061143f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506116f8565b905092915050565b6114e48363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506117b8565b505050565b6115a4846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506117b8565b50505050565b600080828401905083811015611628576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600080831182906116de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116a3578082015181840152602081019050611688565b50505050905090810190601f1680156116d05780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816116ea57fe5b049050809150509392505050565b60008383111582906117a5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561176a57808201518184015260208101905061174f565b50505050905090810190601f1680156117975780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b606061181a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166118a79092919063ffffffff16565b90506000815111156118a25780806020019051602081101561183b57600080fd5b81019080805190602001909291905050506118a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611bb7602a913960400191505060405180910390fd5b5b505050565b60606118b684846000856118bf565b90509392505050565b60608247101561191a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611b486026913960400191505060405180910390fd5b61192385611a68565b611995576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106119e557805182526020820191506020810190506020830392506119c2565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611a47576040519150601f19603f3d011682016040523d82523d6000602084013e611a4c565b606091505b5091509150611a5c828286611a7b565b92505050949350505050565b600080823b905060008111915050919050565b60608315611a8b57829050611b40565b600083511115611a9e5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611b05578082015181840152602081019050611aea565b50505050905090810190601f168015611b325780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4f6e6c79206f776e6572416464722063616e206368616e6765204465706f7369742053746174652e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220244d7ac56f804fc0e24696d3c12ad07805b53ec3963d16ea0b65e8942542e8ce64736f6c634300060c0033

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

00000000000000000000000090786121e346cb6c016cb35c4e7bb9edd1d485c4000000000000000000000000f846eb10a5c50b8ac2c49647f741560e4fb7f4700000000000000000000000007a51028299ae19b4c56bf8d66b42fd53e42f43ab00000000000000000000000000000000000000000000010f0cf064dd592000000000000000000000000000000000000000000000000000000000000060adf2020000000000000000000000000000000000000000000000000000000064705902

-----Decoded View---------------
Arg [0] : _ownerAddr (address): 0x90786121E346cB6c016cb35c4e7Bb9edD1D485c4
Arg [1] : _syrup (address): 0xf846Eb10A5c50b8AC2c49647f741560e4fB7F470
Arg [2] : _rewardToken (address): 0x7a51028299AE19B4C56BF8d66B42Fd53e42F43aB
Arg [3] : _rewardPerDay (uint256): 5000000000000000000000
Arg [4] : _startTime (uint256): 1622012418
Arg [5] : _bonusEndTime (uint256): 1685084418

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 00000000000000000000000090786121e346cb6c016cb35c4e7bb9edd1d485c4
Arg [1] : 000000000000000000000000f846eb10a5c50b8ac2c49647f741560e4fb7f470
Arg [2] : 0000000000000000000000007a51028299ae19b4c56bf8d66b42fd53e42f43ab
Arg [3] : 00000000000000000000000000000000000000000000010f0cf064dd59200000
Arg [4] : 0000000000000000000000000000000000000000000000000000000060adf202
Arg [5] : 0000000000000000000000000000000000000000000000000000000064705902


Deployed Bytecode Sourcemap

18464:7122:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19521:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;24022:721;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;25289:294;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;19441:24;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19619;;;:::i;:::-;;;;;;;;;;;;;;;;;;;20603:156;;;:::i;:::-;;19209:19;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;20835:308;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;18559:24;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;19306:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22754:976;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;24814:426;;;:::i;:::-;;23738:232;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;22002:704;;;:::i;:::-;;19695:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21208:718;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;19235:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;19521:44;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;24022:721::-;24075:21;24099:8;24075:32;;24118:21;24142:8;:20;24151:10;24142:20;;;;;;;;;;;;;;;24118:44;;24196:7;24181:4;:11;;;:22;;24173:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24237:12;:10;:12::i;:::-;24260:15;24278:68;24330:4;:15;;;24278:47;24320:4;24278:37;24294:4;:20;;;24278:4;:11;;;:15;;:37;;;;:::i;:::-;:41;;:47;;;;:::i;:::-;:51;;:68;;;;:::i;:::-;24260:86;;24371:24;24387:7;24371:4;:11;;;:15;;:24;;;;:::i;:::-;24357:4;:11;;:38;;;;24424:47;24466:4;24424:37;24440:4;:20;;;24424:4;:11;;;:15;;:37;;;;:::i;:::-;:41;;:47;;;;:::i;:::-;24406:4;:15;;:65;;;;24496:1;24486:7;:11;24482:98;;;24514:54;24547:10;24560:7;24514:11;;;;;;;;;;;:24;;;;:54;;;;;:::i;:::-;24482:98;24604:1;24594:7;:11;24590:99;;;24622:55;24656:10;24669:7;24622:4;:12;;;;;;;;;;;;:25;;;;:55;;;;;:::i;:::-;24590:99;24715:10;24706:29;;;24727:7;24706:29;;;;;;;;;;;;;;;;;;24022:721;;;;:::o;25289:294::-;25379:9;;;;;;;;;;25365:23;;:10;:23;;;25357:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25453:11;;;;;;;;;;;:21;;;25483:4;25453:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25443:7;:46;25435:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25521:54;25554:10;25567:7;25521:11;;;;;;;;;;;:24;;;;:54;;;;;:::i;:::-;25289:294;:::o;19441:24::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;19619:::-;;;;:::o;20603:156::-;20665:9;;;;;;;;;;20651:23;;:10;:23;;;20643:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20736:15;20721:12;:30;;;;20603:156::o;19209:19::-;;;;;;;;;;;;;:::o;20835:308::-;20907:7;20943:12;;20936:3;:19;20932:204;;20979:14;20987:5;20979:3;:7;;:14;;;;:::i;:::-;20972:21;;;;20932:204;21024:12;;21015:5;:21;21011:125;;21060:1;21053:8;;;;21011:125;21101:23;21118:5;21101:12;;:16;;:23;;;;:::i;:::-;21094:30;;20835:308;;;;;:::o;18559:24::-;;;;;;;;;;;;:::o;19306:27::-;;;;:::o;22754:976::-;22814:10;;;;;;;;;;;22806:19;;;;;;22836:21;22860:8;22836:32;;22879:21;22903:8;:20;22912:10;22903:20;;;;;;;;;;;;;;;22879:44;;23020:12;:10;:12::i;:::-;23061:1;23047:4;:11;;;:15;23043:311;;;23079:15;23114:108;23188:4;:15;;;23114:47;23156:4;23114:37;23130:4;:20;;;23114:4;:11;;;:15;;:37;;;;:::i;:::-;:41;;:47;;;;:::i;:::-;:51;;:108;;;;:::i;:::-;23079:143;;23251:1;23241:7;:11;23237:106;;;23273:54;23306:10;23319:7;23273:11;;;;;;;;;;;:24;;;;:54;;;;;:::i;:::-;23237:106;23043:311;;23378:1;23368:7;:11;23364:237;;;23396:140;23452:10;23490:4;23514:7;23396:4;:12;;;;;;;;;;;;:29;;;;:140;;;;;;:::i;:::-;23565:24;23581:7;23565:4;:11;;;:15;;:24;;;;:::i;:::-;23551:4;:11;;:38;;;;23364:237;23629:47;23671:4;23629:37;23645:4;:20;;;23629:4;:11;;;:15;;:37;;;;:::i;:::-;:41;;:47;;;;:::i;:::-;23611:4;:15;;:65;;;;23702:10;23694:28;;;23714:7;23694:28;;;;;;;;;;;;;;;;;;22754:976;;;:::o;24814:426::-;24861:21;24885:8;24861:32;;24904:21;24928:8;:20;24937:10;24928:20;;;;;;;;;;;;;;;24904:44;;24959:20;24982:4;:11;;;24959:34;;25027:1;25012:12;:16;25004:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25071:1;25057:4;:11;;:15;;;;25101:1;25083:4;:15;;:19;;;;25113:60;25147:10;25160:12;25113:4;:12;;;;;;;;;;;;:25;;;;:60;;;;;:::i;:::-;25207:10;25189:43;;;25219:12;25189:43;;;;;;;;;;;;;;;;;;24814:426;;;:::o;23738:232::-;23819:9;;;;;;;;;;23805:23;;:10;:23;;;23797:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23897:11;23884:10;;:24;;;;;;;;;;;;;;;;;;23938:10;23924:38;;;23950:11;23924:38;;;;;;;;;;;;;;;;;;;;23738:232;:::o;22002:704::-;22042:21;22066:8;22042:32;;22085:17;22105:15;22085:35;;22154:4;:19;;;22135:15;:38;22131:77;;22190:7;;;;22131:77;22218:16;22237:4;:12;;;;;;;;;;;;:22;;;22268:4;22237:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22218:56;;22301:1;22289:8;:13;22285:98;;;22341:9;22319:4;:19;;:31;;;;22365:7;;;;;22285:98;22393:18;22414:45;22428:4;:19;;;22449:9;22414:13;:45::i;:::-;22393:66;;22470:18;22491:47;22524:13;;22491:28;22506:12;;22491:10;:14;;:28;;;;:::i;:::-;:32;;:47;;;;:::i;:::-;22470:68;;22572:84;22611:34;22636:8;22611:20;22626:4;22611:10;:14;;:20;;;;:::i;:::-;:24;;:34;;;;:::i;:::-;22572:4;:20;;;:24;;:84;;;;:::i;:::-;22549:4;:20;;:107;;;;22689:9;22667:4;:19;;:31;;;;22002:704;;;;;;:::o;19695:27::-;;;;:::o;21208:718::-;21269:7;21289:21;21313:8;21289:32;;21332:21;21356:8;:15;21365:5;21356:15;;;;;;;;;;;;;;;21332:39;;21382:23;21408:4;:20;;;21382:46;;21439:16;21458:4;:12;;;;;;;;;;;;:22;;;21489:4;21458:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21439:56;;21528:4;:19;;;21510:15;:37;:54;;;;;21563:1;21551:8;:13;;21510:54;21506:332;;;21581:18;21602:51;21616:4;:19;;;21637:15;21602:13;:51::i;:::-;21581:72;;21668:18;21689:47;21722:13;;21689:28;21704:12;;21689:10;:14;;:28;;;;:::i;:::-;:32;;:47;;;;:::i;:::-;21668:68;;21769:57;21790:34;21815:8;21790:20;21805:4;21790:10;:14;;:20;;;;:::i;:::-;:24;;:34;;;;:::i;:::-;21769:15;:19;;:57;;;;:::i;:::-;21751:75;;21506:332;;;21855:63;21902:4;:15;;;21855:42;21892:4;21855:32;21871:15;21855:4;:11;;;:15;;:32;;;;:::i;:::-;:36;;:42;;;;:::i;:::-;:46;;:63;;;;:::i;:::-;21848:70;;;;;;21208:718;;;:::o;19235:25::-;;;;;;;;;;;;;:::o;9554:471::-;9612:7;9862:1;9857;:6;9853:47;;;9887:1;9880:8;;;;9853:47;9912:9;9928:1;9924;:5;9912:17;;9957:1;9952;9948;:5;;;;;;:10;9940:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10016:1;10009:8;;;9554:471;;;;;:::o;10501:132::-;10559:7;10586:39;10590:1;10593;10586:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;10579:46;;10501:132;;;;:::o;8664:136::-;8722:7;8749:43;8753:1;8756;8749:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;8742:50;;8664:136;;;;:::o;15391:177::-;15474:86;15494:5;15524:23;;;15549:2;15553:5;15501:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15474:19;:86::i;:::-;15391:177;;;:::o;15576:205::-;15677:96;15697:5;15727:27;;;15756:4;15762:2;15766:5;15704:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15677:19;:96::i;:::-;15576:205;;;;:::o;8200:181::-;8258:7;8278:9;8294:1;8290;:5;8278:17;;8319:1;8314;:6;;8306:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8372:1;8365:8;;;8200:181;;;;:::o;11129:278::-;11215:7;11247:1;11243;:5;11250:12;11235:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11274:9;11290:1;11286;:5;;;;;;11274:17;;11398:1;11391:8;;;11129:278;;;;;:::o;9103:192::-;9189:7;9222:1;9217;:6;;9225:12;9209:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9249:9;9265:1;9261;:5;9249:17;;9286:1;9279:8;;;9103:192;;;;;:::o;17696:761::-;18120:23;18146:69;18174:4;18146:69;;;;;;;;;;;;;;;;;18154:5;18146:27;;;;:69;;;;;:::i;:::-;18120:95;;18250:1;18230:10;:17;:21;18226:224;;;18372:10;18361:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18353:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18226:224;17696:761;;;:::o;3596:195::-;3699:12;3731:52;3753:6;3761:4;3767:1;3770:12;3731:21;:52::i;:::-;3724:59;;3596:195;;;;;:::o;4648:530::-;4775:12;4833:5;4808:21;:30;;4800:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4900:18;4911:6;4900:10;:18::i;:::-;4892:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5026:12;5040:23;5067:6;:11;;5087:5;5095:4;5067:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5025:75;;;;5118:52;5136:7;5145:10;5157:12;5118:17;:52::i;:::-;5111:59;;;;4648:530;;;;;;:::o;678:422::-;738:4;946:12;1057:7;1045:20;1037:28;;1091:1;1084:4;:8;1077:15;;;678:422;;;:::o;7188:742::-;7303:12;7332:7;7328:595;;;7363:10;7356:17;;;;7328:595;7497:1;7477:10;:17;:21;7473:439;;;7740:10;7734:17;7801:15;7788:10;7784:2;7780:19;7773:44;7688:148;7883:12;7876:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7188:742;;;;;;:::o

Swarm Source

ipfs://244d7ac56f804fc0e24696d3c12ad07805b53ec3963d16ea0b65e8942542e8ce

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.