ETH Price: $2,876.42 (-2.16%)

Contract

0x2F30bba03ae76eCde0E2304A8aAF5017DF09A1cA

Overview

ETH Balance

Linea Mainnet LogoLinea Mainnet LogoLinea Mainnet Logo0 ETH

ETH Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Stake283170612026-01-26 2:01:304 hrs ago1769392890IN
0x2F30bba0...7DF09A1cA
0 ETH0.000007140.0386469
Get Reward283079442026-01-25 19:51:1810 hrs ago1769370678IN
0x2F30bba0...7DF09A1cA
0 ETH0.000005560.03875603
Get Reward282907962026-01-25 8:59:3821 hrs ago1769331578IN
0x2F30bba0...7DF09A1cA
0 ETH0.000006740.04048031
Get Reward282215372026-01-23 13:11:342 days ago1769173894IN
0x2F30bba0...7DF09A1cA
0 ETH0.000005490.03886482
Stake282214412026-01-23 13:08:002 days ago1769173680IN
0x2F30bba0...7DF09A1cA
0 ETH0.000006270.03876458
Stake282214262026-01-23 13:07:282 days ago1769173648IN
0x2F30bba0...7DF09A1cA
0 ETH0.000006270.03876458
Stake282214002026-01-23 13:06:242 days ago1769173584IN
0x2F30bba0...7DF09A1cA
0 ETH0.000006730.03867439
Stake282213852026-01-23 13:05:522 days ago1769173552IN
0x2F30bba0...7DF09A1cA
0 ETH0.000006630.03868797
Get Reward282141402026-01-23 8:40:502 days ago1769157650IN
0x2F30bba0...7DF09A1cA
0 ETH0.000006430.03864031
Withdraw Request...282110302026-01-23 6:48:082 days ago1769150888IN
0x2F30bba0...7DF09A1cA
0 ETH0.000006460.03868625
Withdraw Request...282110232026-01-23 6:47:502 days ago1769150870IN
0x2F30bba0...7DF09A1cA
0 ETH0.000005730.03868625
Get Reward282110192026-01-23 6:47:402 days ago1769150860IN
0x2F30bba0...7DF09A1cA
0 ETH0.000005560.03875603
Stake282054032026-01-23 3:26:023 days ago1769138762IN
0x2F30bba0...7DF09A1cA
0 ETH0.000007140.0386469
Get Reward281796172026-01-22 12:59:323 days ago1769086772IN
0x2F30bba0...7DF09A1cA
0 ETH0.000006430.03864031
Get Reward281463312026-01-21 18:04:084 days ago1769018648IN
0x2F30bba0...7DF09A1cA
0 ETH0.000008690.03843987
Stake281458132026-01-21 17:46:464 days ago1769017606IN
0x2F30bba0...7DF09A1cA
0 ETH0.000006270.03876458
Get Reward281302342026-01-21 9:04:164 days ago1768986256IN
0x2F30bba0...7DF09A1cA
0 ETH0.000005820.04060155
Get Reward281296622026-01-21 8:45:084 days ago1768985108IN
0x2F30bba0...7DF09A1cA
0 ETH0.000005560.03875603
Get Reward281082632026-01-20 20:33:485 days ago1768941228IN
0x2F30bba0...7DF09A1cA
0 ETH0.000005820.04060155
Get Reward280870942026-01-20 8:42:465 days ago1768898566IN
0x2F30bba0...7DF09A1cA
0 ETH0.00000460.03256482
Stake280734382026-01-20 1:05:446 days ago1768871144IN
0x2F30bba0...7DF09A1cA
0 ETH0.000005250.03246458
Get Reward280655912026-01-19 20:36:486 days ago1768855008IN
0x2F30bba0...7DF09A1cA
0 ETH0.000004870.03400155
Request Withdraw280630092026-01-19 19:09:526 days ago1768849792IN
0x2F30bba0...7DF09A1cA
0 ETH0.000004020.03275156
Stake280614842026-01-19 18:18:526 days ago1768846732IN
0x2F30bba0...7DF09A1cA
0 ETH0.000005250.03246458
Get Reward280447032026-01-19 8:57:446 days ago1768813064IN
0x2F30bba0...7DF09A1cA
0 ETH0.000004650.03245603
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
283170612026-01-26 2:01:304 hrs ago1769392890
0x2F30bba0...7DF09A1cA
0 ETH
283170612026-01-26 2:01:304 hrs ago1769392890
0x2F30bba0...7DF09A1cA
0 ETH
283170612026-01-26 2:01:304 hrs ago1769392890
0x2F30bba0...7DF09A1cA
0 ETH
283079442026-01-25 19:51:1810 hrs ago1769370678
0x2F30bba0...7DF09A1cA
0 ETH
282907962026-01-25 8:59:3821 hrs ago1769331578
0x2F30bba0...7DF09A1cA
0 ETH
282215372026-01-23 13:11:342 days ago1769173894
0x2F30bba0...7DF09A1cA
0 ETH
282214412026-01-23 13:08:002 days ago1769173680
0x2F30bba0...7DF09A1cA
0 ETH
282214412026-01-23 13:08:002 days ago1769173680
0x2F30bba0...7DF09A1cA
0 ETH
282214412026-01-23 13:08:002 days ago1769173680
0x2F30bba0...7DF09A1cA
0 ETH
282214262026-01-23 13:07:282 days ago1769173648
0x2F30bba0...7DF09A1cA
0 ETH
282214262026-01-23 13:07:282 days ago1769173648
0x2F30bba0...7DF09A1cA
0 ETH
282214262026-01-23 13:07:282 days ago1769173648
0x2F30bba0...7DF09A1cA
0 ETH
282214002026-01-23 13:06:242 days ago1769173584
0x2F30bba0...7DF09A1cA
0 ETH
282214002026-01-23 13:06:242 days ago1769173584
0x2F30bba0...7DF09A1cA
0 ETH
282214002026-01-23 13:06:242 days ago1769173584
0x2F30bba0...7DF09A1cA
0 ETH
282213852026-01-23 13:05:522 days ago1769173552
0x2F30bba0...7DF09A1cA
0 ETH
282213852026-01-23 13:05:522 days ago1769173552
0x2F30bba0...7DF09A1cA
0 ETH
282213852026-01-23 13:05:522 days ago1769173552
0x2F30bba0...7DF09A1cA
0 ETH
282141402026-01-23 8:40:502 days ago1769157650
0x2F30bba0...7DF09A1cA
0 ETH
282110302026-01-23 6:48:082 days ago1769150888
0x2F30bba0...7DF09A1cA
0 ETH
282110232026-01-23 6:47:502 days ago1769150870
0x2F30bba0...7DF09A1cA
0 ETH
282110192026-01-23 6:47:402 days ago1769150860
0x2F30bba0...7DF09A1cA
0 ETH
282054032026-01-23 3:26:023 days ago1769138762
0x2F30bba0...7DF09A1cA
0 ETH
282054032026-01-23 3:26:023 days ago1769138762
0x2F30bba0...7DF09A1cA
0 ETH
282054032026-01-23 3:26:023 days ago1769138762
0x2F30bba0...7DF09A1cA
0 ETH
View All Internal Transactions
Cross-Chain Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x119814ec...668d65E04
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
LINEABOLStaking

Compiler Version
v0.8.27+commit.40a35a09

Optimization Enabled:
Yes with 1000 runs

Other Settings:
london EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

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

/// @title LINEABOLStaking (Fixed APR model)
/// @notice Staking with a fixed APR determined when owner notifies a reward amount.
/// @dev Rewards are computed as if `maxTotalStake` were staked. If fewer tokens are staked,
///      some rewards remain undistributed and can be reclaimed or rolled over.
contract LINEABOLStaking is ReentrancyGuard, Ownable, Pausable {
    using SafeERC20 for IERC20;

    IERC20 public stakeToken;
    IERC20 public rewardToken;

    uint8 public stakeTokenDecimals;
    uint8 public rewardTokenDecimals;

    uint256 public totalSupply;
    mapping(address => uint256) public balanceOf;

    // Reward accounting
    uint256 public rewardPerTokenStored;
    uint256 public lastUpdateTime;
    mapping(address => uint256) public userRewardPerTokenPaid;
    mapping(address => uint256) public rewards;

    // reward rate (reward tokens / second) derived from notifyRewardAmount (reward/duration)
    uint256 public rewardRate;
    uint256 public periodFinish;

    uint256 public lastRewardAmount;
    uint256 public rewardDuration;
    uint256 public distributedRewards; // amount of rewardToken actually paid out to users (monotonic across a cycle)

    uint256 private constant PRECISION = 1e18;

    // Pool caps & limits
    uint256 public maxStakePerUser = 100_000 * 1e18;
    uint256 public maxTotalStake = type(uint256).max;

    // Cooldown
    uint256 public cooldownPeriod = 72 hours;
    struct WithdrawalRequest {
        uint256 amount;
        uint256 unlockTime;
    }
    mapping(address => WithdrawalRequest) public withdrawalRequests;

    // Events
    event Staked(address indexed user, uint256 amount);
    event WithdrawRequested(address indexed user, uint256 amount, uint256 unlockTime);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);
    event RewardAdded(uint256 reward, uint256 newRate);
    event EmergencyWithdrawn(address indexed user, uint256 amount);
    event CooldownPeriodUpdated(uint256 newCooldownPeriod);
    event StakeTokenUpdated(address indexed newStakeToken, uint8 decimals);
    event RewardTokenUpdated(address indexed newRewardToken, uint8 decimals);
    event MaxStakePerUserUpdated(uint256 newMaxStake);
    event MaxTotalStakeUpdated(uint256 newMaxTotalStake);
    event UndistributedReclaimed(address indexed to, uint256 amount);
    event RolledOverRewards(uint256 amount, uint256 duration);

    constructor(address _stakeToken, address _rewardToken) Ownable(msg.sender) {
        require(_stakeToken != address(0) && _rewardToken != address(0), "Zero address");
        stakeToken = IERC20(_stakeToken);
        rewardToken = IERC20(_rewardToken);
        stakeTokenDecimals = _getTokenDecimals(_stakeToken);
        rewardTokenDecimals = _getTokenDecimals(_rewardToken);
        lastUpdateTime = block.timestamp;
    }

    modifier updateReward(address account) {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = lastTimeRewardApplicable();
        if (account != address(0)) {
            rewards[account] = earned(account);
            userRewardPerTokenPaid[account] = rewardPerTokenStored;
        }
        _;
    }

    function setMaxStakePerUser(uint256 _max) external onlyOwner {
        require(_max > 0, "Invalid max");
        require(_max <= 500_000 * 1e18, "Cannot exceed 500k tokens");
        maxStakePerUser = _max;
        emit MaxStakePerUserUpdated(_max);
    }

    function setMaxTotalStake(uint256 _maxTotal) external onlyOwner {
        require(_maxTotal > 0, "Invalid max total");
        maxTotalStake = _maxTotal;
        emit MaxTotalStakeUpdated(_maxTotal);
    }

    // VIEW helpers

    function lastTimeRewardApplicable() public view returns (uint256) {
        return block.timestamp < periodFinish ? block.timestamp : periodFinish;
    }

    /// @notice rewardPerToken uses maxTotalStake as the denominator to enforce fixed APR
    /// @dev If maxTotalStake is very large (e.g., type(uint256).max) the per-token accrual will be tiny.
    function rewardPerToken() public view returns (uint256) {
        if (lastUpdateTime == 0) return rewardPerTokenStored;
        uint256 applicable = lastTimeRewardApplicable();
        if (applicable <= lastUpdateTime) return rewardPerTokenStored;
        uint256 timeDelta = applicable - lastUpdateTime;

        // Use maxTotalStake as the baseline supply for fixed APR distribution
        uint256 denominator = maxTotalStake;
        if (denominator == 0) {
            return rewardPerTokenStored; // defensive; setMaxTotalStake prevents this normally
        }

        // rewardRate is reward / duration (tokens per second).
        // We compute how much reward-per-unit-stake accrues in this timeDelta:
        // delta = timeDelta * rewardRate / denominator
        // scaled by PRECISION
        uint256 delta = (timeDelta * rewardRate * PRECISION) / denominator;
        return rewardPerTokenStored + delta;
    }

    function earned(address account) public view returns (uint256) {
        return ((balanceOf[account] * (rewardPerToken() - userRewardPerTokenPaid[account])) / PRECISION) + rewards[account];
    }

    /// @notice APR fixed based on lastRewardAmount, rewardDuration and maxTotalStake.
    /// @dev APR returned as fixed-point 1e18 (e.g., 0.12e18 for 12%).
    function apr() public view returns (uint256) {
        if (rewardDuration == 0 || maxTotalStake == 0) return 0;
        // APR = (lastRewardAmount / maxTotalStake) * (seconds in year / rewardDuration)
        uint256 numerator = lastRewardAmount * 365 days * PRECISION;
        uint256 denominator = maxTotalStake * rewardDuration;
        return denominator == 0 ? 0 : (numerator / denominator);
    }

    function aprPercent() external view returns (uint256 whole, uint256 frac2) {
        uint256 a = apr(); // 1e18 precision
        uint256 percentTimes100 = (a * 100) / PRECISION; // e.g., 12.34% => 1234
        whole = percentTimes100 / 100;
        frac2 = percentTimes100 % 100;
    }

    // USER ACTIONS

    function stake(uint256 amount) external nonReentrant whenNotPaused updateReward(msg.sender) {
        require(amount > 0, "Cannot stake 0");

        uint256 beforeBal = stakeToken.balanceOf(address(this));
        stakeToken.safeTransferFrom(msg.sender, address(this), amount);
        uint256 afterBal = stakeToken.balanceOf(address(this));
        uint256 received = afterBal - beforeBal;

        require(received > 0, "Nothing received");

        require(balanceOf[msg.sender] + received <= maxStakePerUser, "Exceeds max stake limit");
        require(totalSupply + received <= maxTotalStake, "Exceeds pool max total stake");

        totalSupply += received;
        balanceOf[msg.sender] += received;

        emit Staked(msg.sender, received);
    }

    function requestWithdraw(uint256 amount) external nonReentrant whenNotPaused updateReward(msg.sender) {
        require(amount > 0, "Cannot request 0");
        require(balanceOf[msg.sender] >= amount, "Not enough staked");
        require(withdrawalRequests[msg.sender].amount == 0, "Pending withdrawal exists");

        withdrawalRequests[msg.sender] = WithdrawalRequest({
            amount: amount,
            unlockTime: block.timestamp + cooldownPeriod
        });

        emit WithdrawRequested(msg.sender, amount, block.timestamp + cooldownPeriod);
    }

    function withdrawRequested() external nonReentrant whenNotPaused updateReward(msg.sender) {
        WithdrawalRequest memory req = withdrawalRequests[msg.sender];
        require(req.amount > 0, "No withdrawal");
        require(block.timestamp >= req.unlockTime || block.timestamp >= periodFinish, "Cooldown not finished");

        delete withdrawalRequests[msg.sender];

        balanceOf[msg.sender] -= req.amount;
        totalSupply -= req.amount;
        stakeToken.safeTransfer(msg.sender, req.amount);

        emit Withdrawn(msg.sender, req.amount);
    }

    function getReward() public nonReentrant whenNotPaused updateReward(msg.sender) {
        uint256 reward = rewards[msg.sender];
        if (reward > 0) {
            rewards[msg.sender] = 0;
            distributedRewards += reward;
            rewardToken.safeTransfer(msg.sender, reward);
            emit RewardPaid(msg.sender, reward);
        }
    }

    // OWNER FUNCTIONS

    function setCooldownPeriod(uint256 _newCooldownPeriod) external onlyOwner {
        require(_newCooldownPeriod >= 1 hours && _newCooldownPeriod <= 7 days, "Invalid cooldown period");
        cooldownPeriod = _newCooldownPeriod;
        emit CooldownPeriodUpdated(_newCooldownPeriod);
    }

    /// @notice Owner provides the reward amount and duration. This establishes the fixed APR.
    /// @dev rewardRate = reward / duration (tokens per second). rewardPerToken() uses maxTotalStake.
    function notifyRewardAmount(uint256 reward, uint256 duration) public onlyOwner updateReward(address(0)) {
        require(reward > 0, "No reward");
        require(duration >= 1 days, "Duration too short");

        // Ensure contract has enough reward tokens available for distribution.
        uint256 contractBalance = rewardToken.balanceOf(address(this));
        if (address(rewardToken) == address(stakeToken)) {
            require(contractBalance >= totalSupply, "Invariant: contract balance less than totalSupply");
            uint256 available = contractBalance - totalSupply;
            require(available >= reward, "Insufficient reward tokens (after accounting for staked tokens)");
        } else {
            require(contractBalance >= reward, "Insufficient reward tokens");
        }

        // compute rewardRate as reward per second
        rewardRate = reward / duration;

        // bookkeeping
        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp + duration;
        lastRewardAmount = reward;
        rewardDuration = duration;
        distributedRewards = 0;

        emit RewardAdded(reward, rewardRate);
    }

    function depositRewards(uint256 amount) external onlyOwner {
        require(amount > 0, "Cannot deposit 0");
        rewardToken.safeTransferFrom(msg.sender, address(this), amount);
    }

    /// @notice Owner reclaims undistributed rewards after the period is finished.
    /// @dev leftover = lastRewardAmount - distributedRewards (bounded to zero)
    function reclaimUndistributedRewards(address to) external onlyOwner {
        require(block.timestamp >= periodFinish, "Period not finished");
        require(to != address(0), "Invalid to");

        uint256 leftover = 0;
        if (lastRewardAmount > distributedRewards) {
            leftover = lastRewardAmount - distributedRewards;
        }

        require(leftover > 0, "No leftover rewards");

        // adjust bookkeeping
        lastRewardAmount -= leftover;

        // if rewardToken == stakeToken, ensure not withdrawing staked tokens
        if (address(rewardToken) == address(stakeToken)) {
            uint256 contractBal = IERC20(address(stakeToken)).balanceOf(address(this));
            require(contractBal - leftover >= totalSupply, "Cannot withdraw staked tokens");
        }

        rewardToken.safeTransfer(to, leftover);

        emit UndistributedReclaimed(to, leftover);
    }

    /// @notice Rollover leftover undistributed rewards into a new cycle of newDuration.
    function rolloverUndistributedRewards(uint256 newDuration) external onlyOwner updateReward(address(0)) {
        require(block.timestamp >= periodFinish, "Period not finished");
        require(newDuration >= 1 days, "Duration too short");

        uint256 leftover = 0;
        if (lastRewardAmount > distributedRewards) {
            leftover = lastRewardAmount - distributedRewards;
        }
        require(leftover > 0, "No leftover to rollover");

        // reset counters for new cycle
        distributedRewards = 0;
        lastRewardAmount = 0;
        rewardDuration = 0;

        // Start new period with leftover
        notifyRewardAmount(leftover, newDuration);

        emit RolledOverRewards(leftover, newDuration);
    }

    function updateStakeToken(address _newStakeToken) external onlyOwner whenPaused {
        require(_newStakeToken != address(0), "Invalid address");
        require(totalSupply == 0, "Cannot update with active stakes");
        stakeToken = IERC20(_newStakeToken);
        stakeTokenDecimals = _getTokenDecimals(_newStakeToken);
        emit StakeTokenUpdated(_newStakeToken, stakeTokenDecimals);
    }

    function updateRewardToken(address _newRewardToken) external onlyOwner whenPaused {
        require(_newRewardToken != address(0), "Invalid address");
        rewardToken = IERC20(_newRewardToken);
        rewardTokenDecimals = _getTokenDecimals(_newRewardToken);
        emit RewardTokenUpdated(_newRewardToken, rewardTokenDecimals);
    }

    // INTERNAL / HELPERS

    function _getTokenDecimals(address token) internal view returns (uint8) {
        (bool success, bytes memory data) = token.staticcall{gas: 30000}(abi.encodeWithSignature("decimals()"));
        if (!success || data.length < 32) {
            return 18;
        }
        uint8 d = abi.decode(data, (uint8));
        return d;
    }

    function toSmallestUnit(uint256 amount, uint8 decimals_) public pure returns (uint256) {
        return amount * (10 ** decimals_);
    }

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }

    function emergencyWithdrawERC20(address token, address to, uint256 amount) external onlyOwner {
        require(to != address(0), "Invalid to");
        if (token == address(stakeToken)) {
            uint256 contractBal = IERC20(token).balanceOf(address(this));
            require(contractBal - amount >= totalSupply, "Cannot withdraw staked tokens");
        }
        IERC20(token).safeTransfer(to, amount);
        emit EmergencyWithdrawn(to, amount);
    }

    // ===== View util: how much undistributed currently remains for the active cycle =====
    function undistributedAmount() external view returns (uint256) {
        if (lastRewardAmount <= distributedRewards) return 0;
        return lastRewardAmount - distributedRewards;
    }
}

// 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.1.0) (interfaces/IERC1363.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";

/**
 * @title IERC1363
 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
 *
 * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
 * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
 */
interface IERC1363 is IERC20, IERC165 {
    /*
     * Note: the ERC-165 identifier for this interface is 0xb0202a11.
     * 0xb0202a11 ===
     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^
     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
     */

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @param data Additional data with no specified format, sent in call to `spender`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}

File 4 of 11 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../utils/introspection/IERC165.sol";

File 5 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../token/ERC20/IERC20.sol";

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

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
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.2.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC-20 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 {
    /**
     * @dev An operation with an ERC-20 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.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    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.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    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.
     *
     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
     * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
     * set here.
     */
    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 Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            safeTransfer(token, to, value);
        } else if (!token.transferAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
     * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferFromAndCallRelaxed(
        IERC1363 token,
        address from,
        address to,
        uint256 value,
        bytes memory data
    ) internal {
        if (to.code.length == 0) {
            safeTransferFrom(token, from, to, value);
        } else if (!token.transferFromAndCall(from, to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
     * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
     * once without retrying, and relies on the returned value to be true.
     *
     * Reverts if the returned value is other than `true`.
     */
    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            forceApprove(token, to, value);
        } else if (!token.approveAndCall(to, value, data)) {
            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 {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            // bubble errors
            if iszero(success) {
                let ptr := mload(0x40)
                returndatacopy(ptr, 0, returndatasize())
                revert(ptr, returndatasize())
            }
            returnSize := returndatasize()
            returnValue := mload(0)
        }

        if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
            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 silently catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        bool success;
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            returnSize := returndatasize()
            returnValue := mload(0)
        }
        return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
    }
}

// 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.1.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

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

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    bool private _paused;

    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    /**
     * @dev The operation failed because the contract is paused.
     */
    error EnforcedPause();

    /**
     * @dev The operation failed because the contract is not paused.
     */
    error ExpectedPause();

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        if (paused()) {
            revert EnforcedPause();
        }
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        if (!paused()) {
            revert ExpectedPause();
        }
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.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 EIP-1153 (transient storage) is available on the chain you're deploying at,
 * consider using {ReentrancyGuardTransient} instead.
 *
 * 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": "london",
  "optimizer": {
    "enabled": true,
    "runs": 1000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "remappings": [
    "project/:@openzeppelin/contracts/=npm/@openzeppelin/[email protected]/",
    "project/:@openzeppelin/contracts/=npm/@openzeppelin/[email protected]/",
    "project/:@openzeppelin/contracts/=npm/@openzeppelin/[email protected]/",
    "project/:@openzeppelin/contracts/=npm/@openzeppelin/[email protected]/",
    "project/:@openzeppelin/contracts/=npm/@openzeppelin/[email protected]/"
  ]
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_stakeToken","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","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":false,"internalType":"uint256","name":"newCooldownPeriod","type":"uint256"}],"name":"CooldownPeriodUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMaxStake","type":"uint256"}],"name":"MaxStakePerUserUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMaxTotalStake","type":"uint256"}],"name":"MaxTotalStakeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newRate","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newRewardToken","type":"address"},{"indexed":false,"internalType":"uint8","name":"decimals","type":"uint8"}],"name":"RewardTokenUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"RolledOverRewards","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newStakeToken","type":"address"},{"indexed":false,"internalType":"uint8","name":"decimals","type":"uint8"}],"name":"StakeTokenUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"UndistributedReclaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unlockTime","type":"uint256"}],"name":"WithdrawRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"apr","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aprPercent","outputs":[{"internalType":"uint256","name":"whole","type":"uint256"},{"internalType":"uint256","name":"frac2","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cooldownPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"emergencyWithdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastRewardAmount","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":"maxStakePerUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTotalStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"to","type":"address"}],"name":"reclaimUndistributedRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"requestWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardDuration","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":[],"name":"rewardTokenDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"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":"newDuration","type":"uint256"}],"name":"rolloverUndistributedRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCooldownPeriod","type":"uint256"}],"name":"setCooldownPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setMaxStakePerUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTotal","type":"uint256"}],"name":"setMaxTotalStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakeTokenDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint8","name":"decimals_","type":"uint8"}],"name":"toSmallestUnit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"undistributedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newRewardToken","type":"address"}],"name":"updateRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newStakeToken","type":"address"}],"name":"updateStakeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawRequested","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"withdrawalRequests","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"unlockTime","type":"uint256"}],"stateMutability":"view","type":"function"}]

0x608060405269152d02c7e14af6800000600f556000196010556203f48060115534801561002b57600080fd5b506040516129f23803806129f283398101604081905261004a916102ac565b6001600055338061007657604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61007f81610173565b506001805460ff60a01b191690556001600160a01b038216158015906100ad57506001600160a01b03811615155b6100e85760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b604482015260640161006d565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116919091179055610121826101c5565b6003805460ff92909216600160a01b0260ff60a01b19909216919091179055610149816101c5565b6003805460ff92909216600160a81b0260ff60a81b19909216919091179055505042600755610338565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408051600481526024810182526020810180516001600160e01b031663313ce56760e01b1790529051600091829182916001600160a01b038616916175309161020e916102df565b6000604051808303818686fa925050503d806000811461024a576040519150601f19603f3d011682016040523d82523d6000602084013e61024f565b606091505b5091509150811580610262575060208151105b15610271575060129392505050565b600081806020019051810190610287919061030e565b95945050505050565b80516001600160a01b03811681146102a757600080fd5b919050565b600080604083850312156102bf57600080fd5b6102c883610290565b91506102d660208401610290565b90509250929050565b6000825160005b8181101561030057602081860181015185830152016102e6565b506000920191825250919050565b60006020828403121561032057600080fd5b815160ff8116811461033157600080fd5b9392505050565b6126ab806103476000396000f3fe608060405234801561001057600080fd5b50600436106103095760003560e01c806380ea3de11161019c578063af3acf82116100ee578063ebe2b12b11610097578063f520e7e511610071578063f520e7e514610606578063f7c618c11461060f578063f8cf31cb1461062257600080fd5b8063ebe2b12b146105e1578063f2fde38b146105ea578063f3e14f1e146105fd57600080fd5b8063c8f33c91116100c8578063c8f33c91146105c7578063cd3daf9d146105d0578063df136d65146105d857600080fd5b8063af3acf82146105a3578063b2260cf1146105b6578063bafedcaa146105be57600080fd5b80638bdf67f2116101505780639bdcecd11161012a5780639bdcecd1146105695780639d99ec381461057d578063a694fc3a1461059057600080fd5b80638bdf67f21461053d5780638da5cb5b146105505780638f1473f61461056157600080fd5b80638456cb59116101815780638456cb5914610502578063875c7bc31461050a5780638b8763471461051d57600080fd5b806380ea3de1146104e757806380faa57d146104fa57600080fd5b806351ed6a30116102605780636042828911610209578063715018a6116101e3578063715018a6146104c3578063745400c9146104cb5780637b0a47ee146104de57600080fd5b80636042828914610487578063649040711461049a57806370a08231146104a357600080fd5b806357c81b921161023a57806357c81b921461044f57806357ded9c9146104625780635c975abb1461046a57600080fd5b806351ed6a301461040957806355b8fb811461043457806357a0a1401461044757600080fd5b806318160ddd116102c25780632b1ace701161029c5780632b1ace70146103d35780633d18b912146103f95780633f4ba83a1461040157600080fd5b806318160ddd1461037b578063246132f91461038457806327b380f31461039757600080fd5b806306015e65116102f357806306015e651461033d5780630700037d146103525780630717d0321461037257600080fd5b80628cc2621461030e57806304646a4914610334575b600080fd5b61032161031c3660046123b7565b610635565b6040519081526020015b60405180910390f35b61032160115481565b61035061034b3660046123d2565b6106b2565b005b6103216103603660046123b7565b60096020526000908152604090205481565b610321600f5481565b61032160045481565b6103506103923660046123eb565b61074b565b6103be6103a53660046123b7565b6012602052600090815260409020805460019091015482565b6040805192835260208301919091520161032b565b6003546103e790600160a01b900460ff1681565b60405160ff909116815260200161032b565b610350610aa3565b610350610ba9565b60025461041c906001600160a01b031681565b6040516001600160a01b03909116815260200161032b565b61035061044236600461240d565b610bb9565b6103be610d41565b61035061045d3660046123d2565b610d92565b610321610e79565b600154600160a01b900460ff16604051901515815260200161032b565b6103506104953660046123b7565b610ef3565b61032160105481565b6103216104b13660046123b7565b60056020526000908152604090205481565b61035061103f565b6103506104d93660046123d2565b611051565b610321600a5481565b6103506104f53660046123d2565b611262565b610321611300565b610350611319565b6103506105183660046123b7565b611329565b61032161052b3660046123b7565b60086020526000908152604090205481565b61035061054b3660046123d2565b611591565b6001546001600160a01b031661041c565b610350611601565b6003546103e790600160a81b900460ff1681565b61032161058b366004612459565b6117e9565b61035061059e3660046123d2565b611807565b6103506105b13660046123d2565b611b60565b610321611d31565b610321600c5481565b61032160075481565b610321611d54565b61032160065481565b610321600b5481565b6103506105f83660046123b7565b611df5565b610321600e5481565b610321600d5481565b60035461041c906001600160a01b031681565b6103506106303660046123b7565b611e49565b6001600160a01b0381166000908152600960209081526040808320546008909252822054670de0b6b3a76400009061066b611d54565b610675919061249f565b6001600160a01b03851660009081526005602052604090205461069891906124b2565b6106a291906124df565b6106ac91906124f3565b92915050565b6106ba611f59565b6000811161070f5760405162461bcd60e51b815260206004820152601160248201527f496e76616c6964206d617820746f74616c00000000000000000000000000000060448201526064015b60405180910390fd5b60108190556040518181527fcd9bb825fe1652cca140b2e16c1d7818d2fda2eba4c08c07dfa6a0aacec6715d906020015b60405180910390a150565b610753611f59565b600061075d611d54565b600655610768611300565b6007556001600160a01b038116156107af5761078381610635565b6001600160a01b0382166000908152600960209081526040808320939093556006546008909152919020555b600083116107ff5760405162461bcd60e51b815260206004820152600960248201527f4e6f2072657761726400000000000000000000000000000000000000000000006044820152606401610706565b620151808210156108525760405162461bcd60e51b815260206004820152601260248201527f4475726174696f6e20746f6f2073686f727400000000000000000000000000006044820152606401610706565b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561089b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108bf9190612506565b6002546003549192506001600160a01b039081169116036109e0576004548110156109525760405162461bcd60e51b815260206004820152603160248201527f496e76617269616e743a20636f6e74726163742062616c616e6365206c65737360448201527f207468616e20746f74616c537570706c790000000000000000000000000000006064820152608401610706565b600060045482610962919061249f565b9050848110156109da5760405162461bcd60e51b815260206004820152603f60248201527f496e73756666696369656e742072657761726420746f6b656e7320286166746560448201527f72206163636f756e74696e6720666f72207374616b656420746f6b656e7329006064820152608401610706565b50610a30565b83811015610a305760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e742072657761726420746f6b656e730000000000006044820152606401610706565b610a3a83856124df565b600a55426007819055610a4e9084906124f3565b600b55600c849055600d8390556000600e55600a546040805186815260208101929092527f6c07ee05dcf262f13abf9d87b846ee789d2f90fe991d495acd7d7fc109ee1f55910160405180910390a150505050565b610aab611f9f565b610ab3611fe2565b33610abc611d54565b600655610ac7611300565b6007556001600160a01b03811615610b0e57610ae281610635565b6001600160a01b0382166000908152600960209081526040808320939093556006546008909152919020555b336000908152600960205260409020548015610b9b57336000908152600960205260408120819055600e8054839290610b489084906124f3565b9091555050600354610b64906001600160a01b03163383612026565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486906020015b60405180910390a25b5050610ba76001600055565b565b610bb1611f59565b610ba761209f565b610bc1611f59565b6001600160a01b038216610c045760405162461bcd60e51b815260206004820152600a602482015269496e76616c696420746f60b01b6044820152606401610706565b6002546001600160a01b0390811690841603610ce5576040516370a0823160e01b81523060048201526000906001600160a01b038516906370a0823190602401602060405180830381865afa158015610c61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c859190612506565b600454909150610c95838361249f565b1015610ce35760405162461bcd60e51b815260206004820152601d60248201527f43616e6e6f74207769746864726177207374616b656420746f6b656e730000006044820152606401610706565b505b610cf96001600160a01b0384168383612026565b816001600160a01b03167f2e39961a70a10f4d46383948095ac2752b3ee642a7c76aa827410aaff08c2e5182604051610d3491815260200190565b60405180910390a2505050565b6000806000610d4e610e79565b90506000670de0b6b3a7640000610d668360646124b2565b610d7091906124df565b9050610d7d6064826124df565b9350610d8a60648261251f565b925050509091565b610d9a611f59565b60008111610dea5760405162461bcd60e51b815260206004820152600b60248201527f496e76616c6964206d61780000000000000000000000000000000000000000006044820152606401610706565b6969e10de76676d0800000811115610e445760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f7420657863656564203530306b20746f6b656e73000000000000006044820152606401610706565b600f8190556040518181527fd684ec3f0b84c709ff5183a96fee86642d3c8addf5b6dc5b4d2c6c4076a4091290602001610740565b6000600d5460001480610e8c5750601054155b15610e975750600090565b6000670de0b6b3a7640000600c546301e13380610eb491906124b2565b610ebe91906124b2565b90506000600d54601054610ed291906124b2565b90508015610ee957610ee481836124df565b610eec565b60005b9250505090565b610efb611f59565b610f036120f4565b6001600160a01b038116610f595760405162461bcd60e51b815260206004820152600f60248201527f496e76616c6964206164647265737300000000000000000000000000000000006044820152606401610706565b60045415610fa95760405162461bcd60e51b815260206004820181905260248201527f43616e6e6f7420757064617465207769746820616374697665207374616b65736044820152606401610706565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038316179055610fda81612137565b6003805460ff60a01b1916600160a01b60ff93841681029190911791829055604051910490911681526001600160a01b038216907fffc31bd27cc3312b38a575db529c57ae39de12d6ae882b4b2e5c0d51f80ee5bb906020015b60405180910390a250565b611047611f59565b610ba76000612230565b611059611f9f565b611061611fe2565b3361106a611d54565b600655611075611300565b6007556001600160a01b038116156110bc5761109081610635565b6001600160a01b0382166000908152600960209081526040808320939093556006546008909152919020555b6000821161110c5760405162461bcd60e51b815260206004820152601060248201527f43616e6e6f7420726571756573742030000000000000000000000000000000006044820152606401610706565b3360009081526005602052604090205482111561116b5760405162461bcd60e51b815260206004820152601160248201527f4e6f7420656e6f756768207374616b65640000000000000000000000000000006044820152606401610706565b33600090815260126020526040902054156111c85760405162461bcd60e51b815260206004820152601960248201527f50656e64696e67207769746864726177616c20657869737473000000000000006044820152606401610706565b6040518060400160405280838152602001601154426111e791906124f3565b9052336000818152601260209081526040909120835181559201516001909201919091556011547fd72eb5d043f24a0168ae744d5c44f9596fd673a26bf74d9646bff4b844882d1490849061123c90426124f3565b6040805192835260208301919091520160405180910390a25061125f6001600055565b50565b61126a611f59565b610e10811015801561127f575062093a808111155b6112cb5760405162461bcd60e51b815260206004820152601760248201527f496e76616c696420636f6f6c646f776e20706572696f640000000000000000006044820152606401610706565b60118190556040518181527f3b897fd6944545fcb6a5d5b058781d763169157f8559ca1a7f3276b981d0997190602001610740565b6000600b5442106113125750600b5490565b425b905090565b611321611f59565b610ba761228f565b611331611f59565b600b544210156113835760405162461bcd60e51b815260206004820152601360248201527f506572696f64206e6f742066696e6973686564000000000000000000000000006044820152606401610706565b6001600160a01b0381166113c65760405162461bcd60e51b815260206004820152600a602482015269496e76616c696420746f60b01b6044820152606401610706565b6000600e54600c5411156113e757600e54600c546113e4919061249f565b90505b600081116114375760405162461bcd60e51b815260206004820152601360248201527f4e6f206c6566746f7665722072657761726473000000000000000000000000006044820152606401610706565b80600c6000828254611449919061249f565b90915550506002546003546001600160a01b03918216911603611533576002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156114af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d39190612506565b6004549091506114e3838361249f565b10156115315760405162461bcd60e51b815260206004820152601d60248201527f43616e6e6f74207769746864726177207374616b656420746f6b656e730000006044820152606401610706565b505b60035461154a906001600160a01b03168383612026565b816001600160a01b03167ffa0bc1ba90b3906f126fe59746f1a0d13ccbec10057a348172ef8377bf1b2bca8260405161158591815260200190565b60405180910390a25050565b611599611f59565b600081116115e95760405162461bcd60e51b815260206004820152601060248201527f43616e6e6f74206465706f7369742030000000000000000000000000000000006044820152606401610706565b60035461125f906001600160a01b03163330846122d2565b611609611f9f565b611611611fe2565b3361161a611d54565b600655611625611300565b6007556001600160a01b0381161561166c5761164081610635565b6001600160a01b0382166000908152600960209081526040808320939093556006546008909152919020555b3360009081526012602090815260409182902082518084019093528054808452600190910154918301919091526116e55760405162461bcd60e51b815260206004820152600d60248201527f4e6f207769746864726177616c000000000000000000000000000000000000006044820152606401610706565b8060200151421015806116fa5750600b544210155b6117465760405162461bcd60e51b815260206004820152601560248201527f436f6f6c646f776e206e6f742066696e697368656400000000000000000000006044820152606401610706565b33600090815260126020908152604080832083815560010183905583516005909252822080549192909161177b90849061249f565b909155505080516004805460009061179490849061249f565b909155505080516002546117b5916001600160a01b03909116903390612026565b805160405190815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d590602001610b92565b60006117f682600a61261a565b61180090846124b2565b9392505050565b61180f611f9f565b611817611fe2565b33611820611d54565b60065561182b611300565b6007556001600160a01b038116156118725761184681610635565b6001600160a01b0382166000908152600960209081526040808320939093556006546008909152919020555b600082116118c25760405162461bcd60e51b815260206004820152600e60248201527f43616e6e6f74207374616b6520300000000000000000000000000000000000006044820152606401610706565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561190b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061192f9190612506565b60025490915061194a906001600160a01b03163330866122d2565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611993573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b79190612506565b905060006119c5838361249f565b905060008111611a175760405162461bcd60e51b815260206004820152601060248201527f4e6f7468696e67207265636569766564000000000000000000000000000000006044820152606401610706565b600f5433600090815260056020526040902054611a359083906124f3565b1115611a835760405162461bcd60e51b815260206004820152601760248201527f45786365656473206d6178207374616b65206c696d69740000000000000000006044820152606401610706565b60105481600454611a9491906124f3565b1115611ae25760405162461bcd60e51b815260206004820152601c60248201527f4578636565647320706f6f6c206d617820746f74616c207374616b65000000006044820152606401610706565b8060046000828254611af491906124f3565b90915550503360009081526005602052604081208054839290611b189084906124f3565b909155505060405181815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9060200160405180910390a25050505061125f6001600055565b611b68611f59565b6000611b72611d54565b600655611b7d611300565b6007556001600160a01b03811615611bc457611b9881610635565b6001600160a01b0382166000908152600960209081526040808320939093556006546008909152919020555b600b54421015611c165760405162461bcd60e51b815260206004820152601360248201527f506572696f64206e6f742066696e6973686564000000000000000000000000006044820152606401610706565b62015180821015611c695760405162461bcd60e51b815260206004820152601260248201527f4475726174696f6e20746f6f2073686f727400000000000000000000000000006044820152606401610706565b6000600e54600c541115611c8a57600e54600c54611c87919061249f565b90505b60008111611cda5760405162461bcd60e51b815260206004820152601760248201527f4e6f206c6566746f76657220746f20726f6c6c6f7665720000000000000000006044820152606401610706565b6000600e819055600c819055600d55611cf3818461074b565b60408051828152602081018590527f4974df686ecb0d2ad98e88a9e78941691f3966ec9226eddd88c364bc175249b7910160405180910390a1505050565b6000600e54600c5411611d445750600090565b600e54600c54611314919061249f565b6000600754600003611d67575060065490565b6000611d71611300565b90506007548111611d8457505060065490565b600060075482611d94919061249f565b6010549091506000819003611dae57600654935050505090565b600081670de0b6b3a7640000600a5485611dc891906124b2565b611dd291906124b2565b611ddc91906124df565b905080600654611dec91906124f3565b94505050505090565b611dfd611f59565b6001600160a01b038116611e40576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610706565b61125f81612230565b611e51611f59565b611e596120f4565b6001600160a01b038116611eaf5760405162461bcd60e51b815260206004820152600f60248201527f496e76616c6964206164647265737300000000000000000000000000000000006044820152606401610706565b6003805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038316179055611ee081612137565b600380547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff16600160a81b60ff93841681029190911791829055604051910490911681526001600160a01b038216907fc516017b2306e2581414d5bcbefa52b3efbf4831f6995cc5fce0c8e5b00daff290602001611034565b6001546001600160a01b03163314610ba7576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610706565b600260005403611fdb576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600055565b600154600160a01b900460ff1615610ba7576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040516001600160a01b0383811660248301526044820183905261209a91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612311565b505050565b6120a76120f4565b6001805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600154600160a01b900460ff16610ba7576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051600481526024810182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f313ce567000000000000000000000000000000000000000000000000000000001790529051600091829182916001600160a01b03861691617530916121ae91612629565b6000604051808303818686fa925050503d80600081146121ea576040519150601f19603f3d011682016040523d82523d6000602084013e6121ef565b606091505b5091509150811580612202575060208151105b15612211575060129392505050565b6000818060200190518101906122279190612658565b95945050505050565b600180546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612297611fe2565b6001805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120d73390565b6040516001600160a01b03848116602483015283811660448301526064820183905261230b9186918216906323b872dd90608401612053565b50505050565b600080602060008451602086016000885af180612334576040513d6000823e3d81fd5b50506000513d9150811561234c578060011415612359565b6001600160a01b0384163b155b1561230b576040517f5274afe70000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610706565b80356001600160a01b03811681146123b257600080fd5b919050565b6000602082840312156123c957600080fd5b6118008261239b565b6000602082840312156123e457600080fd5b5035919050565b600080604083850312156123fe57600080fd5b50508035926020909101359150565b60008060006060848603121561242257600080fd5b61242b8461239b565b92506124396020850161239b565b929592945050506040919091013590565b60ff8116811461125f57600080fd5b6000806040838503121561246c57600080fd5b82359150602083013561247e8161244a565b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b818103818111156106ac576106ac612489565b80820281158282048414176106ac576106ac612489565b634e487b7160e01b600052601260045260246000fd5b6000826124ee576124ee6124c9565b500490565b808201808211156106ac576106ac612489565b60006020828403121561251857600080fd5b5051919050565b60008261252e5761252e6124c9565b500690565b6001815b600184111561256e5780850481111561255257612552612489565b600184161561256057908102905b60019390931c928002612537565b935093915050565b600082612585575060016106ac565b81612592575060006106ac565b81600181146125a857600281146125b2576125ce565b60019150506106ac565b60ff8411156125c3576125c3612489565b50506001821b6106ac565b5060208310610133831016604e8410600b84101617156125f1575081810a6106ac565b6125fe6000198484612533565b806000190482111561261257612612612489565b029392505050565b600061180060ff841683612576565b6000825160005b8181101561264a5760208186018101518583015201612630565b506000920191825250919050565b60006020828403121561266a57600080fd5b81516118008161244a56fea2646970667358221220bf1833fb69cc3aa44e6c81777db7ccb870232cb32ee9e6209c064f6385262e9764736f6c634300081b0033000000000000000000000000b171ef5cd8d320d52f257924a0e0d41e6f5c40d9000000000000000000000000b171ef5cd8d320d52f257924a0e0d41e6f5c40d9

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103095760003560e01c806380ea3de11161019c578063af3acf82116100ee578063ebe2b12b11610097578063f520e7e511610071578063f520e7e514610606578063f7c618c11461060f578063f8cf31cb1461062257600080fd5b8063ebe2b12b146105e1578063f2fde38b146105ea578063f3e14f1e146105fd57600080fd5b8063c8f33c91116100c8578063c8f33c91146105c7578063cd3daf9d146105d0578063df136d65146105d857600080fd5b8063af3acf82146105a3578063b2260cf1146105b6578063bafedcaa146105be57600080fd5b80638bdf67f2116101505780639bdcecd11161012a5780639bdcecd1146105695780639d99ec381461057d578063a694fc3a1461059057600080fd5b80638bdf67f21461053d5780638da5cb5b146105505780638f1473f61461056157600080fd5b80638456cb59116101815780638456cb5914610502578063875c7bc31461050a5780638b8763471461051d57600080fd5b806380ea3de1146104e757806380faa57d146104fa57600080fd5b806351ed6a30116102605780636042828911610209578063715018a6116101e3578063715018a6146104c3578063745400c9146104cb5780637b0a47ee146104de57600080fd5b80636042828914610487578063649040711461049a57806370a08231146104a357600080fd5b806357c81b921161023a57806357c81b921461044f57806357ded9c9146104625780635c975abb1461046a57600080fd5b806351ed6a301461040957806355b8fb811461043457806357a0a1401461044757600080fd5b806318160ddd116102c25780632b1ace701161029c5780632b1ace70146103d35780633d18b912146103f95780633f4ba83a1461040157600080fd5b806318160ddd1461037b578063246132f91461038457806327b380f31461039757600080fd5b806306015e65116102f357806306015e651461033d5780630700037d146103525780630717d0321461037257600080fd5b80628cc2621461030e57806304646a4914610334575b600080fd5b61032161031c3660046123b7565b610635565b6040519081526020015b60405180910390f35b61032160115481565b61035061034b3660046123d2565b6106b2565b005b6103216103603660046123b7565b60096020526000908152604090205481565b610321600f5481565b61032160045481565b6103506103923660046123eb565b61074b565b6103be6103a53660046123b7565b6012602052600090815260409020805460019091015482565b6040805192835260208301919091520161032b565b6003546103e790600160a01b900460ff1681565b60405160ff909116815260200161032b565b610350610aa3565b610350610ba9565b60025461041c906001600160a01b031681565b6040516001600160a01b03909116815260200161032b565b61035061044236600461240d565b610bb9565b6103be610d41565b61035061045d3660046123d2565b610d92565b610321610e79565b600154600160a01b900460ff16604051901515815260200161032b565b6103506104953660046123b7565b610ef3565b61032160105481565b6103216104b13660046123b7565b60056020526000908152604090205481565b61035061103f565b6103506104d93660046123d2565b611051565b610321600a5481565b6103506104f53660046123d2565b611262565b610321611300565b610350611319565b6103506105183660046123b7565b611329565b61032161052b3660046123b7565b60086020526000908152604090205481565b61035061054b3660046123d2565b611591565b6001546001600160a01b031661041c565b610350611601565b6003546103e790600160a81b900460ff1681565b61032161058b366004612459565b6117e9565b61035061059e3660046123d2565b611807565b6103506105b13660046123d2565b611b60565b610321611d31565b610321600c5481565b61032160075481565b610321611d54565b61032160065481565b610321600b5481565b6103506105f83660046123b7565b611df5565b610321600e5481565b610321600d5481565b60035461041c906001600160a01b031681565b6103506106303660046123b7565b611e49565b6001600160a01b0381166000908152600960209081526040808320546008909252822054670de0b6b3a76400009061066b611d54565b610675919061249f565b6001600160a01b03851660009081526005602052604090205461069891906124b2565b6106a291906124df565b6106ac91906124f3565b92915050565b6106ba611f59565b6000811161070f5760405162461bcd60e51b815260206004820152601160248201527f496e76616c6964206d617820746f74616c00000000000000000000000000000060448201526064015b60405180910390fd5b60108190556040518181527fcd9bb825fe1652cca140b2e16c1d7818d2fda2eba4c08c07dfa6a0aacec6715d906020015b60405180910390a150565b610753611f59565b600061075d611d54565b600655610768611300565b6007556001600160a01b038116156107af5761078381610635565b6001600160a01b0382166000908152600960209081526040808320939093556006546008909152919020555b600083116107ff5760405162461bcd60e51b815260206004820152600960248201527f4e6f2072657761726400000000000000000000000000000000000000000000006044820152606401610706565b620151808210156108525760405162461bcd60e51b815260206004820152601260248201527f4475726174696f6e20746f6f2073686f727400000000000000000000000000006044820152606401610706565b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561089b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108bf9190612506565b6002546003549192506001600160a01b039081169116036109e0576004548110156109525760405162461bcd60e51b815260206004820152603160248201527f496e76617269616e743a20636f6e74726163742062616c616e6365206c65737360448201527f207468616e20746f74616c537570706c790000000000000000000000000000006064820152608401610706565b600060045482610962919061249f565b9050848110156109da5760405162461bcd60e51b815260206004820152603f60248201527f496e73756666696369656e742072657761726420746f6b656e7320286166746560448201527f72206163636f756e74696e6720666f72207374616b656420746f6b656e7329006064820152608401610706565b50610a30565b83811015610a305760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e742072657761726420746f6b656e730000000000006044820152606401610706565b610a3a83856124df565b600a55426007819055610a4e9084906124f3565b600b55600c849055600d8390556000600e55600a546040805186815260208101929092527f6c07ee05dcf262f13abf9d87b846ee789d2f90fe991d495acd7d7fc109ee1f55910160405180910390a150505050565b610aab611f9f565b610ab3611fe2565b33610abc611d54565b600655610ac7611300565b6007556001600160a01b03811615610b0e57610ae281610635565b6001600160a01b0382166000908152600960209081526040808320939093556006546008909152919020555b336000908152600960205260409020548015610b9b57336000908152600960205260408120819055600e8054839290610b489084906124f3565b9091555050600354610b64906001600160a01b03163383612026565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486906020015b60405180910390a25b5050610ba76001600055565b565b610bb1611f59565b610ba761209f565b610bc1611f59565b6001600160a01b038216610c045760405162461bcd60e51b815260206004820152600a602482015269496e76616c696420746f60b01b6044820152606401610706565b6002546001600160a01b0390811690841603610ce5576040516370a0823160e01b81523060048201526000906001600160a01b038516906370a0823190602401602060405180830381865afa158015610c61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c859190612506565b600454909150610c95838361249f565b1015610ce35760405162461bcd60e51b815260206004820152601d60248201527f43616e6e6f74207769746864726177207374616b656420746f6b656e730000006044820152606401610706565b505b610cf96001600160a01b0384168383612026565b816001600160a01b03167f2e39961a70a10f4d46383948095ac2752b3ee642a7c76aa827410aaff08c2e5182604051610d3491815260200190565b60405180910390a2505050565b6000806000610d4e610e79565b90506000670de0b6b3a7640000610d668360646124b2565b610d7091906124df565b9050610d7d6064826124df565b9350610d8a60648261251f565b925050509091565b610d9a611f59565b60008111610dea5760405162461bcd60e51b815260206004820152600b60248201527f496e76616c6964206d61780000000000000000000000000000000000000000006044820152606401610706565b6969e10de76676d0800000811115610e445760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f7420657863656564203530306b20746f6b656e73000000000000006044820152606401610706565b600f8190556040518181527fd684ec3f0b84c709ff5183a96fee86642d3c8addf5b6dc5b4d2c6c4076a4091290602001610740565b6000600d5460001480610e8c5750601054155b15610e975750600090565b6000670de0b6b3a7640000600c546301e13380610eb491906124b2565b610ebe91906124b2565b90506000600d54601054610ed291906124b2565b90508015610ee957610ee481836124df565b610eec565b60005b9250505090565b610efb611f59565b610f036120f4565b6001600160a01b038116610f595760405162461bcd60e51b815260206004820152600f60248201527f496e76616c6964206164647265737300000000000000000000000000000000006044820152606401610706565b60045415610fa95760405162461bcd60e51b815260206004820181905260248201527f43616e6e6f7420757064617465207769746820616374697665207374616b65736044820152606401610706565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038316179055610fda81612137565b6003805460ff60a01b1916600160a01b60ff93841681029190911791829055604051910490911681526001600160a01b038216907fffc31bd27cc3312b38a575db529c57ae39de12d6ae882b4b2e5c0d51f80ee5bb906020015b60405180910390a250565b611047611f59565b610ba76000612230565b611059611f9f565b611061611fe2565b3361106a611d54565b600655611075611300565b6007556001600160a01b038116156110bc5761109081610635565b6001600160a01b0382166000908152600960209081526040808320939093556006546008909152919020555b6000821161110c5760405162461bcd60e51b815260206004820152601060248201527f43616e6e6f7420726571756573742030000000000000000000000000000000006044820152606401610706565b3360009081526005602052604090205482111561116b5760405162461bcd60e51b815260206004820152601160248201527f4e6f7420656e6f756768207374616b65640000000000000000000000000000006044820152606401610706565b33600090815260126020526040902054156111c85760405162461bcd60e51b815260206004820152601960248201527f50656e64696e67207769746864726177616c20657869737473000000000000006044820152606401610706565b6040518060400160405280838152602001601154426111e791906124f3565b9052336000818152601260209081526040909120835181559201516001909201919091556011547fd72eb5d043f24a0168ae744d5c44f9596fd673a26bf74d9646bff4b844882d1490849061123c90426124f3565b6040805192835260208301919091520160405180910390a25061125f6001600055565b50565b61126a611f59565b610e10811015801561127f575062093a808111155b6112cb5760405162461bcd60e51b815260206004820152601760248201527f496e76616c696420636f6f6c646f776e20706572696f640000000000000000006044820152606401610706565b60118190556040518181527f3b897fd6944545fcb6a5d5b058781d763169157f8559ca1a7f3276b981d0997190602001610740565b6000600b5442106113125750600b5490565b425b905090565b611321611f59565b610ba761228f565b611331611f59565b600b544210156113835760405162461bcd60e51b815260206004820152601360248201527f506572696f64206e6f742066696e6973686564000000000000000000000000006044820152606401610706565b6001600160a01b0381166113c65760405162461bcd60e51b815260206004820152600a602482015269496e76616c696420746f60b01b6044820152606401610706565b6000600e54600c5411156113e757600e54600c546113e4919061249f565b90505b600081116114375760405162461bcd60e51b815260206004820152601360248201527f4e6f206c6566746f7665722072657761726473000000000000000000000000006044820152606401610706565b80600c6000828254611449919061249f565b90915550506002546003546001600160a01b03918216911603611533576002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156114af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d39190612506565b6004549091506114e3838361249f565b10156115315760405162461bcd60e51b815260206004820152601d60248201527f43616e6e6f74207769746864726177207374616b656420746f6b656e730000006044820152606401610706565b505b60035461154a906001600160a01b03168383612026565b816001600160a01b03167ffa0bc1ba90b3906f126fe59746f1a0d13ccbec10057a348172ef8377bf1b2bca8260405161158591815260200190565b60405180910390a25050565b611599611f59565b600081116115e95760405162461bcd60e51b815260206004820152601060248201527f43616e6e6f74206465706f7369742030000000000000000000000000000000006044820152606401610706565b60035461125f906001600160a01b03163330846122d2565b611609611f9f565b611611611fe2565b3361161a611d54565b600655611625611300565b6007556001600160a01b0381161561166c5761164081610635565b6001600160a01b0382166000908152600960209081526040808320939093556006546008909152919020555b3360009081526012602090815260409182902082518084019093528054808452600190910154918301919091526116e55760405162461bcd60e51b815260206004820152600d60248201527f4e6f207769746864726177616c000000000000000000000000000000000000006044820152606401610706565b8060200151421015806116fa5750600b544210155b6117465760405162461bcd60e51b815260206004820152601560248201527f436f6f6c646f776e206e6f742066696e697368656400000000000000000000006044820152606401610706565b33600090815260126020908152604080832083815560010183905583516005909252822080549192909161177b90849061249f565b909155505080516004805460009061179490849061249f565b909155505080516002546117b5916001600160a01b03909116903390612026565b805160405190815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d590602001610b92565b60006117f682600a61261a565b61180090846124b2565b9392505050565b61180f611f9f565b611817611fe2565b33611820611d54565b60065561182b611300565b6007556001600160a01b038116156118725761184681610635565b6001600160a01b0382166000908152600960209081526040808320939093556006546008909152919020555b600082116118c25760405162461bcd60e51b815260206004820152600e60248201527f43616e6e6f74207374616b6520300000000000000000000000000000000000006044820152606401610706565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561190b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061192f9190612506565b60025490915061194a906001600160a01b03163330866122d2565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611993573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b79190612506565b905060006119c5838361249f565b905060008111611a175760405162461bcd60e51b815260206004820152601060248201527f4e6f7468696e67207265636569766564000000000000000000000000000000006044820152606401610706565b600f5433600090815260056020526040902054611a359083906124f3565b1115611a835760405162461bcd60e51b815260206004820152601760248201527f45786365656473206d6178207374616b65206c696d69740000000000000000006044820152606401610706565b60105481600454611a9491906124f3565b1115611ae25760405162461bcd60e51b815260206004820152601c60248201527f4578636565647320706f6f6c206d617820746f74616c207374616b65000000006044820152606401610706565b8060046000828254611af491906124f3565b90915550503360009081526005602052604081208054839290611b189084906124f3565b909155505060405181815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9060200160405180910390a25050505061125f6001600055565b611b68611f59565b6000611b72611d54565b600655611b7d611300565b6007556001600160a01b03811615611bc457611b9881610635565b6001600160a01b0382166000908152600960209081526040808320939093556006546008909152919020555b600b54421015611c165760405162461bcd60e51b815260206004820152601360248201527f506572696f64206e6f742066696e6973686564000000000000000000000000006044820152606401610706565b62015180821015611c695760405162461bcd60e51b815260206004820152601260248201527f4475726174696f6e20746f6f2073686f727400000000000000000000000000006044820152606401610706565b6000600e54600c541115611c8a57600e54600c54611c87919061249f565b90505b60008111611cda5760405162461bcd60e51b815260206004820152601760248201527f4e6f206c6566746f76657220746f20726f6c6c6f7665720000000000000000006044820152606401610706565b6000600e819055600c819055600d55611cf3818461074b565b60408051828152602081018590527f4974df686ecb0d2ad98e88a9e78941691f3966ec9226eddd88c364bc175249b7910160405180910390a1505050565b6000600e54600c5411611d445750600090565b600e54600c54611314919061249f565b6000600754600003611d67575060065490565b6000611d71611300565b90506007548111611d8457505060065490565b600060075482611d94919061249f565b6010549091506000819003611dae57600654935050505090565b600081670de0b6b3a7640000600a5485611dc891906124b2565b611dd291906124b2565b611ddc91906124df565b905080600654611dec91906124f3565b94505050505090565b611dfd611f59565b6001600160a01b038116611e40576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610706565b61125f81612230565b611e51611f59565b611e596120f4565b6001600160a01b038116611eaf5760405162461bcd60e51b815260206004820152600f60248201527f496e76616c6964206164647265737300000000000000000000000000000000006044820152606401610706565b6003805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038316179055611ee081612137565b600380547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff16600160a81b60ff93841681029190911791829055604051910490911681526001600160a01b038216907fc516017b2306e2581414d5bcbefa52b3efbf4831f6995cc5fce0c8e5b00daff290602001611034565b6001546001600160a01b03163314610ba7576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610706565b600260005403611fdb576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600055565b600154600160a01b900460ff1615610ba7576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040516001600160a01b0383811660248301526044820183905261209a91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612311565b505050565b6120a76120f4565b6001805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600154600160a01b900460ff16610ba7576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051600481526024810182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f313ce567000000000000000000000000000000000000000000000000000000001790529051600091829182916001600160a01b03861691617530916121ae91612629565b6000604051808303818686fa925050503d80600081146121ea576040519150601f19603f3d011682016040523d82523d6000602084013e6121ef565b606091505b5091509150811580612202575060208151105b15612211575060129392505050565b6000818060200190518101906122279190612658565b95945050505050565b600180546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612297611fe2565b6001805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120d73390565b6040516001600160a01b03848116602483015283811660448301526064820183905261230b9186918216906323b872dd90608401612053565b50505050565b600080602060008451602086016000885af180612334576040513d6000823e3d81fd5b50506000513d9150811561234c578060011415612359565b6001600160a01b0384163b155b1561230b576040517f5274afe70000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610706565b80356001600160a01b03811681146123b257600080fd5b919050565b6000602082840312156123c957600080fd5b6118008261239b565b6000602082840312156123e457600080fd5b5035919050565b600080604083850312156123fe57600080fd5b50508035926020909101359150565b60008060006060848603121561242257600080fd5b61242b8461239b565b92506124396020850161239b565b929592945050506040919091013590565b60ff8116811461125f57600080fd5b6000806040838503121561246c57600080fd5b82359150602083013561247e8161244a565b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b818103818111156106ac576106ac612489565b80820281158282048414176106ac576106ac612489565b634e487b7160e01b600052601260045260246000fd5b6000826124ee576124ee6124c9565b500490565b808201808211156106ac576106ac612489565b60006020828403121561251857600080fd5b5051919050565b60008261252e5761252e6124c9565b500690565b6001815b600184111561256e5780850481111561255257612552612489565b600184161561256057908102905b60019390931c928002612537565b935093915050565b600082612585575060016106ac565b81612592575060006106ac565b81600181146125a857600281146125b2576125ce565b60019150506106ac565b60ff8411156125c3576125c3612489565b50506001821b6106ac565b5060208310610133831016604e8410600b84101617156125f1575081810a6106ac565b6125fe6000198484612533565b806000190482111561261257612612612489565b029392505050565b600061180060ff841683612576565b6000825160005b8181101561264a5760208186018101518583015201612630565b506000920191825250919050565b60006020828403121561266a57600080fd5b81516118008161244a56fea2646970667358221220bf1833fb69cc3aa44e6c81777db7ccb870232cb32ee9e6209c064f6385262e9764736f6c634300081b0033

Block Transaction Gas Used Reward
view all blocks sequenced

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
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.