MATIC Price: $0.725172 (-3.18%)
Gas: 36 GWei
 

Sponsored

Transaction Hash
Method
Block
From
To
Value
Emergency Withdr...572221652024-05-21 12:32:259 hrs ago1716294745IN
LIF3: Garden
0 MATIC0.00659542105.88590044
Deposit570627532024-05-17 7:32:064 days ago1715931126IN
LIF3: Garden
0 MATIC0.0085897868.4401238
Emergency Withdr...552962222024-03-31 18:15:4351 days ago1711908943IN
LIF3: Garden
0 MATIC0.0032093751.53465591
Emergency Withdr...549462562024-03-22 9:21:1260 days ago1711099272IN
LIF3: Garden
0 MATIC0.0028823546.28358556
Emergency Withdr...547978762024-03-18 8:57:1164 days ago1710752231IN
LIF3: Garden
0 MATIC0.00705772113.30790687
Emergency Withdr...547978452024-03-18 8:55:3364 days ago1710752133IN
LIF3: Garden
0 MATIC0.005745192.25226576
Emergency Withdr...545700952024-03-12 12:54:3270 days ago1710248072IN
LIF3: Garden
0 MATIC0.00904358145.18989192
Emergency Withdr...542143692024-03-03 10:53:5479 days ago1709463234IN
LIF3: Garden
0 MATIC0.0043073569.16556753
Emergency Withdr...535222612024-02-14 18:58:0997 days ago1707937089IN
LIF3: Garden
0 MATIC0.0027089943.49149432
Emergency Withdr...534227002024-02-12 7:05:1699 days ago1707721516IN
LIF3: Garden
0 MATIC0.0018683630.00143858
Withdraw533442562024-02-10 8:13:31101 days ago1707552811IN
LIF3: Garden
0 MATIC0.0025145430.0000062
Emergency Withdr...533441512024-02-10 8:09:37101 days ago1707552577IN
LIF3: Garden
0 MATIC0.0018682830.00000766
Emergency Withdr...532071382024-02-06 21:24:45105 days ago1707254685IN
LIF3: Garden
0 MATIC0.0021890535.14414992
Emergency Withdr...532071132024-02-06 21:23:51105 days ago1707254631IN
LIF3: Garden
0 MATIC0.0021910935.18354666
Emergency Withdr...530441202024-02-02 16:55:30109 days ago1706892930IN
LIF3: Garden
0 MATIC0.00477987109.69044924
Emergency Withdr...530441152024-02-02 16:55:20109 days ago1706892920IN
LIF3: Garden
0 MATIC0.00519472114.98857177
Emergency Withdr...529338522024-01-30 18:36:39112 days ago1706639799IN
LIF3: Garden
0 MATIC0.0038611162
Emergency Withdr...523929202024-01-16 13:10:23126 days ago1705410623IN
LIF3: Garden
0 MATIC0.0026060841.83920988
Emergency Withdr...523929082024-01-16 13:09:54126 days ago1705410594IN
LIF3: Garden
0 MATIC0.0025358940.72022964
Deposit522597312024-01-13 3:54:07129 days ago1705118047IN
LIF3: Garden
0 MATIC0.0017288730.00000005
Emergency Withdr...522597072024-01-13 3:53:15129 days ago1705117995IN
LIF3: Garden
0 MATIC0.0018682830.00000006
Emergency Withdr...522593992024-01-13 3:41:17129 days ago1705117277IN
LIF3: Garden
0 MATIC0.0013076430.00000004
Deposit518682072024-01-02 22:11:50139 days ago1704233510IN
LIF3: Garden
0 MATIC0.0039050247.25000691
Emergency Withdr...500160082023-11-16 13:58:17187 days ago1700143097IN
LIF3: Garden
0 MATIC0.263383894,228.48536445
Emergency Withdr...500159992023-11-16 13:57:57187 days ago1700143077IN
LIF3: Garden
0 MATIC0.254973734,094.25358154
View all transactions

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

Contract Source Code Verified (Exact Match)

Contract Name:
TheGarden

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 9999 runs

Other Settings:
default evmVersion
File 1 of 9 : TheGarden.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

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

import "./owner/Operator.sol";
import "./interfaces/IERC20Mintable.sol";


contract TheGarden is Operator {
    using SafeERC20 for IERC20;

    /// User-specific information.
    struct UserInfo {
        /// How many tokens the user provided.
        uint256 amount;
        /// How many unclaimed rewards does the user have pending.
        uint256 rewardDebt;
    }

    /// Pool-specific information.
    struct PoolInfo {
        /// Address of the token staked in the pool.
        IERC20 token;
        /// Allocation points assigned to the pool.
        /// @dev Rewards are distributed in the pool according to formula: (allocPoint / totalAllocPoint) * rewardTokenPerSecond
        uint256 allocPoint;
        /// Last time the rewards distribution was calculated.
        uint256 lastRewardTime;
        /// Accumulated reward token per share. Its sum of all rewardTokens per share amounts, increased by new value on every update
        uint256 accRewardTokenPerShare;
        /// Deposit fee in %, where 100 == 1%.
        uint16 depositFee;
        /// Is the pool rewards emission started.
        bool isStarted;

    }

    /// Reward token.
    IERC20 public rewardToken;

    /// Address where the deposit fees are transferred.
    address public feeCollector;

    /// Information about each pool.
    PoolInfo[] public poolInfo;

    /// Information about each user in each pool.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;

    /// Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;

    /// The time when reward token emissions start.
    uint256 public poolStartTime;

    /// Reward token distribution per second
    uint256 public rewardTokensPerSecond;

    /* Events */

    event AddPool(
        address indexed user,
        uint256 indexed pid,
        uint256 allocPoint,
        uint256 totalAllocPoint,
        uint16 depositFee
    );
    event ModifyPool(
        address indexed user,
        uint256 indexed pid,
        uint256 allocPoint,
        uint256 totalAllocPoint,
        uint16 depositFee
    );
    event Deposit(address indexed user, uint256 indexed pid, uint256 amount, uint256 depositFee);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event RewardPaid(address indexed user, uint256 amount);
    event UpdateFeeCollector(address indexed user, address feeCollector);
    event SetRewardTokensPerSecond(address indexed user, uint256 amount);
    event RecoverUnsupported(address indexed user, address token, uint256 amount, address targetAddress);

    /// Default constructor.
    /// @param _rewardToken Address of reward token
    /// @param _poolStartTime Emissions start time
    /// @param _feeCollector Address where the deposit fees are transferred.
    constructor(
        address _rewardToken,
        uint256 _poolStartTime,
        address _feeCollector
    ) {
        require(block.timestamp < _poolStartTime, "Start time too early");
        require(_feeCollector != address(0), "Fee collector address cannot be 0 address");
        require(_rewardToken != address(0), "Reward token address cannot be 0");
        rewardToken = IERC20(_rewardToken);
        poolStartTime = _poolStartTime;
        feeCollector = _feeCollector;
    }

    /// Estimate pending rewards for specific user.
    /// @param _pid Id of an existing pool
    /// @param _user Address of a user for which the pending rewards should be calculated
    /// @return Amount of pending rewards for specific user
    /// @dev To be used in UI
    function pendingShare(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accRewardTokenPerShare = pool.accRewardTokenPerShare;
        uint256 tokenSupply = pool.token.balanceOf(address(this));
        if (block.timestamp > pool.lastRewardTime && tokenSupply != 0) {
            uint256 _generatedReward = getGeneratedReward(pool.lastRewardTime, block.timestamp);
            uint256 _rewardTokens = (_generatedReward * pool.allocPoint) / totalAllocPoint;
            accRewardTokenPerShare = accRewardTokenPerShare + ((_rewardTokens * 1e18) / tokenSupply);
        }
        return ((user.amount * accRewardTokenPerShare) / 1e18) - user.rewardDebt;
    }

    /// Set a new deposit fees collector address.
    /// @param _feeCollector A new deposit fee collector address
    /// @dev Can only be called by the Operator
    function setFeeCollector(address _feeCollector) external onlyOperator {
        require(_feeCollector != address(0), "Address cannot be 0");
        feeCollector = _feeCollector;
        emit UpdateFeeCollector(msg.sender, address(_feeCollector));
    }

    /// Transferred tokens sent to the contract by mistake.
    /// @param _token Address of token to be transferred (cannot be staking nor the reward token)
    /// @param _amount Amount of tokens to be transferred
    /// @param _to Recipient address of the transfer
    /// @dev Can only be called by the Operator
    function governanceRecoverUnsupported(
        IERC20 _token,
        uint256 _amount,
        address _to
    ) external onlyOperator {
        require(_token != rewardToken, "Cannot withdraw reward token");
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            PoolInfo storage pool = poolInfo[pid];
            require(_token != pool.token, "Cannot withdraw pool tokens");
        }
        _token.safeTransfer(_to, _amount);
        emit RecoverUnsupported(msg.sender, address(_token), _amount, _to);
    }

    /// Add a new pool.
    /// @param _allocPoint Allocations points assigned to the pool
    /// @param _token Address of token to be staked in the pool
    /// @param _depositFee Deposit fee in % (where 100 == 1%)
    /// @param _lastRewardTime Start time of the emissions from the pool
    /// @dev Can only be called by the Operator.
    function add(
        uint256 _allocPoint,
        IERC20 _token,
        uint16 _depositFee,
        uint256 _lastRewardTime
    ) public onlyOperator {
        _token.balanceOf(address(this)); // guard to revert calls that try to add non-IERC20 addresses
        require(_depositFee <= 4000, "Deposit fee cannot be higher than 40%");
        checkPoolDuplicate(_token);
        uint256 lastRewardTime = _lastRewardTime;
        if (block.timestamp < poolStartTime) {
            // chef is sleeping
            if (lastRewardTime == 0) {
                lastRewardTime = poolStartTime;
            } else {
                if (lastRewardTime < poolStartTime) {
                    lastRewardTime = poolStartTime;
                }
            }
        } else {
            massUpdatePools();
            // chef is cooking
            if (lastRewardTime == 0 || lastRewardTime < block.timestamp) {
                lastRewardTime = block.timestamp;
            }
        }
        bool _isStarted = (lastRewardTime <= poolStartTime) || (lastRewardTime <= block.timestamp);
        poolInfo.push(
            PoolInfo({
                token: _token,
                allocPoint: _allocPoint,
                lastRewardTime: lastRewardTime,
                accRewardTokenPerShare: 0,
                depositFee: _depositFee,
                isStarted: _isStarted
            })
        );
        if (_isStarted) {
            totalAllocPoint = totalAllocPoint + _allocPoint;
        }

        emit AddPool(msg.sender, poolInfo.length - 1, _allocPoint, totalAllocPoint, _depositFee);
    }

    /// Update the given pool's parameters.
    /// @param _pid Id of an existing pool
    /// @param _allocPoint New allocations points assigned to the pool
    /// @param _depositFee New deposit fee assigned to the pool
    /// @dev Can only be called by the Operator.
    function set(
        uint256 _pid,
        uint256 _allocPoint,
        uint16 _depositFee
    ) public onlyOperator {
        require(_depositFee <= 4000, "Deposit fee cannot be higher than 40%");
        massUpdatePools();
        PoolInfo storage pool = poolInfo[_pid];
        if (pool.isStarted) {
            totalAllocPoint = (totalAllocPoint - pool.allocPoint) + _allocPoint;
        }
        pool.allocPoint = _allocPoint;
        pool.depositFee = _depositFee;

        emit ModifyPool(msg.sender, _pid, _allocPoint, totalAllocPoint, _depositFee);
    }

    function setRewardTokensPerSecond(uint256 _rewardTokensPerSecond) public onlyOperator {
        massUpdatePools();
        rewardTokensPerSecond = _rewardTokensPerSecond;
        emit SetRewardTokensPerSecond(msg.sender, _rewardTokensPerSecond);
    }

    /// Return amount of accumulated rewards over the given time, according to the reward tokens per second emission.
    /// @param _fromTime Time from which the generated rewards should be calculated
    /// @param _toTime Time to which the generated rewards should be calculated
    function getGeneratedReward(uint256 _fromTime, uint256 _toTime) public view returns (uint256) {
        if (_fromTime >= _toTime) return 0;
        if (_toTime <= poolStartTime) return 0;
        if (_fromTime <= poolStartTime) return (_toTime - poolStartTime) * rewardTokensPerSecond;
        return (_toTime - _fromTime) * rewardTokensPerSecond;
    }

    /// Update reward variables for all pools.
    /// @dev Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    /// Update reward variables of the given pool to be up-to-date.
    /// @param _pid Id of the pool to be updated
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.timestamp <= pool.lastRewardTime) {
            return;
        }
        uint256 tokenSupply = pool.token.balanceOf(address(this));
        if (tokenSupply == 0) {
            pool.lastRewardTime = block.timestamp;
            return;
        }
        if (!pool.isStarted) {
            pool.isStarted = true;
            totalAllocPoint = totalAllocPoint + pool.allocPoint;
        }
        if (totalAllocPoint > 0) {
            uint256 _generatedReward = getGeneratedReward(pool.lastRewardTime, block.timestamp);
            uint256 _rewardTokens = (_generatedReward * pool.allocPoint) / totalAllocPoint;
            pool.accRewardTokenPerShare = pool.accRewardTokenPerShare + ((_rewardTokens * 1e18) / tokenSupply);
        }
        pool.lastRewardTime = block.timestamp;
    }

    /// Deposit tokens in a pool.
    /// @param _pid Id of the chosen pool
    /// @param _amount Amount of tokens to be staked in the pool
    function deposit(uint256 _pid, uint256 _amount) public {
        address _sender = msg.sender;
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 _pending = ((user.amount * pool.accRewardTokenPerShare) / 1e18) - user.rewardDebt;
            if (_pending > 0) {
                require(
                    rewardToken.balanceOf(address(this)) >= _pending,
                    "Too little rewards in contract to pay to user"
                );
                rewardToken.safeTransfer(_sender, _pending);
                emit RewardPaid(_sender, _pending);
            }
        }
        if (_amount > 0) {
            if (pool.depositFee > 0) {
                uint256 depositFeeAmount = (_amount * pool.depositFee) / 10000;
                uint256 _amountMinusFee = _amount - depositFeeAmount;
                pool.token.safeTransferFrom(_sender, feeCollector, depositFeeAmount);
                pool.token.safeTransferFrom(_sender, address(this), _amountMinusFee);
                user.amount = user.amount + (_amountMinusFee);
            } else {
                pool.token.safeTransferFrom(_sender, address(this), _amount);
                user.amount = user.amount + _amount;
            }
        }
        user.rewardDebt = (user.amount * pool.accRewardTokenPerShare) / 1e18;
        emit Deposit(_sender, _pid, _amount, pool.depositFee);
    }

    /// Withdraw tokens from a pool.
    /// @param _pid Id of the chosen pool
    /// @param _amount Amount of tokens to be withdrawn from the pool
    function withdraw(uint256 _pid, uint256 _amount) public {
        address _sender = msg.sender;
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_sender];
        require(user.amount >= _amount, "Withdraw amount greater than users deposited amount");
        updatePool(_pid);
        uint256 _pending = ((user.amount * pool.accRewardTokenPerShare) / 1e18) - user.rewardDebt;
        if (_pending > 0) {
            require(
                rewardToken.balanceOf(address(this)) >= _pending,
                "Too low contract reward token balance to withdraw"
            );
            rewardToken.safeTransfer(_sender, _pending);
            emit RewardPaid(_sender, _pending);
        }
        if (_amount > 0) {
            user.amount = user.amount - _amount;
            pool.token.safeTransfer(_sender, _amount);
        }
        user.rewardDebt = (user.amount * pool.accRewardTokenPerShare) / 1e18;
        emit Withdraw(_sender, _pid, _amount);
    }

    /// Withdraw tokens from a pool without rewards. ONLY IN CASE OF EMERGENCY.
    /// @param _pid Id of the chosen pool
    function emergencyWithdraw(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        uint256 _amount = user.amount;
        user.amount = 0;
        user.rewardDebt = 0;
        pool.token.safeTransfer(msg.sender, _amount);
        emit EmergencyWithdraw(msg.sender, _pid, _amount);
    }

    /// Check if a pool already exists for specified token.
    /// @param _token Address of token to check for existing pools
    function checkPoolDuplicate(IERC20 _token) internal view {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            require(poolInfo[pid].token != _token, "Pool already exists");
        }
    }
}

File 2 of 9 : 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 2 of 9 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.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));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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 2 of 9 : Operator.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

/// Additional access control mechanism on top of {Ownable}.
/// @dev Introduces a new - Operator role, in addition to already existing Owner role.
abstract contract Operator is Context, Ownable {
    /// Address of the Operator
    address private _operator;

    /* EVENTS */
    event OperatorTransferred(address indexed previousOperator, address indexed newOperator);

    /// Default constructor.
    constructor() {
        _operator = _msgSender();
        emit OperatorTransferred(address(0), _operator);
    }

    /// Returns the current Operator address.
    function operator() public view returns (address) {
        return _operator;
    }

    /// Access control modifier, which only allows Operator to call the annotated function.
    modifier onlyOperator() {
        require(_operator == msg.sender, "operator: caller is not the operator");
        _;
    }

    /// Access control modifier, which only allows Operator or Owner to call the annotated function.
    modifier onlyOwnerOrOperator() {
        require((owner() == msg.sender) || (_operator == msg.sender), "operator: caller is not the owner or the operator");
        _;
    }

    /// Checks if caller is an Operator.
    function isOperator() public view returns (bool) {
        return _msgSender() == _operator;
    }

    /// Checks if called is an Owner or an Operator.
    function isOwnerOrOperator() public view returns (bool) {
        return (_msgSender() == _operator) || (_msgSender() == owner());
    }

    /// Transfers Operator role to a new address.
    /// @param newOperator_ Address to which the Operator role should be transferred.
    function transferOperator(address newOperator_) public onlyOwnerOrOperator {
        _transferOperator(newOperator_);
    }

    /// Transfers Operator role to a new address.
    /// @param newOperator_ Address to which the Operator role should be transferred.
    function _transferOperator(address newOperator_) internal {
        require(newOperator_ != address(0), "operator: zero address given for new operator");
        emit OperatorTransferred(address(0), newOperator_);
        _operator = newOperator_;
    }
}

File 2 of 9 : IERC20Mintable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

interface IERC20Mintable {
    function mint(address recipient, uint256 amount) external returns (bool);

    function burn(uint256 amount) external;

    function burnFrom(address from, uint256 amount) external;

    function isOperator() external returns (bool);

    function operator() external view returns (address);

    function transferOperator(address newOperator_) external;

    function totalSupply() external view returns (uint256);

    function balanceOf(address account) external view returns (uint256);
}

File 2 of 9 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 2 of 9 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 2 of 9 : 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 2 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_poolStartTime","type":"uint256"},{"internalType":"address","name":"_feeCollector","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalAllocPoint","type":"uint256"},{"indexed":false,"internalType":"uint16","name":"depositFee","type":"uint16"}],"name":"AddPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"depositFee","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalAllocPoint","type":"uint256"},{"indexed":false,"internalType":"uint16","name":"depositFee","type":"uint16"}],"name":"ModifyPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"}],"name":"OperatorTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"targetAddress","type":"address"}],"name":"RecoverUnsupported","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","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":"SetRewardTokensPerSecond","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"feeCollector","type":"address"}],"name":"UpdateFeeCollector","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint16","name":"_depositFee","type":"uint16"},{"internalType":"uint256","name":"_lastRewardTime","type":"uint256"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeCollector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fromTime","type":"uint256"},{"internalType":"uint256","name":"_toTime","type":"uint256"}],"name":"getGeneratedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"governanceRecoverUnsupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOwnerOrOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"accRewardTokenPerShare","type":"uint256"},{"internalType":"uint16","name":"depositFee","type":"uint16"},{"internalType":"bool","name":"isStarted","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardTokensPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint16","name":"_depositFee","type":"uint16"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeCollector","type":"address"}],"name":"setFeeCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardTokensPerSecond","type":"uint256"}],"name":"setRewardTokensPerSecond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOperator_","type":"address"}],"name":"transferOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260006006553480156200001657600080fd5b506040516200269238038062002692833981016040819052620000399162000240565b6200004433620001d3565b600180546001600160a01b031916339081179091556040516000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3814210620000d95760405162461bcd60e51b815260206004820152601460248201527f53746172742074696d6520746f6f206561726c7900000000000000000000000060448201526064015b60405180910390fd5b6001600160a01b038116620001435760405162461bcd60e51b815260206004820152602960248201527f46656520636f6c6c6563746f7220616464726573732063616e6e6f742062652060448201526830206164647265737360b81b6064820152608401620000d0565b6001600160a01b0383166200019b5760405162461bcd60e51b815260206004820181905260248201527f52657761726420746f6b656e20616464726573732063616e6e6f7420626520306044820152606401620000d0565b600280546001600160a01b039485166001600160a01b0319918216179091556007929092556003805491909316911617905562000281565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200023b57600080fd5b919050565b6000806000606084860312156200025657600080fd5b620002618462000223565b925060208401519150620002786040850162000223565b90509250925092565b61240180620002916000396000f3fe608060405234801561001057600080fd5b50600436106101ae5760003560e01c806359e83a4b116100ee578063a42dce8011610097578063e2bbb15811610071578063e2bbb158146103b1578063f2fde38b146103c4578063f6875c62146103d7578063f7c618c1146103ea57600080fd5b8063a42dce8014610378578063c415b95c1461038b578063cf4b55cb1461039e57600080fd5b8063715018a6116100c8578063715018a6146103185780638da5cb5b1461032057806393f1a40b1461033157600080fd5b806359e83a4b146102fe5780635f96dc1114610307578063630b5ba11461031057600080fd5b80632f27aa541161015b57806351eb05a61161013557806351eb05a6146102a05780635312ea8e146102b357806354575af4146102c6578063570ca735146102d957600080fd5b80632f27aa541461026d578063441a3e70146102855780634456eda21461029857600080fd5b8063231f0c6a1161018c578063231f0c6a1461023457806324bcb38c1461024757806329605e771461025a57600080fd5b80631526fe27146101b357806317caf6f1146102085780631e0303181461021f575b600080fd5b6101c66101c1366004612048565b6103fd565b604080516001600160a01b039097168752602087019590955293850192909252606084015261ffff166080830152151560a082015260c0015b60405180910390f35b61021160065481565b6040519081526020016101ff565b61023261022d36600461208d565b610457565b005b6102116102423660046120d3565b610849565b6102326102553660046120f5565b6108b5565b61023261026836600461212a565b610a9f565b610275610b4f565b60405190151581526020016101ff565b6102326102933660046120d3565b610b8d565b610275610e8e565b6102326102ae366004612048565b610ea3565b6102326102c1366004612048565b61104e565b6102326102d4366004612147565b6110e4565b6001546001600160a01b03165b6040516001600160a01b0390911681526020016101ff565b61021160085481565b61021160075481565b6102326112cd565b6102326112f8565b6000546001600160a01b03166102e6565b61036361033f366004612189565b60056020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016101ff565b61023261038636600461212a565b61130c565b6003546102e6906001600160a01b031681565b6102116103ac366004612189565b611450565b6102326103bf3660046120d3565b6115df565b6102326103d236600461212a565b61191a565b6102326103e5366004612048565b6119a7565b6002546102e6906001600160a01b031681565b6004818154811061040d57600080fd5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909161ffff81169062010000900460ff1686565b6001546001600160a01b031633146104db5760405162461bcd60e51b8152602060048201526024808201527f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260448201527f61746f720000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038416906370a082319060240160206040518083038186803b15801561053357600080fd5b505afa158015610547573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056b91906121b9565b50610fa08261ffff1611156105e85760405162461bcd60e51b815260206004820152602560248201527f4465706f736974206665652063616e6e6f74206265206869676865722074686160448201527f6e2034302500000000000000000000000000000000000000000000000000000060648201526084016104d2565b6105f183611a65565b600754819042101561061f578061060b575060075461063b565b60075481101561061a57506007545b61063b565b6106276112cd565b80158061063357504281105b1561063b5750425b60006007548211158061064e5750428211155b6040805160c0810182526001600160a01b038881168252602082018a815292820186815260006060840181815261ffff8b8116608087019081528815801560a0890190815260048054600181018255965297517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b600590960295860180547fffffffffffffffffffffffff000000000000000000000000000000000000000016919098161790965596517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c84015592517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d830155517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e82015593517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19f90940180549351949091167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000009093169290921762010000931515939093029290921790559091506107e757856006546107e39190612201565b6006555b6004546107f690600190612219565b60065460408051898152602081019290925261ffff87169082015233907fc3efcae3a22d06aaa653f77760f71a5c8e44589b0501b6574a46f832af20c64b906060015b60405180910390a3505050505050565b600081831061085a575060006108af565b600754821161086b575060006108af565b6007548311610895576008546007546108849084612219565b61088e9190612230565b90506108af565b6008546108a28484612219565b6108ac9190612230565b90505b92915050565b6001546001600160a01b031633146109345760405162461bcd60e51b8152602060048201526024808201527f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260448201527f61746f720000000000000000000000000000000000000000000000000000000060648201526084016104d2565b610fa08161ffff1611156109b05760405162461bcd60e51b815260206004820152602560248201527f4465706f736974206665652063616e6e6f74206265206869676865722074686160448201527f6e2034302500000000000000000000000000000000000000000000000000000060648201526084016104d2565b6109b86112cd565b6000600484815481106109cd576109cd61226d565b906000526020600020906005020190508060040160029054906101000a900460ff1615610a1557828160010154600654610a079190612219565b610a119190612201565b6006555b600181018390556004810180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff8416908117909155600654604080518681526020810192909252810191909152849033907f7011c46bd464d3d2faf3c69f36b9c1b1d749768de5566cb73a904b64cc77616a906060015b60405180910390a350505050565b33610ab26000546001600160a01b031690565b6001600160a01b03161480610ad157506001546001600160a01b031633145b610b435760405162461bcd60e51b815260206004820152603160248201527f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f776e6560448201527f72206f7220746865206f70657261746f7200000000000000000000000000000060648201526084016104d2565b610b4c81611b0d565b50565b6001546000906001600160a01b0316336001600160a01b03161480610b8857506000546001600160a01b0316335b6001600160a01b0316145b905090565b6000339050600060048481548110610ba757610ba761226d565b60009182526020808320878452600580835260408086206001600160a01b0389168752909352919093208054929091029092019250841115610c515760405162461bcd60e51b815260206004820152603360248201527f576974686472617720616d6f756e742067726561746572207468616e2075736560448201527f7273206465706f736974656420616d6f756e740000000000000000000000000060648201526084016104d2565b610c5a85610ea3565b60008160010154670de0b6b3a764000084600301548460000154610c7e9190612230565b610c88919061229c565b610c929190612219565b90508015610dfd576002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015282916001600160a01b0316906370a082319060240160206040518083038186803b158015610cf657600080fd5b505afa158015610d0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2e91906121b9565b1015610da25760405162461bcd60e51b815260206004820152603160248201527f546f6f206c6f7720636f6e74726163742072657761726420746f6b656e20626160448201527f6c616e636520746f20776974686472617700000000000000000000000000000060648201526084016104d2565b600254610db9906001600160a01b03168583611bf9565b836001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048682604051610df491815260200190565b60405180910390a25b8415610e28578154610e10908690612219565b82558254610e28906001600160a01b03168587611bf9565b60038301548254670de0b6b3a764000091610e4291612230565b610e4c919061229c565b600183015560405185815286906001600160a01b038616907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56890602001610839565b6001546000906001600160a01b031633610b7d565b600060048281548110610eb857610eb861226d565b9060005260206000209060050201905080600201544211610ed7575050565b80546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610f3357600080fd5b505afa158015610f47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6b91906121b9565b905080610f7d57504260029091015550565b600482015462010000900460ff16610fd4576004820180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff16620100001790556001820154600654610fd09190612201565b6006555b60065415611043576000610fec836002015442610849565b905060006006548460010154836110039190612230565b61100d919061229c565b90508261102282670de0b6b3a7640000612230565b61102c919061229c565b846003015461103b9190612201565b600385015550505b504260029091015550565b6000600482815481106110635761106361226d565b600091825260208083208584526005808352604080862033808852945285208054868255600182019690965593020180549094509192916110b0916001600160a01b039091169083611bf9565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae059590602001610a91565b6001546001600160a01b031633146111635760405162461bcd60e51b8152602060048201526024808201527f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260448201527f61746f720000000000000000000000000000000000000000000000000000000060648201526084016104d2565b6002546001600160a01b03848116911614156111c15760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f742077697468647261772072657761726420746f6b656e0000000060448201526064016104d2565b60045460005b81811015611265576000600482815481106111e4576111e461226d565b6000918252602090912060059091020180549091506001600160a01b03878116911614156112545760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f7420776974686472617720706f6f6c20746f6b656e73000000000060448201526064016104d2565b5061125e816122d7565b90506111c7565b5061127a6001600160a01b0385168385611bf9565b604080516001600160a01b03868116825260208201869052841681830152905133917fc6fd1e1fa5e9ce8b7f91e33e2b3d61a04408a93bff9a53e6491ea52db79134d6919081900360600190a250505050565b60045460005b818110156112f4576112e481610ea3565b6112ed816122d7565b90506112d3565b5050565b611300611cc0565b61130a6000611d1a565b565b6001546001600160a01b0316331461138b5760405162461bcd60e51b8152602060048201526024808201527f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260448201527f61746f720000000000000000000000000000000000000000000000000000000060648201526084016104d2565b6001600160a01b0381166113e15760405162461bcd60e51b815260206004820152601360248201527f416464726573732063616e6e6f7420626520300000000000000000000000000060448201526064016104d2565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03831690811790915560405190815233907fcc882185e6edeeb762130016ea1faf3d7aa9c01b199bfd646f965b58ab741063906020015b60405180910390a250565b600080600484815481106114665761146661226d565b60009182526020808320878452600580835260408086206001600160a01b038a811688529452808620949091029091016003810154815492517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015291965093949291909116906370a082319060240160206040518083038186803b1580156114f457600080fd5b505afa158015611508573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152c91906121b9565b905083600201544211801561154057508015155b156115a4576000611555856002015442610849565b9050600060065486600101548361156c9190612230565b611576919061229c565b90508261158b82670de0b6b3a7640000612230565b611595919061229c565b61159f9085612201565b935050505b60018301548354670de0b6b3a7640000906115c0908590612230565b6115ca919061229c565b6115d49190612219565b979650505050505050565b60003390506000600484815481106115f9576115f961226d565b60009182526020808320878452600580835260408086206001600160a01b0389168752909352919093209102909101915061163385610ea3565b8054156117df5760008160010154670de0b6b3a76400008460030154846000015461165e9190612230565b611668919061229c565b6116729190612219565b905080156117dd576002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015282916001600160a01b0316906370a082319060240160206040518083038186803b1580156116d657600080fd5b505afa1580156116ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061170e91906121b9565b10156117825760405162461bcd60e51b815260206004820152602d60248201527f546f6f206c6974746c65207265776172647320696e20636f6e7472616374207460448201527f6f2070617920746f20757365720000000000000000000000000000000000000060648201526084016104d2565b600254611799906001600160a01b03168583611bf9565b836001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040516117d491815260200190565b60405180910390a25b505b831561189b57600482015461ffff16156118745760048201546000906127109061180d9061ffff1687612230565b611817919061229c565b905060006118258287612219565b6003548554919250611846916001600160a01b039081169188911685611d82565b835461185d906001600160a01b0316863084611d82565b825461186a908290612201565b83555061189b9050565b815461188b906001600160a01b0316843087611d82565b8054611898908590612201565b81555b60038201548154670de0b6b3a7640000916118b591612230565b6118bf919061229c565b600182015560048201546040805186815261ffff909216602083015286916001600160a01b038616917f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e910160405180910390a35050505050565b611922611cc0565b6001600160a01b03811661199e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016104d2565b610b4c81611d1a565b6001546001600160a01b03163314611a265760405162461bcd60e51b8152602060048201526024808201527f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260448201527f61746f720000000000000000000000000000000000000000000000000000000060648201526084016104d2565b611a2e6112cd565b600881905560405181815233907feecd911447a1c00e7cebbfcb3a688f7ce4802295786a8b9c1e99e233d306924c90602001611445565b60045460005b81811015611b0857826001600160a01b031660048281548110611a9057611a9061226d565b60009182526020909120600590910201546001600160a01b03161415611af85760405162461bcd60e51b815260206004820152601360248201527f506f6f6c20616c7265616479206578697374730000000000000000000000000060448201526064016104d2565b611b01816122d7565b9050611a6b565b505050565b6001600160a01b038116611b895760405162461bcd60e51b815260206004820152602d60248201527f6f70657261746f723a207a65726f206164647265737320676976656e20666f7260448201527f206e6577206f70657261746f720000000000000000000000000000000000000060648201526084016104d2565b6040516001600160a01b038216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6040516001600160a01b038316602482015260448101829052611b089084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611dd9565b6000546001600160a01b0316331461130a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104d2565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052611dd39085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611c3e565b50505050565b6000611e2e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611ebe9092919063ffffffff16565b805190915015611b085780806020019051810190611e4c9190612310565b611b085760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016104d2565b6060611ecd8484600085611ed7565b90505b9392505050565b606082471015611f4f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016104d2565b6001600160a01b0385163b611fa65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104d2565b600080866001600160a01b03168587604051611fc2919061235e565b60006040518083038185875af1925050503d8060008114611fff576040519150601f19603f3d011682016040523d82523d6000602084013e612004565b606091505b50915091506115d48282866060831561201e575081611ed0565b82511561202e5782518084602001fd5b8160405162461bcd60e51b81526004016104d2919061237a565b60006020828403121561205a57600080fd5b5035919050565b6001600160a01b0381168114610b4c57600080fd5b803561ffff8116811461208857600080fd5b919050565b600080600080608085870312156120a357600080fd5b8435935060208501356120b581612061565b92506120c360408601612076565b9396929550929360600135925050565b600080604083850312156120e657600080fd5b50508035926020909101359150565b60008060006060848603121561210a57600080fd5b833592506020840135915061212160408501612076565b90509250925092565b60006020828403121561213c57600080fd5b8135611ed081612061565b60008060006060848603121561215c57600080fd5b833561216781612061565b925060208401359150604084013561217e81612061565b809150509250925092565b6000806040838503121561219c57600080fd5b8235915060208301356121ae81612061565b809150509250929050565b6000602082840312156121cb57600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008219821115612214576122146121d2565b500190565b60008282101561222b5761222b6121d2565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612268576122686121d2565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000826122d2577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612309576123096121d2565b5060010190565b60006020828403121561232257600080fd5b81518015158114611ed057600080fd5b60005b8381101561234d578181015183820152602001612335565b83811115611dd35750506000910152565b60008251612370818460208701612332565b9190910192915050565b6020815260008251806020840152612399816040850160208701612332565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220911f3a63a6613d340cef6cebdf5052d01036984c080db8ccd65b7280330deab764736f6c63430008090033000000000000000000000000fb40b1efe90d4b786d2d9d9dc799b18bde92923b00000000000000000000000000000000000000000000000000000000636aed800000000000000000000000001b84863d51289f3e59c95b2a1435a4f0f4f323a0

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101ae5760003560e01c806359e83a4b116100ee578063a42dce8011610097578063e2bbb15811610071578063e2bbb158146103b1578063f2fde38b146103c4578063f6875c62146103d7578063f7c618c1146103ea57600080fd5b8063a42dce8014610378578063c415b95c1461038b578063cf4b55cb1461039e57600080fd5b8063715018a6116100c8578063715018a6146103185780638da5cb5b1461032057806393f1a40b1461033157600080fd5b806359e83a4b146102fe5780635f96dc1114610307578063630b5ba11461031057600080fd5b80632f27aa541161015b57806351eb05a61161013557806351eb05a6146102a05780635312ea8e146102b357806354575af4146102c6578063570ca735146102d957600080fd5b80632f27aa541461026d578063441a3e70146102855780634456eda21461029857600080fd5b8063231f0c6a1161018c578063231f0c6a1461023457806324bcb38c1461024757806329605e771461025a57600080fd5b80631526fe27146101b357806317caf6f1146102085780631e0303181461021f575b600080fd5b6101c66101c1366004612048565b6103fd565b604080516001600160a01b039097168752602087019590955293850192909252606084015261ffff166080830152151560a082015260c0015b60405180910390f35b61021160065481565b6040519081526020016101ff565b61023261022d36600461208d565b610457565b005b6102116102423660046120d3565b610849565b6102326102553660046120f5565b6108b5565b61023261026836600461212a565b610a9f565b610275610b4f565b60405190151581526020016101ff565b6102326102933660046120d3565b610b8d565b610275610e8e565b6102326102ae366004612048565b610ea3565b6102326102c1366004612048565b61104e565b6102326102d4366004612147565b6110e4565b6001546001600160a01b03165b6040516001600160a01b0390911681526020016101ff565b61021160085481565b61021160075481565b6102326112cd565b6102326112f8565b6000546001600160a01b03166102e6565b61036361033f366004612189565b60056020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016101ff565b61023261038636600461212a565b61130c565b6003546102e6906001600160a01b031681565b6102116103ac366004612189565b611450565b6102326103bf3660046120d3565b6115df565b6102326103d236600461212a565b61191a565b6102326103e5366004612048565b6119a7565b6002546102e6906001600160a01b031681565b6004818154811061040d57600080fd5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909161ffff81169062010000900460ff1686565b6001546001600160a01b031633146104db5760405162461bcd60e51b8152602060048201526024808201527f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260448201527f61746f720000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038416906370a082319060240160206040518083038186803b15801561053357600080fd5b505afa158015610547573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056b91906121b9565b50610fa08261ffff1611156105e85760405162461bcd60e51b815260206004820152602560248201527f4465706f736974206665652063616e6e6f74206265206869676865722074686160448201527f6e2034302500000000000000000000000000000000000000000000000000000060648201526084016104d2565b6105f183611a65565b600754819042101561061f578061060b575060075461063b565b60075481101561061a57506007545b61063b565b6106276112cd565b80158061063357504281105b1561063b5750425b60006007548211158061064e5750428211155b6040805160c0810182526001600160a01b038881168252602082018a815292820186815260006060840181815261ffff8b8116608087019081528815801560a0890190815260048054600181018255965297517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b600590960295860180547fffffffffffffffffffffffff000000000000000000000000000000000000000016919098161790965596517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c84015592517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d830155517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e82015593517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19f90940180549351949091167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000009093169290921762010000931515939093029290921790559091506107e757856006546107e39190612201565b6006555b6004546107f690600190612219565b60065460408051898152602081019290925261ffff87169082015233907fc3efcae3a22d06aaa653f77760f71a5c8e44589b0501b6574a46f832af20c64b906060015b60405180910390a3505050505050565b600081831061085a575060006108af565b600754821161086b575060006108af565b6007548311610895576008546007546108849084612219565b61088e9190612230565b90506108af565b6008546108a28484612219565b6108ac9190612230565b90505b92915050565b6001546001600160a01b031633146109345760405162461bcd60e51b8152602060048201526024808201527f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260448201527f61746f720000000000000000000000000000000000000000000000000000000060648201526084016104d2565b610fa08161ffff1611156109b05760405162461bcd60e51b815260206004820152602560248201527f4465706f736974206665652063616e6e6f74206265206869676865722074686160448201527f6e2034302500000000000000000000000000000000000000000000000000000060648201526084016104d2565b6109b86112cd565b6000600484815481106109cd576109cd61226d565b906000526020600020906005020190508060040160029054906101000a900460ff1615610a1557828160010154600654610a079190612219565b610a119190612201565b6006555b600181018390556004810180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff8416908117909155600654604080518681526020810192909252810191909152849033907f7011c46bd464d3d2faf3c69f36b9c1b1d749768de5566cb73a904b64cc77616a906060015b60405180910390a350505050565b33610ab26000546001600160a01b031690565b6001600160a01b03161480610ad157506001546001600160a01b031633145b610b435760405162461bcd60e51b815260206004820152603160248201527f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f776e6560448201527f72206f7220746865206f70657261746f7200000000000000000000000000000060648201526084016104d2565b610b4c81611b0d565b50565b6001546000906001600160a01b0316336001600160a01b03161480610b8857506000546001600160a01b0316335b6001600160a01b0316145b905090565b6000339050600060048481548110610ba757610ba761226d565b60009182526020808320878452600580835260408086206001600160a01b0389168752909352919093208054929091029092019250841115610c515760405162461bcd60e51b815260206004820152603360248201527f576974686472617720616d6f756e742067726561746572207468616e2075736560448201527f7273206465706f736974656420616d6f756e740000000000000000000000000060648201526084016104d2565b610c5a85610ea3565b60008160010154670de0b6b3a764000084600301548460000154610c7e9190612230565b610c88919061229c565b610c929190612219565b90508015610dfd576002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015282916001600160a01b0316906370a082319060240160206040518083038186803b158015610cf657600080fd5b505afa158015610d0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2e91906121b9565b1015610da25760405162461bcd60e51b815260206004820152603160248201527f546f6f206c6f7720636f6e74726163742072657761726420746f6b656e20626160448201527f6c616e636520746f20776974686472617700000000000000000000000000000060648201526084016104d2565b600254610db9906001600160a01b03168583611bf9565b836001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048682604051610df491815260200190565b60405180910390a25b8415610e28578154610e10908690612219565b82558254610e28906001600160a01b03168587611bf9565b60038301548254670de0b6b3a764000091610e4291612230565b610e4c919061229c565b600183015560405185815286906001600160a01b038616907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56890602001610839565b6001546000906001600160a01b031633610b7d565b600060048281548110610eb857610eb861226d565b9060005260206000209060050201905080600201544211610ed7575050565b80546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610f3357600080fd5b505afa158015610f47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6b91906121b9565b905080610f7d57504260029091015550565b600482015462010000900460ff16610fd4576004820180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff16620100001790556001820154600654610fd09190612201565b6006555b60065415611043576000610fec836002015442610849565b905060006006548460010154836110039190612230565b61100d919061229c565b90508261102282670de0b6b3a7640000612230565b61102c919061229c565b846003015461103b9190612201565b600385015550505b504260029091015550565b6000600482815481106110635761106361226d565b600091825260208083208584526005808352604080862033808852945285208054868255600182019690965593020180549094509192916110b0916001600160a01b039091169083611bf9565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae059590602001610a91565b6001546001600160a01b031633146111635760405162461bcd60e51b8152602060048201526024808201527f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260448201527f61746f720000000000000000000000000000000000000000000000000000000060648201526084016104d2565b6002546001600160a01b03848116911614156111c15760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f742077697468647261772072657761726420746f6b656e0000000060448201526064016104d2565b60045460005b81811015611265576000600482815481106111e4576111e461226d565b6000918252602090912060059091020180549091506001600160a01b03878116911614156112545760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f7420776974686472617720706f6f6c20746f6b656e73000000000060448201526064016104d2565b5061125e816122d7565b90506111c7565b5061127a6001600160a01b0385168385611bf9565b604080516001600160a01b03868116825260208201869052841681830152905133917fc6fd1e1fa5e9ce8b7f91e33e2b3d61a04408a93bff9a53e6491ea52db79134d6919081900360600190a250505050565b60045460005b818110156112f4576112e481610ea3565b6112ed816122d7565b90506112d3565b5050565b611300611cc0565b61130a6000611d1a565b565b6001546001600160a01b0316331461138b5760405162461bcd60e51b8152602060048201526024808201527f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260448201527f61746f720000000000000000000000000000000000000000000000000000000060648201526084016104d2565b6001600160a01b0381166113e15760405162461bcd60e51b815260206004820152601360248201527f416464726573732063616e6e6f7420626520300000000000000000000000000060448201526064016104d2565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03831690811790915560405190815233907fcc882185e6edeeb762130016ea1faf3d7aa9c01b199bfd646f965b58ab741063906020015b60405180910390a250565b600080600484815481106114665761146661226d565b60009182526020808320878452600580835260408086206001600160a01b038a811688529452808620949091029091016003810154815492517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015291965093949291909116906370a082319060240160206040518083038186803b1580156114f457600080fd5b505afa158015611508573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152c91906121b9565b905083600201544211801561154057508015155b156115a4576000611555856002015442610849565b9050600060065486600101548361156c9190612230565b611576919061229c565b90508261158b82670de0b6b3a7640000612230565b611595919061229c565b61159f9085612201565b935050505b60018301548354670de0b6b3a7640000906115c0908590612230565b6115ca919061229c565b6115d49190612219565b979650505050505050565b60003390506000600484815481106115f9576115f961226d565b60009182526020808320878452600580835260408086206001600160a01b0389168752909352919093209102909101915061163385610ea3565b8054156117df5760008160010154670de0b6b3a76400008460030154846000015461165e9190612230565b611668919061229c565b6116729190612219565b905080156117dd576002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015282916001600160a01b0316906370a082319060240160206040518083038186803b1580156116d657600080fd5b505afa1580156116ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061170e91906121b9565b10156117825760405162461bcd60e51b815260206004820152602d60248201527f546f6f206c6974746c65207265776172647320696e20636f6e7472616374207460448201527f6f2070617920746f20757365720000000000000000000000000000000000000060648201526084016104d2565b600254611799906001600160a01b03168583611bf9565b836001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040516117d491815260200190565b60405180910390a25b505b831561189b57600482015461ffff16156118745760048201546000906127109061180d9061ffff1687612230565b611817919061229c565b905060006118258287612219565b6003548554919250611846916001600160a01b039081169188911685611d82565b835461185d906001600160a01b0316863084611d82565b825461186a908290612201565b83555061189b9050565b815461188b906001600160a01b0316843087611d82565b8054611898908590612201565b81555b60038201548154670de0b6b3a7640000916118b591612230565b6118bf919061229c565b600182015560048201546040805186815261ffff909216602083015286916001600160a01b038616917f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e910160405180910390a35050505050565b611922611cc0565b6001600160a01b03811661199e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016104d2565b610b4c81611d1a565b6001546001600160a01b03163314611a265760405162461bcd60e51b8152602060048201526024808201527f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260448201527f61746f720000000000000000000000000000000000000000000000000000000060648201526084016104d2565b611a2e6112cd565b600881905560405181815233907feecd911447a1c00e7cebbfcb3a688f7ce4802295786a8b9c1e99e233d306924c90602001611445565b60045460005b81811015611b0857826001600160a01b031660048281548110611a9057611a9061226d565b60009182526020909120600590910201546001600160a01b03161415611af85760405162461bcd60e51b815260206004820152601360248201527f506f6f6c20616c7265616479206578697374730000000000000000000000000060448201526064016104d2565b611b01816122d7565b9050611a6b565b505050565b6001600160a01b038116611b895760405162461bcd60e51b815260206004820152602d60248201527f6f70657261746f723a207a65726f206164647265737320676976656e20666f7260448201527f206e6577206f70657261746f720000000000000000000000000000000000000060648201526084016104d2565b6040516001600160a01b038216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6040516001600160a01b038316602482015260448101829052611b089084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611dd9565b6000546001600160a01b0316331461130a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104d2565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052611dd39085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611c3e565b50505050565b6000611e2e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611ebe9092919063ffffffff16565b805190915015611b085780806020019051810190611e4c9190612310565b611b085760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016104d2565b6060611ecd8484600085611ed7565b90505b9392505050565b606082471015611f4f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016104d2565b6001600160a01b0385163b611fa65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104d2565b600080866001600160a01b03168587604051611fc2919061235e565b60006040518083038185875af1925050503d8060008114611fff576040519150601f19603f3d011682016040523d82523d6000602084013e612004565b606091505b50915091506115d48282866060831561201e575081611ed0565b82511561202e5782518084602001fd5b8160405162461bcd60e51b81526004016104d2919061237a565b60006020828403121561205a57600080fd5b5035919050565b6001600160a01b0381168114610b4c57600080fd5b803561ffff8116811461208857600080fd5b919050565b600080600080608085870312156120a357600080fd5b8435935060208501356120b581612061565b92506120c360408601612076565b9396929550929360600135925050565b600080604083850312156120e657600080fd5b50508035926020909101359150565b60008060006060848603121561210a57600080fd5b833592506020840135915061212160408501612076565b90509250925092565b60006020828403121561213c57600080fd5b8135611ed081612061565b60008060006060848603121561215c57600080fd5b833561216781612061565b925060208401359150604084013561217e81612061565b809150509250925092565b6000806040838503121561219c57600080fd5b8235915060208301356121ae81612061565b809150509250929050565b6000602082840312156121cb57600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008219821115612214576122146121d2565b500190565b60008282101561222b5761222b6121d2565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612268576122686121d2565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000826122d2577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612309576123096121d2565b5060010190565b60006020828403121561232257600080fd5b81518015158114611ed057600080fd5b60005b8381101561234d578181015183820152602001612335565b83811115611dd35750506000910152565b60008251612370818460208701612332565b9190910192915050565b6020815260008251806020840152612399816040850160208701612332565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220911f3a63a6613d340cef6cebdf5052d01036984c080db8ccd65b7280330deab764736f6c63430008090033

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

000000000000000000000000fb40b1efe90d4b786d2d9d9dc799b18bde92923b00000000000000000000000000000000000000000000000000000000636aed800000000000000000000000001b84863d51289f3e59c95b2a1435a4f0f4f323a0

-----Decoded View---------------
Arg [0] : _rewardToken (address): 0xFB40b1eFe90D4b786D2D9d9dc799B18BDe92923b
Arg [1] : _poolStartTime (uint256): 1667952000
Arg [2] : _feeCollector (address): 0x1B84863d51289F3e59c95B2a1435a4f0f4f323A0

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000fb40b1efe90d4b786d2d9d9dc799b18bde92923b
Arg [1] : 00000000000000000000000000000000000000000000000000000000636aed80
Arg [2] : 0000000000000000000000001b84863d51289f3e59c95b2a1435a4f0f4f323a0


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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