ETH Price: $3,160.37 (+2.92%)
Gas: 1 Gwei

Contract

0x6F86de648aBCFd67E14C6810341bBDf6D5EB559c
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw182728932023-10-03 22:10:47283 days ago1696371047IN
0x6F86de64...6D5EB559c
0 ETH0.0011443612.68132244
Get Reward179981552023-08-26 10:10:23322 days ago1693044623IN
0x6F86de64...6D5EB559c
0 ETH0.0012442915.32609818
Withdraw165203302023-01-30 14:46:47529 days ago1675090007IN
0x6F86de64...6D5EB559c
0 ETH0.0016739618.5452451
Get Reward165203252023-01-30 14:45:47529 days ago1675089947IN
0x6F86de64...6D5EB559c
0 ETH0.0018390619.09965487
Withdraw164767562023-01-24 12:46:11535 days ago1674564371IN
0x6F86de64...6D5EB559c
0 ETH0.0014873416.48208443
Get Reward164766692023-01-24 12:28:47535 days ago1674563327IN
0x6F86de64...6D5EB559c
0 ETH0.0012724215.67255974
Withdraw162683342022-12-26 10:28:47565 days ago1672050527IN
0x6F86de64...6D5EB559c
0 ETH0.0010126611.21895139
Get Reward160904612022-12-01 14:09:47589 days ago1669903787IN
0x6F86de64...6D5EB559c
0 ETH0.0014435914.99243052
Withdraw156984152022-10-07 19:52:47644 days ago1665172367IN
0x6F86de64...6D5EB559c
0 ETH0.000759628.41674334
Get Reward156984022022-10-07 19:50:11644 days ago1665172211IN
0x6F86de64...6D5EB559c
0 ETH0.000846988.61737981
Withdraw156011312022-09-24 5:28:59658 days ago1663997339IN
0x6F86de64...6D5EB559c
0 ETH0.000508445.63363556
Get Reward156011222022-09-24 5:26:59658 days ago1663997219IN
0x6F86de64...6D5EB559c
0 ETH0.000537445.46810585
Withdraw155884752022-09-22 11:06:35660 days ago1663844795IN
0x6F86de64...6D5EB559c
0 ETH0.000648787.18864007
Get Reward155827832022-09-21 15:57:35660 days ago1663775855IN
0x6F86de64...6D5EB559c
0 ETH0.0014129314.37543519
Withdraw155551192022-09-17 18:34:35664 days ago1663439675IN
0x6F86de64...6D5EB559c
0 ETH0.000567376.28657738
Get Reward155551142022-09-17 18:33:35664 days ago1663439615IN
0x6F86de64...6D5EB559c
0 ETH0.000524025.33150639
Withdraw153206072022-08-11 12:06:53701 days ago1660219613IN
0x6F86de64...6D5EB559c
0 ETH0.0014823916.42725067
Get Reward153205652022-08-11 11:57:00701 days ago1660219020IN
0x6F86de64...6D5EB559c
0 ETH0.0010508812.94386894
Withdraw153075622022-08-09 10:48:06704 days ago1660042086IN
0x6F86de64...6D5EB559c
0 ETH0.0022458924.88476415
Get Reward153075532022-08-09 10:45:13704 days ago1660041913IN
0x6F86de64...6D5EB559c
0 ETH0.0023737524.15105635
Emergency Withdr...152906192022-08-06 19:31:54706 days ago1659814314IN
0x6F86de64...6D5EB559c
0 ETH0.00030024.21617649
Withdraw152784202022-08-04 22:02:29708 days ago1659650549IN
0x6F86de64...6D5EB559c
0 ETH0.000643277.12756699
Get Reward152783982022-08-04 21:58:53708 days ago1659650333IN
0x6F86de64...6D5EB559c
0 ETH0.0010313310.4929397
Withdraw152618892022-08-02 8:04:20711 days ago1659427460IN
0x6F86de64...6D5EB559c
0 ETH0.000767998.51061707
Get Reward152618842022-08-02 8:03:10711 days ago1659427390IN
0x6F86de64...6D5EB559c
0 ETH0.000591627.28704145
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CryptoCartPool

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

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

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";
import "./LPTokenWrapper.sol";
import "./interfaces/IERC20Metadata.sol";

/**
 * @title CryptoCart staking pool
 * @dev This contract is a time-based yield farming pool with effective-staking multiplier mechanics.
 *
 * * * NOTE: A withdrawal fee of 1.5% is included which is sent to the treasury address. * * *
 */

contract CryptoCartPool is LPTokenWrapper, Ownable {
    using SafeERC20 for IERC20Metadata;
    using SafeMath for uint256;

    IERC20Metadata public immutable rewardToken;
    uint256 public immutable stakingTokenMultiplier;
    uint256 public immutable duration;
    uint256 public immutable deployedTime;

    uint256 public periodFinish;
    uint256 public lastUpdateTime;
    uint256 public rewardRate;
    uint256 public rewardPerTokenStored;
    uint256 public totalRewardsPaid;

    struct RewardInfo {
        uint256 rewards;
        uint256 userRewardPerTokenPaid;
    }

    mapping(address => RewardInfo) public rewards;

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

    // Set the staking token for the contract
    constructor(
        uint256 _duration,
        address _stakingToken,
        IERC20Metadata _rewardToken,
        address _treasury
    ) LPTokenWrapper(_stakingToken, _treasury) Ownable() {
        require(_duration != 0 && _stakingToken != address(0) && _rewardToken != IERC20Metadata(address(0)) && _treasury != address(0), "!constructor");
        stakingTokenMultiplier = 10 ** uint256(IERC20Metadata(_stakingToken).decimals());
        rewardToken = _rewardToken;
        duration = _duration;
        deployedTime = block.timestamp;
    }

    function setNewTreasury(address _treasury) external onlyOwner() {
        treasury = _treasury;
    }

    function lastTimeRewardsActive() public view returns (uint256) {
        return Math.min(block.timestamp, periodFinish);
    }

    /* @dev Returns the current rate of rewards per token (doh) */
    function rewardPerToken() public view returns (uint256) {
        // Do not distribute rewards before startTime.
        if (block.timestamp < startTime) {
            return 0;
        }

        if (totalSupply == 0) {
            return rewardPerTokenStored;
        }

        // Effective total supply takes into account all the multipliers bought by userbase.
        // The returrn value is time-based on last time the contract had rewards active multipliede by the reward-rate.
        // It's evened out with a division of bonus effective supply.
        return rewardPerTokenStored
            .add(
                lastTimeRewardsActive()
                .sub(lastUpdateTime)
                .mul(rewardRate)
                .mul(stakingTokenMultiplier)
                .div(totalSupply)
            );
    }

    /** @dev Returns the claimable tokens for user.*/
    function earned(address account) public view returns (uint256) {
        uint256 effectiveBalance = _balances[account].balance;
        RewardInfo memory userRewards = rewards[account];
        return effectiveBalance.mul(rewardPerToken().sub(userRewards.userRewardPerTokenPaid)).div(stakingTokenMultiplier).add(userRewards.rewards);
    }

    /** @dev Staking function which updates the user balances in the parent contract */
    function stake(uint256 amount) public override {
        require(amount > 0, "CryptoCartPool::stake: Cannot stake 0");
        updateReward(msg.sender);

        // Call the parent to adjust the balances.
        super.stake(amount);

        emit Staked(msg.sender, amount);
    }

    /** @dev Withdraw function, this pool contains a tax which is defined in the constructor */
    function withdraw(uint256 amount) public override {
        require(amount > 0, "CryptoCartPool::withdraw: Cannot withdraw 0");
        updateReward(msg.sender);

        // Adjust regular balances
        super.withdraw(amount);

        emit Withdrawn(msg.sender, amount);
    }

    // Ease-of-access function for user to remove assets from the pool.
    function exit() external {
        getReward();
        withdraw(balanceOf(msg.sender));
    }

    // Sends out the reward tokens to the user.
    function getReward() public {
        updateReward(msg.sender);
        uint256 reward = earned(msg.sender);
        if (reward > 0) {
            rewards[msg.sender].rewards = 0;
            emit RewardPaid(msg.sender, reward);
            rewardToken.safeTransfer(msg.sender, reward);
            totalRewardsPaid = totalRewardsPaid.add(reward);
        }
    }

    // Called to start the pool.
    // Owner must send rewards to the contract and the balance of this token is used as the reward to account for fee on transfer tokens.
    // The reward period will be the duration of the pool.
    function notifyRewardAmount() external onlyOwner() {
        uint256 reward = rewardToken.balanceOf(address(this));
        require(reward > 0, "!reward added");
        // Update reward values
        updateRewardPerTokenStored();

        // Rewardrate must stay at a constant since it's used by end-users claiming rewards after the reward period has finished.
        if (block.timestamp >= periodFinish) {
            rewardRate = reward.div(duration);
        } else {
            // Remaining time for the pool
            uint256 remainingTime = periodFinish.sub(block.timestamp);
            // And the rewards
            uint256 rewardsRemaining = remainingTime.mul(rewardRate);
            // Set the current rate
            rewardRate = reward.add(rewardsRemaining).div(duration);
        }

        // Set the last updated
        lastUpdateTime = block.timestamp;
        startTime = block.timestamp;
        // Add the period to be equal to duration set.s
        periodFinish = block.timestamp.add(duration);
        emit RewardAdded(reward);
    }

    // Ejects any remaining tokens from the pool.
    // Callable only after the pool has started and the pools reward distribution period has finished.
    function eject() external onlyOwner() {
        require(block.timestamp >= periodFinish + 12 hours, "CryptoCartPool::eject: Cannot eject before period finishes or pool has started");
        uint256 currBalance = rewardToken.balanceOf(address(this));
        rewardToken.safeTransfer(msg.sender, currBalance);
    }

    // Forcefully retire a pool
    // Only sets the period finish to 0
    // This will prevent more rewards from being disbursed
    function kill() external onlyOwner() {
        periodFinish = block.timestamp;
    }

    // Callable only after the pool has started and the pools reward distribution period has finished.
    function emergencyWithdraw() external {
        require(block.timestamp >= periodFinish + 12 hours, "CryptoCartPool::emergencyWithdraw: Cannot emergency withdraw before period finishes or pool has started");
        uint256 fullWithdrawal = balanceOf(msg.sender);
        require(fullWithdrawal > 0, "CryptoCartPool::emergencyWithdraw: Cannot withdraw 0");
        super.withdraw(fullWithdrawal);
        emit Withdrawn(msg.sender, fullWithdrawal);
    }

    function updateRewardPerTokenStored() internal {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = lastTimeRewardsActive();
    }

    function updateReward(address account) internal {
        updateRewardPerTokenStored();
        rewards[account].rewards = earned(account);
        rewards[account].userRewardPerTokenPaid = rewardPerTokenStored;
    }
}

File 2 of 10 : IERC20Metadata.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IERC20Metadata is IERC20 {
    function decimals() external view returns (uint8);
}

File 3 of 10 : LPTokenWrapper.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

abstract contract LPTokenWrapper {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    IERC20 public immutable stakingToken;

    address public treasury;
    // Returns the total staked tokens within the contract
    uint256 public totalSupply;
    uint256 public startTime;
    uint256 public unstakingFee = 15;

    struct Balance {
        uint256 balance;
    }

    mapping(address => Balance) internal _balances;

    constructor(
        address _stakingToken,
        address _treasury
    ) {
        stakingToken = IERC20(_stakingToken);
        treasury = _treasury;
    }

    // Returns staking balance of the account
    function balanceOf(address account) public view returns (uint256) {
        return _balances[account].balance;
    }

    // Stake funds into the pool
    function stake(uint256 amount) public virtual {
        stakingToken.safeTransferFrom(msg.sender, address(this), amount);

        // Increment sender's balances and total supply
        _balances[msg.sender].balance = _balances[msg.sender].balance.add(amount);
        totalSupply = totalSupply.add(amount);
    }

    // Subtract balances withdrawn from the user
    function withdraw(uint256 amount) public virtual {
        totalSupply = totalSupply.sub(amount);
        _balances[msg.sender].balance = _balances[msg.sender].balance.sub(amount);

        // Calculate the withdraw tax (it's 1.5% of the amount)
        uint256 tax = amount.mul(unstakingFee).div(1000);

        // Transfer the tokens to user
        stakingToken.safeTransfer(msg.sender, amount - tax);
        // Tax to treasury
        stakingToken.safeTransfer(treasury, tax);
    }
}

File 4 of 10 : Math.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

File 5 of 10 : 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 6 of 10 : 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 10 : 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 8 of 10 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 9 of 10 : 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;
    }
}

File 10 of 10 : 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);
            }
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"contract IERC20Metadata","name":"_rewardToken","type":"address"},{"internalType":"address","name":"_treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deployedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"duration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eject","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"kill","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastTimeRewardsActive","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":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"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":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20Metadata","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"rewards","type":"uint256"},{"internalType":"uint256","name":"userRewardPerTokenPaid","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setNewTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingTokenMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRewardsPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unstakingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

610120604052600f6003553480156200001757600080fd5b50604051620030213803806200302183398181016040528101906200003d9190620003e3565b82818173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b81525050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050620000d8620000cc620002b960201b60201c565b620002c160201b60201c565b60008414158015620001175750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b8015620001515750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156200018b5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b620001cd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001c490620004ae565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156200021457600080fd5b505afa15801562000229573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200024f919062000455565b60ff16600a6200026091906200053c565b60c081815250508173ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508360e0818152505042610100818152505050505050620007aa565b600033905090565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050620003988162000742565b92915050565b600081519050620003af816200075c565b92915050565b600081519050620003c68162000776565b92915050565b600081519050620003dd8162000790565b92915050565b600080600080608085870312156200040057620003ff62000707565b5b60006200041087828801620003b5565b9450506020620004238782880162000387565b935050604062000436878288016200039e565b9250506060620004498782880162000387565b91505092959194509250565b6000602082840312156200046e576200046d62000707565b5b60006200047e84828501620003cc565b91505092915050565b600062000496600c83620004d0565b9150620004a38262000719565b602082019050919050565b60006020820190508181036000830152620004c98162000487565b9050919050565b600082825260208201905092915050565b6000808291508390505b600185111562000533578086048111156200050b576200050a620006d8565b5b60018516156200051b5780820291505b80810290506200052b856200070c565b9450620004eb565b94509492505050565b60006200054982620006c1565b91506200055683620006c1565b9250620005857fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84846200058d565b905092915050565b6000826200059f576001905062000672565b81620005af576000905062000672565b8160018114620005c85760028114620005d35762000609565b600191505062000672565b60ff841115620005e857620005e7620006d8565b5b8360020a915084821115620006025762000601620006d8565b5b5062000672565b5060208310610133831016604e8410600b8410161715620006435782820a9050838111156200063d576200063c620006d8565b5b62000672565b620006528484846001620004e1565b925090508184048111156200066c576200066b620006d8565b5b81810290505b9392505050565b60006200068682620006a1565b9050919050565b60006200069a8262000679565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600080fd5b60008160011c9050919050565b7f21636f6e7374727563746f720000000000000000000000000000000000000000600082015250565b6200074d8162000679565b81146200075957600080fd5b50565b62000767816200068d565b81146200077357600080fd5b50565b6200078181620006c1565b81146200078d57600080fd5b50565b6200079b81620006cb565b8114620007a757600080fd5b50565b60805160601c60a05160601c60c05160e051610100516127d8620008496000396000610bb50152600081816107ff0152818161086f015281816108cb015261093b0152600081816105e501528181610fb901526110bf0152600081816106fd01528181610acb01528181610dd701528181610e870152611371015260008181610cd1015281816115a90152818161161401526117b001526127d86000f3fe608060405234801561001057600080fd5b50600436106101e45760003560e01c806378e979251161010f578063cd3daf9d116100a2578063e9fad8ee11610071578063e9fad8ee146104cc578063ebe2b12b146104d6578063f2fde38b146104f4578063f7c618c114610510576101e4565b8063cd3daf9d14610468578063db2e21bc14610486578063df136d6514610490578063e78b69f0146104ae576101e4565b80638f9a372d116100de5780638f9a372d146103f45780639eade65214610410578063a694fc3a1461042e578063c8f33c911461044a576101e4565b806378e97925146103905780637b0a47ee146103ae57806382e94ac5146103cc5780638da5cb5b146103d6576101e4565b80633d18b9121161018757806370a082311161015657806370a082311461031a578063715018a61461034a57806372f702f31461035457806374958e3514610372576101e4565b80633d18b912146102ca57806341c0e1b5146102d4578063461ac019146102de57806361d027b3146102fc576101e4565b80630fb5a6b4116101c35780630fb5a6b41461025457806318160ddd1461027257806320ba5698146102905780632e1a7d4d146102ae576101e4565b80628cc262146101e95780630700037d146102195780630c51dde41461024a575b600080fd5b61020360048036038101906101fe9190611c11565b61052e565b6040516102109190612136565b60405180910390f35b610233600480360381019061022e9190611c11565b610659565b604051610241929190612151565b60405180910390f35b61025261067d565b005b61025c610939565b6040516102699190612136565b60405180910390f35b61027a61095d565b6040516102879190612136565b60405180910390f35b610298610963565b6040516102a59190612136565b60405180910390f35b6102c860048036038101906102c39190611c6b565b610969565b005b6102d2610a0f565b005b6102dc610b2e565b005b6102e6610bb3565b6040516102f39190612136565b60405180910390f35b610304610bd7565b6040516103119190611f03565b60405180910390f35b610334600480360381019061032f9190611c11565b610bfb565b6040516103419190612136565b60405180910390f35b610352610c47565b005b61035c610ccf565b6040516103699190611f99565b60405180910390f35b61037a610cf3565b6040516103879190612136565b60405180910390f35b610398610cf9565b6040516103a59190612136565b60405180910390f35b6103b6610cff565b6040516103c39190612136565b60405180910390f35b6103d4610d05565b005b6103de610ece565b6040516103eb9190611f03565b60405180910390f35b61040e60048036038101906104099190611c11565b610ef8565b005b610418610fb7565b6040516104259190612136565b60405180910390f35b61044860048036038101906104439190611c6b565b610fdb565b005b610452611081565b60405161045f9190612136565b60405180910390f35b610470611087565b60405161047d9190612136565b60405180910390f35b61048e611141565b005b61049861123d565b6040516104a59190612136565b60405180910390f35b6104b6611243565b6040516104c39190612136565b60405180910390f35b6104d4611256565b005b6104de611271565b6040516104eb9190612136565b60405180910390f35b61050e60048036038101906105099190611c11565b611277565b005b61051861136f565b6040516105259190611f7e565b60405180910390f35b600080600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015490506000600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180604001604052908160008201548152602001600182015481525050905061065081600001516106427f00000000000000000000000000000000000000000000000000000000000000006106346106258660200151610617611087565b61139390919063ffffffff16565b876113a990919063ffffffff16565b6113bf90919063ffffffff16565b6113d590919063ffffffff16565b92505050919050565b600b6020528060005260406000206000915090508060000154908060010154905082565b6106856113eb565b73ffffffffffffffffffffffffffffffffffffffff166106a3610ece565b73ffffffffffffffffffffffffffffffffffffffff16146106f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106f090612076565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016107549190611f03565b60206040518083038186803b15801561076c57600080fd5b505afa158015610780573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a49190611c98565b9050600081116107e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e0906120f6565b60405180910390fd5b6107f16113f3565b60065442106108385761082d7f0000000000000000000000000000000000000000000000000000000000000000826113bf90919063ffffffff16565b6008819055506108b8565b600061084f4260065461139390919063ffffffff16565b90506000610868600854836113a990919063ffffffff16565b90506108af7f00000000000000000000000000000000000000000000000000000000000000006108a183866113d590919063ffffffff16565b6113bf90919063ffffffff16565b60088190555050505b42600781905550426002819055506108f97f0000000000000000000000000000000000000000000000000000000000000000426113d590919063ffffffff16565b6006819055507fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d8160405161092e9190612136565b60405180910390a150565b7f000000000000000000000000000000000000000000000000000000000000000081565b60015481565b60035481565b600081116109ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a3906120d6565b60405180910390fd5b6109b533611411565b6109be816114b4565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d582604051610a049190612136565b60405180910390a250565b610a1833611411565b6000610a233361052e565b90506000811115610b2b576000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001819055503373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048682604051610abc9190612136565b60405180910390a2610b0f33827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661165c9092919063ffffffff16565b610b2481600a546113d590919063ffffffff16565b600a819055505b50565b610b366113eb565b73ffffffffffffffffffffffffffffffffffffffff16610b54610ece565b73ffffffffffffffffffffffffffffffffffffffff1614610baa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba190612076565b60405180910390fd5b42600681905550565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001549050919050565b610c4f6113eb565b73ffffffffffffffffffffffffffffffffffffffff16610c6d610ece565b73ffffffffffffffffffffffffffffffffffffffff1614610cc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cba90612076565b60405180910390fd5b610ccd60006116e2565b565b7f000000000000000000000000000000000000000000000000000000000000000081565b600a5481565b60025481565b60085481565b610d0d6113eb565b73ffffffffffffffffffffffffffffffffffffffff16610d2b610ece565b73ffffffffffffffffffffffffffffffffffffffff1614610d81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7890612076565b60405180910390fd5b61a8c0600654610d9191906121ac565b421015610dd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dca90611fd6565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610e2e9190611f03565b60206040518083038186803b158015610e4657600080fd5b505afa158015610e5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7e9190611c98565b9050610ecb33827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661165c9092919063ffffffff16565b50565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610f006113eb565b73ffffffffffffffffffffffffffffffffffffffff16610f1e610ece565b73ffffffffffffffffffffffffffffffffffffffff1614610f74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6b90612076565b60405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000811161101e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101590612016565b60405180910390fd5b61102733611411565b611030816117a8565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d826040516110769190612136565b60405180910390a250565b60075481565b600060025442101561109c576000905061113e565b600060015414156110b157600954905061113e565b61113b61112a60015461111c7f000000000000000000000000000000000000000000000000000000000000000061110e6008546111006007546110f2611243565b61139390919063ffffffff16565b6113a990919063ffffffff16565b6113a990919063ffffffff16565b6113bf90919063ffffffff16565b6009546113d590919063ffffffff16565b90505b90565b61a8c060065461115191906121ac565b421015611193576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118a90612056565b60405180910390fd5b600061119e33610bfb565b9050600081116111e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111da90612116565b60405180910390fd5b6111ec816114b4565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5826040516112329190612136565b60405180910390a250565b60095481565b6000611251426006546118ae565b905090565b61125e610a0f565b61126f61126a33610bfb565b610969565b565b60065481565b61127f6113eb565b73ffffffffffffffffffffffffffffffffffffffff1661129d610ece565b73ffffffffffffffffffffffffffffffffffffffff16146112f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ea90612076565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611363576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135a90611ff6565b60405180910390fd5b61136c816116e2565b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b600081836113a1919061228d565b905092915050565b600081836113b79190612233565b905092915050565b600081836113cd9190612202565b905092915050565b600081836113e391906121ac565b905092915050565b600033905090565b6113fb611087565b600981905550611409611243565b600781905550565b6114196113f3565b6114228161052e565b600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550600954600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001018190555050565b6114c98160015461139390919063ffffffff16565b60018190555061152481600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015461139390919063ffffffff16565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018190555060006115956103e8611587600354856113a990919063ffffffff16565b6113bf90919063ffffffff16565b90506115ed3382846115a7919061228d565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661165c9092919063ffffffff16565b61165860008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661165c9092919063ffffffff16565b5050565b6116dd8363a9059cbb60e01b848460405160240161167b929190611f55565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506118c7565b505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6117f53330837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661198e909392919063ffffffff16565b61184a81600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001546113d590919063ffffffff16565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001819055506118a5816001546113d590919063ffffffff16565b60018190555050565b60008183106118bd57816118bf565b825b905092915050565b6000611929826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611a179092919063ffffffff16565b905060008151111561198957808060200190518101906119499190611c3e565b611988576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197f906120b6565b60405180910390fd5b5b505050565b611a11846323b872dd60e01b8585856040516024016119af93929190611f1e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506118c7565b50505050565b6060611a268484600085611a2f565b90509392505050565b606082471015611a74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6b90612036565b60405180910390fd5b611a7d85611b43565b611abc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab390612096565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611ae59190611eec565b60006040518083038185875af1925050503d8060008114611b22576040519150601f19603f3d011682016040523d82523d6000602084013e611b27565b606091505b5091509150611b37828286611b56565b92505050949350505050565b600080823b905060008111915050919050565b60608315611b6657829050611bb6565b600083511115611b795782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bad9190611fb4565b60405180910390fd5b9392505050565b600081359050611bcc8161275d565b92915050565b600081519050611be181612774565b92915050565b600081359050611bf68161278b565b92915050565b600081519050611c0b8161278b565b92915050565b600060208284031215611c2757611c266123e2565b5b6000611c3584828501611bbd565b91505092915050565b600060208284031215611c5457611c536123e2565b5b6000611c6284828501611bd2565b91505092915050565b600060208284031215611c8157611c806123e2565b5b6000611c8f84828501611be7565b91505092915050565b600060208284031215611cae57611cad6123e2565b5b6000611cbc84828501611bfc565b91505092915050565b611cce816122c1565b82525050565b6000611cdf8261217a565b611ce98185612190565b9350611cf9818560208601612351565b80840191505092915050565b611d0e81612309565b82525050565b611d1d8161231b565b82525050565b6000611d2e82612185565b611d38818561219b565b9350611d48818560208601612351565b611d51816123e7565b840191505092915050565b6000611d69604e8361219b565b9150611d74826123f8565b606082019050919050565b6000611d8c60268361219b565b9150611d978261246d565b604082019050919050565b6000611daf60258361219b565b9150611dba826124bc565b604082019050919050565b6000611dd260268361219b565b9150611ddd8261250b565b604082019050919050565b6000611df560678361219b565b9150611e008261255a565b608082019050919050565b6000611e1860208361219b565b9150611e23826125f5565b602082019050919050565b6000611e3b601d8361219b565b9150611e468261261e565b602082019050919050565b6000611e5e602a8361219b565b9150611e6982612647565b604082019050919050565b6000611e81602b8361219b565b9150611e8c82612696565b604082019050919050565b6000611ea4600d8361219b565b9150611eaf826126e5565b602082019050919050565b6000611ec760348361219b565b9150611ed28261270e565b604082019050919050565b611ee6816122ff565b82525050565b6000611ef88284611cd4565b915081905092915050565b6000602082019050611f186000830184611cc5565b92915050565b6000606082019050611f336000830186611cc5565b611f406020830185611cc5565b611f4d6040830184611edd565b949350505050565b6000604082019050611f6a6000830185611cc5565b611f776020830184611edd565b9392505050565b6000602082019050611f936000830184611d05565b92915050565b6000602082019050611fae6000830184611d14565b92915050565b60006020820190508181036000830152611fce8184611d23565b905092915050565b60006020820190508181036000830152611fef81611d5c565b9050919050565b6000602082019050818103600083015261200f81611d7f565b9050919050565b6000602082019050818103600083015261202f81611da2565b9050919050565b6000602082019050818103600083015261204f81611dc5565b9050919050565b6000602082019050818103600083015261206f81611de8565b9050919050565b6000602082019050818103600083015261208f81611e0b565b9050919050565b600060208201905081810360008301526120af81611e2e565b9050919050565b600060208201905081810360008301526120cf81611e51565b9050919050565b600060208201905081810360008301526120ef81611e74565b9050919050565b6000602082019050818103600083015261210f81611e97565b9050919050565b6000602082019050818103600083015261212f81611eba565b9050919050565b600060208201905061214b6000830184611edd565b92915050565b60006040820190506121666000830185611edd565b6121736020830184611edd565b9392505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b60006121b7826122ff565b91506121c2836122ff565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156121f7576121f6612384565b5b828201905092915050565b600061220d826122ff565b9150612218836122ff565b925082612228576122276123b3565b5b828204905092915050565b600061223e826122ff565b9150612249836122ff565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561228257612281612384565b5b828202905092915050565b6000612298826122ff565b91506122a3836122ff565b9250828210156122b6576122b5612384565b5b828203905092915050565b60006122cc826122df565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006123148261232d565b9050919050565b60006123268261232d565b9050919050565b60006123388261233f565b9050919050565b600061234a826122df565b9050919050565b60005b8381101561236f578082015181840152602081019050612354565b8381111561237e576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f43727970746f43617274506f6f6c3a3a656a6563743a2043616e6e6f7420656a60008201527f656374206265666f726520706572696f642066696e6973686573206f7220706f60208201527f6f6c206861732073746172746564000000000000000000000000000000000000604082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f43727970746f43617274506f6f6c3a3a7374616b653a2043616e6e6f7420737460008201527f616b652030000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f43727970746f43617274506f6f6c3a3a656d657267656e63795769746864726160008201527f773a2043616e6e6f7420656d657267656e63792077697468647261772062656660208201527f6f726520706572696f642066696e6973686573206f7220706f6f6c206861732060408201527f7374617274656400000000000000000000000000000000000000000000000000606082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f43727970746f43617274506f6f6c3a3a77697468647261773a2043616e6e6f7460008201527f2077697468647261772030000000000000000000000000000000000000000000602082015250565b7f2172657761726420616464656400000000000000000000000000000000000000600082015250565b7f43727970746f43617274506f6f6c3a3a656d657267656e63795769746864726160008201527f773a2043616e6e6f742077697468647261772030000000000000000000000000602082015250565b612766816122c1565b811461277157600080fd5b50565b61277d816122d3565b811461278857600080fd5b50565b612794816122ff565b811461279f57600080fd5b5056fea2646970667358221220220353d86c6977c40656c15a2a7619c09c3af7b9d07cb8bee8c746d1dcc8280764736f6c634300080700330000000000000000000000000000000000000000000000000000000000ed4e00000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f11000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f1100000000000000000000000015e54c22f4195142222ed7130521e9636ec3ccec

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101e45760003560e01c806378e979251161010f578063cd3daf9d116100a2578063e9fad8ee11610071578063e9fad8ee146104cc578063ebe2b12b146104d6578063f2fde38b146104f4578063f7c618c114610510576101e4565b8063cd3daf9d14610468578063db2e21bc14610486578063df136d6514610490578063e78b69f0146104ae576101e4565b80638f9a372d116100de5780638f9a372d146103f45780639eade65214610410578063a694fc3a1461042e578063c8f33c911461044a576101e4565b806378e97925146103905780637b0a47ee146103ae57806382e94ac5146103cc5780638da5cb5b146103d6576101e4565b80633d18b9121161018757806370a082311161015657806370a082311461031a578063715018a61461034a57806372f702f31461035457806374958e3514610372576101e4565b80633d18b912146102ca57806341c0e1b5146102d4578063461ac019146102de57806361d027b3146102fc576101e4565b80630fb5a6b4116101c35780630fb5a6b41461025457806318160ddd1461027257806320ba5698146102905780632e1a7d4d146102ae576101e4565b80628cc262146101e95780630700037d146102195780630c51dde41461024a575b600080fd5b61020360048036038101906101fe9190611c11565b61052e565b6040516102109190612136565b60405180910390f35b610233600480360381019061022e9190611c11565b610659565b604051610241929190612151565b60405180910390f35b61025261067d565b005b61025c610939565b6040516102699190612136565b60405180910390f35b61027a61095d565b6040516102879190612136565b60405180910390f35b610298610963565b6040516102a59190612136565b60405180910390f35b6102c860048036038101906102c39190611c6b565b610969565b005b6102d2610a0f565b005b6102dc610b2e565b005b6102e6610bb3565b6040516102f39190612136565b60405180910390f35b610304610bd7565b6040516103119190611f03565b60405180910390f35b610334600480360381019061032f9190611c11565b610bfb565b6040516103419190612136565b60405180910390f35b610352610c47565b005b61035c610ccf565b6040516103699190611f99565b60405180910390f35b61037a610cf3565b6040516103879190612136565b60405180910390f35b610398610cf9565b6040516103a59190612136565b60405180910390f35b6103b6610cff565b6040516103c39190612136565b60405180910390f35b6103d4610d05565b005b6103de610ece565b6040516103eb9190611f03565b60405180910390f35b61040e60048036038101906104099190611c11565b610ef8565b005b610418610fb7565b6040516104259190612136565b60405180910390f35b61044860048036038101906104439190611c6b565b610fdb565b005b610452611081565b60405161045f9190612136565b60405180910390f35b610470611087565b60405161047d9190612136565b60405180910390f35b61048e611141565b005b61049861123d565b6040516104a59190612136565b60405180910390f35b6104b6611243565b6040516104c39190612136565b60405180910390f35b6104d4611256565b005b6104de611271565b6040516104eb9190612136565b60405180910390f35b61050e60048036038101906105099190611c11565b611277565b005b61051861136f565b6040516105259190611f7e565b60405180910390f35b600080600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015490506000600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180604001604052908160008201548152602001600182015481525050905061065081600001516106427f0000000000000000000000000000000000000000000000000de0b6b3a76400006106346106258660200151610617611087565b61139390919063ffffffff16565b876113a990919063ffffffff16565b6113bf90919063ffffffff16565b6113d590919063ffffffff16565b92505050919050565b600b6020528060005260406000206000915090508060000154908060010154905082565b6106856113eb565b73ffffffffffffffffffffffffffffffffffffffff166106a3610ece565b73ffffffffffffffffffffffffffffffffffffffff16146106f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106f090612076565b60405180910390fd5b60007f000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f1173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016107549190611f03565b60206040518083038186803b15801561076c57600080fd5b505afa158015610780573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a49190611c98565b9050600081116107e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e0906120f6565b60405180910390fd5b6107f16113f3565b60065442106108385761082d7f0000000000000000000000000000000000000000000000000000000000ed4e00826113bf90919063ffffffff16565b6008819055506108b8565b600061084f4260065461139390919063ffffffff16565b90506000610868600854836113a990919063ffffffff16565b90506108af7f0000000000000000000000000000000000000000000000000000000000ed4e006108a183866113d590919063ffffffff16565b6113bf90919063ffffffff16565b60088190555050505b42600781905550426002819055506108f97f0000000000000000000000000000000000000000000000000000000000ed4e00426113d590919063ffffffff16565b6006819055507fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d8160405161092e9190612136565b60405180910390a150565b7f0000000000000000000000000000000000000000000000000000000000ed4e0081565b60015481565b60035481565b600081116109ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a3906120d6565b60405180910390fd5b6109b533611411565b6109be816114b4565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d582604051610a049190612136565b60405180910390a250565b610a1833611411565b6000610a233361052e565b90506000811115610b2b576000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001819055503373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048682604051610abc9190612136565b60405180910390a2610b0f33827f000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f1173ffffffffffffffffffffffffffffffffffffffff1661165c9092919063ffffffff16565b610b2481600a546113d590919063ffffffff16565b600a819055505b50565b610b366113eb565b73ffffffffffffffffffffffffffffffffffffffff16610b54610ece565b73ffffffffffffffffffffffffffffffffffffffff1614610baa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba190612076565b60405180910390fd5b42600681905550565b7f00000000000000000000000000000000000000000000000000000000618d016a81565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001549050919050565b610c4f6113eb565b73ffffffffffffffffffffffffffffffffffffffff16610c6d610ece565b73ffffffffffffffffffffffffffffffffffffffff1614610cc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cba90612076565b60405180910390fd5b610ccd60006116e2565b565b7f000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f1181565b600a5481565b60025481565b60085481565b610d0d6113eb565b73ffffffffffffffffffffffffffffffffffffffff16610d2b610ece565b73ffffffffffffffffffffffffffffffffffffffff1614610d81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7890612076565b60405180910390fd5b61a8c0600654610d9191906121ac565b421015610dd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dca90611fd6565b60405180910390fd5b60007f000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f1173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610e2e9190611f03565b60206040518083038186803b158015610e4657600080fd5b505afa158015610e5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7e9190611c98565b9050610ecb33827f000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f1173ffffffffffffffffffffffffffffffffffffffff1661165c9092919063ffffffff16565b50565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610f006113eb565b73ffffffffffffffffffffffffffffffffffffffff16610f1e610ece565b73ffffffffffffffffffffffffffffffffffffffff1614610f74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6b90612076565b60405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f0000000000000000000000000000000000000000000000000de0b6b3a764000081565b6000811161101e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101590612016565b60405180910390fd5b61102733611411565b611030816117a8565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d826040516110769190612136565b60405180910390a250565b60075481565b600060025442101561109c576000905061113e565b600060015414156110b157600954905061113e565b61113b61112a60015461111c7f0000000000000000000000000000000000000000000000000de0b6b3a764000061110e6008546111006007546110f2611243565b61139390919063ffffffff16565b6113a990919063ffffffff16565b6113a990919063ffffffff16565b6113bf90919063ffffffff16565b6009546113d590919063ffffffff16565b90505b90565b61a8c060065461115191906121ac565b421015611193576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118a90612056565b60405180910390fd5b600061119e33610bfb565b9050600081116111e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111da90612116565b60405180910390fd5b6111ec816114b4565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5826040516112329190612136565b60405180910390a250565b60095481565b6000611251426006546118ae565b905090565b61125e610a0f565b61126f61126a33610bfb565b610969565b565b60065481565b61127f6113eb565b73ffffffffffffffffffffffffffffffffffffffff1661129d610ece565b73ffffffffffffffffffffffffffffffffffffffff16146112f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ea90612076565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611363576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135a90611ff6565b60405180910390fd5b61136c816116e2565b50565b7f000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f1181565b600081836113a1919061228d565b905092915050565b600081836113b79190612233565b905092915050565b600081836113cd9190612202565b905092915050565b600081836113e391906121ac565b905092915050565b600033905090565b6113fb611087565b600981905550611409611243565b600781905550565b6114196113f3565b6114228161052e565b600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550600954600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001018190555050565b6114c98160015461139390919063ffffffff16565b60018190555061152481600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015461139390919063ffffffff16565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018190555060006115956103e8611587600354856113a990919063ffffffff16565b6113bf90919063ffffffff16565b90506115ed3382846115a7919061228d565b7f000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f1173ffffffffffffffffffffffffffffffffffffffff1661165c9092919063ffffffff16565b61165860008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16827f000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f1173ffffffffffffffffffffffffffffffffffffffff1661165c9092919063ffffffff16565b5050565b6116dd8363a9059cbb60e01b848460405160240161167b929190611f55565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506118c7565b505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6117f53330837f000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f1173ffffffffffffffffffffffffffffffffffffffff1661198e909392919063ffffffff16565b61184a81600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001546113d590919063ffffffff16565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001819055506118a5816001546113d590919063ffffffff16565b60018190555050565b60008183106118bd57816118bf565b825b905092915050565b6000611929826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611a179092919063ffffffff16565b905060008151111561198957808060200190518101906119499190611c3e565b611988576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197f906120b6565b60405180910390fd5b5b505050565b611a11846323b872dd60e01b8585856040516024016119af93929190611f1e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506118c7565b50505050565b6060611a268484600085611a2f565b90509392505050565b606082471015611a74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6b90612036565b60405180910390fd5b611a7d85611b43565b611abc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab390612096565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611ae59190611eec565b60006040518083038185875af1925050503d8060008114611b22576040519150601f19603f3d011682016040523d82523d6000602084013e611b27565b606091505b5091509150611b37828286611b56565b92505050949350505050565b600080823b905060008111915050919050565b60608315611b6657829050611bb6565b600083511115611b795782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bad9190611fb4565b60405180910390fd5b9392505050565b600081359050611bcc8161275d565b92915050565b600081519050611be181612774565b92915050565b600081359050611bf68161278b565b92915050565b600081519050611c0b8161278b565b92915050565b600060208284031215611c2757611c266123e2565b5b6000611c3584828501611bbd565b91505092915050565b600060208284031215611c5457611c536123e2565b5b6000611c6284828501611bd2565b91505092915050565b600060208284031215611c8157611c806123e2565b5b6000611c8f84828501611be7565b91505092915050565b600060208284031215611cae57611cad6123e2565b5b6000611cbc84828501611bfc565b91505092915050565b611cce816122c1565b82525050565b6000611cdf8261217a565b611ce98185612190565b9350611cf9818560208601612351565b80840191505092915050565b611d0e81612309565b82525050565b611d1d8161231b565b82525050565b6000611d2e82612185565b611d38818561219b565b9350611d48818560208601612351565b611d51816123e7565b840191505092915050565b6000611d69604e8361219b565b9150611d74826123f8565b606082019050919050565b6000611d8c60268361219b565b9150611d978261246d565b604082019050919050565b6000611daf60258361219b565b9150611dba826124bc565b604082019050919050565b6000611dd260268361219b565b9150611ddd8261250b565b604082019050919050565b6000611df560678361219b565b9150611e008261255a565b608082019050919050565b6000611e1860208361219b565b9150611e23826125f5565b602082019050919050565b6000611e3b601d8361219b565b9150611e468261261e565b602082019050919050565b6000611e5e602a8361219b565b9150611e6982612647565b604082019050919050565b6000611e81602b8361219b565b9150611e8c82612696565b604082019050919050565b6000611ea4600d8361219b565b9150611eaf826126e5565b602082019050919050565b6000611ec760348361219b565b9150611ed28261270e565b604082019050919050565b611ee6816122ff565b82525050565b6000611ef88284611cd4565b915081905092915050565b6000602082019050611f186000830184611cc5565b92915050565b6000606082019050611f336000830186611cc5565b611f406020830185611cc5565b611f4d6040830184611edd565b949350505050565b6000604082019050611f6a6000830185611cc5565b611f776020830184611edd565b9392505050565b6000602082019050611f936000830184611d05565b92915050565b6000602082019050611fae6000830184611d14565b92915050565b60006020820190508181036000830152611fce8184611d23565b905092915050565b60006020820190508181036000830152611fef81611d5c565b9050919050565b6000602082019050818103600083015261200f81611d7f565b9050919050565b6000602082019050818103600083015261202f81611da2565b9050919050565b6000602082019050818103600083015261204f81611dc5565b9050919050565b6000602082019050818103600083015261206f81611de8565b9050919050565b6000602082019050818103600083015261208f81611e0b565b9050919050565b600060208201905081810360008301526120af81611e2e565b9050919050565b600060208201905081810360008301526120cf81611e51565b9050919050565b600060208201905081810360008301526120ef81611e74565b9050919050565b6000602082019050818103600083015261210f81611e97565b9050919050565b6000602082019050818103600083015261212f81611eba565b9050919050565b600060208201905061214b6000830184611edd565b92915050565b60006040820190506121666000830185611edd565b6121736020830184611edd565b9392505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b60006121b7826122ff565b91506121c2836122ff565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156121f7576121f6612384565b5b828201905092915050565b600061220d826122ff565b9150612218836122ff565b925082612228576122276123b3565b5b828204905092915050565b600061223e826122ff565b9150612249836122ff565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561228257612281612384565b5b828202905092915050565b6000612298826122ff565b91506122a3836122ff565b9250828210156122b6576122b5612384565b5b828203905092915050565b60006122cc826122df565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006123148261232d565b9050919050565b60006123268261232d565b9050919050565b60006123388261233f565b9050919050565b600061234a826122df565b9050919050565b60005b8381101561236f578082015181840152602081019050612354565b8381111561237e576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f43727970746f43617274506f6f6c3a3a656a6563743a2043616e6e6f7420656a60008201527f656374206265666f726520706572696f642066696e6973686573206f7220706f60208201527f6f6c206861732073746172746564000000000000000000000000000000000000604082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f43727970746f43617274506f6f6c3a3a7374616b653a2043616e6e6f7420737460008201527f616b652030000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f43727970746f43617274506f6f6c3a3a656d657267656e63795769746864726160008201527f773a2043616e6e6f7420656d657267656e63792077697468647261772062656660208201527f6f726520706572696f642066696e6973686573206f7220706f6f6c206861732060408201527f7374617274656400000000000000000000000000000000000000000000000000606082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f43727970746f43617274506f6f6c3a3a77697468647261773a2043616e6e6f7460008201527f2077697468647261772030000000000000000000000000000000000000000000602082015250565b7f2172657761726420616464656400000000000000000000000000000000000000600082015250565b7f43727970746f43617274506f6f6c3a3a656d657267656e63795769746864726160008201527f773a2043616e6e6f742077697468647261772030000000000000000000000000602082015250565b612766816122c1565b811461277157600080fd5b50565b61277d816122d3565b811461278857600080fd5b50565b612794816122ff565b811461279f57600080fd5b5056fea2646970667358221220220353d86c6977c40656c15a2a7619c09c3af7b9d07cb8bee8c746d1dcc8280764736f6c63430008070033

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

0000000000000000000000000000000000000000000000000000000000ed4e00000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f11000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f1100000000000000000000000015e54c22f4195142222ed7130521e9636ec3ccec

-----Decoded View---------------
Arg [0] : _duration (uint256): 15552000
Arg [1] : _stakingToken (address): 0x612E1726435fE38dD49A0B35b4065B56f49c8F11
Arg [2] : _rewardToken (address): 0x612E1726435fE38dD49A0B35b4065B56f49c8F11
Arg [3] : _treasury (address): 0x15e54c22f4195142222ED7130521E9636EC3cCEC

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000ed4e00
Arg [1] : 000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f11
Arg [2] : 000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f11
Arg [3] : 00000000000000000000000015e54c22f4195142222ed7130521e9636ec3ccec


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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