POL Price: $0.619013 (-5.32%)
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Get Reward653111162024-12-10 12:19:442 days ago1733833184IN
0x25ACD9b7...792E9ca86
0 POL0.0063145874.8581693
Withdraw653110602024-12-10 12:17:462 days ago1733833066IN
0x25ACD9b7...792E9ca86
0 POL0.008301578.27987831
Get Reward561796932024-04-24 0:00:58233 days ago1713916858IN
0x25ACD9b7...792E9ca86
0 POL0.0033782140.04811864
Get Reward552085282024-03-29 8:59:20258 days ago1711702760IN
0x25ACD9b7...792E9ca86
0 POL0.0041244793.52122866
Get Reward550992182024-03-26 11:54:15261 days ago1711454055IN
0x25ACD9b7...792E9ca86
0 POL0.0044610666.3315373
Withdraw550991012024-03-26 11:49:27261 days ago1711453767IN
0x25ACD9b7...792E9ca86
0 POL0.0058004254.69570598
Withdraw541799632024-03-02 14:07:24285 days ago1709388444IN
0x25ACD9b7...792E9ca86
0 POL0.01310466123.58579689
Get Reward531525052024-02-05 12:35:50311 days ago1707136550IN
0x25ACD9b7...792E9ca86
0 POL0.00490871111.30371679
Withdraw531523182024-02-05 12:29:06311 days ago1707136146IN
0x25ACD9b7...792E9ca86
0 POL0.00847653101.71397086
Get Reward529317652024-01-30 17:20:47317 days ago1706635247IN
0x25ACD9b7...792E9ca86
0 POL0.01316844156.10933164
Stake529317602024-01-30 17:20:37317 days ago1706635237IN
0x25ACD9b7...792E9ca86
0 POL0.01325817151.28163075
Withdraw529316962024-01-30 17:18:21317 days ago1706635101IN
0x25ACD9b7...792E9ca86
0 POL0.01232303116.21445928
Get Reward525506602024-01-20 16:52:08327 days ago1705769528IN
0x25ACD9b7...792E9ca86
0 POL0.0022908334.06245278
Withdraw525505192024-01-20 16:46:36327 days ago1705769196IN
0x25ACD9b7...792E9ca86
0 POL0.0036305234.23442732
Withdraw523274632024-01-14 21:51:07333 days ago1705269067IN
0x25ACD9b7...792E9ca86
0 POL0.0025004730.00000003
Get Reward522120742024-01-11 21:21:55336 days ago1705008115IN
0x25ACD9b7...792E9ca86
0 POL0.0020889731.06096992
Withdraw522120102024-01-11 21:19:39336 days ago1705007979IN
0x25ACD9b7...792E9ca86
0 POL0.003292831.04984035
Get Reward509306292023-12-09 12:45:30369 days ago1702125930IN
0x25ACD9b7...792E9ca86
0 POL0.0063648494.63892677
Withdraw509305652023-12-09 12:43:14369 days ago1702125794IN
0x25ACD9b7...792E9ca86
0 POL0.0092064586.82300526
Withdraw508041942023-12-06 9:15:10372 days ago1701854110IN
0x25ACD9b7...792E9ca86
0 POL0.0089000183.92358018
Withdraw498046272023-11-11 7:15:26398 days ago1699686926IN
0x25ACD9b7...792E9ca86
0 POL0.01638838154.53592441
Withdraw497424982023-11-09 18:08:45399 days ago1699553325IN
0x25ACD9b7...792E9ca86
0 POL0.01684219202.06838335
Get Reward497423832023-11-09 18:04:39399 days ago1699553079IN
0x25ACD9b7...792E9ca86
0 POL0.01741834199.85708885
Withdraw496251722023-11-06 19:52:58402 days ago1699300378IN
0x25ACD9b7...792E9ca86
0 POL0.02658719250.73503668
Get Reward495802702023-11-05 16:56:23403 days ago1699203383IN
0x25ACD9b7...792E9ca86
0 POL0.0044323165.9041779
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LuxyFarm

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 8 : LuxyFarm.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";

// Inspired by https://github.com/Synthetixio/synthetix/blob/develop/contracts/StakingRewards.sol
contract LuxyFarm is Pausable, Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20;

    /* ========== STATE VARIABLES ========== */
    IERC20 public luxyToken;
    IERC20 public lpToken;
    uint256 public periodFinish;
    uint256 public rewardRate;
    uint256 public constant rewardsDuration = 90 days;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;
    uint256 private _totalSupply;

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

    /* ========== EVENTS ========== */
    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);
    event Recovered(address token, uint256 amount);

    /* ========== MODIFIERS ========== */
    /**
     * @notice Update pool state when call mutative functions
     * @param beneficiary The account to check
     */
    modifier updateReward(address beneficiary) {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = lastTimeRewardApplicable();
        if (beneficiary != address(0)) {
            rewards[beneficiary] = earned(beneficiary);
            userRewardPerTokenPaid[beneficiary] = rewardPerTokenStored;
        }
        _;
    }

    /* ========== CONSTRUCTOR ========== */
    /**
     * @param _luxyToken Address of the Luxy token
     * @param _lpToken Address of the LUXY-USDC LP token
     */
    constructor(address _luxyToken, address _lpToken) {
        luxyToken = IERC20(_luxyToken);
        lpToken = IERC20(_lpToken);
    }

    /* ========== VIEWS ========== */
    /**
     * @notice Returns the total amount of staked tokens
     */
    function totalSupply() external view returns (uint256) {
        return _totalSupply;
    }

    /**
     * @notice Returns the total amount of tokens staked in the Farm
     * @param beneficiary The account to check
     */
    function balanceOf(address beneficiary) external view returns (uint256) {
        return _balances[beneficiary];
    }

    /**
     * @notice Returns the latest timestamp of applicable reward
     */
    function lastTimeRewardApplicable() public view returns (uint256) {
        return block.timestamp < periodFinish ? block.timestamp : periodFinish;
    }

    /**
     * @notice Retunrs the reward rate in range of timestamp based on totalSupply
     */
    function rewardPerToken() public view returns (uint256) {
        if (_totalSupply == 0) {
            return rewardPerTokenStored;
        }
        return
            rewardPerTokenStored +
            (((lastTimeRewardApplicable() - lastUpdateTime) *
                rewardRate *
                1e18) / _totalSupply);
    }

    /**
     * @notice Returns the earned amount of an address
     * @param beneficiary The account to check
     */
    function earned(address beneficiary) public view returns (uint256) {
        return
            ((_balances[beneficiary] *
                (rewardPerToken() - userRewardPerTokenPaid[beneficiary])) /
                1e18) + rewards[beneficiary];
    }

    /**
     * @notice Returns the total number of tokens being distributed
     */
    function getRewardForDuration() external view returns (uint256) {
        return rewardRate * rewardsDuration;
    }

    /**
     * @notice Returns the number of remaining tokens to be distributed
     */
    function getRemainingTotalReward() external view returns (uint256) {
        if (periodFinish >= block.timestamp) {
            uint256 remaining = periodFinish - block.timestamp;
            uint256 leftover = remaining * rewardRate;
            return leftover;
        } else {
            return 0;
        }
    }

    /* ========== MUTATIVE FUNCTIONS ========== */
    /**
     * @notice User can stake token by this function when not paused
     * @param amount Number of tokens to be staked
     */
    function stake(uint256 amount)
        external
        nonReentrant
        whenNotPaused
        updateReward(_msgSender())
    {
        require(amount > 0, "LuxyFarm::CANNOT_STAKE_ZERO");
        _totalSupply += amount;
        _balances[_msgSender()] += amount;
        lpToken.safeTransferFrom(_msgSender(), address(this), amount);
        emit Staked(_msgSender(), amount);
    }

    /**
     * @notice User can withdraw token by this function
     * @param amount Number of tokens to be withdrawn
     */
    function withdraw(uint256 amount)
        public
        nonReentrant
        updateReward(_msgSender())
    {
        require(amount > 0, "LuxyFarm::CANNOT_WITHDRAW_ZERO");
        require(
            _balances[_msgSender()] >= amount,
            "LuxyFarm::INSUFFICIENT_TOKEN_AMOUNT"
        );
        _totalSupply -= amount;
        _balances[_msgSender()] -= amount;
        lpToken.safeTransfer(_msgSender(), amount);
        emit Withdrawn(_msgSender(), amount);
    }

    /**
     * @notice User can get the reward by this function
     */
    function getReward() public nonReentrant updateReward(_msgSender()) {
        uint256 reward = rewards[_msgSender()];
        if (reward > 0) {
            rewards[_msgSender()] = 0;
            luxyToken.safeTransfer(_msgSender(), reward);
            emit RewardPaid(_msgSender(), reward);
        }
    }

    /**
     * @notice User can withdraw and get reward at the same time by this function
     */
    function exit() external {
        withdraw(_balances[_msgSender()]);
        getReward();
    }

    /* ========== RESTRICTED FUNCTIONS ========== */
    /**
     * @notice Owner should call it function after send tokens to the contract.
     * @param reward Number of tokens that will be distributed
     */
    function notifyRewardAmount(uint256 reward)
        external
        onlyOwner
        updateReward(address(0))
    {
        if (block.timestamp >= periodFinish) {
            rewardRate = reward / rewardsDuration;
        } else {
            uint256 remaining = periodFinish - block.timestamp;
            uint256 leftover = remaining * rewardRate;
            rewardRate = (reward + leftover) / rewardsDuration;
        }

        /* 
        Ensure the provided reward amount is not more than the balance in the contract.
        This keeps the reward rate in the right range, preventing overflows due to
        very high values of rewardRate in the earned and rewardsPerToken functions;
        Reward + leftover must be less than 2^256 / 10^18 to avoid overflow.
        */
        uint256 balance = luxyToken.balanceOf(address(this));
        require(
            rewardRate <= balance / rewardsDuration,
            "LuxyFarm::PROVIDED_REWARD_TOO_HIGH"
        );

        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp + rewardsDuration;
        emit RewardAdded(reward);
    }

    /**
     * @notice Owner can recover ERC20 tokens sent to the contract by this function
     * @param tokenAddress Token address to be withdrawn
     * @param tokenAmount Number of tokens to be withdrawn
     */
    function recoverERC20(address tokenAddress, uint256 tokenAmount)
        external
        onlyOwner
    {
        require(
            tokenAddress != address(lpToken),
            "LuxyFarm::CANNOT_WITHDRAW_STAKING_TOKEN"
        );
        IERC20(tokenAddress).safeTransfer(owner(), tokenAmount);
        emit Recovered(tokenAddress, tokenAmount);
    }
}

File 2 of 8 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.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");
        }
    }
}

File 3 of 8 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 4 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 5 of 8 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 6 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 7 of 8 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 8 of 8 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_luxyToken","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":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","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":"beneficiary","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRemainingTotalReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"luxyToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","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"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200163a3803806200163a8339810160408190526200003491620000f5565b6000805460ff1916905562000049336200007f565b60018055600280546001600160a01b039384166001600160a01b031991821617909155600380549290931691161790556200012c565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b80516001600160a01b0381168114620000f057600080fd5b919050565b6000806040838503121562000108578182fd5b6200011383620000d8565b91506200012360208401620000d8565b90509250929050565b6114fe806200013c6000396000f3fe608060405234801561001057600080fd5b50600436106101ad5760003560e01c80637b0a47ee116100ee578063a75a2c9a11610097578063df136d6511610071578063df136d651461034d578063e9fad8ee14610356578063ebe2b12b1461035e578063f2fde38b1461036757600080fd5b8063a75a2c9a14610334578063c8f33c911461033c578063cd3daf9d1461034557600080fd5b80638b876347116100c85780638b876347146102eb5780638da5cb5b1461030b578063a694fc3a1461032157600080fd5b80637b0a47ee146102c757806380faa57d146102d05780638980f11f146102d857600080fd5b8063386a95251161015b5780635c975abb116101355780635c975abb1461026d5780635fcbd2851461028357806370a0823114610296578063715018a6146102bf57600080fd5b8063386a9525146102485780633c6b16ab146102525780633d18b9121461026557600080fd5b80631c1f78eb1161018c5780631c1f78eb146102005780632af60faf146102085780632e1a7d4d1461023357600080fd5b80628cc262146101b25780630700037d146101d857806318160ddd146101f8575b600080fd5b6101c56101c0366004611336565b61037a565b6040519081526020015b60405180910390f35b6101c56101e6366004611336565b600a6020526000908152604090205481565b6008546101c5565b6101c56103f7565b60025461021b906001600160a01b031681565b6040516001600160a01b0390911681526020016101cf565b610246610241366004611399565b61040f565b005b6101c56276a70081565b610246610260366004611399565b61062c565b6102466108b2565b60005460ff1660405190151581526020016101cf565b60035461021b906001600160a01b031681565b6101c56102a4366004611336565b6001600160a01b03166000908152600b602052604090205490565b6102466109de565b6101c560055481565b6101c5610a4a565b6102466102e6366004611350565b610a61565b6101c56102f9366004611336565b60096020526000908152604090205481565b60005461010090046001600160a01b031661021b565b61024661032f366004611399565b610bb1565b6101c5610d8c565b6101c560065481565b6101c5610dc6565b6101c560075481565b610246610e28565b6101c560045481565b610246610375366004611336565b610e49565b6001600160a01b0381166000908152600a60209081526040808320546009909252822054670de0b6b3a7640000906103b0610dc6565b6103ba919061146f565b6001600160a01b0385166000908152600b60205260409020546103dd9190611450565b6103e79190611430565b6103f19190611418565b92915050565b60006276a70060055461040a9190611450565b905090565b600260015414156104675760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260015533610475610dc6565b600755610480610a4a565b6006556001600160a01b038116156104c75761049b8161037a565b6001600160a01b0382166000908152600a60209081526040808320939093556007546009909152919020555b600082116105175760405162461bcd60e51b815260206004820152601e60248201527f4c7578794661726d3a3a43414e4e4f545f57495448445241575f5a45524f0000604482015260640161045e565b336000908152600b602052604090205482111561059c5760405162461bcd60e51b815260206004820152602360248201527f4c7578794661726d3a3a494e53554646494349454e545f544f4b454e5f414d4f60448201527f554e540000000000000000000000000000000000000000000000000000000000606482015260840161045e565b81600860008282546105ae919061146f565b9091555050336000908152600b6020526040812080548492906105d290849061146f565b90915550506003546105ee906001600160a01b03163384610f31565b60405182815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a2505060018055565b6000546001600160a01b0361010090910416331461068c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161045e565b6000610696610dc6565b6007556106a1610a4a565b6006556001600160a01b038116156106e8576106bc8161037a565b6001600160a01b0382166000908152600a60209081526040808320939093556007546009909152919020555b6004544210610706576106fe6276a70083611430565b600555610748565b600042600454610716919061146f565b90506000600554826107289190611450565b90506276a7006107388286611418565b6107429190611430565b60055550505b6002546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156107a557600080fd5b505afa1580156107b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107dd91906113b1565b90506107ec6276a70082611430565b60055411156108635760405162461bcd60e51b815260206004820152602260248201527f4c7578794661726d3a3a50524f56494445445f5245574152445f544f4f5f484960448201527f4748000000000000000000000000000000000000000000000000000000000000606482015260840161045e565b426006819055610877906276a70090611418565b6004556040518381527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a1505050565b600260015414156109055760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161045e565b600260015533610913610dc6565b60075561091e610a4a565b6006556001600160a01b03811615610965576109398161037a565b6001600160a01b0382166000908152600a60209081526040808320939093556007546009909152919020555b336000908152600a602052604090205480156109d657336000818152600a60205260408120556002546109a4916001600160a01b039091169083610f31565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869060200161061c565b505060018055565b6000546001600160a01b03610100909104163314610a3e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161045e565b610a486000610fdf565b565b60006004544210610a5c575060045490565b504290565b6000546001600160a01b03610100909104163314610ac15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161045e565b6003546001600160a01b0383811691161415610b455760405162461bcd60e51b815260206004820152602760248201527f4c7578794661726d3a3a43414e4e4f545f57495448445241575f5354414b494e60448201527f475f544f4b454e00000000000000000000000000000000000000000000000000606482015260840161045e565b600054610b6b9061010090046001600160a01b03166001600160a01b0384169083610f31565b604080516001600160a01b0384168152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28910160405180910390a15050565b60026001541415610c045760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161045e565b600260015560005460ff1615610c5c5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161045e565b33610c65610dc6565b600755610c70610a4a565b6006556001600160a01b03811615610cb757610c8b8161037a565b6001600160a01b0382166000908152600a60209081526040808320939093556007546009909152919020555b60008211610d075760405162461bcd60e51b815260206004820152601b60248201527f4c7578794661726d3a3a43414e4e4f545f5354414b455f5a45524f0000000000604482015260640161045e565b8160086000828254610d199190611418565b9091555050336000908152600b602052604081208054849290610d3d908490611418565b9091555050600354610d5a906001600160a01b031633308561104f565b60405182815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9060200161061c565b60004260045410610dc057600042600454610da7919061146f565b9050600060055482610db99190611450565b9392505050565b50600090565b600060085460001415610dda575060075490565b600854600554600654610deb610a4a565b610df5919061146f565b610dff9190611450565b610e1190670de0b6b3a7640000611450565b610e1b9190611430565b60075461040a9190611418565b336000908152600b6020526040902054610e419061040f565b610a486108b2565b6000546001600160a01b03610100909104163314610ea95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161045e565b6001600160a01b038116610f255760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161045e565b610f2e81610fdf565b50565b6040516001600160a01b038316602482015260448101829052610fda9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526110a6565b505050565b600080546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526110a09085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401610f76565b50505050565b60006110fb826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661118b9092919063ffffffff16565b805190915015610fda57808060200190518101906111199190611379565b610fda5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161045e565b606061119a84846000856111a2565b949350505050565b60608247101561121a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161045e565b843b6112685760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161045e565b600080866001600160a01b0316858760405161128491906113c9565b60006040518083038185875af1925050503d80600081146112c1576040519150601f19603f3d011682016040523d82523d6000602084013e6112c6565b606091505b50915091506112d68282866112e1565b979650505050505050565b606083156112f0575081610db9565b8251156113005782518084602001fd5b8160405162461bcd60e51b815260040161045e91906113e5565b80356001600160a01b038116811461133157600080fd5b919050565b600060208284031215611347578081fd5b610db98261131a565b60008060408385031215611362578081fd5b61136b8361131a565b946020939093013593505050565b60006020828403121561138a578081fd5b81518015158114610db9578182fd5b6000602082840312156113aa578081fd5b5035919050565b6000602082840312156113c2578081fd5b5051919050565b600082516113db818460208701611486565b9190910192915050565b6020815260008251806020840152611404816040850160208701611486565b601f01601f19169190910160400192915050565b6000821982111561142b5761142b6114b2565b500190565b60008261144b57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561146a5761146a6114b2565b500290565b600082821015611481576114816114b2565b500390565b60005b838110156114a1578181015183820152602001611489565b838111156110a05750506000910152565b634e487b7160e01b600052601160045260246000fdfea26469706673582212200e9c12acb338c1934bcc8de5b0bbd05f4fc9c77c7f91fcd46da9f1bfc22141e864736f6c63430008040033000000000000000000000000d4945a3d0de9923035521687d4bf18cc9b0c7c2a000000000000000000000000c2c88da3bc73d927293e4c516c446f87884b84c6

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101ad5760003560e01c80637b0a47ee116100ee578063a75a2c9a11610097578063df136d6511610071578063df136d651461034d578063e9fad8ee14610356578063ebe2b12b1461035e578063f2fde38b1461036757600080fd5b8063a75a2c9a14610334578063c8f33c911461033c578063cd3daf9d1461034557600080fd5b80638b876347116100c85780638b876347146102eb5780638da5cb5b1461030b578063a694fc3a1461032157600080fd5b80637b0a47ee146102c757806380faa57d146102d05780638980f11f146102d857600080fd5b8063386a95251161015b5780635c975abb116101355780635c975abb1461026d5780635fcbd2851461028357806370a0823114610296578063715018a6146102bf57600080fd5b8063386a9525146102485780633c6b16ab146102525780633d18b9121461026557600080fd5b80631c1f78eb1161018c5780631c1f78eb146102005780632af60faf146102085780632e1a7d4d1461023357600080fd5b80628cc262146101b25780630700037d146101d857806318160ddd146101f8575b600080fd5b6101c56101c0366004611336565b61037a565b6040519081526020015b60405180910390f35b6101c56101e6366004611336565b600a6020526000908152604090205481565b6008546101c5565b6101c56103f7565b60025461021b906001600160a01b031681565b6040516001600160a01b0390911681526020016101cf565b610246610241366004611399565b61040f565b005b6101c56276a70081565b610246610260366004611399565b61062c565b6102466108b2565b60005460ff1660405190151581526020016101cf565b60035461021b906001600160a01b031681565b6101c56102a4366004611336565b6001600160a01b03166000908152600b602052604090205490565b6102466109de565b6101c560055481565b6101c5610a4a565b6102466102e6366004611350565b610a61565b6101c56102f9366004611336565b60096020526000908152604090205481565b60005461010090046001600160a01b031661021b565b61024661032f366004611399565b610bb1565b6101c5610d8c565b6101c560065481565b6101c5610dc6565b6101c560075481565b610246610e28565b6101c560045481565b610246610375366004611336565b610e49565b6001600160a01b0381166000908152600a60209081526040808320546009909252822054670de0b6b3a7640000906103b0610dc6565b6103ba919061146f565b6001600160a01b0385166000908152600b60205260409020546103dd9190611450565b6103e79190611430565b6103f19190611418565b92915050565b60006276a70060055461040a9190611450565b905090565b600260015414156104675760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260015533610475610dc6565b600755610480610a4a565b6006556001600160a01b038116156104c75761049b8161037a565b6001600160a01b0382166000908152600a60209081526040808320939093556007546009909152919020555b600082116105175760405162461bcd60e51b815260206004820152601e60248201527f4c7578794661726d3a3a43414e4e4f545f57495448445241575f5a45524f0000604482015260640161045e565b336000908152600b602052604090205482111561059c5760405162461bcd60e51b815260206004820152602360248201527f4c7578794661726d3a3a494e53554646494349454e545f544f4b454e5f414d4f60448201527f554e540000000000000000000000000000000000000000000000000000000000606482015260840161045e565b81600860008282546105ae919061146f565b9091555050336000908152600b6020526040812080548492906105d290849061146f565b90915550506003546105ee906001600160a01b03163384610f31565b60405182815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a2505060018055565b6000546001600160a01b0361010090910416331461068c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161045e565b6000610696610dc6565b6007556106a1610a4a565b6006556001600160a01b038116156106e8576106bc8161037a565b6001600160a01b0382166000908152600a60209081526040808320939093556007546009909152919020555b6004544210610706576106fe6276a70083611430565b600555610748565b600042600454610716919061146f565b90506000600554826107289190611450565b90506276a7006107388286611418565b6107429190611430565b60055550505b6002546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156107a557600080fd5b505afa1580156107b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107dd91906113b1565b90506107ec6276a70082611430565b60055411156108635760405162461bcd60e51b815260206004820152602260248201527f4c7578794661726d3a3a50524f56494445445f5245574152445f544f4f5f484960448201527f4748000000000000000000000000000000000000000000000000000000000000606482015260840161045e565b426006819055610877906276a70090611418565b6004556040518381527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a1505050565b600260015414156109055760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161045e565b600260015533610913610dc6565b60075561091e610a4a565b6006556001600160a01b03811615610965576109398161037a565b6001600160a01b0382166000908152600a60209081526040808320939093556007546009909152919020555b336000908152600a602052604090205480156109d657336000818152600a60205260408120556002546109a4916001600160a01b039091169083610f31565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869060200161061c565b505060018055565b6000546001600160a01b03610100909104163314610a3e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161045e565b610a486000610fdf565b565b60006004544210610a5c575060045490565b504290565b6000546001600160a01b03610100909104163314610ac15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161045e565b6003546001600160a01b0383811691161415610b455760405162461bcd60e51b815260206004820152602760248201527f4c7578794661726d3a3a43414e4e4f545f57495448445241575f5354414b494e60448201527f475f544f4b454e00000000000000000000000000000000000000000000000000606482015260840161045e565b600054610b6b9061010090046001600160a01b03166001600160a01b0384169083610f31565b604080516001600160a01b0384168152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28910160405180910390a15050565b60026001541415610c045760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161045e565b600260015560005460ff1615610c5c5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161045e565b33610c65610dc6565b600755610c70610a4a565b6006556001600160a01b03811615610cb757610c8b8161037a565b6001600160a01b0382166000908152600a60209081526040808320939093556007546009909152919020555b60008211610d075760405162461bcd60e51b815260206004820152601b60248201527f4c7578794661726d3a3a43414e4e4f545f5354414b455f5a45524f0000000000604482015260640161045e565b8160086000828254610d199190611418565b9091555050336000908152600b602052604081208054849290610d3d908490611418565b9091555050600354610d5a906001600160a01b031633308561104f565b60405182815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9060200161061c565b60004260045410610dc057600042600454610da7919061146f565b9050600060055482610db99190611450565b9392505050565b50600090565b600060085460001415610dda575060075490565b600854600554600654610deb610a4a565b610df5919061146f565b610dff9190611450565b610e1190670de0b6b3a7640000611450565b610e1b9190611430565b60075461040a9190611418565b336000908152600b6020526040902054610e419061040f565b610a486108b2565b6000546001600160a01b03610100909104163314610ea95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161045e565b6001600160a01b038116610f255760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161045e565b610f2e81610fdf565b50565b6040516001600160a01b038316602482015260448101829052610fda9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526110a6565b505050565b600080546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526110a09085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401610f76565b50505050565b60006110fb826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661118b9092919063ffffffff16565b805190915015610fda57808060200190518101906111199190611379565b610fda5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161045e565b606061119a84846000856111a2565b949350505050565b60608247101561121a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161045e565b843b6112685760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161045e565b600080866001600160a01b0316858760405161128491906113c9565b60006040518083038185875af1925050503d80600081146112c1576040519150601f19603f3d011682016040523d82523d6000602084013e6112c6565b606091505b50915091506112d68282866112e1565b979650505050505050565b606083156112f0575081610db9565b8251156113005782518084602001fd5b8160405162461bcd60e51b815260040161045e91906113e5565b80356001600160a01b038116811461133157600080fd5b919050565b600060208284031215611347578081fd5b610db98261131a565b60008060408385031215611362578081fd5b61136b8361131a565b946020939093013593505050565b60006020828403121561138a578081fd5b81518015158114610db9578182fd5b6000602082840312156113aa578081fd5b5035919050565b6000602082840312156113c2578081fd5b5051919050565b600082516113db818460208701611486565b9190910192915050565b6020815260008251806020840152611404816040850160208701611486565b601f01601f19169190910160400192915050565b6000821982111561142b5761142b6114b2565b500190565b60008261144b57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561146a5761146a6114b2565b500290565b600082821015611481576114816114b2565b500390565b60005b838110156114a1578181015183820152602001611489565b838111156110a05750506000910152565b634e487b7160e01b600052601160045260246000fdfea26469706673582212200e9c12acb338c1934bcc8de5b0bbd05f4fc9c77c7f91fcd46da9f1bfc22141e864736f6c63430008040033

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

000000000000000000000000d4945a3d0de9923035521687d4bf18cc9b0c7c2a000000000000000000000000c2c88da3bc73d927293e4c516c446f87884b84c6

-----Decoded View---------------
Arg [0] : _luxyToken (address): 0xD4945a3D0De9923035521687D4bf18cC9B0c7c2A
Arg [1] : _lpToken (address): 0xC2C88da3bc73D927293e4C516c446f87884B84C6

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000d4945a3d0de9923035521687d4bf18cc9b0c7c2a
Arg [1] : 000000000000000000000000c2c88da3bc73d927293e4c516c446f87884b84c6


Block Transaction 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
[ 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.