ETH Price: $2,428.46 (-9.84%)

Contract

0xf942bcf0f00aF9Ca962cd551e9Dc2C6dE3aE005c

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Get Reward3225493872025-04-03 16:21:21303 days ago1743697281IN
0xf942bcf0...dE3aE005c
0 ETH0.000001070.011143
Unstake3225493002025-04-03 16:21:00303 days ago1743697260IN
0xf942bcf0...dE3aE005c
0 ETH0.000001590.011785
Unstake3225425552025-04-03 15:52:52303 days ago1743695572IN
0xf942bcf0...dE3aE005c
0 ETH0.000001370.01
Get Reward3225425072025-04-03 15:52:40303 days ago1743695560IN
0xf942bcf0...dE3aE005c
0 ETH0.000000980.01
Unstake3223836562025-04-03 4:49:52304 days ago1743655792IN
0xf942bcf0...dE3aE005c
0 ETH0.000001470.01
Get Reward3223835292025-04-03 4:49:22304 days ago1743655762IN
0xf942bcf0...dE3aE005c
0 ETH0.000000930.01
Get Reward3191790942025-03-24 22:03:40313 days ago1742853820IN
0xf942bcf0...dE3aE005c
0 ETH0.000000790.01
Get Reward3153701182025-03-13 20:27:39324 days ago1741897659IN
0xf942bcf0...dE3aE005c
0 ETH0.000000890.01
Stake3130008752025-03-06 23:29:38331 days ago1741303778IN
0xf942bcf0...dE3aE005c
0 ETH0.000001250.01
Get Reward3130005402025-03-06 23:28:10331 days ago1741303690IN
0xf942bcf0...dE3aE005c
0 ETH0.000000540.01
Get Reward3128620882025-03-06 13:48:33331 days ago1741268913IN
0xf942bcf0...dE3aE005c
0 ETH0.000000550.010259
Get Reward3128620672025-03-06 13:48:28331 days ago1741268908IN
0xf942bcf0...dE3aE005c
0 ETH0.000000570.010649
Get Reward3128618452025-03-06 13:47:32331 days ago1741268852IN
0xf942bcf0...dE3aE005c
0 ETH0.000000810.011421
Get Reward3120324042025-03-04 3:54:43334 days ago1741060483IN
0xf942bcf0...dE3aE005c
0 ETH0.000001640.020895
Get Reward3089265172025-02-23 2:58:34343 days ago1740279514IN
0xf942bcf0...dE3aE005c
0 ETH0.000000790.01
Get Reward2995533262025-01-26 18:19:19370 days ago1737915559IN
0xf942bcf0...dE3aE005c
0 ETH0.000001040.01
Get Reward2986121992025-01-24 0:47:47373 days ago1737679667IN
0xf942bcf0...dE3aE005c
0 ETH0.0000010.01
Get Reward2974766542025-01-20 17:51:18376 days ago1737395478IN
0xf942bcf0...dE3aE005c
0 ETH0.000146731.755478
Stake2971306242025-01-19 17:45:59377 days ago1737308759IN
0xf942bcf0...dE3aE005c
0 ETH0.000002970.01
Get Reward2971280132025-01-19 17:35:06377 days ago1737308106IN
0xf942bcf0...dE3aE005c
0 ETH0.0000020.013314
Unstake2967272762025-01-18 13:40:12378 days ago1737207612IN
0xf942bcf0...dE3aE005c
0 ETH0.000008230.01
Get Reward2967271112025-01-18 13:39:31378 days ago1737207571IN
0xf942bcf0...dE3aE005c
0 ETH0.000006310.01
Get Reward2949835042025-01-13 12:01:43383 days ago1736769703IN
0xf942bcf0...dE3aE005c
0 ETH0.000011480.157856
Stake2947421312025-01-12 19:07:21384 days ago1736708841IN
0xf942bcf0...dE3aE005c
0 ETH0.000003050.01
Get Reward2947400562025-01-12 18:58:34384 days ago1736708314IN
0xf942bcf0...dE3aE005c
0 ETH0.00000130.01
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ElleriumLPStakingPool

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

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

/// Insufficient value. 
/// Minimum `minimum` but only `attempt` provided.
/// @param attempt value provided.
/// @param minimum minimum value.
error InsufficientValue(uint256 attempt, uint256 minimum);

/// Value too large. Maximum `maximum` but `attempt` provided.
/// @param attempt balance available.
/// @param maximum maximum value.
error ValueOverflow(uint256 attempt, uint256 maximum); 

/// @title Allows stakingToken to be staked and unstaked, accruing rewardsToken.
/// @author Wayne (Ellerian Prince)
/// @notice Allows $MLP ($ELM-$MAGIC LP Tokens) to be staked to accumulate $ELM rewards.
/// @dev Stakers receive % proportionate to their staked tokens in the pool.
contract ElleriumLPStakingPool is Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20;

    /// @notice Total LP tokens staked in WEI.
    uint256 public totalStaked;

    /// @notice Address of the ERC20 reward token.
    IElleriumTokenERC20 public rewardsToken;

    /// @notice Address of the ERC20 staked token.
    IERC20 public stakingToken;

    /// @notice Address holding staking fees.
    address public stakingLPFeesAddress = 0x69832Af74774baE99D999e7F74FE3F7d5833bF84;

    /// @notice Minimum amount to be a valid stake (1 Ether).
    uint256 public minimumStakeAmount = 1 * 1e18;

    /// @notice Reward rate for emissions in WEI. (default 500 ELM per day).
    uint256 public rewardRate = 5787036000000000;

    /// @dev Last rewardPerToken() update time.
    uint256 private lastUpdateTime;

    /// @dev Last rewardPerToken() update time.
    uint256 private rewardPerTokenStored;

    /// @dev Mapping from user address to their last updated individual rewardPerToken.
    mapping(address => uint256) private userRewardPerTokenPaid;

    /// @dev Mapping from user address to their total $ELM rewards.
    mapping(address => uint256) private totalRewards;

    /// @dev Mapping from user address to their $MLP balances.
    mapping(address => uint256) private balances;

    /// @dev Mapping from user address to their latest deposit time.
    mapping(address => uint256) private latestDepositTime;

    /// @dev Are fees in effect?
    bool public applyFees = true;

    /// @dev Fee timing intervals. Each index represents the interval in seconds.
    uint256[] public feesInterval = [60, 3600, 86400, 259200, 604800, 2592000];

    /// @dev Initializes dependencies.
    /// @param _stakingToken ERC20 token to be staked.
    /// @param _rewardsToken ERC20 token to be rewarded.
    constructor(address _stakingToken, address _rewardsToken) {
        stakingToken = IERC20(_stakingToken);
        rewardsToken = IElleriumTokenERC20(_rewardsToken);
    }

    /// @notice Exposes withdrawal fees based on sender's last deposit timing.
    /// @dev Results need to be / 100 to give its % representation.
    /// @return Withdrawal fees.
    function getWithdrawalFees() public view returns (uint256) {
        uint256 timeDifference = block.timestamp - latestDepositTime[msg.sender];
        if (applyFees) {
            if (timeDifference <= feesInterval[0]) { // 50% slashing fee
                return 5000;
            } else if (timeDifference <= feesInterval[1]) { // 20% if before 1st hour.
                return 2000;
            } else if (timeDifference <= feesInterval[2]) { // 10% if before 1st day.
                return 1000;
            } else if (timeDifference <= feesInterval[3]) { // 5% if before 3 days.
                return 500;
            } else if (timeDifference <= feesInterval[4]) { // 3% if before 1 week.
                return 300;
            } else if (timeDifference <= feesInterval[5]) { // 1% if before 1 month.
                return 100;
            }
            return 50;
        }
        return 0;        
    }

    /// @notice (Owner Only) Sets the rewardsToken accumulation rate.
    /// @dev Changing this does not affect accrued rewards.
    /// @param _emissionRateInWEI New emission rate, in WEI.
    /// @param _isFeesApply Should fees be taken?
    function setRewardRate(uint256 _emissionRateInWEI, bool _isFeesApply) external onlyOwner {
        rewardRate = _emissionRateInWEI;
        applyFees = _isFeesApply;
    }

    /// @notice Exposes sender's last deposit timing.
    /// @return Timestamp of last deposit.
    function getLastDepositTime() external view returns (uint256) {
         return latestDepositTime[msg.sender];
    }

    /// @notice Exposes stakingToken balance of an address.
    /// @return stakingToken balance of the address in WEI.
    function balanceOf(address _account) external view returns (uint256) {
        return balances[_account];
    }

    /// @notice Exposes sender's claimable rewardToken balance.
    /// @return Sender's Claimable rewardToken balance in WEI.
    function checkTotalRewards() external view returns (uint256) {
        return totalRewards[msg.sender];
    }

    /// @notice Exposes value to be accrued by a single token unit since last update.
    /// @return Value to be accrued by a single token unit.
    /// @dev Called in updateReward modifier.
    function rewardPerToken() public view returns (uint256) {
        if (totalStaked == 0) {
            return rewardPerTokenStored;
        }
        return
            rewardPerTokenStored + (block.timestamp - lastUpdateTime) * rewardRate * 1e18 / totalStaked;
    }

    /// @notice Exposes rewards accrued by a specified address.
    /// @return Rewards accrued by the specified address.
    /// @dev Called in updateReward modifier.
    function earned(address account) public view returns (uint256) {
        return 
        balances[account] * (rewardPerToken() - userRewardPerTokenPaid[account]) / 1e18 + totalRewards[account];
    }

    /// @notice Sends stakedTokens into the contract to start accruing rewardTokens.
    /// @dev Tokens are held in the contract until unstaked. 
    ///      This changes the value of a single token unit, updateReward modifier is called.
    function stake(uint256 _amount) external nonReentrant updateReward(msg.sender) {
        // Must deposit minimum 1 Ether.
        if (_amount < minimumStakeAmount) {
            revert InsufficientValue(_amount, minimumStakeAmount);
        }
        
        // Transfer tokens into this contract.
        stakingToken.safeTransferFrom(msg.sender, address(this), _amount);

        // Update sender and pool's balances, deposit timing.
        totalStaked += _amount;
        balances[msg.sender] += _amount;
        latestDepositTime[msg.sender] = block.timestamp;

        // Emit Staked event for indexing.
        emit Staked(msg.sender, _amount);
    }

    /// @notice Retrieve deposited stakedTokens without claiming rewards.
    /// @dev This changes the value of a single token unit, updateReward modifier is called.
    function unstake(uint256 _amount) public nonReentrant updateReward(msg.sender) {
        // Can only withdraw within balances.
        if (_amount > balances[msg.sender]) {
            revert ValueOverflow(_amount, balances[msg.sender]);
        }

        // Update sender and pool's balances.
        totalStaked -= _amount;
        balances[msg.sender] -= _amount;        

        // Calculate tax if necessary.
        if (applyFees) {
            // Divide by 100 to calculate in %, then by another 100 to get the actual %
            uint256 taxFee = _amount * getWithdrawalFees() / 10000;

            // Transfer tokens from this contract back to the sender, taking a fee if enabled.
            stakingToken.safeTransfer(stakingLPFeesAddress, taxFee);
            stakingToken.safeTransfer(msg.sender, _amount - taxFee);
        } else {
            // Send full amount back to sender.
            stakingToken.safeTransfer(msg.sender, _amount);
        }

        // Emit Unstaked event for indexing.
        emit Unstaked(msg.sender, _amount);
    }

    /// @notice Claims accrued rewards.
    /// @dev Rewards are minted from rewardToken. This contract needs to have perms to mint.
    function getReward() public nonReentrant updateReward(msg.sender) {
        uint256 reward = totalRewards[msg.sender];
        if (reward > 0) {
            totalRewards[msg.sender] = 0;

            rewardsToken.mint(msg.sender, reward);
            emit ClaimedReward(msg.sender, reward);
        }
    }

    /// @notice Allows a user to retrieve all his stakedTokens and claim accrued rewards together.
    function unstakeAll() external {
        uint256 balance = balances[msg.sender];
        unstake(balance);
        getReward();
    }

    /// @dev Updates rewardPerToken globally using the totalBalance and the earned rewards for an account.
    modifier updateReward(address account) {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = block.timestamp;

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

    /// @notice Event emitted when $ELM rewards are claimed.
    /// @param from The address of the caller.
    /// @param value The value of the claimed reward in WEI.
    event ClaimedReward(address indexed from, uint256 value);

    /// @notice Event emitted when $MLP balance increases.
    /// @param from The address of the caller.
    /// @param value The value of the stake in WEI.
    event Staked(address indexed from, uint256 value);

    /// @notice Event emitted when $MLP balance decreases.
    /// @param from The address of the caller.
    /// @param value The value of the unstake in WEI.
    event Unstaked(address indexed from, uint256 value);
}

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

// Interface for $ELLERIUM.
contract IElleriumTokenERC20 {
    function mint(address _recipient, uint256 _amount) public {}
    function SetBlacklistedAddress(address[] memory _addresses, bool _blacklisted) public {}
}

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

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

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

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 8 of 10 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    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() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 9 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/IERC20.sol";

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

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_rewardsToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"attempt","type":"uint256"},{"internalType":"uint256","name":"minimum","type":"uint256"}],"name":"InsufficientValue","type":"error"},{"inputs":[{"internalType":"uint256","name":"attempt","type":"uint256"},{"internalType":"uint256","name":"maximum","type":"uint256"}],"name":"ValueOverflow","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"ClaimedReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Unstaked","type":"event"},{"inputs":[],"name":"applyFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"checkTotalRewards","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":"uint256","name":"","type":"uint256"}],"name":"feesInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLastDepositTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getWithdrawalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumStakeAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerToken","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":"rewardsToken","outputs":[{"internalType":"contract IElleriumTokenERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_emissionRateInWEI","type":"uint256"},{"internalType":"bool","name":"_isFeesApply","type":"bool"}],"name":"setRewardRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingLPFeesAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","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":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unstakeAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040527369832af74774bae99d999e7f74fe3f7d5833bf84600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550670de0b6b3a764000060065566148f47511518006007556001600e60006101000a81548160ff0219169083151502179055506040518060c00160405280603c62ffffff168152602001610e1062ffffff1681526020016201518062ffffff1681526020016203f48062ffffff16815260200162093a8062ffffff16815260200162278d0062ffffff16815250600f906006620000f7929190620002a8565b503480156200010557600080fd5b506040516200244f3803806200244f83398181016040528101906200012b91906200038a565b6200014b6200013f620001dc60201b60201c565b620001e460201b60201c565b6001808190555081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050620003d1565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054828255906000526020600020908101928215620002ee579160200282015b82811115620002ed578251829062ffffff16905591602001919060010190620002c9565b5b509050620002fd919062000301565b5090565b5b808211156200031c57600081600090555060010162000302565b5090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620003528262000325565b9050919050565b620003648162000345565b81146200037057600080fd5b50565b600081519050620003848162000359565b92915050565b60008060408385031215620003a457620003a362000320565b5b6000620003b48582860162000373565b9250506020620003c78582860162000373565b9150509250929050565b61206e80620003e16000396000f3fe608060405234801561001057600080fd5b50600436106101415760003560e01c806379b0f0b7116100b8578063a694fc3a1161007c578063a694fc3a1461031c578063c20b55aa14610338578063c750e99414610356578063cd3daf9d14610374578063d1af0c7d14610392578063f2fde38b146103b057610141565b806379b0f0b7146102765780637b0a47ee146102a6578063803d0bdc146102c4578063817b1cd2146102e05780638da5cb5b146102fe57610141565b80633d18b9121161010a5780633d18b912146101d85780636b036f45146101e25780636c652d9c1461020057806370a082311461021e578063715018a61461024e57806372f702f31461025857610141565b80628cc262146101465780630edf110c14610176578063225be105146101945780632e17de78146101b257806335322f37146101ce575b600080fd5b610160600480360381019061015b91906117bf565b6103cc565b60405161016d9190611805565b60405180910390f35b61017e6104ce565b60405161018b9190611805565b60405180910390f35b61019c61066b565b6040516101a9919061183b565b60405180910390f35b6101cc60048036038101906101c79190611882565b61067e565b005b6101d6610a54565b005b6101e0610aac565b005b6101ea610d1c565b6040516101f79190611805565b60405180910390f35b610208610d22565b6040516102159190611805565b60405180910390f35b610238600480360381019061023391906117bf565b610d69565b6040516102459190611805565b60405180910390f35b610256610db2565b005b610260610dc6565b60405161026d919061190e565b60405180910390f35b610290600480360381019061028b9190611882565b610dec565b60405161029d9190611805565b60405180910390f35b6102ae610e10565b6040516102bb9190611805565b60405180910390f35b6102de60048036038101906102d99190611955565b610e16565b005b6102e8610e43565b6040516102f59190611805565b60405180910390f35b610306610e49565b60405161031391906119a4565b60405180910390f35b61033660048036038101906103319190611882565b610e72565b005b61034061110d565b60405161034d9190611805565b60405180910390f35b61035e611154565b60405161036b91906119a4565b60405180910390f35b61037c61117a565b6040516103899190611805565b60405180910390f35b61039a6111dd565b6040516103a791906119e0565b60405180910390f35b6103ca60048036038101906103c591906117bf565b611203565b005b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054670de0b6b3a7640000600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461045f61117a565b6104699190611a2a565b600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546104b39190611a5e565b6104bd9190611acf565b6104c79190611b00565b9050919050565b600080600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020544261051c9190611a2a565b9050600e60009054906101000a900460ff161561066257600f60008154811061054857610547611b34565b5b9060005260206000200154811161056457611388915050610668565b600f60018154811061057957610578611b34565b5b90600052602060002001548111610595576107d0915050610668565b600f6002815481106105aa576105a9611b34565b5b906000526020600020015481116105c6576103e8915050610668565b600f6003815481106105db576105da611b34565b5b906000526020600020015481116105f7576101f4915050610668565b600f60048154811061060c5761060b611b34565b5b906000526020600020015481116106285761012c915050610668565b600f60058154811061063d5761063c611b34565b5b90600052602060002001548111610658576064915050610668565b6032915050610668565b60009150505b90565b600e60009054906101000a900460ff1681565b6002600154036106c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ba90611bc0565b60405180910390fd5b6002600181905550336106d461117a565b600981905550426008819055506106ea816103cc565b600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600954600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548211156108385781600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040517f2d57ce1800000000000000000000000000000000000000000000000000000000815260040161082f929190611be0565b60405180910390fd5b816002600082825461084a9190611a2a565b9250508190555081600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546108a09190611a2a565b92505081905550600e60009054906101000a900460ff16156109ad5760006127106108c96104ce565b846108d49190611a5e565b6108de9190611acf565b905061094f600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166112869092919063ffffffff16565b6109a733828561095f9190611a2a565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166112869092919063ffffffff16565b506109fb565b6109fa3383600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166112869092919063ffffffff16565b5b3373ffffffffffffffffffffffffffffffffffffffff167f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f7583604051610a419190611805565b60405180910390a2506001808190555050565b6000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050610aa18161067e565b610aa9610aac565b50565b600260015403610af1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae890611bc0565b60405180910390fd5b600260018190555033610b0261117a565b60098190555042600881905550610b18816103cc565b600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600954600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811115610d11576000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1933836040518363ffffffff1660e01b8152600401610c90929190611c09565b600060405180830381600087803b158015610caa57600080fd5b505af1158015610cbe573d6000803e3d6000fd5b505050503373ffffffffffffffffffffffffffffffffffffffff167fd0813ff03c470dcc7baa9ce36914dc2febdfd276d639deffaac383fd3db42ba382604051610d089190611805565b60405180910390a25b505060018081905550565b60065481565b6000600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905090565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610dba61130c565b610dc4600061138a565b565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600f8181548110610dfc57600080fd5b906000526020600020016000915090505481565b60075481565b610e1e61130c565b8160078190555080600e60006101000a81548160ff0219169083151502179055505050565b60025481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600260015403610eb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eae90611bc0565b60405180910390fd5b600260018190555033610ec861117a565b60098190555042600881905550610ede816103cc565b600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600954600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600654821015610fb257816006546040517f7040b58c000000000000000000000000000000000000000000000000000000008152600401610fa9929190611be0565b60405180910390fd5b611001333084600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661144e909392919063ffffffff16565b81600260008282546110139190611b00565b9250508190555081600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546110699190611b00565b9250508190555042600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d836040516110fa9190611805565b60405180910390a2506001808190555050565b6000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905090565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806002540361118f5760095490506111da565b600254670de0b6b3a7640000600754600854426111ac9190611a2a565b6111b69190611a5e565b6111c09190611a5e565b6111ca9190611acf565b6009546111d79190611b00565b90505b90565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61120b61130c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361127a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127190611ca4565b60405180910390fd5b6112838161138a565b50565b6113078363a9059cbb60e01b84846040516024016112a5929190611c09565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506114d7565b505050565b61131461159e565b73ffffffffffffffffffffffffffffffffffffffff16611332610e49565b73ffffffffffffffffffffffffffffffffffffffff1614611388576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137f90611d10565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6114d1846323b872dd60e01b85858560405160240161146f93929190611d30565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506114d7565b50505050565b6000611539826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166115a69092919063ffffffff16565b905060008151111561159957808060200190518101906115599190611d7c565b611598576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158f90611e1b565b60405180910390fd5b5b505050565b600033905090565b60606115b584846000856115be565b90509392505050565b606082471015611603576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115fa90611ead565b60405180910390fd5b61160c856116d2565b61164b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164290611f19565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516116749190611faa565b60006040518083038185875af1925050503d80600081146116b1576040519150601f19603f3d011682016040523d82523d6000602084013e6116b6565b606091505b50915091506116c68282866116f5565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060831561170557829050611755565b6000835111156117185782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174c9190612016565b60405180910390fd5b9392505050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061178c82611761565b9050919050565b61179c81611781565b81146117a757600080fd5b50565b6000813590506117b981611793565b92915050565b6000602082840312156117d5576117d461175c565b5b60006117e3848285016117aa565b91505092915050565b6000819050919050565b6117ff816117ec565b82525050565b600060208201905061181a60008301846117f6565b92915050565b60008115159050919050565b61183581611820565b82525050565b6000602082019050611850600083018461182c565b92915050565b61185f816117ec565b811461186a57600080fd5b50565b60008135905061187c81611856565b92915050565b6000602082840312156118985761189761175c565b5b60006118a68482850161186d565b91505092915050565b6000819050919050565b60006118d46118cf6118ca84611761565b6118af565b611761565b9050919050565b60006118e6826118b9565b9050919050565b60006118f8826118db565b9050919050565b611908816118ed565b82525050565b600060208201905061192360008301846118ff565b92915050565b61193281611820565b811461193d57600080fd5b50565b60008135905061194f81611929565b92915050565b6000806040838503121561196c5761196b61175c565b5b600061197a8582860161186d565b925050602061198b85828601611940565b9150509250929050565b61199e81611781565b82525050565b60006020820190506119b96000830184611995565b92915050565b60006119ca826118db565b9050919050565b6119da816119bf565b82525050565b60006020820190506119f560008301846119d1565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611a35826117ec565b9150611a40836117ec565b9250828203905081811115611a5857611a576119fb565b5b92915050565b6000611a69826117ec565b9150611a74836117ec565b9250828202611a82816117ec565b91508282048414831517611a9957611a986119fb565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611ada826117ec565b9150611ae5836117ec565b925082611af557611af4611aa0565b5b828204905092915050565b6000611b0b826117ec565b9150611b16836117ec565b9250828201905080821115611b2e57611b2d6119fb565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082825260208201905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611baa601f83611b63565b9150611bb582611b74565b602082019050919050565b60006020820190508181036000830152611bd981611b9d565b9050919050565b6000604082019050611bf560008301856117f6565b611c0260208301846117f6565b9392505050565b6000604082019050611c1e6000830185611995565b611c2b60208301846117f6565b9392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611c8e602683611b63565b9150611c9982611c32565b604082019050919050565b60006020820190508181036000830152611cbd81611c81565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611cfa602083611b63565b9150611d0582611cc4565b602082019050919050565b60006020820190508181036000830152611d2981611ced565b9050919050565b6000606082019050611d456000830186611995565b611d526020830185611995565b611d5f60408301846117f6565b949350505050565b600081519050611d7681611929565b92915050565b600060208284031215611d9257611d9161175c565b5b6000611da084828501611d67565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000611e05602a83611b63565b9150611e1082611da9565b604082019050919050565b60006020820190508181036000830152611e3481611df8565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000611e97602683611b63565b9150611ea282611e3b565b604082019050919050565b60006020820190508181036000830152611ec681611e8a565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000611f03601d83611b63565b9150611f0e82611ecd565b602082019050919050565b60006020820190508181036000830152611f3281611ef6565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015611f6d578082015181840152602081019050611f52565b60008484015250505050565b6000611f8482611f39565b611f8e8185611f44565b9350611f9e818560208601611f4f565b80840191505092915050565b6000611fb68284611f79565b915081905092915050565b600081519050919050565b6000601f19601f8301169050919050565b6000611fe882611fc1565b611ff28185611b63565b9350612002818560208601611f4f565b61200b81611fcc565b840191505092915050565b600060208201905081810360008301526120308184611fdd565b90509291505056fea2646970667358221220eb79e4dfa36542ac2009f5660b38dee291bfabdfb57eb1083eb3130d15d5499264736f6c634300081400330000000000000000000000003e8fb78ec6fb60575967bb07ac64e5fa9f498a4a000000000000000000000000eeac5e75216571773c0064b3b591a86253791db6

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101415760003560e01c806379b0f0b7116100b8578063a694fc3a1161007c578063a694fc3a1461031c578063c20b55aa14610338578063c750e99414610356578063cd3daf9d14610374578063d1af0c7d14610392578063f2fde38b146103b057610141565b806379b0f0b7146102765780637b0a47ee146102a6578063803d0bdc146102c4578063817b1cd2146102e05780638da5cb5b146102fe57610141565b80633d18b9121161010a5780633d18b912146101d85780636b036f45146101e25780636c652d9c1461020057806370a082311461021e578063715018a61461024e57806372f702f31461025857610141565b80628cc262146101465780630edf110c14610176578063225be105146101945780632e17de78146101b257806335322f37146101ce575b600080fd5b610160600480360381019061015b91906117bf565b6103cc565b60405161016d9190611805565b60405180910390f35b61017e6104ce565b60405161018b9190611805565b60405180910390f35b61019c61066b565b6040516101a9919061183b565b60405180910390f35b6101cc60048036038101906101c79190611882565b61067e565b005b6101d6610a54565b005b6101e0610aac565b005b6101ea610d1c565b6040516101f79190611805565b60405180910390f35b610208610d22565b6040516102159190611805565b60405180910390f35b610238600480360381019061023391906117bf565b610d69565b6040516102459190611805565b60405180910390f35b610256610db2565b005b610260610dc6565b60405161026d919061190e565b60405180910390f35b610290600480360381019061028b9190611882565b610dec565b60405161029d9190611805565b60405180910390f35b6102ae610e10565b6040516102bb9190611805565b60405180910390f35b6102de60048036038101906102d99190611955565b610e16565b005b6102e8610e43565b6040516102f59190611805565b60405180910390f35b610306610e49565b60405161031391906119a4565b60405180910390f35b61033660048036038101906103319190611882565b610e72565b005b61034061110d565b60405161034d9190611805565b60405180910390f35b61035e611154565b60405161036b91906119a4565b60405180910390f35b61037c61117a565b6040516103899190611805565b60405180910390f35b61039a6111dd565b6040516103a791906119e0565b60405180910390f35b6103ca60048036038101906103c591906117bf565b611203565b005b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054670de0b6b3a7640000600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461045f61117a565b6104699190611a2a565b600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546104b39190611a5e565b6104bd9190611acf565b6104c79190611b00565b9050919050565b600080600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020544261051c9190611a2a565b9050600e60009054906101000a900460ff161561066257600f60008154811061054857610547611b34565b5b9060005260206000200154811161056457611388915050610668565b600f60018154811061057957610578611b34565b5b90600052602060002001548111610595576107d0915050610668565b600f6002815481106105aa576105a9611b34565b5b906000526020600020015481116105c6576103e8915050610668565b600f6003815481106105db576105da611b34565b5b906000526020600020015481116105f7576101f4915050610668565b600f60048154811061060c5761060b611b34565b5b906000526020600020015481116106285761012c915050610668565b600f60058154811061063d5761063c611b34565b5b90600052602060002001548111610658576064915050610668565b6032915050610668565b60009150505b90565b600e60009054906101000a900460ff1681565b6002600154036106c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ba90611bc0565b60405180910390fd5b6002600181905550336106d461117a565b600981905550426008819055506106ea816103cc565b600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600954600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548211156108385781600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040517f2d57ce1800000000000000000000000000000000000000000000000000000000815260040161082f929190611be0565b60405180910390fd5b816002600082825461084a9190611a2a565b9250508190555081600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546108a09190611a2a565b92505081905550600e60009054906101000a900460ff16156109ad5760006127106108c96104ce565b846108d49190611a5e565b6108de9190611acf565b905061094f600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166112869092919063ffffffff16565b6109a733828561095f9190611a2a565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166112869092919063ffffffff16565b506109fb565b6109fa3383600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166112869092919063ffffffff16565b5b3373ffffffffffffffffffffffffffffffffffffffff167f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f7583604051610a419190611805565b60405180910390a2506001808190555050565b6000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050610aa18161067e565b610aa9610aac565b50565b600260015403610af1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae890611bc0565b60405180910390fd5b600260018190555033610b0261117a565b60098190555042600881905550610b18816103cc565b600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600954600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811115610d11576000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1933836040518363ffffffff1660e01b8152600401610c90929190611c09565b600060405180830381600087803b158015610caa57600080fd5b505af1158015610cbe573d6000803e3d6000fd5b505050503373ffffffffffffffffffffffffffffffffffffffff167fd0813ff03c470dcc7baa9ce36914dc2febdfd276d639deffaac383fd3db42ba382604051610d089190611805565b60405180910390a25b505060018081905550565b60065481565b6000600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905090565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610dba61130c565b610dc4600061138a565b565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600f8181548110610dfc57600080fd5b906000526020600020016000915090505481565b60075481565b610e1e61130c565b8160078190555080600e60006101000a81548160ff0219169083151502179055505050565b60025481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600260015403610eb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eae90611bc0565b60405180910390fd5b600260018190555033610ec861117a565b60098190555042600881905550610ede816103cc565b600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600954600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600654821015610fb257816006546040517f7040b58c000000000000000000000000000000000000000000000000000000008152600401610fa9929190611be0565b60405180910390fd5b611001333084600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661144e909392919063ffffffff16565b81600260008282546110139190611b00565b9250508190555081600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546110699190611b00565b9250508190555042600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d836040516110fa9190611805565b60405180910390a2506001808190555050565b6000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905090565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806002540361118f5760095490506111da565b600254670de0b6b3a7640000600754600854426111ac9190611a2a565b6111b69190611a5e565b6111c09190611a5e565b6111ca9190611acf565b6009546111d79190611b00565b90505b90565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61120b61130c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361127a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127190611ca4565b60405180910390fd5b6112838161138a565b50565b6113078363a9059cbb60e01b84846040516024016112a5929190611c09565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506114d7565b505050565b61131461159e565b73ffffffffffffffffffffffffffffffffffffffff16611332610e49565b73ffffffffffffffffffffffffffffffffffffffff1614611388576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137f90611d10565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6114d1846323b872dd60e01b85858560405160240161146f93929190611d30565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506114d7565b50505050565b6000611539826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166115a69092919063ffffffff16565b905060008151111561159957808060200190518101906115599190611d7c565b611598576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158f90611e1b565b60405180910390fd5b5b505050565b600033905090565b60606115b584846000856115be565b90509392505050565b606082471015611603576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115fa90611ead565b60405180910390fd5b61160c856116d2565b61164b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164290611f19565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516116749190611faa565b60006040518083038185875af1925050503d80600081146116b1576040519150601f19603f3d011682016040523d82523d6000602084013e6116b6565b606091505b50915091506116c68282866116f5565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060831561170557829050611755565b6000835111156117185782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174c9190612016565b60405180910390fd5b9392505050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061178c82611761565b9050919050565b61179c81611781565b81146117a757600080fd5b50565b6000813590506117b981611793565b92915050565b6000602082840312156117d5576117d461175c565b5b60006117e3848285016117aa565b91505092915050565b6000819050919050565b6117ff816117ec565b82525050565b600060208201905061181a60008301846117f6565b92915050565b60008115159050919050565b61183581611820565b82525050565b6000602082019050611850600083018461182c565b92915050565b61185f816117ec565b811461186a57600080fd5b50565b60008135905061187c81611856565b92915050565b6000602082840312156118985761189761175c565b5b60006118a68482850161186d565b91505092915050565b6000819050919050565b60006118d46118cf6118ca84611761565b6118af565b611761565b9050919050565b60006118e6826118b9565b9050919050565b60006118f8826118db565b9050919050565b611908816118ed565b82525050565b600060208201905061192360008301846118ff565b92915050565b61193281611820565b811461193d57600080fd5b50565b60008135905061194f81611929565b92915050565b6000806040838503121561196c5761196b61175c565b5b600061197a8582860161186d565b925050602061198b85828601611940565b9150509250929050565b61199e81611781565b82525050565b60006020820190506119b96000830184611995565b92915050565b60006119ca826118db565b9050919050565b6119da816119bf565b82525050565b60006020820190506119f560008301846119d1565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611a35826117ec565b9150611a40836117ec565b9250828203905081811115611a5857611a576119fb565b5b92915050565b6000611a69826117ec565b9150611a74836117ec565b9250828202611a82816117ec565b91508282048414831517611a9957611a986119fb565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611ada826117ec565b9150611ae5836117ec565b925082611af557611af4611aa0565b5b828204905092915050565b6000611b0b826117ec565b9150611b16836117ec565b9250828201905080821115611b2e57611b2d6119fb565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082825260208201905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611baa601f83611b63565b9150611bb582611b74565b602082019050919050565b60006020820190508181036000830152611bd981611b9d565b9050919050565b6000604082019050611bf560008301856117f6565b611c0260208301846117f6565b9392505050565b6000604082019050611c1e6000830185611995565b611c2b60208301846117f6565b9392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611c8e602683611b63565b9150611c9982611c32565b604082019050919050565b60006020820190508181036000830152611cbd81611c81565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611cfa602083611b63565b9150611d0582611cc4565b602082019050919050565b60006020820190508181036000830152611d2981611ced565b9050919050565b6000606082019050611d456000830186611995565b611d526020830185611995565b611d5f60408301846117f6565b949350505050565b600081519050611d7681611929565b92915050565b600060208284031215611d9257611d9161175c565b5b6000611da084828501611d67565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000611e05602a83611b63565b9150611e1082611da9565b604082019050919050565b60006020820190508181036000830152611e3481611df8565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000611e97602683611b63565b9150611ea282611e3b565b604082019050919050565b60006020820190508181036000830152611ec681611e8a565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000611f03601d83611b63565b9150611f0e82611ecd565b602082019050919050565b60006020820190508181036000830152611f3281611ef6565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015611f6d578082015181840152602081019050611f52565b60008484015250505050565b6000611f8482611f39565b611f8e8185611f44565b9350611f9e818560208601611f4f565b80840191505092915050565b6000611fb68284611f79565b915081905092915050565b600081519050919050565b6000601f19601f8301169050919050565b6000611fe882611fc1565b611ff28185611b63565b9350612002818560208601611f4f565b61200b81611fcc565b840191505092915050565b600060208201905081810360008301526120308184611fdd565b90509291505056fea2646970667358221220eb79e4dfa36542ac2009f5660b38dee291bfabdfb57eb1083eb3130d15d5499264736f6c63430008140033

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

0000000000000000000000003e8fb78ec6fb60575967bb07ac64e5fa9f498a4a000000000000000000000000eeac5e75216571773c0064b3b591a86253791db6

-----Decoded View---------------
Arg [0] : _stakingToken (address): 0x3e8FB78Ec6Fb60575967bB07AC64e5FA9F498a4a
Arg [1] : _rewardsToken (address): 0xEEac5E75216571773C0064b3B591A86253791DB6

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000003e8fb78ec6fb60575967bb07ac64e5fa9f498a4a
Arg [1] : 000000000000000000000000eeac5e75216571773c0064b3b591a86253791db6


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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