Mantle Sepolia Testnet

Contract

0x3A7fCda20fec22a253864DA3e46410888B0776EC
Source Code Source Code

Overview

MNT Balance

2,816,241.230012 MNT

Token Holdings

More Info

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Amount
Withdraw225226592025-05-07 3:53:11266 days ago1746589991IN
0x3A7fCda2...88B0776EC
0 MNT0.004481350.02576
Stake225226472025-05-07 3:52:47266 days ago1746589967IN
0x3A7fCda2...88B0776EC
2 MNT0.00555920.02576
Withdraw225226372025-05-07 3:52:27266 days ago1746589947IN
0x3A7fCda2...88B0776EC
0 MNT0.004314380.0248
Stake225226292025-05-07 3:52:11266 days ago1746589931IN
0x3A7fCda2...88B0776EC
2 MNT0.005352160.0248
Withdraw225225662025-05-07 3:50:05266 days ago1746589805IN
0x3A7fCda2...88B0776EC
0 MNT0.003479550.02
Stake225225522025-05-07 3:49:37266 days ago1746589777IN
0x3A7fCda2...88B0776EC
2 MNT0.004316520.02
Withdraw225225422025-05-07 3:49:17266 days ago1746589757IN
0x3A7fCda2...88B0776EC
0 MNT0.003479620.02
Stake225225252025-05-07 3:48:43266 days ago1746589723IN
0x3A7fCda2...88B0776EC
2 MNT0.00431650.02
Withdraw225225162025-05-07 3:48:25266 days ago1746589705IN
0x3A7fCda2...88B0776EC
0 MNT0.003479580.02
Stake225224702025-05-07 3:46:53266 days ago1746589613IN
0x3A7fCda2...88B0776EC
2 MNT0.005352090.0248
Withdraw225224532025-05-07 3:46:19266 days ago1746589579IN
0x3A7fCda2...88B0776EC
0 MNT0.004319260.0248
Stake225224432025-05-07 3:45:59266 days ago1746589559IN
0x3A7fCda2...88B0776EC
2 MNT0.004321450.02
Withdraw225219932025-05-07 3:30:59266 days ago1746588659IN
0x3A7fCda2...88B0776EC
0 MNT0.003508340.0201728
Stake225219742025-05-07 3:30:21266 days ago1746588621IN
0x3A7fCda2...88B0776EC
2 MNT0.004359660.02020736
Withdraw225219632025-05-07 3:29:59266 days ago1746588599IN
0x3A7fCda2...88B0776EC
0 MNT0.003508520.0201728
Stake225219432025-05-07 3:29:19266 days ago1746588559IN
0x3A7fCda2...88B0776EC
2 MNT0.004346380.020144
Withdraw225219222025-05-07 3:28:37266 days ago1746588517IN
0x3A7fCda2...88B0776EC
0 MNT0.003478240.02
Stake225219032025-05-07 3:27:59266 days ago1746588479IN
0x3A7fCda2...88B0776EC
2 MNT0.004314680.02
Withdraw225218882025-05-07 3:27:29266 days ago1746588449IN
0x3A7fCda2...88B0776EC
0 MNT0.003478060.02
Stake225215822025-05-07 3:17:17266 days ago1746587837IN
0x3A7fCda2...88B0776EC
2 MNT0.005550530.02576
Withdraw225215672025-05-07 3:16:47266 days ago1746587807IN
0x3A7fCda2...88B0776EC
0 MNT0.004312380.0248
Stake225214932025-05-07 3:14:19266 days ago1746587659IN
0x3A7fCda2...88B0776EC
2 MNT0.004314430.02
Withdraw225214842025-05-07 3:14:01266 days ago1746587641IN
0x3A7fCda2...88B0776EC
0 MNT0.003477780.02
Stake225212472025-05-07 3:06:07266 days ago1746587167IN
0x3A7fCda2...88B0776EC
2 MNT0.004314330.02
Withdraw225211702025-05-07 3:03:33266 days ago1746587013IN
0x3A7fCda2...88B0776EC
0 MNT0.003477880.02
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Amount
225226592025-05-07 3:53:11266 days ago1746589991
0x3A7fCda2...88B0776EC
2 MNT
225226372025-05-07 3:52:27266 days ago1746589947
0x3A7fCda2...88B0776EC
2 MNT
225225662025-05-07 3:50:05266 days ago1746589805
0x3A7fCda2...88B0776EC
2 MNT
225225422025-05-07 3:49:17266 days ago1746589757
0x3A7fCda2...88B0776EC
2 MNT
225225162025-05-07 3:48:25266 days ago1746589705
0x3A7fCda2...88B0776EC
2 MNT
225224532025-05-07 3:46:19266 days ago1746589579
0x3A7fCda2...88B0776EC
2 MNT
225219932025-05-07 3:30:59266 days ago1746588659
0x3A7fCda2...88B0776EC
2 MNT
225219632025-05-07 3:29:59266 days ago1746588599
0x3A7fCda2...88B0776EC
2 MNT
225219222025-05-07 3:28:37266 days ago1746588517
0x3A7fCda2...88B0776EC
2 MNT
225218882025-05-07 3:27:29266 days ago1746588449
0x3A7fCda2...88B0776EC
2 MNT
225215672025-05-07 3:16:47266 days ago1746587807
0x3A7fCda2...88B0776EC
2 MNT
225214842025-05-07 3:14:01266 days ago1746587641
0x3A7fCda2...88B0776EC
2 MNT
225211702025-05-07 3:03:33266 days ago1746587013
0x3A7fCda2...88B0776EC
2 MNT
225209782025-05-07 2:57:09266 days ago1746586629
0x3A7fCda2...88B0776EC
2 MNT
225209502025-05-07 2:56:13266 days ago1746586573
0x3A7fCda2...88B0776EC
2 MNT
225207892025-05-07 2:50:51266 days ago1746586251
0x3A7fCda2...88B0776EC
2 MNT
219612042025-04-24 3:58:01279 days ago1745467081
0x3A7fCda2...88B0776EC
252 MNT
219610642025-04-24 3:53:21279 days ago1745466801
0x3A7fCda2...88B0776EC
184 MNT
207489132025-03-27 2:28:19307 days ago1743042499
0x3A7fCda2...88B0776EC
154 MNT
198011242025-03-05 3:55:21329 days ago1741146921
0x3A7fCda2...88B0776EC
1 MNT
168760872024-12-27 10:54:07397 days ago1735296847
0x3A7fCda2...88B0776EC
375 MNT
167758632024-12-25 3:13:19399 days ago1735096399
0x3A7fCda2...88B0776EC
100 MNT
158341182024-12-03 8:01:49421 days ago1733212909
0x3A7fCda2...88B0776EC
1.2 MNT
158338442024-12-03 7:52:41421 days ago1733212361
0x3A7fCda2...88B0776EC
1 MNT
158316972024-12-03 6:41:07421 days ago1733208067
0x3A7fCda2...88B0776EC
1.2 MNT
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MntStakeV2Contract

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.24;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

contract MntStakeV2Contract is Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20;

    /* ========== STATE VARIABLES ========== */

    IERC20 public rewardToken; // rewardToken
    uint256 public constant TOTAL_REWARD = 2_500_000_000 * 1e18;

    uint256 public  REWARD_DURATION = 24*60 minutes;
    uint256 public  UNLOCK_TIME = 30 minutes;

    uint256 public startTime;
    uint256 public periodFinish;

    uint256 public rewardClaimPeriod = 3;
    uint256 public totalStakedAmount; // Total staked MNT
    uint256 public totalStakerCount; // Total stake address
    uint256 public rewardRate = TOTAL_REWARD / REWARD_DURATION; // rewards per second
    uint256 public lastUpdateTime; // Update time
    uint256 public rewardPerTokenStored; // Reward token amount  (* rewardRate)

    bool public paused;
    // user cumulative value
    mapping(address => uint256) public userRewardPerTokenPaid;
    //  current rewards
    mapping(address => uint256) public rewards;
    // Mapping to keep track of user balances
    mapping(address => uint256) public balances;

    /* ========== EVENTS ========== */

    event Stake(address indexed staker, uint256 amount);
    event Withdrawal(address indexed staker, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);

    modifier notPaused() {
        require(!paused, "Contract is paused");
        _;
    }

    modifier updateReward(address account) {
        if (block.timestamp >= startTime + UNLOCK_TIME) {
            // Update、 accumulate
            rewardPerTokenStored = rewardPerToken();
            // Update timestamp
            lastUpdateTime = lastTimeRewardApplicable();

            rewards[account] = earned(account);
            userRewardPerTokenPaid[account] = rewardPerTokenStored;
        }
        _;
    }

    constructor(address _rewardToken) Ownable(msg.sender) {
        rewardToken = IERC20(_rewardToken);
        startTime = block.timestamp;
        lastUpdateTime = startTime + UNLOCK_TIME;
        periodFinish = startTime + UNLOCK_TIME + REWARD_DURATION;
    }

    /// @notice Pauses the contract
    function pause() external onlyOwner {
        paused = true;
    }

    /// @notice Unpauses the contract
    function unpause() external onlyOwner {
        paused = false;
    }

    /// @notice Allows the owner to modify the unlock time
    /// @dev Can only be called by the contract owner
    /// @param newUnlockTime The new unlock time for staking rewards
    function setUnlockTime(uint256 newUnlockTime) external onlyOwner {
        require(newUnlockTime >= block.timestamp, "New unlock time must be in the future");
        require(block.timestamp < startTime + UNLOCK_TIME, "Unlock time has already passed");

        // Adjust startTime to maintain the same relative unlock time
        startTime = block.timestamp + newUnlockTime;

        // Adjust lastUpdateTime if it falls beyond the new unlock time
        if (lastUpdateTime > startTime) {
            lastUpdateTime = startTime;
        }

        UNLOCK_TIME = newUnlockTime;
    }

    /// @notice Allows the owner to modify the reward duration
    /// @dev Can only be called by the contract owner
    /// @param newDuration The new duration for rewards distribution
    function setRewardDuration(uint256 newDuration) external onlyOwner {
        require(block.timestamp < periodFinish, "Reward period has already ended");

        uint256 newPeriodFinish = block.timestamp + newDuration;

        // Adjust periodFinish to maintain the same relative time remaining
        periodFinish = newPeriodFinish > block.timestamp ? newPeriodFinish : block.timestamp;

        // Recalculate rewardRate based on the new duration
        rewardRate = TOTAL_REWARD / newDuration;

        // Adjust lastUpdateTime if it falls beyond the new periodFinish
        if (lastUpdateTime > periodFinish) {
            lastUpdateTime = periodFinish;
        }

        REWARD_DURATION = newDuration;
    }

    /// @notice Sets the period in which rewards can be claimed after distribution ends
    /// @dev Can only be called by the contract owner
    /// @param _days The number of days to set as the reward claim period
    function setRewardClaimPeriod(uint256 _days) external onlyOwner {
        rewardClaimPeriod = _days;
    }

    /// @notice Calculates the accumulated reward per token staked
    /// @dev This is a view function and does not modify state
    /// @return The calculated reward per token
    function rewardPerToken() public view returns (uint256) {
        if (
            totalStakedAmount == 0 || block.timestamp < startTime + UNLOCK_TIME
        ) {
            return rewardPerTokenStored;
        }
        // accumulated value ( last accumulated value + next block ...)
        return
            rewardPerTokenStored +
            (rewardRate *
                (lastTimeRewardApplicable() - lastUpdateTime) *
                1e18) /
            totalStakedAmount;
    }

    /// @notice Determines the last applicable timestamp for reward calculations
    /// @dev Used to ensure rewards are not calculated beyond the distribution finish time
    /// @return The last applicable timestamp for reward calculations
    function lastTimeRewardApplicable() public view returns (uint256) {
        return block.timestamp < periodFinish ? block.timestamp : periodFinish;
    }

    /// @notice Calculates the total rewards earned by an account
    /// @dev Includes both newly earned rewards and previously accumulated rewards
    /// @param account The account to calculate rewards for
    /// @return The total rewards earned by the account
    function earned(address account) public view returns (uint256) {
        uint256 currentBalance = balances[account];
        // cumulative value
        uint256 amountPaid = userRewardPerTokenPaid[account];
        return
            (currentBalance * (rewardPerToken() - amountPaid)) /
            1e18 +
            rewards[account];
    }

    /// @notice Allows a user to stake their tokens into the contract
    /// @dev Payable function that updates the user's staked balance and total staked amount
    function stake()
        external
        payable
        notPaused
        nonReentrant
        updateReward(msg.sender)
    {
        require(msg.value > 0, "Cannot stake 0");

        if (balances[msg.sender] == 0) {
            totalStakerCount += 1;
        }

        balances[msg.sender] += msg.value;
        totalStakedAmount += msg.value;

        emit Stake(msg.sender, msg.value);
    }

    /// @notice Withdraws all staked tokens for the sender
    /// @dev Withdraws the sender's balance and updates the staker count accordingly
    function withdrawAll() external {
        withdraw(balances[msg.sender]);
    }

    /// @notice Withdraws a specified amount of staked tokens for the sender
    /// @param amount The amount to withdraw
    function withdraw(
        uint256 amount
    ) public nonReentrant updateReward(msg.sender) {
        require(amount > 0, "Cannot withdraw 0");
        require(
            amount <= balances[msg.sender],
            "Insufficient balance to withdraw"
        );
        // Effects
        balances[msg.sender] -= amount;
        totalStakedAmount -= amount;
        if (balances[msg.sender] == 0) {
            totalStakerCount -= 1;
        }

        // Interaction
        (bool success, ) = msg.sender.call{value: amount}("");
        require(success, "Transfer failed.");

        emit Withdrawal(msg.sender, amount);
    }

    /// @notice Allows a user to claim their accrued reward tokens
    /// @dev Transfers the appropriate reward amount to the sender if within the claim period
    function claimReward()
        public
        notPaused
        nonReentrant
        updateReward(msg.sender)
    {
        // Ensure that this function is called within 7 days after rewards have finished
        require(
            block.timestamp <= periodFinish + (rewardClaimPeriod * 1 days),
            "Reward period has expired"
        );
        // Calculate the amount of reward tokens earned by the sender
        uint256 reward = earned(msg.sender);

        if (reward > 0) {
            rewards[msg.sender] = 0;
            // Transfer the claimed tokens to the sender
            rewardToken.safeTransfer(msg.sender, reward);
            // Emit an event for successful reward claim
            emit RewardPaid(msg.sender, reward);
        }
    }

    /// @notice Allows the owner to withdraw any unclaimed rewards after the reward claim period
    /// @dev Transfers the remaining unclaimed rewards to the owner
    function withdrawRemainingRewards() external onlyOwner {
        require(
            block.timestamp > periodFinish + (rewardClaimPeriod * 1 days),
            "The reward period has not ended yet"
        );
        uint256 remainingRewards = rewardToken.balanceOf(address(this));
        require(remainingRewards > 0, "No remaining rewards to withdraw");

        rewardToken.safeTransfer(owner(), remainingRewards);

        emit RewardPaid(owner(), remainingRewards);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @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 {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _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);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.20;

/**
 * @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.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
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].
     *
     * CAUTION: See Security Considerations above.
     */
    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);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../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;

    /**
     * @dev An operation with an ERC20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @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);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // 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 cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

    /**
     * @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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert AddressInsufficientBalance(address(this));
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

    /**
     * @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 or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {FailedInnerCall} error.
     *
     * 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.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @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`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) private pure {
        // 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 FailedInnerCall();
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant NOT_ENTERED = 1;
    uint256 private constant ENTERED = 2;

    uint256 private _status;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _status = NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // Any calls to nonReentrant after this point will fail
        _status = ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}

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

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_rewardToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"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":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"REWARD_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_REWARD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNLOCK_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardClaimPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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 IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_days","type":"uint256"}],"name":"setRewardClaimPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"setRewardDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newUnlockTime","type":"uint256"}],"name":"setUnlockTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stake","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStakedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStakerCount","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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawRemainingRewards","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526201518060035561070860045560036007556003546b0813f3978f89409844000000620000329190620002b1565b600a553480156200004257600080fd5b506040516200291338038062002913833981810160405281019062000068919062000353565b33600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000de5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000d5919062000396565b60405180910390fd5b620000ef816200018560201b60201c565b506001808190555080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555042600581905550600454600554620001519190620003b3565b600b819055506003546004546005546200016c9190620003b3565b620001789190620003b3565b60068190555050620003ee565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000620002be8262000249565b9150620002cb8362000249565b925082620002de57620002dd62000253565b5b828204905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200031b82620002ee565b9050919050565b6200032d816200030e565b81146200033957600080fd5b50565b6000815190506200034d8162000322565b92915050565b6000602082840312156200036c576200036b620002e9565b5b60006200037c848285016200033c565b91505092915050565b62000390816200030e565b82525050565b6000602082019050620003ad600083018462000385565b92915050565b6000620003c08262000249565b9150620003cd8362000249565b9250828201905080821115620003e857620003e762000282565b5b92915050565b61251580620003fe6000396000f3fe6080604052600436106101e25760003560e01c806380faa57d11610102578063c8f33c9111610095578063ebe2b12b11610064578063ebe2b12b14610642578063f2bc4c9c1461066d578063f2fde38b14610698578063f7c618c1146106c1576101e2565b8063c8f33c9114610598578063cd3daf9d146105c3578063dace4557146105ee578063df136d6514610617576101e2565b80638da5cb5b116100d15780638da5cb5b14610502578063b88a802f1461052d578063c0ed00c914610544578063c8333bb21461056d576101e2565b806380faa57d1461046c5780638456cb5914610497578063853828b6146104ae5780638b876347146104c5576101e2565b80633f4ba83a1161017a5780635c975abb116101495780635c975abb146103d4578063715018a6146103ff57806378e97925146104165780637b0a47ee14610441576101e2565b80633f4ba83a1461033c5780634131983114610353578063567e98f91461037e5780635ade228a146103a9576101e2565b80632e1a7d4d116101b65780632e1a7d4d146102c957806330865362146102f25780633a4b66f1146103095780633a7e98fd14610313576101e2565b80628cc262146101e75780630700037d1461022457806327e235e314610261578063299cf3e01461029e575b600080fd5b3480156101f357600080fd5b5061020e60048036038101906102099190611b8a565b6106ec565b60405161021b9190611bd0565b60405180910390f35b34801561023057600080fd5b5061024b60048036038101906102469190611b8a565b6107f9565b6040516102589190611bd0565b60405180910390f35b34801561026d57600080fd5b5061028860048036038101906102839190611b8a565b610811565b6040516102959190611bd0565b60405180910390f35b3480156102aa57600080fd5b506102b3610829565b6040516102c09190611bd0565b60405180910390f35b3480156102d557600080fd5b506102f060048036038101906102eb9190611c17565b61082f565b005b3480156102fe57600080fd5b50610307610b9a565b005b610311610d90565b005b34801561031f57600080fd5b5061033a60048036038101906103359190611c17565b61101b565b005b34801561034857600080fd5b5061035161102d565b005b34801561035f57600080fd5b50610368611052565b6040516103759190611bd0565b60405180910390f35b34801561038a57600080fd5b50610393611058565b6040516103a09190611bd0565b60405180910390f35b3480156103b557600080fd5b506103be61105e565b6040516103cb9190611bd0565b60405180910390f35b3480156103e057600080fd5b506103e9611064565b6040516103f69190611c5f565b60405180910390f35b34801561040b57600080fd5b50610414611077565b005b34801561042257600080fd5b5061042b61108b565b6040516104389190611bd0565b60405180910390f35b34801561044d57600080fd5b50610456611091565b6040516104639190611bd0565b60405180910390f35b34801561047857600080fd5b50610481611097565b60405161048e9190611bd0565b60405180910390f35b3480156104a357600080fd5b506104ac6110b1565b005b3480156104ba57600080fd5b506104c36110d6565b005b3480156104d157600080fd5b506104ec60048036038101906104e79190611b8a565b611120565b6040516104f99190611bd0565b60405180910390f35b34801561050e57600080fd5b50610517611138565b6040516105249190611c89565b60405180910390f35b34801561053957600080fd5b50610542611161565b005b34801561055057600080fd5b5061056b60048036038101906105669190611c17565b6113e2565b005b34801561057957600080fd5b50610582611492565b60405161058f9190611bd0565b60405180910390f35b3480156105a457600080fd5b506105ad6114a2565b6040516105ba9190611bd0565b60405180910390f35b3480156105cf57600080fd5b506105d86114a8565b6040516105e59190611bd0565b60405180910390f35b3480156105fa57600080fd5b5061061560048036038101906106109190611c17565b61152c565b005b34801561062357600080fd5b5061062c6115fa565b6040516106399190611bd0565b60405180910390f35b34801561064e57600080fd5b50610657611600565b6040516106649190611bd0565b60405180910390f35b34801561067957600080fd5b50610682611606565b60405161068f9190611bd0565b60405180910390f35b3480156106a457600080fd5b506106bf60048036038101906106ba9190611b8a565b61160c565b005b3480156106cd57600080fd5b506106d6611692565b6040516106e39190611d03565b60405180910390f35b600080601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054670de0b6b3a7640000826107c76114a8565b6107d19190611d4d565b846107dc9190611d81565b6107e69190611df2565b6107f09190611e23565b92505050919050565b600f6020528060005260406000206000915090505481565b60106020528060005260406000206000915090505481565b60075481565b6108376116b8565b336004546005546108489190611e23565b42106108fd576108566114a8565b600c81905550610864611097565b600b81905550610873816106ec565b600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600c54600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60008211610940576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093790611eb4565b60405180910390fd5b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548211156109c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b990611f20565b60405180910390fd5b81601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610a119190611d4d565b925050819055508160086000828254610a2a9190611d4d565b925050819055506000601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205403610a9357600160096000828254610a8b9190611d4d565b925050819055505b60003373ffffffffffffffffffffffffffffffffffffffff1683604051610ab990611f71565b60006040518083038185875af1925050503d8060008114610af6576040519150601f19603f3d011682016040523d82523d6000602084013e610afb565b606091505b5050905080610b3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3690611fd2565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b6584604051610b859190611bd0565b60405180910390a25050610b976116fe565b50565b610ba2611707565b62015180600754610bb39190611d81565b600654610bc09190611e23565b4211610c01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf890612064565b60405180910390fd5b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610c5e9190611c89565b602060405180830381865afa158015610c7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9f9190612099565b905060008111610ce4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cdb90612112565b60405180910390fd5b610d38610cef611138565b82600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661178e9092919063ffffffff16565b610d40611138565b73ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048682604051610d859190611bd0565b60405180910390a250565b600d60009054906101000a900460ff1615610de0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd79061217e565b60405180910390fd5b610de86116b8565b33600454600554610df99190611e23565b4210610eae57610e076114a8565b600c81905550610e15611097565b600b81905550610e24816106ec565b600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600c54600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60003411610ef1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee8906121ea565b60405180910390fd5b6000601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205403610f5357600160096000828254610f4b9190611e23565b925050819055505b34601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610fa29190611e23565b925050819055503460086000828254610fbb9190611e23565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a346040516110089190611bd0565b60405180910390a2506110196116fe565b565b611023611707565b8060078190555050565b611035611707565b6000600d60006101000a81548160ff021916908315150217905550565b60045481565b60085481565b60035481565b600d60009054906101000a900460ff1681565b61107f611707565b611089600061180d565b565b60055481565b600a5481565b600060065442106110aa576006546110ac565b425b905090565b6110b9611707565b6001600d60006101000a81548160ff021916908315150217905550565b61111e601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461082f565b565b600e6020528060005260406000206000915090505481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600d60009054906101000a900460ff16156111b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a89061217e565b60405180910390fd5b6111b96116b8565b336004546005546111ca9190611e23565b421061127f576111d86114a8565b600c819055506111e6611097565b600b819055506111f5816106ec565b600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600c54600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b620151806007546112909190611d81565b60065461129d9190611e23565b4211156112df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d690612256565b60405180910390fd5b60006112ea336106ec565b905060008111156113d6576000600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506113873382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661178e9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040516113cd9190611bd0565b60405180910390a25b50506113e06116fe565b565b6113ea611707565b600654421061142e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611425906122c2565b60405180910390fd5b6000814261143c9190611e23565b905042811161144b574261144d565b805b600681905550816b0813f3978f8940984400000061146b9190611df2565b600a81905550600654600b54111561148757600654600b819055505b816003819055505050565b6b0813f3978f8940984400000081565b600b5481565b60008060085414806114c857506004546005546114c59190611e23565b42105b156114d757600c549050611529565b600854670de0b6b3a7640000600b546114ee611097565b6114f89190611d4d565b600a546115059190611d81565b61150f9190611d81565b6115199190611df2565b600c546115269190611e23565b90505b90565b611534611707565b42811015611577576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156e90612354565b60405180910390fd5b6004546005546115879190611e23565b42106115c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115bf906123c0565b60405180910390fd5b80426115d49190611e23565b600581905550600554600b5411156115f057600554600b819055505b8060048190555050565b600c5481565b60065481565b60095481565b611614611707565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036116865760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161167d9190611c89565b60405180910390fd5b61168f8161180d565b50565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6002600154036116f4576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b60018081905550565b61170f6118d1565b73ffffffffffffffffffffffffffffffffffffffff1661172d611138565b73ffffffffffffffffffffffffffffffffffffffff161461178c576117506118d1565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016117839190611c89565b60405180910390fd5b565b611808838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040516024016117c19291906123e0565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506118d9565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6000611904828473ffffffffffffffffffffffffffffffffffffffff1661197090919063ffffffff16565b905060008151141580156119295750808060200190518101906119279190612435565b155b1561196b57826040517f5274afe70000000000000000000000000000000000000000000000000000000081526004016119629190611c89565b60405180910390fd5b505050565b606061197e83836000611986565b905092915050565b6060814710156119cd57306040517fcd7860590000000000000000000000000000000000000000000000000000000081526004016119c49190611c89565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff1684866040516119f691906124c8565b60006040518083038185875af1925050503d8060008114611a33576040519150601f19603f3d011682016040523d82523d6000602084013e611a38565b606091505b5091509150611a48868383611a53565b925050509392505050565b606082611a6857611a6382611ae2565b611ada565b60008251148015611a90575060008473ffffffffffffffffffffffffffffffffffffffff163b145b15611ad257836040517f9996b315000000000000000000000000000000000000000000000000000000008152600401611ac99190611c89565b60405180910390fd5b819050611adb565b5b9392505050565b600081511115611af55780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611b5782611b2c565b9050919050565b611b6781611b4c565b8114611b7257600080fd5b50565b600081359050611b8481611b5e565b92915050565b600060208284031215611ba057611b9f611b27565b5b6000611bae84828501611b75565b91505092915050565b6000819050919050565b611bca81611bb7565b82525050565b6000602082019050611be56000830184611bc1565b92915050565b611bf481611bb7565b8114611bff57600080fd5b50565b600081359050611c1181611beb565b92915050565b600060208284031215611c2d57611c2c611b27565b5b6000611c3b84828501611c02565b91505092915050565b60008115159050919050565b611c5981611c44565b82525050565b6000602082019050611c746000830184611c50565b92915050565b611c8381611b4c565b82525050565b6000602082019050611c9e6000830184611c7a565b92915050565b6000819050919050565b6000611cc9611cc4611cbf84611b2c565b611ca4565b611b2c565b9050919050565b6000611cdb82611cae565b9050919050565b6000611ced82611cd0565b9050919050565b611cfd81611ce2565b82525050565b6000602082019050611d186000830184611cf4565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611d5882611bb7565b9150611d6383611bb7565b9250828203905081811115611d7b57611d7a611d1e565b5b92915050565b6000611d8c82611bb7565b9150611d9783611bb7565b9250828202611da581611bb7565b91508282048414831517611dbc57611dbb611d1e565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611dfd82611bb7565b9150611e0883611bb7565b925082611e1857611e17611dc3565b5b828204905092915050565b6000611e2e82611bb7565b9150611e3983611bb7565b9250828201905080821115611e5157611e50611d1e565b5b92915050565b600082825260208201905092915050565b7f43616e6e6f742077697468647261772030000000000000000000000000000000600082015250565b6000611e9e601183611e57565b9150611ea982611e68565b602082019050919050565b60006020820190508181036000830152611ecd81611e91565b9050919050565b7f496e73756666696369656e742062616c616e636520746f207769746864726177600082015250565b6000611f0a602083611e57565b9150611f1582611ed4565b602082019050919050565b60006020820190508181036000830152611f3981611efd565b9050919050565b600081905092915050565b50565b6000611f5b600083611f40565b9150611f6682611f4b565b600082019050919050565b6000611f7c82611f4e565b9150819050919050565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b6000611fbc601083611e57565b9150611fc782611f86565b602082019050919050565b60006020820190508181036000830152611feb81611faf565b9050919050565b7f5468652072657761726420706572696f6420686173206e6f7420656e6465642060008201527f7965740000000000000000000000000000000000000000000000000000000000602082015250565b600061204e602383611e57565b915061205982611ff2565b604082019050919050565b6000602082019050818103600083015261207d81612041565b9050919050565b60008151905061209381611beb565b92915050565b6000602082840312156120af576120ae611b27565b5b60006120bd84828501612084565b91505092915050565b7f4e6f2072656d61696e696e67207265776172647320746f207769746864726177600082015250565b60006120fc602083611e57565b9150612107826120c6565b602082019050919050565b6000602082019050818103600083015261212b816120ef565b9050919050565b7f436f6e7472616374206973207061757365640000000000000000000000000000600082015250565b6000612168601283611e57565b915061217382612132565b602082019050919050565b600060208201905081810360008301526121978161215b565b9050919050565b7f43616e6e6f74207374616b652030000000000000000000000000000000000000600082015250565b60006121d4600e83611e57565b91506121df8261219e565b602082019050919050565b60006020820190508181036000830152612203816121c7565b9050919050565b7f52657761726420706572696f6420686173206578706972656400000000000000600082015250565b6000612240601983611e57565b915061224b8261220a565b602082019050919050565b6000602082019050818103600083015261226f81612233565b9050919050565b7f52657761726420706572696f642068617320616c726561647920656e64656400600082015250565b60006122ac601f83611e57565b91506122b782612276565b602082019050919050565b600060208201905081810360008301526122db8161229f565b9050919050565b7f4e657720756e6c6f636b2074696d65206d75737420626520696e20746865206660008201527f7574757265000000000000000000000000000000000000000000000000000000602082015250565b600061233e602583611e57565b9150612349826122e2565b604082019050919050565b6000602082019050818103600083015261236d81612331565b9050919050565b7f556e6c6f636b2074696d652068617320616c7265616479207061737365640000600082015250565b60006123aa601e83611e57565b91506123b582612374565b602082019050919050565b600060208201905081810360008301526123d98161239d565b9050919050565b60006040820190506123f56000830185611c7a565b6124026020830184611bc1565b9392505050565b61241281611c44565b811461241d57600080fd5b50565b60008151905061242f81612409565b92915050565b60006020828403121561244b5761244a611b27565b5b600061245984828501612420565b91505092915050565b600081519050919050565b60005b8381101561248b578082015181840152602081019050612470565b60008484015250505050565b60006124a282612462565b6124ac8185611f40565b93506124bc81856020860161246d565b80840191505092915050565b60006124d48284612497565b91508190509291505056fea26469706673582212206033e18d4aede611ddf1783cac95748915e51d9dea308aa3108faa8ee4313ca764736f6c634300081800330000000000000000000000007fa68a4544aa796d7c3fe1b0dac2164999414922

Deployed Bytecode

0x6080604052600436106101e25760003560e01c806380faa57d11610102578063c8f33c9111610095578063ebe2b12b11610064578063ebe2b12b14610642578063f2bc4c9c1461066d578063f2fde38b14610698578063f7c618c1146106c1576101e2565b8063c8f33c9114610598578063cd3daf9d146105c3578063dace4557146105ee578063df136d6514610617576101e2565b80638da5cb5b116100d15780638da5cb5b14610502578063b88a802f1461052d578063c0ed00c914610544578063c8333bb21461056d576101e2565b806380faa57d1461046c5780638456cb5914610497578063853828b6146104ae5780638b876347146104c5576101e2565b80633f4ba83a1161017a5780635c975abb116101495780635c975abb146103d4578063715018a6146103ff57806378e97925146104165780637b0a47ee14610441576101e2565b80633f4ba83a1461033c5780634131983114610353578063567e98f91461037e5780635ade228a146103a9576101e2565b80632e1a7d4d116101b65780632e1a7d4d146102c957806330865362146102f25780633a4b66f1146103095780633a7e98fd14610313576101e2565b80628cc262146101e75780630700037d1461022457806327e235e314610261578063299cf3e01461029e575b600080fd5b3480156101f357600080fd5b5061020e60048036038101906102099190611b8a565b6106ec565b60405161021b9190611bd0565b60405180910390f35b34801561023057600080fd5b5061024b60048036038101906102469190611b8a565b6107f9565b6040516102589190611bd0565b60405180910390f35b34801561026d57600080fd5b5061028860048036038101906102839190611b8a565b610811565b6040516102959190611bd0565b60405180910390f35b3480156102aa57600080fd5b506102b3610829565b6040516102c09190611bd0565b60405180910390f35b3480156102d557600080fd5b506102f060048036038101906102eb9190611c17565b61082f565b005b3480156102fe57600080fd5b50610307610b9a565b005b610311610d90565b005b34801561031f57600080fd5b5061033a60048036038101906103359190611c17565b61101b565b005b34801561034857600080fd5b5061035161102d565b005b34801561035f57600080fd5b50610368611052565b6040516103759190611bd0565b60405180910390f35b34801561038a57600080fd5b50610393611058565b6040516103a09190611bd0565b60405180910390f35b3480156103b557600080fd5b506103be61105e565b6040516103cb9190611bd0565b60405180910390f35b3480156103e057600080fd5b506103e9611064565b6040516103f69190611c5f565b60405180910390f35b34801561040b57600080fd5b50610414611077565b005b34801561042257600080fd5b5061042b61108b565b6040516104389190611bd0565b60405180910390f35b34801561044d57600080fd5b50610456611091565b6040516104639190611bd0565b60405180910390f35b34801561047857600080fd5b50610481611097565b60405161048e9190611bd0565b60405180910390f35b3480156104a357600080fd5b506104ac6110b1565b005b3480156104ba57600080fd5b506104c36110d6565b005b3480156104d157600080fd5b506104ec60048036038101906104e79190611b8a565b611120565b6040516104f99190611bd0565b60405180910390f35b34801561050e57600080fd5b50610517611138565b6040516105249190611c89565b60405180910390f35b34801561053957600080fd5b50610542611161565b005b34801561055057600080fd5b5061056b60048036038101906105669190611c17565b6113e2565b005b34801561057957600080fd5b50610582611492565b60405161058f9190611bd0565b60405180910390f35b3480156105a457600080fd5b506105ad6114a2565b6040516105ba9190611bd0565b60405180910390f35b3480156105cf57600080fd5b506105d86114a8565b6040516105e59190611bd0565b60405180910390f35b3480156105fa57600080fd5b5061061560048036038101906106109190611c17565b61152c565b005b34801561062357600080fd5b5061062c6115fa565b6040516106399190611bd0565b60405180910390f35b34801561064e57600080fd5b50610657611600565b6040516106649190611bd0565b60405180910390f35b34801561067957600080fd5b50610682611606565b60405161068f9190611bd0565b60405180910390f35b3480156106a457600080fd5b506106bf60048036038101906106ba9190611b8a565b61160c565b005b3480156106cd57600080fd5b506106d6611692565b6040516106e39190611d03565b60405180910390f35b600080601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054670de0b6b3a7640000826107c76114a8565b6107d19190611d4d565b846107dc9190611d81565b6107e69190611df2565b6107f09190611e23565b92505050919050565b600f6020528060005260406000206000915090505481565b60106020528060005260406000206000915090505481565b60075481565b6108376116b8565b336004546005546108489190611e23565b42106108fd576108566114a8565b600c81905550610864611097565b600b81905550610873816106ec565b600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600c54600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60008211610940576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093790611eb4565b60405180910390fd5b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548211156109c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b990611f20565b60405180910390fd5b81601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610a119190611d4d565b925050819055508160086000828254610a2a9190611d4d565b925050819055506000601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205403610a9357600160096000828254610a8b9190611d4d565b925050819055505b60003373ffffffffffffffffffffffffffffffffffffffff1683604051610ab990611f71565b60006040518083038185875af1925050503d8060008114610af6576040519150601f19603f3d011682016040523d82523d6000602084013e610afb565b606091505b5050905080610b3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3690611fd2565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b6584604051610b859190611bd0565b60405180910390a25050610b976116fe565b50565b610ba2611707565b62015180600754610bb39190611d81565b600654610bc09190611e23565b4211610c01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf890612064565b60405180910390fd5b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610c5e9190611c89565b602060405180830381865afa158015610c7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9f9190612099565b905060008111610ce4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cdb90612112565b60405180910390fd5b610d38610cef611138565b82600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661178e9092919063ffffffff16565b610d40611138565b73ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048682604051610d859190611bd0565b60405180910390a250565b600d60009054906101000a900460ff1615610de0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd79061217e565b60405180910390fd5b610de86116b8565b33600454600554610df99190611e23565b4210610eae57610e076114a8565b600c81905550610e15611097565b600b81905550610e24816106ec565b600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600c54600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60003411610ef1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee8906121ea565b60405180910390fd5b6000601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205403610f5357600160096000828254610f4b9190611e23565b925050819055505b34601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610fa29190611e23565b925050819055503460086000828254610fbb9190611e23565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a346040516110089190611bd0565b60405180910390a2506110196116fe565b565b611023611707565b8060078190555050565b611035611707565b6000600d60006101000a81548160ff021916908315150217905550565b60045481565b60085481565b60035481565b600d60009054906101000a900460ff1681565b61107f611707565b611089600061180d565b565b60055481565b600a5481565b600060065442106110aa576006546110ac565b425b905090565b6110b9611707565b6001600d60006101000a81548160ff021916908315150217905550565b61111e601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461082f565b565b600e6020528060005260406000206000915090505481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600d60009054906101000a900460ff16156111b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a89061217e565b60405180910390fd5b6111b96116b8565b336004546005546111ca9190611e23565b421061127f576111d86114a8565b600c819055506111e6611097565b600b819055506111f5816106ec565b600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600c54600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b620151806007546112909190611d81565b60065461129d9190611e23565b4211156112df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d690612256565b60405180910390fd5b60006112ea336106ec565b905060008111156113d6576000600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506113873382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661178e9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040516113cd9190611bd0565b60405180910390a25b50506113e06116fe565b565b6113ea611707565b600654421061142e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611425906122c2565b60405180910390fd5b6000814261143c9190611e23565b905042811161144b574261144d565b805b600681905550816b0813f3978f8940984400000061146b9190611df2565b600a81905550600654600b54111561148757600654600b819055505b816003819055505050565b6b0813f3978f8940984400000081565b600b5481565b60008060085414806114c857506004546005546114c59190611e23565b42105b156114d757600c549050611529565b600854670de0b6b3a7640000600b546114ee611097565b6114f89190611d4d565b600a546115059190611d81565b61150f9190611d81565b6115199190611df2565b600c546115269190611e23565b90505b90565b611534611707565b42811015611577576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156e90612354565b60405180910390fd5b6004546005546115879190611e23565b42106115c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115bf906123c0565b60405180910390fd5b80426115d49190611e23565b600581905550600554600b5411156115f057600554600b819055505b8060048190555050565b600c5481565b60065481565b60095481565b611614611707565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036116865760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161167d9190611c89565b60405180910390fd5b61168f8161180d565b50565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6002600154036116f4576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b60018081905550565b61170f6118d1565b73ffffffffffffffffffffffffffffffffffffffff1661172d611138565b73ffffffffffffffffffffffffffffffffffffffff161461178c576117506118d1565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016117839190611c89565b60405180910390fd5b565b611808838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040516024016117c19291906123e0565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506118d9565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6000611904828473ffffffffffffffffffffffffffffffffffffffff1661197090919063ffffffff16565b905060008151141580156119295750808060200190518101906119279190612435565b155b1561196b57826040517f5274afe70000000000000000000000000000000000000000000000000000000081526004016119629190611c89565b60405180910390fd5b505050565b606061197e83836000611986565b905092915050565b6060814710156119cd57306040517fcd7860590000000000000000000000000000000000000000000000000000000081526004016119c49190611c89565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff1684866040516119f691906124c8565b60006040518083038185875af1925050503d8060008114611a33576040519150601f19603f3d011682016040523d82523d6000602084013e611a38565b606091505b5091509150611a48868383611a53565b925050509392505050565b606082611a6857611a6382611ae2565b611ada565b60008251148015611a90575060008473ffffffffffffffffffffffffffffffffffffffff163b145b15611ad257836040517f9996b315000000000000000000000000000000000000000000000000000000008152600401611ac99190611c89565b60405180910390fd5b819050611adb565b5b9392505050565b600081511115611af55780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611b5782611b2c565b9050919050565b611b6781611b4c565b8114611b7257600080fd5b50565b600081359050611b8481611b5e565b92915050565b600060208284031215611ba057611b9f611b27565b5b6000611bae84828501611b75565b91505092915050565b6000819050919050565b611bca81611bb7565b82525050565b6000602082019050611be56000830184611bc1565b92915050565b611bf481611bb7565b8114611bff57600080fd5b50565b600081359050611c1181611beb565b92915050565b600060208284031215611c2d57611c2c611b27565b5b6000611c3b84828501611c02565b91505092915050565b60008115159050919050565b611c5981611c44565b82525050565b6000602082019050611c746000830184611c50565b92915050565b611c8381611b4c565b82525050565b6000602082019050611c9e6000830184611c7a565b92915050565b6000819050919050565b6000611cc9611cc4611cbf84611b2c565b611ca4565b611b2c565b9050919050565b6000611cdb82611cae565b9050919050565b6000611ced82611cd0565b9050919050565b611cfd81611ce2565b82525050565b6000602082019050611d186000830184611cf4565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611d5882611bb7565b9150611d6383611bb7565b9250828203905081811115611d7b57611d7a611d1e565b5b92915050565b6000611d8c82611bb7565b9150611d9783611bb7565b9250828202611da581611bb7565b91508282048414831517611dbc57611dbb611d1e565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611dfd82611bb7565b9150611e0883611bb7565b925082611e1857611e17611dc3565b5b828204905092915050565b6000611e2e82611bb7565b9150611e3983611bb7565b9250828201905080821115611e5157611e50611d1e565b5b92915050565b600082825260208201905092915050565b7f43616e6e6f742077697468647261772030000000000000000000000000000000600082015250565b6000611e9e601183611e57565b9150611ea982611e68565b602082019050919050565b60006020820190508181036000830152611ecd81611e91565b9050919050565b7f496e73756666696369656e742062616c616e636520746f207769746864726177600082015250565b6000611f0a602083611e57565b9150611f1582611ed4565b602082019050919050565b60006020820190508181036000830152611f3981611efd565b9050919050565b600081905092915050565b50565b6000611f5b600083611f40565b9150611f6682611f4b565b600082019050919050565b6000611f7c82611f4e565b9150819050919050565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b6000611fbc601083611e57565b9150611fc782611f86565b602082019050919050565b60006020820190508181036000830152611feb81611faf565b9050919050565b7f5468652072657761726420706572696f6420686173206e6f7420656e6465642060008201527f7965740000000000000000000000000000000000000000000000000000000000602082015250565b600061204e602383611e57565b915061205982611ff2565b604082019050919050565b6000602082019050818103600083015261207d81612041565b9050919050565b60008151905061209381611beb565b92915050565b6000602082840312156120af576120ae611b27565b5b60006120bd84828501612084565b91505092915050565b7f4e6f2072656d61696e696e67207265776172647320746f207769746864726177600082015250565b60006120fc602083611e57565b9150612107826120c6565b602082019050919050565b6000602082019050818103600083015261212b816120ef565b9050919050565b7f436f6e7472616374206973207061757365640000000000000000000000000000600082015250565b6000612168601283611e57565b915061217382612132565b602082019050919050565b600060208201905081810360008301526121978161215b565b9050919050565b7f43616e6e6f74207374616b652030000000000000000000000000000000000000600082015250565b60006121d4600e83611e57565b91506121df8261219e565b602082019050919050565b60006020820190508181036000830152612203816121c7565b9050919050565b7f52657761726420706572696f6420686173206578706972656400000000000000600082015250565b6000612240601983611e57565b915061224b8261220a565b602082019050919050565b6000602082019050818103600083015261226f81612233565b9050919050565b7f52657761726420706572696f642068617320616c726561647920656e64656400600082015250565b60006122ac601f83611e57565b91506122b782612276565b602082019050919050565b600060208201905081810360008301526122db8161229f565b9050919050565b7f4e657720756e6c6f636b2074696d65206d75737420626520696e20746865206660008201527f7574757265000000000000000000000000000000000000000000000000000000602082015250565b600061233e602583611e57565b9150612349826122e2565b604082019050919050565b6000602082019050818103600083015261236d81612331565b9050919050565b7f556e6c6f636b2074696d652068617320616c7265616479207061737365640000600082015250565b60006123aa601e83611e57565b91506123b582612374565b602082019050919050565b600060208201905081810360008301526123d98161239d565b9050919050565b60006040820190506123f56000830185611c7a565b6124026020830184611bc1565b9392505050565b61241281611c44565b811461241d57600080fd5b50565b60008151905061242f81612409565b92915050565b60006020828403121561244b5761244a611b27565b5b600061245984828501612420565b91505092915050565b600081519050919050565b60005b8381101561248b578082015181840152602081019050612470565b60008484015250505050565b60006124a282612462565b6124ac8185611f40565b93506124bc81856020860161246d565b80840191505092915050565b60006124d48284612497565b91508190509291505056fea26469706673582212206033e18d4aede611ddf1783cac95748915e51d9dea308aa3108faa8ee4313ca764736f6c63430008180033

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

0000000000000000000000007fa68a4544aa796d7c3fe1b0dac2164999414922

-----Decoded View---------------
Arg [0] : _rewardToken (address): 0x7fa68a4544Aa796D7C3FE1B0DAC2164999414922

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000007fa68a4544aa796d7c3fe1b0dac2164999414922


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
0x3A7fCda20fec22a253864DA3e46410888B0776EC
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ 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.