POL Price: $0.618695 (-5.37%)
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Get Reward565599132024-05-04 7:43:49223 days ago1714808629IN
0x1E5f238E...f17969D5D
0 POL0.0020176230.00000139
Withdraw565598462024-05-04 7:41:09223 days ago1714808469IN
0x1E5f238E...f17969D5D
0 POL0.0033190830.00000098
Get Reward550989812024-03-26 11:45:13261 days ago1711453513IN
0x1E5f238E...f17969D5D
0 POL0.0046586169.26890953
Withdraw550988712024-03-26 11:41:18261 days ago1711453278IN
0x1E5f238E...f17969D5D
0 POL0.0077543782.87065345
Get Reward542320472024-03-03 21:53:44284 days ago1709502824IN
0x1E5f238E...f17969D5D
0 POL0.0021915632.58635149
Withdraw542319802024-03-03 21:51:21284 days ago1709502681IN
0x1E5f238E...f17969D5D
0 POL0.0030935333.06051197
Get Reward534858182024-02-13 20:38:51303 days ago1707856731IN
0x1E5f238E...f17969D5D
0 POL0.0020952631.15445511
Withdraw534857782024-02-13 20:37:27303 days ago1707856647IN
0x1E5f238E...f17969D5D
0 POL0.0029117131.12539
Get Reward525507722024-01-20 16:56:06327 days ago1705769766IN
0x1E5f238E...f17969D5D
0 POL0.0022447433.37712034
Withdraw525507442024-01-20 16:55:06327 days ago1705769706IN
0x1E5f238E...f17969D5D
0 POL0.0024799332.42931625
Withdraw523285302024-01-14 22:29:05333 days ago1705271345IN
0x1E5f238E...f17969D5D
0 POL0.0028042830.00000004
Get Reward522119292024-01-11 21:16:15336 days ago1705007775IN
0x1E5f238E...f17969D5D
0 POL0.0020878131.04369804
Withdraw522118562024-01-11 21:13:41336 days ago1705007621IN
0x1E5f238E...f17969D5D
0 POL0.0029303231.31623956
Get Reward510610472023-12-12 22:26:13366 days ago1702419973IN
0x1E5f238E...f17969D5D
0 POL0.00824426122.58400204
Withdraw510609312023-12-12 22:22:07366 days ago1702419727IN
0x1E5f238E...f17969D5D
0 POL0.0090447296.66060632
Withdraw509529342023-12-10 2:29:53369 days ago1702175393IN
0x1E5f238E...f17969D5D
0 POL0.0036374951.32486302
Get Reward509528882023-12-10 2:28:15369 days ago1702175295IN
0x1E5f238E...f17969D5D
0 POL0.005004957.42597934
Get Reward508043202023-12-06 9:19:39372 days ago1701854379IN
0x1E5f238E...f17969D5D
0 POL0.0053313179.27128894
Withdraw508042732023-12-06 9:17:59372 days ago1701854279IN
0x1E5f238E...f17969D5D
0 POL0.007659677.87317985
Withdraw505106942023-11-28 23:35:39380 days ago1701214539IN
0x1E5f238E...f17969D5D
0 POL0.00749142105.73938718
Get Reward505106562023-11-28 23:34:19380 days ago1701214459IN
0x1E5f238E...f17969D5D
0 POL0.0074172997.8483786
Get Reward502311222023-11-21 23:58:56387 days ago1700611136IN
0x1E5f238E...f17969D5D
0 POL0.0020176230.00002272
Withdraw502310142023-11-21 23:55:06387 days ago1700610906IN
0x1E5f238E...f17969D5D
0 POL0.0033201630.00003289
Get Reward500217452023-11-16 17:23:59392 days ago1700155439IN
0x1E5f238E...f17969D5D
0 POL0.02444736363.50791208
Withdraw500215612023-11-16 17:17:25392 days ago1700155045IN
0x1E5f238E...f17969D5D
0 POL0.03544734320.39611854
View all transactions

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

Contract Source Code Verified (Exact Match)

Contract Name:
LuxyStake

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 8 : LuxyStake.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 LuxyStake is Pausable, Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20;

    /* ========== STATE VARIABLES ========== */
    IERC20 public luxyToken;
    uint256 public periodFinish;
    uint256 public rewardRate;
    uint256 public constant rewardsDuration = 270 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);
    event Composed(address indexed user, uint256 reward);

    /* ========== 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
     */
    constructor(address _luxyToken) {
        luxyToken = IERC20(_luxyToken);
    }

    /* ========== 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, "LuxyStake::CANNOT_STAKE_ZERO");
        _totalSupply += amount;
        _balances[_msgSender()] += amount;
        luxyToken.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, "LuxyStake::CANNOT_WITHDRAW_ZERO");
        require(
            _balances[_msgSender()] >= amount,
            "LuxyStake::INSUFFICIENT_TOKEN_AMOUNT"
        );
        _totalSupply -= amount;
        _balances[_msgSender()] -= amount;
        luxyToken.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 compound your rewards into the pool
     */
    function compound()
        public
        whenNotPaused
        nonReentrant
        updateReward(_msgSender())
    {
        uint256 reward = earned(_msgSender());
        require(reward > 0, "LuxyStake::ZERO_REWARD_AMOUNT");
        rewards[_msgSender()] = 0;
        _totalSupply += reward;
        _balances[_msgSender()] += reward;

        emit Composed(_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)) - _totalSupply;
        require(
            rewardRate <= balance / rewardsDuration,
            "LuxyStake::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(luxyToken),
            "LuxyStake::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"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"Composed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":[],"name":"compound","outputs":[],"stateMutability":"nonpayable","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":"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"}]

608060405234801561001057600080fd5b506040516117e93803806117e983398101604081905261002f916100c4565b6000805460ff191690556100423361006b565b60018055600280546001600160a01b0319166001600160a01b03929092169190911790556100f2565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b6000602082840312156100d5578081fd5b81516001600160a01b03811681146100eb578182fd5b9392505050565b6116e8806101016000396000f3fe608060405234801561001057600080fd5b50600436106101ad5760003560e01c806380faa57d116100ee578063c8f33c9111610097578063e9fad8ee11610071578063e9fad8ee14610344578063ebe2b12b1461034c578063f2fde38b14610355578063f69e20461461036857600080fd5b8063c8f33c911461032a578063cd3daf9d14610333578063df136d651461033b57600080fd5b80638da5cb5b116100c85780638da5cb5b146102f9578063a694fc3a1461030f578063a75a2c9a1461032257600080fd5b806380faa57d146102be5780638980f11f146102c65780638b876347146102d957600080fd5b8063386a95251161015b5780635c975abb116101355780635c975abb1461026e57806370a0823114610284578063715018a6146102ad5780637b0a47ee146102b557600080fd5b8063386a9525146102485780633c6b16ab146102535780633d18b9121461026657600080fd5b80631c1f78eb1161018c5780631c1f78eb146102005780632af60faf146102085780632e1a7d4d1461023357600080fd5b80628cc262146101b25780630700037d146101d857806318160ddd146101f8575b600080fd5b6101c56101c0366004611520565b610370565b6040519081526020015b60405180910390f35b6101c56101e6366004611520565b60096020526000908152604090205481565b6007546101c5565b6101c56103ed565b60025461021b906001600160a01b031681565b6040516001600160a01b0390911681526020016101cf565b610246610241366004611583565b610406565b005b6101c5630163f50081565b610246610261366004611583565b610622565b6102466108ba565b60005460ff1660405190151581526020016101cf565b6101c5610292366004611520565b6001600160a01b03166000908152600a602052604090205490565b6102466109e6565b6101c560045481565b6101c5610a52565b6102466102d436600461153a565b610a69565b6101c56102e7366004611520565b60086020526000908152604090205481565b60005461010090046001600160a01b031661021b565b61024661031d366004611583565b610bb9565b6101c5610d94565b6101c560055481565b6101c5610dce565b6101c560065481565b610246610e30565b6101c560035481565b610246610363366004611520565b610e51565b610246610f39565b6001600160a01b0381166000908152600960209081526040808320546008909252822054670de0b6b3a7640000906103a6610dce565b6103b09190611659565b6001600160a01b0385166000908152600a60205260409020546103d3919061163a565b6103dd919061161a565b6103e79190611602565b92915050565b6000630163f500600454610401919061163a565b905090565b6002600154141561045e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026001553361046c610dce565b600655610477610a52565b6005556001600160a01b038116156104be5761049281610370565b6001600160a01b0382166000908152600960209081526040808320939093556006546008909152919020555b6000821161050e5760405162461bcd60e51b815260206004820152601f60248201527f4c7578795374616b653a3a43414e4e4f545f57495448445241575f5a45524f006044820152606401610455565b336000908152600a60205260409020548211156105925760405162461bcd60e51b8152602060048201526024808201527f4c7578795374616b653a3a494e53554646494349454e545f544f4b454e5f414d60448201527f4f554e54000000000000000000000000000000000000000000000000000000006064820152608401610455565b81600760008282546105a49190611659565b9091555050336000908152600a6020526040812080548492906105c8908490611659565b90915550506002546105e4906001600160a01b0316338461111b565b60405182815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a2505060018055565b6000546001600160a01b036101009091041633146106825760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610455565b600061068c610dce565b600655610697610a52565b6005556001600160a01b038116156106de576106b281610370565b6001600160a01b0382166000908152600960209081526040808320939093556006546008909152919020555b60035442106106fd576106f5630163f5008361161a565b600455610740565b60004260035461070d9190611659565b905060006004548261071f919061163a565b9050630163f5006107308286611602565b61073a919061161a565b60045550505b6007546002546040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600092916001600160a01b0316906370a082319060240160206040518083038186803b1580156107a157600080fd5b505afa1580156107b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d9919061159b565b6107e39190611659565b90506107f3630163f5008261161a565b600454111561086a5760405162461bcd60e51b815260206004820152602360248201527f4c7578795374616b653a3a50524f56494445445f5245574152445f544f4f5f4860448201527f49474800000000000000000000000000000000000000000000000000000000006064820152608401610455565b42600581905561087f90630163f50090611602565b6003556040518381527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a1505050565b6002600154141561090d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610455565b60026001553361091b610dce565b600655610926610a52565b6005556001600160a01b0381161561096d5761094181610370565b6001600160a01b0382166000908152600960209081526040808320939093556006546008909152919020555b3360009081526009602052604090205480156109de57336000818152600960205260408120556002546109ac916001600160a01b03909116908361111b565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048690602001610612565b505060018055565b6000546001600160a01b03610100909104163314610a465760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610455565b610a5060006111c9565b565b60006003544210610a64575060035490565b504290565b6000546001600160a01b03610100909104163314610ac95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610455565b6002546001600160a01b0383811691161415610b4d5760405162461bcd60e51b815260206004820152602860248201527f4c7578795374616b653a3a43414e4e4f545f57495448445241575f5354414b4960448201527f4e475f544f4b454e0000000000000000000000000000000000000000000000006064820152608401610455565b600054610b739061010090046001600160a01b03166001600160a01b038416908361111b565b604080516001600160a01b0384168152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28910160405180910390a15050565b60026001541415610c0c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610455565b600260015560005460ff1615610c645760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610455565b33610c6d610dce565b600655610c78610a52565b6005556001600160a01b03811615610cbf57610c9381610370565b6001600160a01b0382166000908152600960209081526040808320939093556006546008909152919020555b60008211610d0f5760405162461bcd60e51b815260206004820152601c60248201527f4c7578795374616b653a3a43414e4e4f545f5354414b455f5a45524f000000006044820152606401610455565b8160076000828254610d219190611602565b9091555050336000908152600a602052604081208054849290610d45908490611602565b9091555050600254610d62906001600160a01b0316333085611239565b60405182815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d90602001610612565b60004260035410610dc857600042600354610daf9190611659565b9050600060045482610dc1919061163a565b9392505050565b50600090565b600060075460001415610de2575060065490565b600754600454600554610df3610a52565b610dfd9190611659565b610e07919061163a565b610e1990670de0b6b3a764000061163a565b610e23919061161a565b6006546104019190611602565b336000908152600a6020526040902054610e4990610406565b610a506108ba565b6000546001600160a01b03610100909104163314610eb15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610455565b6001600160a01b038116610f2d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610455565b610f36816111c9565b50565b60005460ff1615610f8c5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610455565b60026001541415610fdf5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610455565b600260015533610fed610dce565b600655610ff8610a52565b6005556001600160a01b0381161561103f5761101381610370565b6001600160a01b0382166000908152600960209081526040808320939093556006546008909152919020555b600061104a33610370565b90506000811161109c5760405162461bcd60e51b815260206004820152601d60248201527f4c7578795374616b653a3a5a45524f5f5245574152445f414d4f554e540000006044820152606401610455565b336000908152600960205260408120819055600780548392906110c0908490611602565b9091555050336000908152600a6020526040812080548392906110e4908490611602565b909155505060405181815233907f08b4ae2732a284e6ed93454abdd94964e5d85b55ff4227a4bf95a05a1484f63790602001610612565b6040516001600160a01b0383166024820152604481018290526111c49084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611290565b505050565b600080546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b6040516001600160a01b038085166024830152831660448201526064810182905261128a9085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611160565b50505050565b60006112e5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113759092919063ffffffff16565b8051909150156111c457808060200190518101906113039190611563565b6111c45760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610455565b6060611384848460008561138c565b949350505050565b6060824710156114045760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610455565b843b6114525760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610455565b600080866001600160a01b0316858760405161146e91906115b3565b60006040518083038185875af1925050503d80600081146114ab576040519150601f19603f3d011682016040523d82523d6000602084013e6114b0565b606091505b50915091506114c08282866114cb565b979650505050505050565b606083156114da575081610dc1565b8251156114ea5782518084602001fd5b8160405162461bcd60e51b815260040161045591906115cf565b80356001600160a01b038116811461151b57600080fd5b919050565b600060208284031215611531578081fd5b610dc182611504565b6000806040838503121561154c578081fd5b61155583611504565b946020939093013593505050565b600060208284031215611574578081fd5b81518015158114610dc1578182fd5b600060208284031215611594578081fd5b5035919050565b6000602082840312156115ac578081fd5b5051919050565b600082516115c5818460208701611670565b9190910192915050565b60208152600082518060208401526115ee816040850160208701611670565b601f01601f19169190910160400192915050565b600082198211156116155761161561169c565b500190565b60008261163557634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156116545761165461169c565b500290565b60008282101561166b5761166b61169c565b500390565b60005b8381101561168b578181015183820152602001611673565b8381111561128a5750506000910152565b634e487b7160e01b600052601160045260246000fdfea264697066735822122034be3ffa89b3703e0db95d45a1e512d31208cac8473e56b5b2119c9603ceafce64736f6c63430008040033000000000000000000000000d4945a3d0de9923035521687d4bf18cc9b0c7c2a

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101ad5760003560e01c806380faa57d116100ee578063c8f33c9111610097578063e9fad8ee11610071578063e9fad8ee14610344578063ebe2b12b1461034c578063f2fde38b14610355578063f69e20461461036857600080fd5b8063c8f33c911461032a578063cd3daf9d14610333578063df136d651461033b57600080fd5b80638da5cb5b116100c85780638da5cb5b146102f9578063a694fc3a1461030f578063a75a2c9a1461032257600080fd5b806380faa57d146102be5780638980f11f146102c65780638b876347146102d957600080fd5b8063386a95251161015b5780635c975abb116101355780635c975abb1461026e57806370a0823114610284578063715018a6146102ad5780637b0a47ee146102b557600080fd5b8063386a9525146102485780633c6b16ab146102535780633d18b9121461026657600080fd5b80631c1f78eb1161018c5780631c1f78eb146102005780632af60faf146102085780632e1a7d4d1461023357600080fd5b80628cc262146101b25780630700037d146101d857806318160ddd146101f8575b600080fd5b6101c56101c0366004611520565b610370565b6040519081526020015b60405180910390f35b6101c56101e6366004611520565b60096020526000908152604090205481565b6007546101c5565b6101c56103ed565b60025461021b906001600160a01b031681565b6040516001600160a01b0390911681526020016101cf565b610246610241366004611583565b610406565b005b6101c5630163f50081565b610246610261366004611583565b610622565b6102466108ba565b60005460ff1660405190151581526020016101cf565b6101c5610292366004611520565b6001600160a01b03166000908152600a602052604090205490565b6102466109e6565b6101c560045481565b6101c5610a52565b6102466102d436600461153a565b610a69565b6101c56102e7366004611520565b60086020526000908152604090205481565b60005461010090046001600160a01b031661021b565b61024661031d366004611583565b610bb9565b6101c5610d94565b6101c560055481565b6101c5610dce565b6101c560065481565b610246610e30565b6101c560035481565b610246610363366004611520565b610e51565b610246610f39565b6001600160a01b0381166000908152600960209081526040808320546008909252822054670de0b6b3a7640000906103a6610dce565b6103b09190611659565b6001600160a01b0385166000908152600a60205260409020546103d3919061163a565b6103dd919061161a565b6103e79190611602565b92915050565b6000630163f500600454610401919061163a565b905090565b6002600154141561045e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026001553361046c610dce565b600655610477610a52565b6005556001600160a01b038116156104be5761049281610370565b6001600160a01b0382166000908152600960209081526040808320939093556006546008909152919020555b6000821161050e5760405162461bcd60e51b815260206004820152601f60248201527f4c7578795374616b653a3a43414e4e4f545f57495448445241575f5a45524f006044820152606401610455565b336000908152600a60205260409020548211156105925760405162461bcd60e51b8152602060048201526024808201527f4c7578795374616b653a3a494e53554646494349454e545f544f4b454e5f414d60448201527f4f554e54000000000000000000000000000000000000000000000000000000006064820152608401610455565b81600760008282546105a49190611659565b9091555050336000908152600a6020526040812080548492906105c8908490611659565b90915550506002546105e4906001600160a01b0316338461111b565b60405182815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a2505060018055565b6000546001600160a01b036101009091041633146106825760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610455565b600061068c610dce565b600655610697610a52565b6005556001600160a01b038116156106de576106b281610370565b6001600160a01b0382166000908152600960209081526040808320939093556006546008909152919020555b60035442106106fd576106f5630163f5008361161a565b600455610740565b60004260035461070d9190611659565b905060006004548261071f919061163a565b9050630163f5006107308286611602565b61073a919061161a565b60045550505b6007546002546040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600092916001600160a01b0316906370a082319060240160206040518083038186803b1580156107a157600080fd5b505afa1580156107b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d9919061159b565b6107e39190611659565b90506107f3630163f5008261161a565b600454111561086a5760405162461bcd60e51b815260206004820152602360248201527f4c7578795374616b653a3a50524f56494445445f5245574152445f544f4f5f4860448201527f49474800000000000000000000000000000000000000000000000000000000006064820152608401610455565b42600581905561087f90630163f50090611602565b6003556040518381527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a1505050565b6002600154141561090d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610455565b60026001553361091b610dce565b600655610926610a52565b6005556001600160a01b0381161561096d5761094181610370565b6001600160a01b0382166000908152600960209081526040808320939093556006546008909152919020555b3360009081526009602052604090205480156109de57336000818152600960205260408120556002546109ac916001600160a01b03909116908361111b565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048690602001610612565b505060018055565b6000546001600160a01b03610100909104163314610a465760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610455565b610a5060006111c9565b565b60006003544210610a64575060035490565b504290565b6000546001600160a01b03610100909104163314610ac95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610455565b6002546001600160a01b0383811691161415610b4d5760405162461bcd60e51b815260206004820152602860248201527f4c7578795374616b653a3a43414e4e4f545f57495448445241575f5354414b4960448201527f4e475f544f4b454e0000000000000000000000000000000000000000000000006064820152608401610455565b600054610b739061010090046001600160a01b03166001600160a01b038416908361111b565b604080516001600160a01b0384168152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28910160405180910390a15050565b60026001541415610c0c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610455565b600260015560005460ff1615610c645760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610455565b33610c6d610dce565b600655610c78610a52565b6005556001600160a01b03811615610cbf57610c9381610370565b6001600160a01b0382166000908152600960209081526040808320939093556006546008909152919020555b60008211610d0f5760405162461bcd60e51b815260206004820152601c60248201527f4c7578795374616b653a3a43414e4e4f545f5354414b455f5a45524f000000006044820152606401610455565b8160076000828254610d219190611602565b9091555050336000908152600a602052604081208054849290610d45908490611602565b9091555050600254610d62906001600160a01b0316333085611239565b60405182815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d90602001610612565b60004260035410610dc857600042600354610daf9190611659565b9050600060045482610dc1919061163a565b9392505050565b50600090565b600060075460001415610de2575060065490565b600754600454600554610df3610a52565b610dfd9190611659565b610e07919061163a565b610e1990670de0b6b3a764000061163a565b610e23919061161a565b6006546104019190611602565b336000908152600a6020526040902054610e4990610406565b610a506108ba565b6000546001600160a01b03610100909104163314610eb15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610455565b6001600160a01b038116610f2d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610455565b610f36816111c9565b50565b60005460ff1615610f8c5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610455565b60026001541415610fdf5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610455565b600260015533610fed610dce565b600655610ff8610a52565b6005556001600160a01b0381161561103f5761101381610370565b6001600160a01b0382166000908152600960209081526040808320939093556006546008909152919020555b600061104a33610370565b90506000811161109c5760405162461bcd60e51b815260206004820152601d60248201527f4c7578795374616b653a3a5a45524f5f5245574152445f414d4f554e540000006044820152606401610455565b336000908152600960205260408120819055600780548392906110c0908490611602565b9091555050336000908152600a6020526040812080548392906110e4908490611602565b909155505060405181815233907f08b4ae2732a284e6ed93454abdd94964e5d85b55ff4227a4bf95a05a1484f63790602001610612565b6040516001600160a01b0383166024820152604481018290526111c49084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611290565b505050565b600080546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b6040516001600160a01b038085166024830152831660448201526064810182905261128a9085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611160565b50505050565b60006112e5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113759092919063ffffffff16565b8051909150156111c457808060200190518101906113039190611563565b6111c45760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610455565b6060611384848460008561138c565b949350505050565b6060824710156114045760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610455565b843b6114525760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610455565b600080866001600160a01b0316858760405161146e91906115b3565b60006040518083038185875af1925050503d80600081146114ab576040519150601f19603f3d011682016040523d82523d6000602084013e6114b0565b606091505b50915091506114c08282866114cb565b979650505050505050565b606083156114da575081610dc1565b8251156114ea5782518084602001fd5b8160405162461bcd60e51b815260040161045591906115cf565b80356001600160a01b038116811461151b57600080fd5b919050565b600060208284031215611531578081fd5b610dc182611504565b6000806040838503121561154c578081fd5b61155583611504565b946020939093013593505050565b600060208284031215611574578081fd5b81518015158114610dc1578182fd5b600060208284031215611594578081fd5b5035919050565b6000602082840312156115ac578081fd5b5051919050565b600082516115c5818460208701611670565b9190910192915050565b60208152600082518060208401526115ee816040850160208701611670565b601f01601f19169190910160400192915050565b600082198211156116155761161561169c565b500190565b60008261163557634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156116545761165461169c565b500290565b60008282101561166b5761166b61169c565b500390565b60005b8381101561168b578181015183820152602001611673565b8381111561128a5750506000910152565b634e487b7160e01b600052601160045260246000fdfea264697066735822122034be3ffa89b3703e0db95d45a1e512d31208cac8473e56b5b2119c9603ceafce64736f6c63430008040033

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

000000000000000000000000d4945a3d0de9923035521687d4bf18cc9b0c7c2a

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

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


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.