ETH Price: $3,159.45 (+2.19%)

Contract

0x5008f47535aA0a8b87Cb6e6332e8B0b25968Ad98
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw211868552024-11-14 15:33:592 days ago1731598439IN
0x5008f475...25968Ad98
0 ETH0.0033462537.08752261
Withdraw206747182024-09-04 4:06:1173 days ago1725422771IN
0x5008f475...25968Ad98
0 ETH0.000117291.3
Get Reward206747082024-09-04 4:04:1173 days ago1725422651IN
0x5008f475...25968Ad98
0 ETH0.000105531.3
Withdraw195134562024-03-25 19:07:47236 days ago1711393667IN
0x5008f475...25968Ad98
0 ETH0.0032352328.84743267
Withdraw193885512024-03-08 6:06:23253 days ago1709877983IN
0x5008f475...25968Ad98
0 ETH0.0041822746.35335807
Get Reward193881802024-03-08 4:51:35253 days ago1709873495IN
0x5008f475...25968Ad98
0 ETH0.0035678843.9498054
Withdraw192540132024-02-18 10:11:23272 days ago1708251083IN
0x5008f475...25968Ad98
0 ETH0.001802819.98099094
Get Reward192540072024-02-18 10:10:11272 days ago1708251011IN
0x5008f475...25968Ad98
0 ETH0.001851622.80830031
Withdraw190733812024-01-24 1:59:35297 days ago1706061575IN
0x5008f475...25968Ad98
0 ETH0.000994411.01833566
Withdraw190733632024-01-24 1:55:59297 days ago1706061359IN
0x5008f475...25968Ad98
0 ETH0.000777948.6210341
Get Reward190733522024-01-24 1:53:47297 days ago1706061227IN
0x5008f475...25968Ad98
0 ETH0.000786869.69270978
Get Reward190730902024-01-24 1:01:11297 days ago1706058071IN
0x5008f475...25968Ad98
0 ETH0.0009504811.70824683
Withdraw189891222024-01-12 6:46:47309 days ago1705042007IN
0x5008f475...25968Ad98
0 ETH0.0013142914.56477877
Get Reward189891142024-01-12 6:45:11309 days ago1705041911IN
0x5008f475...25968Ad98
0 ETH0.0011355713.98817536
Withdraw189415622024-01-05 14:07:47316 days ago1704463667IN
0x5008f475...25968Ad98
0 ETH0.0029585432.78607582
Stake189415542024-01-05 14:06:11316 days ago1704463571IN
0x5008f475...25968Ad98
0 ETH0.0025882830.59688512
Withdraw189401012024-01-05 9:10:47316 days ago1704445847IN
0x5008f475...25968Ad98
0 ETH0.0014683316.27392575
Withdraw189096612024-01-01 2:35:47320 days ago1704076547IN
0x5008f475...25968Ad98
0 ETH0.000890869.87104288
Get Reward189096582024-01-01 2:35:11320 days ago1704076511IN
0x5008f475...25968Ad98
0 ETH0.000780799.61801131
Withdraw188177822023-12-19 4:59:11333 days ago1702961951IN
0x5008f475...25968Ad98
0 ETH0.0035678539.54353277
Withdraw187702952023-12-12 13:06:35340 days ago1702386395IN
0x5008f475...25968Ad98
0 ETH0.0049006554.31534685
Get Reward187702572023-12-12 12:58:47340 days ago1702385927IN
0x5008f475...25968Ad98
0 ETH0.0042425852.26087002
Withdraw187395102023-12-08 5:39:35344 days ago1702013975IN
0x5008f475...25968Ad98
0 ETH0.0030847434.18004718
Withdraw186486892023-11-25 12:23:59357 days ago1700915039IN
0x5008f475...25968Ad98
0 ETH0.001753218.45203941
Get Reward186486802023-11-25 12:22:11357 days ago1700914931IN
0x5008f475...25968Ad98
0 ETH0.0019529419.87102049
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/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";
import "./LPTokenWrapper.sol";
import "./interfaces/IERC20Metadata.sol";

/**
 * @title CryptoCart staking pool
 * @author Prism network
 * @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
// OpenZeppelin Contracts (last updated v4.5.0) (utils/math/Math.sol)

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
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

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() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

File 6 of 10 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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 7 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 8 of 10 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

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 9 of 10 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

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 generally not needed starting with Solidity 0.8, since 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 subtraction 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 10 of 10 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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"}]

610120604052600f6003553480156200001757600080fd5b50604051620030313803806200303183398181016040528101906200003d9190620003e3565b82818173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b81525050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050620000d8620000cc620002b960201b60201c565b620002c160201b60201c565b60008414158015620001175750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b8015620001515750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156200018b5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b620001cd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001c490620004ae565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156200021457600080fd5b505afa15801562000229573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200024f919062000455565b60ff16600a6200026091906200053c565b60c081815250508173ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508360e0818152505042610100818152505050505050620007aa565b600033905090565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050620003988162000742565b92915050565b600081519050620003af816200075c565b92915050565b600081519050620003c68162000776565b92915050565b600081519050620003dd8162000790565b92915050565b600080600080608085870312156200040057620003ff62000707565b5b60006200041087828801620003b5565b9450506020620004238782880162000387565b935050604062000436878288016200039e565b9250506060620004498782880162000387565b91505092959194509250565b6000602082840312156200046e576200046d62000707565b5b60006200047e84828501620003cc565b91505092915050565b600062000496600c83620004d0565b9150620004a38262000719565b602082019050919050565b60006020820190508181036000830152620004c98162000487565b9050919050565b600082825260208201905092915050565b6000808291508390505b600185111562000533578086048111156200050b576200050a620006d8565b5b60018516156200051b5780820291505b80810290506200052b856200070c565b9450620004eb565b94509492505050565b60006200054982620006c1565b91506200055683620006c1565b9250620005857fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84846200058d565b905092915050565b6000826200059f576001905062000672565b81620005af576000905062000672565b8160018114620005c85760028114620005d35762000609565b600191505062000672565b60ff841115620005e857620005e7620006d8565b5b8360020a915084821115620006025762000601620006d8565b5b5062000672565b5060208310610133831016604e8410600b8410161715620006435782820a9050838111156200063d576200063c620006d8565b5b62000672565b620006528484846001620004e1565b925090508184048111156200066c576200066b620006d8565b5b81810290505b9392505050565b60006200068682620006a1565b9050919050565b60006200069a8262000679565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600080fd5b60008160011c9050919050565b7f21636f6e7374727563746f720000000000000000000000000000000000000000600082015250565b6200074d8162000679565b81146200075957600080fd5b50565b62000767816200068d565b81146200077357600080fd5b50565b6200078181620006c1565b81146200078d57600080fd5b50565b6200079b81620006cb565b8114620007a757600080fd5b50565b60805160601c60a05160601c60c05160e051610100516127e8620008496000396000610bb50152600081816107ff0152818161086f015281816108cb015261093b0152600081816105e501528181610fb901526110bf0152600081816106fd01528181610acb01528181610dd701528181610e870152611371015260008181610cd1015281816115a90152818161161401526117b001526127e86000f3fe608060405234801561001057600080fd5b50600436106101e45760003560e01c806378e979251161010f578063cd3daf9d116100a2578063e9fad8ee11610071578063e9fad8ee146104cc578063ebe2b12b146104d6578063f2fde38b146104f4578063f7c618c114610510576101e4565b8063cd3daf9d14610468578063db2e21bc14610486578063df136d6514610490578063e78b69f0146104ae576101e4565b80638f9a372d116100de5780638f9a372d146103f45780639eade65214610410578063a694fc3a1461042e578063c8f33c911461044a576101e4565b806378e97925146103905780637b0a47ee146103ae57806382e94ac5146103cc5780638da5cb5b146103d6576101e4565b80633d18b9121161018757806370a082311161015657806370a082311461031a578063715018a61461034a57806372f702f31461035457806374958e3514610372576101e4565b80633d18b912146102ca57806341c0e1b5146102d4578063461ac019146102de57806361d027b3146102fc576101e4565b80630fb5a6b4116101c35780630fb5a6b41461025457806318160ddd1461027257806320ba5698146102905780632e1a7d4d146102ae576101e4565b80628cc262146101e95780630700037d146102195780630c51dde41461024a575b600080fd5b61020360048036038101906101fe9190611c21565b61052e565b6040516102109190612146565b60405180910390f35b610233600480360381019061022e9190611c21565b610659565b604051610241929190612161565b60405180910390f35b61025261067d565b005b61025c610939565b6040516102699190612146565b60405180910390f35b61027a61095d565b6040516102879190612146565b60405180910390f35b610298610963565b6040516102a59190612146565b60405180910390f35b6102c860048036038101906102c39190611c7b565b610969565b005b6102d2610a0f565b005b6102dc610b2e565b005b6102e6610bb3565b6040516102f39190612146565b60405180910390f35b610304610bd7565b6040516103119190611f13565b60405180910390f35b610334600480360381019061032f9190611c21565b610bfb565b6040516103419190612146565b60405180910390f35b610352610c47565b005b61035c610ccf565b6040516103699190611fa9565b60405180910390f35b61037a610cf3565b6040516103879190612146565b60405180910390f35b610398610cf9565b6040516103a59190612146565b60405180910390f35b6103b6610cff565b6040516103c39190612146565b60405180910390f35b6103d4610d05565b005b6103de610ece565b6040516103eb9190611f13565b60405180910390f35b61040e60048036038101906104099190611c21565b610ef8565b005b610418610fb7565b6040516104259190612146565b60405180910390f35b61044860048036038101906104439190611c7b565b610fdb565b005b610452611081565b60405161045f9190612146565b60405180910390f35b610470611087565b60405161047d9190612146565b60405180910390f35b61048e611141565b005b61049861123d565b6040516104a59190612146565b60405180910390f35b6104b6611243565b6040516104c39190612146565b60405180910390f35b6104d4611256565b005b6104de611271565b6040516104eb9190612146565b60405180910390f35b61050e60048036038101906105099190611c21565b611277565b005b61051861136f565b6040516105259190611f8e565b60405180910390f35b600080600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015490506000600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180604001604052908160008201548152602001600182015481525050905061065081600001516106427f00000000000000000000000000000000000000000000000000000000000000006106346106258660200151610617611087565b61139390919063ffffffff16565b876113a990919063ffffffff16565b6113bf90919063ffffffff16565b6113d590919063ffffffff16565b92505050919050565b600b6020528060005260406000206000915090508060000154908060010154905082565b6106856113eb565b73ffffffffffffffffffffffffffffffffffffffff166106a3610ece565b73ffffffffffffffffffffffffffffffffffffffff16146106f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106f090612086565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016107549190611f13565b60206040518083038186803b15801561076c57600080fd5b505afa158015610780573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a49190611ca8565b9050600081116107e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e090612106565b60405180910390fd5b6107f16113f3565b60065442106108385761082d7f0000000000000000000000000000000000000000000000000000000000000000826113bf90919063ffffffff16565b6008819055506108b8565b600061084f4260065461139390919063ffffffff16565b90506000610868600854836113a990919063ffffffff16565b90506108af7f00000000000000000000000000000000000000000000000000000000000000006108a183866113d590919063ffffffff16565b6113bf90919063ffffffff16565b60088190555050505b42600781905550426002819055506108f97f0000000000000000000000000000000000000000000000000000000000000000426113d590919063ffffffff16565b6006819055507fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d8160405161092e9190612146565b60405180910390a150565b7f000000000000000000000000000000000000000000000000000000000000000081565b60015481565b60035481565b600081116109ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a3906120e6565b60405180910390fd5b6109b533611411565b6109be816114b4565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d582604051610a049190612146565b60405180910390a250565b610a1833611411565b6000610a233361052e565b90506000811115610b2b576000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001819055503373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048682604051610abc9190612146565b60405180910390a2610b0f33827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661165c9092919063ffffffff16565b610b2481600a546113d590919063ffffffff16565b600a819055505b50565b610b366113eb565b73ffffffffffffffffffffffffffffffffffffffff16610b54610ece565b73ffffffffffffffffffffffffffffffffffffffff1614610baa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba190612086565b60405180910390fd5b42600681905550565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001549050919050565b610c4f6113eb565b73ffffffffffffffffffffffffffffffffffffffff16610c6d610ece565b73ffffffffffffffffffffffffffffffffffffffff1614610cc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cba90612086565b60405180910390fd5b610ccd60006116e2565b565b7f000000000000000000000000000000000000000000000000000000000000000081565b600a5481565b60025481565b60085481565b610d0d6113eb565b73ffffffffffffffffffffffffffffffffffffffff16610d2b610ece565b73ffffffffffffffffffffffffffffffffffffffff1614610d81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7890612086565b60405180910390fd5b61a8c0600654610d9191906121bc565b421015610dd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dca90611fe6565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610e2e9190611f13565b60206040518083038186803b158015610e4657600080fd5b505afa158015610e5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7e9190611ca8565b9050610ecb33827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661165c9092919063ffffffff16565b50565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610f006113eb565b73ffffffffffffffffffffffffffffffffffffffff16610f1e610ece565b73ffffffffffffffffffffffffffffffffffffffff1614610f74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6b90612086565b60405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000811161101e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101590612026565b60405180910390fd5b61102733611411565b611030816117a8565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d826040516110769190612146565b60405180910390a250565b60075481565b600060025442101561109c576000905061113e565b600060015414156110b157600954905061113e565b61113b61112a60015461111c7f000000000000000000000000000000000000000000000000000000000000000061110e6008546111006007546110f2611243565b61139390919063ffffffff16565b6113a990919063ffffffff16565b6113a990919063ffffffff16565b6113bf90919063ffffffff16565b6009546113d590919063ffffffff16565b90505b90565b61a8c060065461115191906121bc565b421015611193576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118a90612066565b60405180910390fd5b600061119e33610bfb565b9050600081116111e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111da90612126565b60405180910390fd5b6111ec816114b4565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5826040516112329190612146565b60405180910390a250565b60095481565b6000611251426006546118ae565b905090565b61125e610a0f565b61126f61126a33610bfb565b610969565b565b60065481565b61127f6113eb565b73ffffffffffffffffffffffffffffffffffffffff1661129d610ece565b73ffffffffffffffffffffffffffffffffffffffff16146112f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ea90612086565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611363576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135a90612006565b60405180910390fd5b61136c816116e2565b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b600081836113a1919061229d565b905092915050565b600081836113b79190612243565b905092915050565b600081836113cd9190612212565b905092915050565b600081836113e391906121bc565b905092915050565b600033905090565b6113fb611087565b600981905550611409611243565b600781905550565b6114196113f3565b6114228161052e565b600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550600954600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001018190555050565b6114c98160015461139390919063ffffffff16565b60018190555061152481600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015461139390919063ffffffff16565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018190555060006115956103e8611587600354856113a990919063ffffffff16565b6113bf90919063ffffffff16565b90506115ed3382846115a7919061229d565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661165c9092919063ffffffff16565b61165860008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661165c9092919063ffffffff16565b5050565b6116dd8363a9059cbb60e01b848460405160240161167b929190611f65565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506118c7565b505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6117f53330837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661198e909392919063ffffffff16565b61184a81600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001546113d590919063ffffffff16565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001819055506118a5816001546113d590919063ffffffff16565b60018190555050565b60008183106118bd57816118bf565b825b905092915050565b6000611929826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611a179092919063ffffffff16565b905060008151111561198957808060200190518101906119499190611c4e565b611988576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197f906120c6565b60405180910390fd5b5b505050565b611a11846323b872dd60e01b8585856040516024016119af93929190611f2e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506118c7565b50505050565b6060611a268484600085611a2f565b90509392505050565b606082471015611a74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6b90612046565b60405180910390fd5b611a7d85611b43565b611abc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab3906120a6565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611ae59190611efc565b60006040518083038185875af1925050503d8060008114611b22576040519150601f19603f3d011682016040523d82523d6000602084013e611b27565b606091505b5091509150611b37828286611b66565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60608315611b7657829050611bc6565b600083511115611b895782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bbd9190611fc4565b60405180910390fd5b9392505050565b600081359050611bdc8161276d565b92915050565b600081519050611bf181612784565b92915050565b600081359050611c068161279b565b92915050565b600081519050611c1b8161279b565b92915050565b600060208284031215611c3757611c366123f2565b5b6000611c4584828501611bcd565b91505092915050565b600060208284031215611c6457611c636123f2565b5b6000611c7284828501611be2565b91505092915050565b600060208284031215611c9157611c906123f2565b5b6000611c9f84828501611bf7565b91505092915050565b600060208284031215611cbe57611cbd6123f2565b5b6000611ccc84828501611c0c565b91505092915050565b611cde816122d1565b82525050565b6000611cef8261218a565b611cf981856121a0565b9350611d09818560208601612361565b80840191505092915050565b611d1e81612319565b82525050565b611d2d8161232b565b82525050565b6000611d3e82612195565b611d4881856121ab565b9350611d58818560208601612361565b611d61816123f7565b840191505092915050565b6000611d79604e836121ab565b9150611d8482612408565b606082019050919050565b6000611d9c6026836121ab565b9150611da78261247d565b604082019050919050565b6000611dbf6025836121ab565b9150611dca826124cc565b604082019050919050565b6000611de26026836121ab565b9150611ded8261251b565b604082019050919050565b6000611e056067836121ab565b9150611e108261256a565b608082019050919050565b6000611e286020836121ab565b9150611e3382612605565b602082019050919050565b6000611e4b601d836121ab565b9150611e568261262e565b602082019050919050565b6000611e6e602a836121ab565b9150611e7982612657565b604082019050919050565b6000611e91602b836121ab565b9150611e9c826126a6565b604082019050919050565b6000611eb4600d836121ab565b9150611ebf826126f5565b602082019050919050565b6000611ed76034836121ab565b9150611ee28261271e565b604082019050919050565b611ef68161230f565b82525050565b6000611f088284611ce4565b915081905092915050565b6000602082019050611f286000830184611cd5565b92915050565b6000606082019050611f436000830186611cd5565b611f506020830185611cd5565b611f5d6040830184611eed565b949350505050565b6000604082019050611f7a6000830185611cd5565b611f876020830184611eed565b9392505050565b6000602082019050611fa36000830184611d15565b92915050565b6000602082019050611fbe6000830184611d24565b92915050565b60006020820190508181036000830152611fde8184611d33565b905092915050565b60006020820190508181036000830152611fff81611d6c565b9050919050565b6000602082019050818103600083015261201f81611d8f565b9050919050565b6000602082019050818103600083015261203f81611db2565b9050919050565b6000602082019050818103600083015261205f81611dd5565b9050919050565b6000602082019050818103600083015261207f81611df8565b9050919050565b6000602082019050818103600083015261209f81611e1b565b9050919050565b600060208201905081810360008301526120bf81611e3e565b9050919050565b600060208201905081810360008301526120df81611e61565b9050919050565b600060208201905081810360008301526120ff81611e84565b9050919050565b6000602082019050818103600083015261211f81611ea7565b9050919050565b6000602082019050818103600083015261213f81611eca565b9050919050565b600060208201905061215b6000830184611eed565b92915050565b60006040820190506121766000830185611eed565b6121836020830184611eed565b9392505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b60006121c78261230f565b91506121d28361230f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561220757612206612394565b5b828201905092915050565b600061221d8261230f565b91506122288361230f565b925082612238576122376123c3565b5b828204905092915050565b600061224e8261230f565b91506122598361230f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561229257612291612394565b5b828202905092915050565b60006122a88261230f565b91506122b38361230f565b9250828210156122c6576122c5612394565b5b828203905092915050565b60006122dc826122ef565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006123248261233d565b9050919050565b60006123368261233d565b9050919050565b60006123488261234f565b9050919050565b600061235a826122ef565b9050919050565b60005b8381101561237f578082015181840152602081019050612364565b8381111561238e576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f43727970746f43617274506f6f6c3a3a656a6563743a2043616e6e6f7420656a60008201527f656374206265666f726520706572696f642066696e6973686573206f7220706f60208201527f6f6c206861732073746172746564000000000000000000000000000000000000604082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f43727970746f43617274506f6f6c3a3a7374616b653a2043616e6e6f7420737460008201527f616b652030000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f43727970746f43617274506f6f6c3a3a656d657267656e63795769746864726160008201527f773a2043616e6e6f7420656d657267656e63792077697468647261772062656660208201527f6f726520706572696f642066696e6973686573206f7220706f6f6c206861732060408201527f7374617274656400000000000000000000000000000000000000000000000000606082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f43727970746f43617274506f6f6c3a3a77697468647261773a2043616e6e6f7460008201527f2077697468647261772030000000000000000000000000000000000000000000602082015250565b7f2172657761726420616464656400000000000000000000000000000000000000600082015250565b7f43727970746f43617274506f6f6c3a3a656d657267656e63795769746864726160008201527f773a2043616e6e6f742077697468647261772030000000000000000000000000602082015250565b612776816122d1565b811461278157600080fd5b50565b61278d816122e3565b811461279857600080fd5b50565b6127a48161230f565b81146127af57600080fd5b5056fea2646970667358221220ce61855b78c228af747249dbf77ce18fe3fe8a7d52cf4140a0acb1855bd9edd864736f6c634300080700330000000000000000000000000000000000000000000000000000000000ed4e00000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f11000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f1100000000000000000000000015e54c22f4195142222ed7130521e9636ec3ccec

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101e45760003560e01c806378e979251161010f578063cd3daf9d116100a2578063e9fad8ee11610071578063e9fad8ee146104cc578063ebe2b12b146104d6578063f2fde38b146104f4578063f7c618c114610510576101e4565b8063cd3daf9d14610468578063db2e21bc14610486578063df136d6514610490578063e78b69f0146104ae576101e4565b80638f9a372d116100de5780638f9a372d146103f45780639eade65214610410578063a694fc3a1461042e578063c8f33c911461044a576101e4565b806378e97925146103905780637b0a47ee146103ae57806382e94ac5146103cc5780638da5cb5b146103d6576101e4565b80633d18b9121161018757806370a082311161015657806370a082311461031a578063715018a61461034a57806372f702f31461035457806374958e3514610372576101e4565b80633d18b912146102ca57806341c0e1b5146102d4578063461ac019146102de57806361d027b3146102fc576101e4565b80630fb5a6b4116101c35780630fb5a6b41461025457806318160ddd1461027257806320ba5698146102905780632e1a7d4d146102ae576101e4565b80628cc262146101e95780630700037d146102195780630c51dde41461024a575b600080fd5b61020360048036038101906101fe9190611c21565b61052e565b6040516102109190612146565b60405180910390f35b610233600480360381019061022e9190611c21565b610659565b604051610241929190612161565b60405180910390f35b61025261067d565b005b61025c610939565b6040516102699190612146565b60405180910390f35b61027a61095d565b6040516102879190612146565b60405180910390f35b610298610963565b6040516102a59190612146565b60405180910390f35b6102c860048036038101906102c39190611c7b565b610969565b005b6102d2610a0f565b005b6102dc610b2e565b005b6102e6610bb3565b6040516102f39190612146565b60405180910390f35b610304610bd7565b6040516103119190611f13565b60405180910390f35b610334600480360381019061032f9190611c21565b610bfb565b6040516103419190612146565b60405180910390f35b610352610c47565b005b61035c610ccf565b6040516103699190611fa9565b60405180910390f35b61037a610cf3565b6040516103879190612146565b60405180910390f35b610398610cf9565b6040516103a59190612146565b60405180910390f35b6103b6610cff565b6040516103c39190612146565b60405180910390f35b6103d4610d05565b005b6103de610ece565b6040516103eb9190611f13565b60405180910390f35b61040e60048036038101906104099190611c21565b610ef8565b005b610418610fb7565b6040516104259190612146565b60405180910390f35b61044860048036038101906104439190611c7b565b610fdb565b005b610452611081565b60405161045f9190612146565b60405180910390f35b610470611087565b60405161047d9190612146565b60405180910390f35b61048e611141565b005b61049861123d565b6040516104a59190612146565b60405180910390f35b6104b6611243565b6040516104c39190612146565b60405180910390f35b6104d4611256565b005b6104de611271565b6040516104eb9190612146565b60405180910390f35b61050e60048036038101906105099190611c21565b611277565b005b61051861136f565b6040516105259190611f8e565b60405180910390f35b600080600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015490506000600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180604001604052908160008201548152602001600182015481525050905061065081600001516106427f0000000000000000000000000000000000000000000000000de0b6b3a76400006106346106258660200151610617611087565b61139390919063ffffffff16565b876113a990919063ffffffff16565b6113bf90919063ffffffff16565b6113d590919063ffffffff16565b92505050919050565b600b6020528060005260406000206000915090508060000154908060010154905082565b6106856113eb565b73ffffffffffffffffffffffffffffffffffffffff166106a3610ece565b73ffffffffffffffffffffffffffffffffffffffff16146106f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106f090612086565b60405180910390fd5b60007f000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f1173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016107549190611f13565b60206040518083038186803b15801561076c57600080fd5b505afa158015610780573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a49190611ca8565b9050600081116107e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e090612106565b60405180910390fd5b6107f16113f3565b60065442106108385761082d7f0000000000000000000000000000000000000000000000000000000000ed4e00826113bf90919063ffffffff16565b6008819055506108b8565b600061084f4260065461139390919063ffffffff16565b90506000610868600854836113a990919063ffffffff16565b90506108af7f0000000000000000000000000000000000000000000000000000000000ed4e006108a183866113d590919063ffffffff16565b6113bf90919063ffffffff16565b60088190555050505b42600781905550426002819055506108f97f0000000000000000000000000000000000000000000000000000000000ed4e00426113d590919063ffffffff16565b6006819055507fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d8160405161092e9190612146565b60405180910390a150565b7f0000000000000000000000000000000000000000000000000000000000ed4e0081565b60015481565b60035481565b600081116109ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a3906120e6565b60405180910390fd5b6109b533611411565b6109be816114b4565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d582604051610a049190612146565b60405180910390a250565b610a1833611411565b6000610a233361052e565b90506000811115610b2b576000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001819055503373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048682604051610abc9190612146565b60405180910390a2610b0f33827f000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f1173ffffffffffffffffffffffffffffffffffffffff1661165c9092919063ffffffff16565b610b2481600a546113d590919063ffffffff16565b600a819055505b50565b610b366113eb565b73ffffffffffffffffffffffffffffffffffffffff16610b54610ece565b73ffffffffffffffffffffffffffffffffffffffff1614610baa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba190612086565b60405180910390fd5b42600681905550565b7f000000000000000000000000000000000000000000000000000000006284e14381565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001549050919050565b610c4f6113eb565b73ffffffffffffffffffffffffffffffffffffffff16610c6d610ece565b73ffffffffffffffffffffffffffffffffffffffff1614610cc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cba90612086565b60405180910390fd5b610ccd60006116e2565b565b7f000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f1181565b600a5481565b60025481565b60085481565b610d0d6113eb565b73ffffffffffffffffffffffffffffffffffffffff16610d2b610ece565b73ffffffffffffffffffffffffffffffffffffffff1614610d81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7890612086565b60405180910390fd5b61a8c0600654610d9191906121bc565b421015610dd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dca90611fe6565b60405180910390fd5b60007f000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f1173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610e2e9190611f13565b60206040518083038186803b158015610e4657600080fd5b505afa158015610e5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7e9190611ca8565b9050610ecb33827f000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f1173ffffffffffffffffffffffffffffffffffffffff1661165c9092919063ffffffff16565b50565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610f006113eb565b73ffffffffffffffffffffffffffffffffffffffff16610f1e610ece565b73ffffffffffffffffffffffffffffffffffffffff1614610f74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6b90612086565b60405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f0000000000000000000000000000000000000000000000000de0b6b3a764000081565b6000811161101e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101590612026565b60405180910390fd5b61102733611411565b611030816117a8565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d826040516110769190612146565b60405180910390a250565b60075481565b600060025442101561109c576000905061113e565b600060015414156110b157600954905061113e565b61113b61112a60015461111c7f0000000000000000000000000000000000000000000000000de0b6b3a764000061110e6008546111006007546110f2611243565b61139390919063ffffffff16565b6113a990919063ffffffff16565b6113a990919063ffffffff16565b6113bf90919063ffffffff16565b6009546113d590919063ffffffff16565b90505b90565b61a8c060065461115191906121bc565b421015611193576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118a90612066565b60405180910390fd5b600061119e33610bfb565b9050600081116111e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111da90612126565b60405180910390fd5b6111ec816114b4565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5826040516112329190612146565b60405180910390a250565b60095481565b6000611251426006546118ae565b905090565b61125e610a0f565b61126f61126a33610bfb565b610969565b565b60065481565b61127f6113eb565b73ffffffffffffffffffffffffffffffffffffffff1661129d610ece565b73ffffffffffffffffffffffffffffffffffffffff16146112f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ea90612086565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611363576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135a90612006565b60405180910390fd5b61136c816116e2565b50565b7f000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f1181565b600081836113a1919061229d565b905092915050565b600081836113b79190612243565b905092915050565b600081836113cd9190612212565b905092915050565b600081836113e391906121bc565b905092915050565b600033905090565b6113fb611087565b600981905550611409611243565b600781905550565b6114196113f3565b6114228161052e565b600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550600954600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001018190555050565b6114c98160015461139390919063ffffffff16565b60018190555061152481600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015461139390919063ffffffff16565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018190555060006115956103e8611587600354856113a990919063ffffffff16565b6113bf90919063ffffffff16565b90506115ed3382846115a7919061229d565b7f000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f1173ffffffffffffffffffffffffffffffffffffffff1661165c9092919063ffffffff16565b61165860008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16827f000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f1173ffffffffffffffffffffffffffffffffffffffff1661165c9092919063ffffffff16565b5050565b6116dd8363a9059cbb60e01b848460405160240161167b929190611f65565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506118c7565b505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6117f53330837f000000000000000000000000612e1726435fe38dd49a0b35b4065b56f49c8f1173ffffffffffffffffffffffffffffffffffffffff1661198e909392919063ffffffff16565b61184a81600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001546113d590919063ffffffff16565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001819055506118a5816001546113d590919063ffffffff16565b60018190555050565b60008183106118bd57816118bf565b825b905092915050565b6000611929826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611a179092919063ffffffff16565b905060008151111561198957808060200190518101906119499190611c4e565b611988576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197f906120c6565b60405180910390fd5b5b505050565b611a11846323b872dd60e01b8585856040516024016119af93929190611f2e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506118c7565b50505050565b6060611a268484600085611a2f565b90509392505050565b606082471015611a74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6b90612046565b60405180910390fd5b611a7d85611b43565b611abc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab3906120a6565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611ae59190611efc565b60006040518083038185875af1925050503d8060008114611b22576040519150601f19603f3d011682016040523d82523d6000602084013e611b27565b606091505b5091509150611b37828286611b66565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60608315611b7657829050611bc6565b600083511115611b895782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bbd9190611fc4565b60405180910390fd5b9392505050565b600081359050611bdc8161276d565b92915050565b600081519050611bf181612784565b92915050565b600081359050611c068161279b565b92915050565b600081519050611c1b8161279b565b92915050565b600060208284031215611c3757611c366123f2565b5b6000611c4584828501611bcd565b91505092915050565b600060208284031215611c6457611c636123f2565b5b6000611c7284828501611be2565b91505092915050565b600060208284031215611c9157611c906123f2565b5b6000611c9f84828501611bf7565b91505092915050565b600060208284031215611cbe57611cbd6123f2565b5b6000611ccc84828501611c0c565b91505092915050565b611cde816122d1565b82525050565b6000611cef8261218a565b611cf981856121a0565b9350611d09818560208601612361565b80840191505092915050565b611d1e81612319565b82525050565b611d2d8161232b565b82525050565b6000611d3e82612195565b611d4881856121ab565b9350611d58818560208601612361565b611d61816123f7565b840191505092915050565b6000611d79604e836121ab565b9150611d8482612408565b606082019050919050565b6000611d9c6026836121ab565b9150611da78261247d565b604082019050919050565b6000611dbf6025836121ab565b9150611dca826124cc565b604082019050919050565b6000611de26026836121ab565b9150611ded8261251b565b604082019050919050565b6000611e056067836121ab565b9150611e108261256a565b608082019050919050565b6000611e286020836121ab565b9150611e3382612605565b602082019050919050565b6000611e4b601d836121ab565b9150611e568261262e565b602082019050919050565b6000611e6e602a836121ab565b9150611e7982612657565b604082019050919050565b6000611e91602b836121ab565b9150611e9c826126a6565b604082019050919050565b6000611eb4600d836121ab565b9150611ebf826126f5565b602082019050919050565b6000611ed76034836121ab565b9150611ee28261271e565b604082019050919050565b611ef68161230f565b82525050565b6000611f088284611ce4565b915081905092915050565b6000602082019050611f286000830184611cd5565b92915050565b6000606082019050611f436000830186611cd5565b611f506020830185611cd5565b611f5d6040830184611eed565b949350505050565b6000604082019050611f7a6000830185611cd5565b611f876020830184611eed565b9392505050565b6000602082019050611fa36000830184611d15565b92915050565b6000602082019050611fbe6000830184611d24565b92915050565b60006020820190508181036000830152611fde8184611d33565b905092915050565b60006020820190508181036000830152611fff81611d6c565b9050919050565b6000602082019050818103600083015261201f81611d8f565b9050919050565b6000602082019050818103600083015261203f81611db2565b9050919050565b6000602082019050818103600083015261205f81611dd5565b9050919050565b6000602082019050818103600083015261207f81611df8565b9050919050565b6000602082019050818103600083015261209f81611e1b565b9050919050565b600060208201905081810360008301526120bf81611e3e565b9050919050565b600060208201905081810360008301526120df81611e61565b9050919050565b600060208201905081810360008301526120ff81611e84565b9050919050565b6000602082019050818103600083015261211f81611ea7565b9050919050565b6000602082019050818103600083015261213f81611eca565b9050919050565b600060208201905061215b6000830184611eed565b92915050565b60006040820190506121766000830185611eed565b6121836020830184611eed565b9392505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b60006121c78261230f565b91506121d28361230f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561220757612206612394565b5b828201905092915050565b600061221d8261230f565b91506122288361230f565b925082612238576122376123c3565b5b828204905092915050565b600061224e8261230f565b91506122598361230f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561229257612291612394565b5b828202905092915050565b60006122a88261230f565b91506122b38361230f565b9250828210156122c6576122c5612394565b5b828203905092915050565b60006122dc826122ef565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006123248261233d565b9050919050565b60006123368261233d565b9050919050565b60006123488261234f565b9050919050565b600061235a826122ef565b9050919050565b60005b8381101561237f578082015181840152602081019050612364565b8381111561238e576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f43727970746f43617274506f6f6c3a3a656a6563743a2043616e6e6f7420656a60008201527f656374206265666f726520706572696f642066696e6973686573206f7220706f60208201527f6f6c206861732073746172746564000000000000000000000000000000000000604082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f43727970746f43617274506f6f6c3a3a7374616b653a2043616e6e6f7420737460008201527f616b652030000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f43727970746f43617274506f6f6c3a3a656d657267656e63795769746864726160008201527f773a2043616e6e6f7420656d657267656e63792077697468647261772062656660208201527f6f726520706572696f642066696e6973686573206f7220706f6f6c206861732060408201527f7374617274656400000000000000000000000000000000000000000000000000606082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f43727970746f43617274506f6f6c3a3a77697468647261773a2043616e6e6f7460008201527f2077697468647261772030000000000000000000000000000000000000000000602082015250565b7f2172657761726420616464656400000000000000000000000000000000000000600082015250565b7f43727970746f43617274506f6f6c3a3a656d657267656e63795769746864726160008201527f773a2043616e6e6f742077697468647261772030000000000000000000000000602082015250565b612776816122d1565b811461278157600080fd5b50565b61278d816122e3565b811461279857600080fd5b50565b6127a48161230f565b81146127af57600080fd5b5056fea2646970667358221220ce61855b78c228af747249dbf77ce18fe3fe8a7d52cf4140a0acb1855bd9edd864736f6c63430008070033

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.