Contract 0x25ACD9b7684207cE3854caD69966bb5792E9ca86 1

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xa212c9727bb2f1863dcff9b895ff0a75aed5d2deaff4c31626a077336c55fc42Get Reward299810092022-06-25 12:43:5142 mins ago0xa4bcc1a3c19bd4aa792a1f802c9de5d09566d458 IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.003051713041 32.308986829
0x7b5d0e96cabd6f818c90b758c7d42981c9ad6c3671ef3adb95c99d4673625722Get Reward299794692022-06-25 11:42:231 hr 44 mins ago0x5a5084d8cd66c6708b9d9fe61e4a58d213d53429 IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.002833620567 30.000006005
0xda1eb96ffa59400a210aed64b43752158ea5c83522735ee791cef3694dc22264Stake299766402022-06-25 9:47:573 hrs 38 mins ago0x423bff390b7a47fe497fc900a9eb1e691513df3d IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.009249918835 96.603887539
0x5ff5688f684b2343343099b64e36d87129a4b7580feb581d5f6f2eb849a7f9a9Exit299765512022-06-25 9:40:333 hrs 45 mins ago0x1a9f776c88447f88eeacb7e35d10f44736ff19f8 IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.004423830886 32.503074
0x23799120055b8bbbf39fefc0448263da27868f1e7d0d86823f709bf2a2200de1Get Reward299745312022-06-25 8:12:055 hrs 14 mins ago0x3e59d5b2a7e9e17c5f1550eaf161a4866fb4395b IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.003512180252 37.184028762
0xcadb7fcf64dee6cd00cad6d28efe8fce0683f295f3b08ea8c374fa43622d1f76Get Reward299739572022-06-25 7:47:575 hrs 38 mins ago0xed50cf0f370a371f5e0b39aea27269fe46400e54 IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.00690020176 73.05356851
0x164359daaed08e930a98d9b92753bd0201160b55798bd756efaecfff12602f16Stake299739182022-06-25 7:46:355 hrs 39 mins ago0x04a2648894bb5c81f39ddf748eeab259fca4137e IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.008139596253 82.602789282
0x6096a67be8582b085ba29c601a934f29f51cbec38e7d03e2329acdf402b8db1aStake299737722022-06-25 7:39:515 hrs 46 mins ago0x0102585172b3f9aa55864393bd3c3ee094d91f03 IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.007213125651 73.200719015
0x324ec8cd305f59481fedb1b7e89fc772d554f79c4893462e441b86836936d109Get Reward299737422022-06-25 7:38:215 hrs 48 mins ago0x0102585172b3f9aa55864393bd3c3ee094d91f03 IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.004729048327 62.757761067
0x786a8ed26bc535914a26fc2edfe379c9ccdbb4627b61a86e711b80b45d980e92Get Reward299737292022-06-25 7:37:555 hrs 48 mins ago0x04a2648894bb5c81f39ddf748eeab259fca4137e IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.004516905473 59.942477821
0xa0935c0ed2fa3c533e436b68d0b0b11ad257adba81e7a4d87ce7a0f16a7f83a8Get Reward299709532022-06-25 5:41:117 hrs 45 mins ago0x7e2be235c32338c472831c5c1aa311c6e2d46bc3 IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.002401330781 30.000134691
0x209f5b13187dcdab08a7ac085752d135ee68c85fe44d517a9ca10bf5bb3a49dbGet Reward299698472022-06-25 4:54:328 hrs 31 mins ago0xd38830b510e93355ad007e90e73cac810aec56f1 IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.00240692308 30.07
0x9b53138ee9353eea6aeccf5685239712dfb66d0dc748d1c11c1019b37390716aGet Reward299698132022-06-25 4:53:248 hrs 32 mins ago0xd38830b510e93355ad007e90e73cac810aec56f1 IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.002406923079 30.069999999
0x421f220a059244eef300823e0d6c65ebb49422af4cad29841ac5cc870e7ec866Get Reward299638232022-06-25 0:53:5812 hrs 32 mins ago0x058344843fd0c303e7f85507d3f53b440b855f71 IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.027324568659 289.289692968
0x27176102d2a1cbbb37c2aeebef6fd415b0a7faefe9dfa72b4005363dd01fa221Withdraw299607872022-06-24 22:49:1614 hrs 37 mins ago0xeade3c2a493783b28b1addb21820f3454a672c28 IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.024049433201 242.803392277
0x03618e672c6531313e656ef1592d7f1a330dd268911006e396e8ddfdea8ee5d0Get Reward299591942022-06-24 21:41:4215 hrs 44 mins ago0x0a56c3405674a582514989ba0ecbaf9aa1bc9e35 IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.002842096051 35.506671977
0xe72b980a82cee69f908039480ea7155036a96e9ddcbc3483861265fddd46f82fGet Reward299558652022-06-24 19:28:5617 hrs 57 mins ago0xca6e28356b9f948ac09ca1591c47482c35c4be06 IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.006011541948 75.102967723
0xa905083e5e914770d2315cbc4347e72ffb0555436d7759e491df905a79b7f3cdStake299520962022-06-24 17:03:3020 hrs 22 mins ago0xb190db3c841bc49bfe1c79b0bd7a23b38a5ab18d IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.003521789407 35.740056302
0x6942d4933ae3f212636a2be883cef1c35b5ce03ecd2e313f32f191e863f8fb9eGet Reward299518382022-06-24 16:53:3220 hrs 32 mins ago0xb190db3c841bc49bfe1c79b0bd7a23b38a5ab18d IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.002538775773 33.69132061
0x04a1b4cc3ae77855622dba66b056f36a9ae6978a28ec1e38e459882e5dc8e8c8Stake299483052022-06-24 14:42:2922 hrs 43 mins ago0x076eeae11e645d27b4a180d74982332a71feb660 IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.003079635651 31.252962296
0xa27bd5925494074f5ef3a329516dbc1a87fbd6423a88d3698b1b509e90be7602Get Reward299471532022-06-24 14:00:3523 hrs 25 mins ago0x076eeae11e645d27b4a180d74982332a71feb660 IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.002838635906 30.053104226
0xa8951baeb5ecd6a53cc278fb785b22eadadf17aacb5e91313b7e92503166f518Stake299452662022-06-24 12:55:371 day 30 mins ago0xd0b314003739728584be93753098c0f01b236b78 IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.002956880123 30.010861219
0x23c42af6b8591a3b089837dcdf770f013c85008e0fc613a5a0e1afe0a82b5837Stake299447842022-06-24 12:36:411 day 49 mins ago0xfe008049ac2d185c4c7ead09af460fff170bf60a IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.002956515201 30.003503194
0x02f88aac4c2f9e86a8520f495534b89dae5a99578558acb6662c5496d1757208Stake299447692022-06-24 12:36:111 day 50 mins ago0x0102585172b3f9aa55864393bd3c3ee094d91f03 IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.002956252966 30.000841964
0xf64bbc824fb836e0e9a67bb39876720b722516e1d17f74c9891f46cb70b7bf06Get Reward299446862022-06-24 12:33:171 day 53 mins ago0x0102585172b3f9aa55864393bd3c3ee094d91f03 IN  0x25acd9b7684207ce3854cad69966bb5792e9ca860 MATIC0.002406914535 30.069893251
[ Download CSV Export 
Parent Txn Hash Block From To Value
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

Contract Source Code (Solidity Standard Json-Input format)

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

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
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.