ETH Price: $2,806.54 (+0.77%)

Contract

0xC5ACc267c19B2615EdAD36c955664A88b1Ec1b2b
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Get Reward174398642023-06-09 2:58:11625 days ago1686279491IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.0018630722.41236242
Withdraw174398602023-06-09 2:57:23625 days ago1686279443IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.0011089421.63298171
Withdraw174398582023-06-09 2:56:59625 days ago1686279419IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.0010080719.66516209
Withdraw174398542023-06-09 2:56:11625 days ago1686279371IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.0010594120.67143802
Withdraw174398472023-06-09 2:54:47625 days ago1686279287IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.0011670222.77131647
Stake174398392023-06-09 2:53:11625 days ago1686279191IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.0015358420.7274992
Withdraw174398012023-06-09 2:45:35625 days ago1686278735IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.0011137921.72751085
Withdraw174397712023-06-09 2:39:35625 days ago1686278375IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.0010400920.28978637
Get Reward174357452023-06-08 12:59:47626 days ago1686229187IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.002619622.32739871
Withdraw174357422023-06-08 12:58:59626 days ago1686229139IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.0011478222.39129001
Withdraw174357332023-06-08 12:57:11626 days ago1686229031IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.0013131525.61653712
Withdraw174357282023-06-08 12:55:59626 days ago1686228959IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.0014462328.21258908
Stake174357152023-06-08 12:53:23626 days ago1686228803IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.0017885331.37953022
Get Reward174357052023-06-08 12:51:11626 days ago1686228671IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.0021243730.52783087
Stake174356442023-06-08 12:38:35626 days ago1686227915IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.002186920.19357727
Withdraw174340932023-06-08 7:25:11626 days ago1686209111IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.0008491520.69639247
Withdraw174340882023-06-08 7:24:11626 days ago1686209051IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.0009669820.80697777
Withdraw174340842023-06-08 7:23:23626 days ago1686209003IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.0010166321.86977699
Withdraw174340812023-06-08 7:22:47626 days ago1686208967IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.0009871621.23576412
Withdraw174340782023-06-08 7:22:11626 days ago1686208931IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.0009563320.57786468
Withdraw174340762023-06-08 7:21:47626 days ago1686208907IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.0010008721.53627447
Withdraw174340732023-06-08 7:21:11626 days ago1686208871IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.0011359924.44370479
Withdraw174340692023-06-08 7:20:23626 days ago1686208823IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.0011584524.92687365
Withdraw174340662023-06-08 7:19:47626 days ago1686208787IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.001143224.5924322
Withdraw174340622023-06-08 7:18:59626 days ago1686208739IN
0xC5ACc267...8b1Ec1b2b
0 ETH0.0011130323.94334623
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:
LPStakingPool

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-05-14
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.2;


// 
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
/**
 * @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 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) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// 
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
/**
 * @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() {
        _transferOwnership(_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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// 
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)
/**
 * @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);
}

// 
// OpenZeppelin Contracts v4.4.1 (utils/math/Math.sol)
/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a / b + (a % b == 0 ? 0 : 1);
    }
}

// 
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)
/**
 * @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;
        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");

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

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// 
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)
/**
 * @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 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'
        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) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _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
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// 
abstract contract IRewardDistributionRecipient is Ownable {
    address public rewardDistribution;

    modifier onlyRewardDistribution() {
        require(_msgSender() == rewardDistribution, "LPStakingPool: Caller is not reward distribution");
        _;
    }

    function setRewardDistribution(address _rewardDistribution)
        external
        onlyOwner
    {
        rewardDistribution = _rewardDistribution;
    }
}

contract LPTokenWrapper {
    using SafeERC20 for IERC20;

    IERC20 public lpToken;

    uint256 private _totalSupply;
    mapping(address => uint256) private _balances;

    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) public view returns (uint256) {
        return _balances[account];
    }

    function stake(uint256 amount, address staker) virtual public {
        _totalSupply = _totalSupply + amount;
        _balances[staker] = _balances[staker] + amount;
        lpToken.safeTransferFrom(msg.sender, address(this), amount);
    }

    function withdraw(uint256 amount, address staker) virtual public {
        _totalSupply = _totalSupply - amount;
        _balances[staker] = _balances[staker] - amount;
        lpToken.safeTransfer(msg.sender, amount);
    }
}

/// @title The LP Staking Pool module of TiTi Protocol
/// @author QJ
/// @notice Users stake their LPToken to get TiTi rewards.
contract LPStakingPool is LPTokenWrapper, IRewardDistributionRecipient {
    using SafeERC20 for IERC20;

    IERC20 public immutable titi;
    uint256 public startTime;
    uint256 public periodFinish;
    uint256 public rewardRate;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;
    uint256 public epochNum;

    mapping(address => uint256) public userRewardPerTokenPaid;
    mapping(address => uint256) public rewards;

    event RewardAdded(uint256 reward);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);

    constructor(address _titi, address _lpToken) {
        titi = IERC20(_titi);
        lpToken = IERC20(_lpToken);
    }

    /// @notice Start a new round of TiTi release
    /// @param _startTime Start Time in this round
    /// @param _newRewards Amount of TiTi incentives in this round
    /// @param _duration This round of TiTi incentive cycle
    function startNewEpoch(uint256 _startTime, uint256 _newRewards, uint256 _duration)
        external
        onlyRewardDistribution
        updateReward(address(0)) 
    {
        require(block.timestamp >= periodFinish, "LPStakingPool: Last Epoch is not end");
        startTime = _startTime;
        lastUpdateTime = _startTime;
        rewardRate = _newRewards / _duration;
        periodFinish = startTime + _duration;
        titi.safeTransferFrom(msg.sender, address(this), _newRewards);
        epochNum = epochNum++;
        emit RewardAdded(_newRewards);
    }

    modifier checkStart() {
        require(startTime != uint256(0), "LPStakingPool: not start");
        _;
    }

    modifier updateReward(address account) {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = lastTimeRewardApplicable();
        if (account != address(0)) {
            rewards[account] = earned(account);
            userRewardPerTokenPaid[account] = rewardPerTokenStored;
        }
        _;
    }

    function lastTimeRewardApplicable() public view returns (uint256) {
        uint _lastTime;
        if (block.timestamp < startTime) {
            _lastTime = startTime;
        } else {
            _lastTime = Math.min(block.timestamp, periodFinish);
        }
        return _lastTime;
    }

    function rewardPerToken() public view returns (uint256) {
        if (totalSupply() == 0) {
            return rewardPerTokenStored;
        }
        return
            rewardPerTokenStored + (
                lastTimeRewardApplicable()
                    - lastUpdateTime)
                    * rewardRate
                    * 1e18
                    / totalSupply();
    }

    function earned(address account) public view returns (uint256) {
        return
            balanceOf(account)
                * (rewardPerToken() - userRewardPerTokenPaid[account])
                / 1e18
                + rewards[account];
    }

    function stake(uint256 amount) external updateReward(msg.sender) checkStart {
        require(amount > 0, "LPStakingPool: Cannot stake 0");
        super.stake(amount, msg.sender);
        emit Staked(msg.sender, amount);
    }

    function withdraw(uint256 amount) external updateReward(msg.sender) checkStart {
        require(amount > 0, "LPStakingPool: Cannot withdraw 0");
        super.withdraw(amount, msg.sender);
        emit Withdrawn(msg.sender, amount);
    }
    
    function getReward() external updateReward(msg.sender) checkStart {
        uint256 reward = rewards[msg.sender];
        if (reward > 0) {
            rewards[msg.sender] = 0;
            titi.safeTransfer(msg.sender, reward);
            emit RewardPaid(msg.sender, reward);
        }
    }

    /// @notice This function allows governance to take unsupported tokens out of the
    // contract, since this one exists longer than the other pools.
    // This is in an effort to make someone whole, should they seriously
    // mess up. There is no guarantee governance will vote to return these.
    // It also allows for removal of airdropped tokens.
    function governanceRecoverUnsupported(IERC20 _token, uint256 amount, address to) external onlyOwner {
        // cant take staked asset
        require(_token != lpToken, "LPStakingPool: Not Allow lpToken");
        // cant take reward asset
        require(_token != titi, "LPStakingPool: Not Allow titi");

        // transfer to
        _token.safeTransfer(to, amount);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_titi","type":"address"},{"internalType":"address","name":"_lpToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"epochNum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"governanceRecoverUnsupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardDistribution","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardDistribution","type":"address"}],"name":"setRewardDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"staker","type":"address"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_newRewards","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"startNewEpoch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"titi","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","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":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"staker","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405234801561001057600080fd5b506040516200140e3803806200140e833981016040819052610031916100d0565b61003a33610062565b6001600160a01b03918216608052600080546001600160a01b03191691909216179055610103565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516001600160a01b03811681146100cb57600080fd5b919050565b600080604083850312156100e357600080fd5b6100ec836100b4565b91506100fa602084016100b4565b90509250929050565b6080516112da620001346000396000818161026e015281816106930152818161077e01526109b801526112da6000f3fe608060405234801561001057600080fd5b50600436106101a75760003560e01c8063715018a6116100f95780638da5cb5b11610097578063cd3daf9d11610071578063cd3daf9d1461037c578063df136d6514610384578063ebe2b12b1461038d578063f2fde38b1461039657600080fd5b80638da5cb5b1461034f578063a694fc3a14610360578063c8f33c911461037357600080fd5b80637acb7757116100d35780637acb77571461030b5780637b0a47ee1461031e57806380faa57d146103275780638b8763471461032f57600080fd5b8063715018a6146102e757806375a939b9146102ef57806378e979251461030257600080fd5b806318160ddd116101665780633d18b912116101405780633d18b9121461029057806354575af4146102985780635fcbd285146102ab57806370a08231146102be57600080fd5b806318160ddd1461024e5780632e1a7d4d14610256578063323ffb491461026957600080fd5b80628cc262146101ac578062f714ce146101d257806305e3c05b146101e75780630700037d146101f05780630d68b76114610210578063101114cf14610223575b600080fd5b6101bf6101ba366004611026565b6103a9565b6040519081526020015b60405180910390f35b6101e56101e0366004611043565b610426565b005b6101bf600a5481565b6101bf6101fe366004611026565b600c6020526000908152604090205481565b6101e561021e366004611026565b61048a565b600454610236906001600160a01b031681565b6040516001600160a01b0390911681526020016101c9565b6001546101bf565b6101e5610264366004611073565b6104df565b6102367f000000000000000000000000000000000000000000000000000000000000000081565b6101e56105ed565b6101e56102a636600461108c565b6106f4565b600054610236906001600160a01b031681565b6101bf6102cc366004611026565b6001600160a01b031660009081526002602052604090205490565b6101e5610817565b6101e56102fd3660046110ce565b61084d565b6101bf60055481565b6101e5610319366004611043565b610a30565b6101bf60075481565b6101bf610a91565b6101bf61033d366004611026565b600b6020526000908152604090205481565b6003546001600160a01b0316610236565b6101e561036e366004611073565b610ab2565b6101bf60085481565b6101bf610bb8565b6101bf60095481565b6101bf60065481565b6101e56103a4366004611026565b610c21565b6001600160a01b0381166000908152600c6020908152604080832054600b909252822054670de0b6b3a7640000906103df610bb8565b6103e99190611110565b6001600160a01b03851660009081526002602052604090205461040c9190611127565b6104169190611146565b6104209190611168565b92915050565b816001546104349190611110565b6001556001600160a01b03811660009081526002602052604090205461045b908390611110565b6001600160a01b03808316600090815260026020526040812092909255905461048691163384610cbc565b5050565b6003546001600160a01b031633146104bd5760405162461bcd60e51b81526004016104b490611180565b60405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b336104e8610bb8565b6009556104f3610a91565b6008556001600160a01b0381161561053a5761050e816103a9565b6001600160a01b0382166000908152600c6020908152604080832093909355600954600b909152919020555b6005546105595760405162461bcd60e51b81526004016104b4906111b5565b600082116105a95760405162461bcd60e51b815260206004820181905260248201527f4c505374616b696e67506f6f6c3a2043616e6e6f74207769746864726177203060448201526064016104b4565b6105b38233610426565b60405182815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a25050565b336105f6610bb8565b600955610601610a91565b6008556001600160a01b038116156106485761061c816103a9565b6001600160a01b0382166000908152600c6020908152604080832093909355600954600b909152919020555b6005546106675760405162461bcd60e51b81526004016104b4906111b5565b336000908152600c6020526040902054801561048657336000818152600c60205260408120556106c2907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169083610cbc565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486906020016105e1565b6003546001600160a01b0316331461071e5760405162461bcd60e51b81526004016104b490611180565b6000546001600160a01b038481169116141561077c5760405162461bcd60e51b815260206004820181905260248201527f4c505374616b696e67506f6f6c3a204e6f7420416c6c6f77206c70546f6b656e60448201526064016104b4565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b031614156107fe5760405162461bcd60e51b815260206004820152601d60248201527f4c505374616b696e67506f6f6c3a204e6f7420416c6c6f77207469746900000060448201526064016104b4565b6108126001600160a01b0384168284610cbc565b505050565b6003546001600160a01b031633146108415760405162461bcd60e51b81526004016104b490611180565b61084b6000610d1f565b565b6004546001600160a01b0316336001600160a01b0316146108c95760405162461bcd60e51b815260206004820152603060248201527f4c505374616b696e67506f6f6c3a2043616c6c6572206973206e6f742072657760448201526f30b932103234b9ba3934b13aba34b7b760811b60648201526084016104b4565b60006108d3610bb8565b6009556108de610a91565b6008556001600160a01b03811615610925576108f9816103a9565b6001600160a01b0382166000908152600c6020908152604080832093909355600954600b909152919020555b6006544210156109835760405162461bcd60e51b8152602060048201526024808201527f4c505374616b696e67506f6f6c3a204c6173742045706f6368206973206e6f7460448201526308195b9960e21b60648201526084016104b4565b600584905560088490556109978284611146565b6007556005546109a8908390611168565b6006556109e06001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333086610d71565b600a80549060006109f0836111ec565b90915550600a556040518381527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a150505050565b81600154610a3e9190611168565b6001556001600160a01b038116600090815260026020526040902054610a65908390611168565b6001600160a01b0380831660009081526002602052604081209290925590546104869116333085610d71565b600080600554421015610aa657505060055490565b61042042600654610daf565b33610abb610bb8565b600955610ac6610a91565b6008556001600160a01b03811615610b0d57610ae1816103a9565b6001600160a01b0382166000908152600c6020908152604080832093909355600954600b909152919020555b600554610b2c5760405162461bcd60e51b81526004016104b4906111b5565b60008211610b7c5760405162461bcd60e51b815260206004820152601d60248201527f4c505374616b696e67506f6f6c3a2043616e6e6f74207374616b65203000000060448201526064016104b4565b610b868233610a30565b60405182815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d906020016105e1565b6000610bc360015490565b610bce575060095490565b600154600754600854610bdf610a91565b610be99190611110565b610bf39190611127565b610c0590670de0b6b3a7640000611127565b610c0f9190611146565b600954610c1c9190611168565b905090565b6003546001600160a01b03163314610c4b5760405162461bcd60e51b81526004016104b490611180565b6001600160a01b038116610cb05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104b4565b610cb981610d1f565b50565b6040516001600160a01b03831660248201526044810182905261081290849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610dc7565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052610da99085906323b872dd60e01b90608401610ce8565b50505050565b6000818310610dbe5781610dc0565b825b9392505050565b6000610e1c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610e999092919063ffffffff16565b8051909150156108125780806020019051810190610e3a9190611207565b6108125760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104b4565b6060610ea88484600085610eb0565b949350505050565b606082471015610f115760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016104b4565b843b610f5f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104b4565b600080866001600160a01b03168587604051610f7b9190611255565b60006040518083038185875af1925050503d8060008114610fb8576040519150601f19603f3d011682016040523d82523d6000602084013e610fbd565b606091505b5091509150610fcd828286610fd8565b979650505050505050565b60608315610fe7575081610dc0565b825115610ff75782518084602001fd5b8160405162461bcd60e51b81526004016104b49190611271565b6001600160a01b0381168114610cb957600080fd5b60006020828403121561103857600080fd5b8135610dc081611011565b6000806040838503121561105657600080fd5b82359150602083013561106881611011565b809150509250929050565b60006020828403121561108557600080fd5b5035919050565b6000806000606084860312156110a157600080fd5b83356110ac81611011565b92506020840135915060408401356110c381611011565b809150509250925092565b6000806000606084860312156110e357600080fd5b505081359360208301359350604090920135919050565b634e487b7160e01b600052601160045260246000fd5b600082821015611122576111226110fa565b500390565b6000816000190483118215151615611141576111416110fa565b500290565b60008261116357634e487b7160e01b600052601260045260246000fd5b500490565b6000821982111561117b5761117b6110fa565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526018908201527f4c505374616b696e67506f6f6c3a206e6f742073746172740000000000000000604082015260600190565b6000600019821415611200576112006110fa565b5060010190565b60006020828403121561121957600080fd5b81518015158114610dc057600080fd5b60005b8381101561124457818101518382015260200161122c565b83811115610da95750506000910152565b60008251611267818460208701611229565b9190910192915050565b6020815260008251806020840152611290816040850160208701611229565b601f01601f1916919091016040019291505056fea2646970667358221220d0bd1b60450d7fc115b3d436a81eaa17c0301eb4f117bc2f55908489c382540664736f6c634300080900330000000000000000000000003bdffa70f4b4e6985eed50453c7c0d4a15dcec52000000000000000000000000830ce3859f98104dc600efbfad90a65386b95404

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101a75760003560e01c8063715018a6116100f95780638da5cb5b11610097578063cd3daf9d11610071578063cd3daf9d1461037c578063df136d6514610384578063ebe2b12b1461038d578063f2fde38b1461039657600080fd5b80638da5cb5b1461034f578063a694fc3a14610360578063c8f33c911461037357600080fd5b80637acb7757116100d35780637acb77571461030b5780637b0a47ee1461031e57806380faa57d146103275780638b8763471461032f57600080fd5b8063715018a6146102e757806375a939b9146102ef57806378e979251461030257600080fd5b806318160ddd116101665780633d18b912116101405780633d18b9121461029057806354575af4146102985780635fcbd285146102ab57806370a08231146102be57600080fd5b806318160ddd1461024e5780632e1a7d4d14610256578063323ffb491461026957600080fd5b80628cc262146101ac578062f714ce146101d257806305e3c05b146101e75780630700037d146101f05780630d68b76114610210578063101114cf14610223575b600080fd5b6101bf6101ba366004611026565b6103a9565b6040519081526020015b60405180910390f35b6101e56101e0366004611043565b610426565b005b6101bf600a5481565b6101bf6101fe366004611026565b600c6020526000908152604090205481565b6101e561021e366004611026565b61048a565b600454610236906001600160a01b031681565b6040516001600160a01b0390911681526020016101c9565b6001546101bf565b6101e5610264366004611073565b6104df565b6102367f0000000000000000000000003bdffa70f4b4e6985eed50453c7c0d4a15dcec5281565b6101e56105ed565b6101e56102a636600461108c565b6106f4565b600054610236906001600160a01b031681565b6101bf6102cc366004611026565b6001600160a01b031660009081526002602052604090205490565b6101e5610817565b6101e56102fd3660046110ce565b61084d565b6101bf60055481565b6101e5610319366004611043565b610a30565b6101bf60075481565b6101bf610a91565b6101bf61033d366004611026565b600b6020526000908152604090205481565b6003546001600160a01b0316610236565b6101e561036e366004611073565b610ab2565b6101bf60085481565b6101bf610bb8565b6101bf60095481565b6101bf60065481565b6101e56103a4366004611026565b610c21565b6001600160a01b0381166000908152600c6020908152604080832054600b909252822054670de0b6b3a7640000906103df610bb8565b6103e99190611110565b6001600160a01b03851660009081526002602052604090205461040c9190611127565b6104169190611146565b6104209190611168565b92915050565b816001546104349190611110565b6001556001600160a01b03811660009081526002602052604090205461045b908390611110565b6001600160a01b03808316600090815260026020526040812092909255905461048691163384610cbc565b5050565b6003546001600160a01b031633146104bd5760405162461bcd60e51b81526004016104b490611180565b60405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b336104e8610bb8565b6009556104f3610a91565b6008556001600160a01b0381161561053a5761050e816103a9565b6001600160a01b0382166000908152600c6020908152604080832093909355600954600b909152919020555b6005546105595760405162461bcd60e51b81526004016104b4906111b5565b600082116105a95760405162461bcd60e51b815260206004820181905260248201527f4c505374616b696e67506f6f6c3a2043616e6e6f74207769746864726177203060448201526064016104b4565b6105b38233610426565b60405182815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a25050565b336105f6610bb8565b600955610601610a91565b6008556001600160a01b038116156106485761061c816103a9565b6001600160a01b0382166000908152600c6020908152604080832093909355600954600b909152919020555b6005546106675760405162461bcd60e51b81526004016104b4906111b5565b336000908152600c6020526040902054801561048657336000818152600c60205260408120556106c2907f0000000000000000000000003bdffa70f4b4e6985eed50453c7c0d4a15dcec526001600160a01b03169083610cbc565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486906020016105e1565b6003546001600160a01b0316331461071e5760405162461bcd60e51b81526004016104b490611180565b6000546001600160a01b038481169116141561077c5760405162461bcd60e51b815260206004820181905260248201527f4c505374616b696e67506f6f6c3a204e6f7420416c6c6f77206c70546f6b656e60448201526064016104b4565b7f0000000000000000000000003bdffa70f4b4e6985eed50453c7c0d4a15dcec526001600160a01b0316836001600160a01b031614156107fe5760405162461bcd60e51b815260206004820152601d60248201527f4c505374616b696e67506f6f6c3a204e6f7420416c6c6f77207469746900000060448201526064016104b4565b6108126001600160a01b0384168284610cbc565b505050565b6003546001600160a01b031633146108415760405162461bcd60e51b81526004016104b490611180565b61084b6000610d1f565b565b6004546001600160a01b0316336001600160a01b0316146108c95760405162461bcd60e51b815260206004820152603060248201527f4c505374616b696e67506f6f6c3a2043616c6c6572206973206e6f742072657760448201526f30b932103234b9ba3934b13aba34b7b760811b60648201526084016104b4565b60006108d3610bb8565b6009556108de610a91565b6008556001600160a01b03811615610925576108f9816103a9565b6001600160a01b0382166000908152600c6020908152604080832093909355600954600b909152919020555b6006544210156109835760405162461bcd60e51b8152602060048201526024808201527f4c505374616b696e67506f6f6c3a204c6173742045706f6368206973206e6f7460448201526308195b9960e21b60648201526084016104b4565b600584905560088490556109978284611146565b6007556005546109a8908390611168565b6006556109e06001600160a01b037f0000000000000000000000003bdffa70f4b4e6985eed50453c7c0d4a15dcec5216333086610d71565b600a80549060006109f0836111ec565b90915550600a556040518381527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a150505050565b81600154610a3e9190611168565b6001556001600160a01b038116600090815260026020526040902054610a65908390611168565b6001600160a01b0380831660009081526002602052604081209290925590546104869116333085610d71565b600080600554421015610aa657505060055490565b61042042600654610daf565b33610abb610bb8565b600955610ac6610a91565b6008556001600160a01b03811615610b0d57610ae1816103a9565b6001600160a01b0382166000908152600c6020908152604080832093909355600954600b909152919020555b600554610b2c5760405162461bcd60e51b81526004016104b4906111b5565b60008211610b7c5760405162461bcd60e51b815260206004820152601d60248201527f4c505374616b696e67506f6f6c3a2043616e6e6f74207374616b65203000000060448201526064016104b4565b610b868233610a30565b60405182815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d906020016105e1565b6000610bc360015490565b610bce575060095490565b600154600754600854610bdf610a91565b610be99190611110565b610bf39190611127565b610c0590670de0b6b3a7640000611127565b610c0f9190611146565b600954610c1c9190611168565b905090565b6003546001600160a01b03163314610c4b5760405162461bcd60e51b81526004016104b490611180565b6001600160a01b038116610cb05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104b4565b610cb981610d1f565b50565b6040516001600160a01b03831660248201526044810182905261081290849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610dc7565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052610da99085906323b872dd60e01b90608401610ce8565b50505050565b6000818310610dbe5781610dc0565b825b9392505050565b6000610e1c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610e999092919063ffffffff16565b8051909150156108125780806020019051810190610e3a9190611207565b6108125760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104b4565b6060610ea88484600085610eb0565b949350505050565b606082471015610f115760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016104b4565b843b610f5f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104b4565b600080866001600160a01b03168587604051610f7b9190611255565b60006040518083038185875af1925050503d8060008114610fb8576040519150601f19603f3d011682016040523d82523d6000602084013e610fbd565b606091505b5091509150610fcd828286610fd8565b979650505050505050565b60608315610fe7575081610dc0565b825115610ff75782518084602001fd5b8160405162461bcd60e51b81526004016104b49190611271565b6001600160a01b0381168114610cb957600080fd5b60006020828403121561103857600080fd5b8135610dc081611011565b6000806040838503121561105657600080fd5b82359150602083013561106881611011565b809150509250929050565b60006020828403121561108557600080fd5b5035919050565b6000806000606084860312156110a157600080fd5b83356110ac81611011565b92506020840135915060408401356110c381611011565b809150509250925092565b6000806000606084860312156110e357600080fd5b505081359360208301359350604090920135919050565b634e487b7160e01b600052601160045260246000fd5b600082821015611122576111226110fa565b500390565b6000816000190483118215151615611141576111416110fa565b500290565b60008261116357634e487b7160e01b600052601260045260246000fd5b500490565b6000821982111561117b5761117b6110fa565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526018908201527f4c505374616b696e67506f6f6c3a206e6f742073746172740000000000000000604082015260600190565b6000600019821415611200576112006110fa565b5060010190565b60006020828403121561121957600080fd5b81518015158114610dc057600080fd5b60005b8381101561124457818101518382015260200161122c565b83811115610da95750506000910152565b60008251611267818460208701611229565b9190910192915050565b6020815260008251806020840152611290816040850160208701611229565b601f01601f1916919091016040019291505056fea2646970667358221220d0bd1b60450d7fc115b3d436a81eaa17c0301eb4f117bc2f55908489c382540664736f6c63430008090033

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

0000000000000000000000003bdffa70f4b4e6985eed50453c7c0d4a15dcec52000000000000000000000000830ce3859f98104dc600efbfad90a65386b95404

-----Decoded View---------------
Arg [0] : _titi (address): 0x3bdffA70f4b4E6985eED50453c7C0D4A15dcEc52
Arg [1] : _lpToken (address): 0x830Ce3859F98104DC600efBFAD90A65386B95404

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000003bdffa70f4b4e6985eed50453c7c0d4a15dcec52
Arg [1] : 000000000000000000000000830ce3859f98104dc600efbfad90a65386b95404


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.