ETH Price: $1,590.00 (-0.21%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Update Cycle222193582025-04-07 20:18:4710 days ago1744057127IN
0x9E41a99b...bedaA9B05
0 ETH0.000125961.92912041

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HeliosStakingV2

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 12 : HeliosStakingV2.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.26;

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/interfaces/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable2Step.sol";
import "./interfaces/IHelios.sol";
import "./lib/constants.sol";

/// @title Helios Staking V2 Contract
contract HeliosStakingV2 is Ownable2Step {
    using SafeERC20 for IERC20;
    using EnumerableSet for EnumerableSet.AddressSet;

    // -------------------------- STATE VARIABLES -------------------------- //

    /// @notice Timestamp in seconds of the last created cycle.
    uint256 public lastCycleT;

    /// @notice ID of the current cycle.
    uint256 public currentCycleId;

    /// @notice Is specific token whitelisted to be a reward token.
    mapping(address token => bool) public isRewardToken;

    /// @notice Is specific account blacklisted from rewards claim.
    mapping(address account => bool) public isBlacklisted;

    /// @notice Cycle ID of the last claimed cycle for user address and a reward token.
    mapping(address account => mapping(address token => uint256)) public lastClaimedCycleId;

    /// @notice Current allocation for a reward token.
    mapping(address token => uint256) public minCyclePools;

    /// @notice Current allocation for a reward token.
    mapping(address token => uint256) public allocation;

    /// @notice List of the whitelisted reward tokens.
    EnumerableSet.AddressSet private _rewardTokens;

    /// @notice List of reward tokens pending removal.
    EnumerableSet.AddressSet private _removedTokens;

    /// @notice List of blacklisted accounts.
    EnumerableSet.AddressSet private _blacklistedAccounts;

    // ------------------------------- EVENTS ------------------------------ //

    event CycleCreated();
    event RewardsClaimed();

    // ------------------------------- ERRORS ------------------------------ //

    error CycleNotAvailable();
    error StakeIdTooLarge();
    error StakeInactive();
    error AccountBlacklisted();
    error NoAllocation();
    error NotRewardToken();
    error Prohibited();
    error DuplicateRewardToken();
    error DuplicateStakeId();
    error ZeroAddress();
    error ZeroInput();

    // ------------------------------ MODIFIERS ---------------------------- //

    // ----------------------------- CONSTRUCTOR --------------------------- //

    constructor(address _owner) Ownable(_owner) {
        lastCycleT = block.timestamp;
    }

    // --------------------------- PUBLIC FUNCTIONS ------------------------ //

    /// @notice Updates cycle and redistributes rewards.
    function updateCycle() external {
        if (block.timestamp < lastCycleT + CYCLE_LENGTH) revert CycleNotAvailable();
        lastCycleT = block.timestamp;
        currentCycleId++;

        uint256 numRemoved = _removedTokens.length();
        if (numRemoved > 0) {
            address[] memory removedTokens = _removedTokens.values();
            for (uint256 i = 0; i < numRemoved; i++) {
                address _token = removedTokens[i];
                isRewardToken[_token] = false;
                _rewardTokens.remove(_token);
                allocation[_token] = 0;
                _removedTokens.remove(_token);
            }
        }

        IHelios hlx = IHelios(HELIOS);
        uint256 numBlacklisted = _blacklistedAccounts.length();
        uint256 totalActiveShares = hlx.getGlobalActiveShares();
        if (numBlacklisted > 0) {
            address[] memory blacklistedAccounts = _blacklistedAccounts.values();
            for (uint256 i = 0; i < numBlacklisted; i++) {
                totalActiveShares -= hlx.getUserCurrentActiveShares(blacklistedAccounts[i]);
            }
        }

        uint256 numTokens = _rewardTokens.length();
        address[] memory rewardTokens = getRewardTokens();
        for (uint256 i = 0; i < numTokens; i++) {
            address token = rewardTokens[i];
            uint256 balance = IERC20(token).balanceOf(address(this));
            if (balance < minCyclePools[token]) {
                allocation[token] = 0;
            } else {
                allocation[token] = (balance * SCALING_FACTOR_1e18) / totalActiveShares;
            }
        }
        emit CycleCreated();
    }

    /// @notice Claim rewards for user's active stakes.
    /// @param tokens Reward tokens to claim.
    /// @param stakeIds Helios Stake IDs to claim rewards for.
    /// @dev All stakes need to be claimed in a single call. One claim per token per cycle.
    function claimRewards(address[] calldata tokens, uint256[] calldata stakeIds, address receiver) external returns (uint256[] memory claimedRewards) {
        if (receiver == address(0)) revert ZeroAddress();
        address account = msg.sender;
        if (isBlacklisted[account]) revert AccountBlacklisted();
        uint256 numStakes = stakeIds.length;
        uint256 _lastCycleT = lastCycleT;
        uint256 totalShares;
        IHelios.StakeStatus targetStatus = IHelios.StakeStatus.ACTIVE;

        uint256 bitMap0;
        uint256 bitMap1;
        uint256 bitMap2;
        uint256 bitMap3;

        for (uint256 i = 0; i < numStakes; i++) {
            uint256 stakeId = stakeIds[i];
            if (stakeId > 1000) revert StakeIdTooLarge();

            (bitMap0, bitMap1, bitMap2, bitMap3) = _checkDuplicate(stakeId, bitMap0, bitMap1, bitMap2, bitMap3);

            IHelios.UserStakeInfo memory stake = IHelios(HELIOS).getUserStakeInfo(account, stakeId);
            if (stake.status != targetStatus || stake.hlxAmount == 0) revert StakeInactive();
            if (stake.stakeStartTs >= _lastCycleT) continue;
            totalShares += stake.shares;
        }
        if (totalShares == 0) revert NoAllocation();
        uint256 numTokens = tokens.length;
        uint256 claimCycleId = currentCycleId;
        claimedRewards = new uint256[](numTokens);
        for (uint256 j = 0; j < numTokens; j++) {
            address token = tokens[j];
            if (!isRewardToken[token]) revert NotRewardToken();
            uint256 tokenAllocation = allocation[token];
            if (tokenAllocation == 0 || lastClaimedCycleId[account][token] == claimCycleId) revert NoAllocation();
            uint256 claimableAmount = (tokenAllocation * totalShares) / SCALING_FACTOR_1e18;
            IERC20(token).safeTransfer(receiver, claimableAmount);
            lastClaimedCycleId[account][token] = claimCycleId;
            claimedRewards[j] = claimableAmount;
        }
        emit RewardsClaimed();
    }

    // ----------------------- ADMINISTRATIVE FUNCTIONS -------------------- //

    /// @notice Add new reward token to the next cycle.
    function enableRewardToken(address token, uint256 _minCyclePool) external onlyOwner {
        if (token == address(0)) revert ZeroAddress();
        if (_minCyclePool == 0) revert ZeroInput();
        if (!_rewardTokens.add(token)) revert DuplicateRewardToken();
        isRewardToken[token] = true;
        minCyclePools[token] = _minCyclePool;
    }

    /// @notice Remove currently active reward token.
    /// @dev Only available if balance is less than minimum cycle pool.
    function disableRewardToken(address token) external onlyOwner {
        uint256 balance = IERC20(token).balanceOf(address(this));
        if (balance >= minCyclePools[token]) revert Prohibited();
        if (!isRewardToken[token]) revert NotRewardToken();
        _removedTokens.add(token);
    }

    /// @notice Update minimum cycle pool requirement for reward token.
    function setMinCyclePool(address token, uint256 limit) external onlyOwner {
        if (!isRewardToken[token]) revert NotRewardToken();
        minCyclePools[token] = limit;
    }

    /// @notice Sets the reward claim blacklist status for the provided address.
    /// @param account Address which status will be changed.
    /// @param blacklisted Status to be set.
    function setBlacklisted(address account, bool blacklisted) external onlyOwner {
        if (account == address(0)) revert ZeroAddress();
        isBlacklisted[account] = blacklisted;
        blacklisted ? _blacklistedAccounts.add(account) : _blacklistedAccounts.remove(account);
    }

    // ---------------------------- VIEW FUNCTIONS ------------------------- //

    /// @notice Get a list of current reward tokens.
    function getRewardTokens() public view returns (address[] memory) {
        return _rewardTokens.values();
    }

    /// @notice Get a list of reward tokens that will be disabled in next cycle.
    function getPendingDisable() public view returns (address[] memory) {
        return _removedTokens.values();
    }

    /// @notice Get a list of available tokens' balances for next cycle update.
    function getNextCyclePools() external view returns (uint256[] memory pools) {
        uint256 numTokens = _rewardTokens.length();
        address[] memory tokens = getRewardTokens();
        pools = new uint256[](numTokens);
        for (uint256 i = 0; i < numTokens; i++) {
            address token = tokens[i];
            uint256 balance = IERC20(token).balanceOf(address(this));
            pools[i] = balance < minCyclePools[token] ? 0 : balance;
        }
    }

    /// @notice Get a list of available tokens' balances for next cycle update.
    function getNextCycleTime() external view returns (uint256) {
        return lastCycleT + CYCLE_LENGTH;
    }

    /// @notice Get a list of available tokens' balances for next cycle update.
    function getRewardBalances() external view returns (uint256[] memory balances) {
        uint256 numTokens = _rewardTokens.length();
        address[] memory tokens = getRewardTokens();
        balances = new uint256[](numTokens);
        for (uint256 i = 0; i < numTokens; i++) {
            address token = tokens[i];
            balances[i] = IERC20(token).balanceOf(address(this));
        }
    }

    /// @notice Get user rewards for all reward tokens.
    /// @param account Address of the user.
    /// @param stakeIds Array of stake IDs to query
    /// @return rewards Array of claimable user rewards corresponding to the reward tokens array.
    /// @return eligible Array of eligibility boolean values corresponding to the inputted stake IDs array.
    function getUserRewards(address account, uint256[] calldata stakeIds)
        external
        view
        returns (uint256[] memory rewards, bool[] memory eligible)
    {
        uint256 numTokens = _rewardTokens.length();
        uint256 numStakes = stakeIds.length;
        address[] memory tokens = getRewardTokens();
        rewards = new uint256[](numTokens);
        eligible = new bool[](numStakes);
        if (isBlacklisted[account]) return (rewards, eligible);
        uint256 _lastCycleT = lastCycleT;
        IHelios.StakeStatus targetStatus = IHelios.StakeStatus.ACTIVE;
        uint256 totalShares;
        for (uint256 i = 0; i < numStakes; i++) {
            IHelios.UserStakeInfo memory stake = IHelios(HELIOS).getUserStakeInfo(account, stakeIds[i]);
            if (stake.status != targetStatus || stake.hlxAmount == 0) continue;
            if (stake.stakeStartTs >= _lastCycleT) continue;
            eligible[i] = true;
            totalShares += stake.shares;
        }
        if (totalShares == 0) return (rewards, eligible);
        for (uint256 j = 0; j < numTokens; j++) {
            address token = tokens[j];
            uint256 tokenAllocation = allocation[token];
            if (tokenAllocation == 0 || lastClaimedCycleId[account][token] == currentCycleId) continue;
            rewards[j] = (tokenAllocation * totalShares) / SCALING_FACTOR_1e18;
        }
    }

    function _checkDuplicate(uint256 stakeId, uint256 bitMap0, uint256 bitMap1, uint256 bitMap2, uint256 bitMap3)
        internal
        pure
        returns (uint256, uint256, uint256, uint256)
    {
        uint256 index = stakeId / 256;
        uint256 bitPosition = stakeId % 256;
        uint256 bitMask = 1 << bitPosition;

        if (index == 0) {
            if (bitMap0 & bitMask != 0) revert DuplicateStakeId();
            bitMap0 |= bitMask;
        } else if (index == 1) {
            if (bitMap1 & bitMask != 0) revert DuplicateStakeId();
            bitMap1 |= bitMask;
        } else if (index == 2) {
            if (bitMap2 & bitMask != 0) revert DuplicateStakeId();
            bitMap2 |= bitMask;
        } else {
            if (bitMap3 & bitMask != 0) revert DuplicateStakeId();
            bitMap3 |= bitMask;
        }

        return (bitMap0, bitMap1, bitMap2, bitMap3);
    }
}

File 2 of 12 : Ownable.sol
// 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);
    }
}

File 3 of 12 : Ownable2Step.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable2Step.sol)

pragma solidity ^0.8.20;

import {Ownable} from "./Ownable.sol";

/**
 * @dev Contract module which provides access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is specified at deployment time in the constructor for `Ownable`. This
 * can later be changed with {transferOwnership} and {acceptOwnership}.
 *
 * This module is used through inheritance. It will make available all functions
 * from parent (Ownable).
 */
abstract contract Ownable2Step is Ownable {
    address private _pendingOwner;

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

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

    /**
     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual override onlyOwner {
        _pendingOwner = newOwner;
        emit OwnershipTransferStarted(owner(), newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual override {
        delete _pendingOwner;
        super._transferOwnership(newOwner);
    }

    /**
     * @dev The new owner accepts the ownership transfer.
     */
    function acceptOwnership() public virtual {
        address sender = _msgSender();
        if (pendingOwner() != sender) {
            revert OwnableUnauthorizedAccount(sender);
        }
        _transferOwnership(sender);
    }
}

File 4 of 12 : 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";

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

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s)
        external;

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

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

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

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";

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

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

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

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

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

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

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

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

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

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

        bytes memory returndata = address(token).functionCall(data);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

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

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

pragma solidity ^0.8.20;

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

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

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

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

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

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert FailedInnerCall();
        }
    }
}

File 9 of 12 : Context.sol
// 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;
    }
}

File 10 of 12 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.

pragma solidity ^0.8.20;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```solidity
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
 * unusable.
 * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
 * array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position is the index of the value in the `values` array plus 1.
        // Position 0 is used to mean a value is not in the set.
        mapping(bytes32 value => uint256) _positions;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._positions[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We cache the value's position to prevent multiple reads from the same storage slot
        uint256 position = set._positions[value];

        if (position != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 valueIndex = position - 1;
            uint256 lastIndex = set._values.length - 1;

            if (valueIndex != lastIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the lastValue to the index where the value to delete is
                set._values[valueIndex] = lastValue;
                // Update the tracked position of the lastValue (that was just moved)
                set._positions[lastValue] = position;
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the tracked position for the deleted slot
            delete set._positions[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._positions[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        bytes32[] memory store = _values(set._inner);
        bytes32[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

File 11 of 12 : IHelios.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

import "@openzeppelin/contracts/interfaces/IERC20.sol";

interface IHelios is IERC20 {
    enum StakeStatus {
        ACTIVE,
        ENDED,
        BURNED
    }

    struct UserStakeInfo {
        uint256 hlxAmount;
        uint256 shares;
        uint16 numOfDays;
        uint48 stakeStartTs;
        uint48 maturityTs;
        uint256 titanBurned;
        StakeStatus status;
    }

    struct UserStake {
        uint256 sId;
        uint256 globalStakeId;
        UserStakeInfo stakeInfo;
    }

    function claimUserAvailablePayouts() external;
    function getUserTitanXClaimableTotal(address user) external view returns (uint256);
    function getUserETHClaimableTotal(address user) external view returns (uint256);
    function getUserStakes(address user) external view returns (UserStake[] memory);
    function triggerPayouts() external;
    function whiteList(address contractAddress, bool permit) external;
    function getGlobalActiveShares() external view returns (uint256);
    function getUserCurrentActiveShares(address user) external view returns (uint256);
    function getUserStakeInfo(address user, uint256 id) external view returns (UserStakeInfo memory);
    function startStake(uint256 amount, uint256 numOfDays, uint256 titanToBurn) external;
    function endStake(uint256 id) external;
}

File 12 of 12 : constants.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.26;

// ===================== Contract Addresses =====================================
address constant HELIOS = 0x2614f29C39dE46468A921Fd0b41fdd99A01f2EDf;
uint16 constant BPS_BASE = 100_00;
uint32 constant CYCLE_LENGTH = 28 days;
uint256 constant SCALING_FACTOR_1e18 = 1e18;

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccountBlacklisted","type":"error"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"CycleNotAvailable","type":"error"},{"inputs":[],"name":"DuplicateRewardToken","type":"error"},{"inputs":[],"name":"DuplicateStakeId","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"NoAllocation","type":"error"},{"inputs":[],"name":"NotRewardToken","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":"Prohibited","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"StakeIdTooLarge","type":"error"},{"inputs":[],"name":"StakeInactive","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"inputs":[],"name":"ZeroInput","type":"error"},{"anonymous":false,"inputs":[],"name":"CycleCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","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":[],"name":"RewardsClaimed","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"allocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"stakeIds","type":"uint256[]"},{"internalType":"address","name":"receiver","type":"address"}],"name":"claimRewards","outputs":[{"internalType":"uint256[]","name":"claimedRewards","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentCycleId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"disableRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"_minCyclePool","type":"uint256"}],"name":"enableRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getNextCyclePools","outputs":[{"internalType":"uint256[]","name":"pools","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNextCycleTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPendingDisable","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardBalances","outputs":[{"internalType":"uint256[]","name":"balances","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardTokens","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"stakeIds","type":"uint256[]"}],"name":"getUserRewards","outputs":[{"internalType":"uint256[]","name":"rewards","type":"uint256[]"},{"internalType":"bool[]","name":"eligible","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isBlacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"isRewardToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"token","type":"address"}],"name":"lastClaimedCycleId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastCycleT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"minCyclePools","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":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"blacklisted","type":"bool"}],"name":"setBlacklisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"setMinCyclePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateCycle","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60803460c957601f611c2b38819003918201601f19168301916001600160401b0383118484101760ce5780849260209460405283398101031260c957516001600160a01b0381169081900360c957801560b357600180546001600160a01b0319908116909155600080549182168317815560405192916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a342600255611b4690816100e58239f35b631e4fbdf760e01b600052600060045260246000fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe6080604052600436101561001257600080fd5b60003560e01c80630ebd942f146111365780630ff743ef146110fc578063121420aa146110d65780632fb8c5d6146110ba5780633b2e56531461109c578063715018a61461103757806378bc861b14610f6857806379ba509714610edf5780637fe56d4b14610a325780638da5cb5b14610a095780639b5c641b146109375780639e39020814610844578063aaacdda014610826578063b5fd73f8146107e7578063b81b8630146107ad578063bd9c190d14610745578063c4f59f9b14610719578063c65af62214610388578063cabdf36b14610327578063d01dd6d2146102a1578063d6d11ad814610205578063e30c3978146101dc578063f2fde38b146101685763fe575a871461012457600080fd5b34610163576020366003190112610163576001600160a01b036101456111c6565b166000526005602052602060ff604060002054166040519015158152f35b600080fd5b34610163576020366003190112610163576101816111c6565b610189611696565b60018060a01b0316806bffffffffffffffffffffffff60a01b600154161760015560018060a01b03600054167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700600080a3005b34610163576000366003190112610163576001546040516001600160a01b039091168152602090f35b346101635760403660031901126101635761021e6111c6565b6024359067ffffffffffffffff82116101635761024c90610246610260933690600401611253565b91611417565b60405192839260408452604084019061121f565b82810360208401526020808351928381520192019060005b818110610286575050500390f35b82511515845285945060209384019390920191600101610278565b34610163576040366003190112610163576102ba6111c6565b60243580151591828203610163576102d0611696565b6001600160a01b03169182156103165782600052600560205260406000209060ff8019835416911617905560001461030d5761030b90611789565b005b61030b906119fb565b63d92e233d60e01b60005260046000fd5b34610163576040366003190112610163576103406111c6565b602435906001600160a01b03821682036101635760018060a01b0316600052600660205260406000209060018060a01b03166000526020526020604060002054604051908152f35b34610163576000366003190112610163576103a4600254611284565b42106107085742600255600354600019811461051757600101600355600b5480610698575b50600d5460405163af4fb76360e01b8152602081600481732614f29c39de46468a921fd0b41fdd99a01f2edf5afa90811561056157600091610666575b50908061056d575b5060095461041a61182b565b60005b82811061044b577fd81aeda34236c43c3989584a50407248fc6b50016cdb162887ccfc5426559602600080a1005b6001600160a01b0361045d828461130d565b51166040516370a0823160e01b8152306004820152602081602481855afa9081156105615760009161052d575b5081600052600760205260406000205481106000146104be5750906001916000526008602052600060408120555b0161041d565b670de0b6b3a7640000810290808204670de0b6b3a7640000149015171561051757600086156105035750908560019392049060005260086020526040600020556104b8565b634e487b7160e01b81526012600452602490fd5b634e487b7160e01b600052601160045260246000fd5b906020823d8211610559575b81610546602093836112a1565b810103126105565750518661048a565b80fd5b3d9150610539565b6040513d6000823e3d90fd5b60405190600d548083526020830190600d60005260206000209060005b81811061065057505050826105a09103836112a1565b6000915b8183106105b257505061040e565b91929091906001600160a01b036105c9858461130d565b51604051639a5a6cd960e01b815291166004820152602081602481732614f29c39de46468a921fd0b41fdd99a01f2edf5afa9081156105615760009161061f575b508103908111610517579260010191906105a4565b906020823d8211610648575b81610638602093836112a1565b810103126105565750518561060a565b3d915061062b565b825484526020909301926001928301920161058a565b90506020813d602011610690575b81610681602093836112a1565b81010312610163575182610406565b3d9150610674565b6106a06117de565b9060005b8181106106b25750506103c9565b6001906107016001600160a01b036106ca838761130d565b5116806000526004602052604060002060ff1981541690556106eb81611876565b5080600052600860205260006040812055611947565b50016106a4565b632d451c8d60e21b60005260046000fd5b346101635760003660031901126101635761074161073561182b565b604051918291826111dc565b0390f35b346101635760403660031901126101635761075e6111c6565b610766611696565b6001600160a01b031660008181526004602052604090205460ff161561079c576000526007602052602435604060002055600080f35b63804543b560e01b60005260046000fd5b34610163576020366003190112610163576001600160a01b036107ce6111c6565b1660005260086020526020604060002054604051908152f35b34610163576020366003190112610163576001600160a01b036108086111c6565b166000526004602052602060ff604060002054166040519015158152f35b34610163576000366003190112610163576020600354604051908152f35b346101635760003660031901126101635760095461086061182b565b9061086a816112db565b9160005b82811061088b57604051602080825281906107419082018761121f565b6001600160a01b0361089d828461130d565b516040516370a0823160e01b8152306004820152929116602083602481845afa90811561056157600091610901575b60019350600052600760205260406000205481106000146108fc575060005b6108f5828761130d565b520161086e565b6108eb565b9192906020823d821161092f575b8161091c602093836112a1565b81010312610556575051600192916108cc565b3d915061090f565b34610163576020366003190112610163576109506111c6565b610958611696565b6040516370a0823160e01b81523060048201526001600160a01b039190911690602081602481855afa908115610561576000916109d7575b5081600052600760205260406000205411156109c65780600052600460205260ff604060002054161561079c5761030b90611734565b632b0039c760e21b60005260046000fd5b90506020813d602011610a01575b816109f2602093836112a1565b81010312610163575182610990565b3d91506109e5565b34610163576000366003190112610163576000546040516001600160a01b039091168152602090f35b346101635760603660031901126101635760043567ffffffffffffffff811161016357610a63903690600401611253565b60243567ffffffffffffffff811161016357610a83903690600401611253565b9290604435906001600160a01b03821680830361016357156103165733600052600560205260ff60406000205416610ece57936002546000956000806000916000916000965b808810610ceb578b8b8b8b8315610cb857600354610ae6846112db565b9360005b818110610b2c5760405180610741887f68e2c7e09a4a7d4fed2367771ceaa06623fb2e3f8b90065b2473b3f9752f9968600080a160208352602083019061121f565b610b37818387611337565b356001600160a01b038116908190036101635780600052600460205260ff604060002054161561079c5780600052600860205260406000205480158015610cc9575b610cb857610b9089670de0b6b3a764000092611404565b60405163a9059cbb60e01b602082019081526001600160a01b038916602483015292909104604480830182905282529291600091829190610bd26064826112a1565b519082855af13d15610cac573d67ffffffffffffffff8111610c9657610c1b9160405191610c0a6020601f19601f84011601846112a1565b82523d6000602084013e5b83611aaf565b8051908115159182610c72575b5050610c5e5790846040600194933360005260066020528160002060009182526020522055610c57828961130d565b5201610aea565b635274afe760e01b60005260045260246000fd5b81925090602091810103126101635760200151801590811503610163578a80610c28565b634e487b7160e01b600052604160045260246000fd5b610c1b90606090610c15565b632fc532ad60e11b60005260046000fd5b5033600052600660205284604080600020600090858252602052205414610b79565b909192939495969a610cfe8c8389611337565b35946103e88611610ebd5792600160ff87161b908086898760088b901c80610e54575050505050818116610e4357610d629160e09117945b60405162572fd560e11b8152336004820152602481019890985297949694959491829081906044820190565b0381732614f29c39de46468a921fd0b41fdd99a01f2edf5afa90811561056157600091610e15575b5060c08101516003811015610dff5760009015801590610df6575b610de757508865ffffffffffff6060830151161015610ddd576001916020610dcf92015190611294565b9b5b01969594929390610ac9565b509a600190610dd1565b630217669b60e31b8152600490fd5b50815115610da5565b634e487b7160e01b600052602160045260246000fd5b610e36915060e03d8111610e3c575b610e2e81836112a1565b81019061135a565b8d610d8a565b503d610e24565b637df98a3f60e11b60005260046000fd5b98999398929450909160018103610e7e5750505050818116610e4357610d629160e0911795610d36565b989a929891935090600203610ea4575050818116610e4357610d629160e0911797610d36565b8391995080925016610e4357610d629160e09117610d36565b6339593acb60e21b60005260046000fd5b637d28af3f60e01b60005260046000fd5b3461016357600036600319011261016357600154336001600160a01b0390911603610f5357600180546001600160a01b03199081169091556000805433928116831782556001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3005b63118cdaa760e01b6000523360045260246000fd5b3461016357600036600319011261016357600954610f8461182b565b90610f8e816112db565b9160005b828110610faf57604051602080825281906107419082018761121f565b602460206001600160a01b03610fc5848661130d565b5116604051928380926370a0823160e01b82523060048301525afa90811561056157600091611005575b5090600191610ffe828761130d565b5201610f92565b906020823d821161102f575b8161101e602093836112a1565b810103126105565750516001610fef565b3d9150611011565b3461016357600036600319011261016357611050611696565b600180546001600160a01b0319908116909155600080549182168155906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b34610163576000366003190112610163576020600254604051908152f35b34610163576000366003190112610163576107416107356117de565b346101635760003660031901126101635760206110f4600254611284565b604051908152f35b34610163576020366003190112610163576001600160a01b0361111d6111c6565b1660005260076020526020604060002054604051908152f35b346101635760403660031901126101635761114f6111c6565b6024359061115b611696565b6001600160a01b031680156103165781156111b557611179816116c2565b156111a4576000908152600460209081526040808320805460ff191660011790556007909152902055005b631c3610d960e21b60005260046000fd5b63af458c0760e01b60005260046000fd5b600435906001600160a01b038216820361016357565b602060408183019282815284518094520192019060005b8181106112005750505090565b82516001600160a01b03168452602093840193909201916001016111f3565b906020808351928381520192019060005b81811061123d5750505090565b8251845260209384019390920191600101611230565b9181601f840112156101635782359167ffffffffffffffff8311610163576020808501948460051b01011161016357565b906224ea00820180921161051757565b9190820180921161051757565b90601f8019910116810190811067ffffffffffffffff821117610c9657604052565b67ffffffffffffffff8111610c965760051b60200190565b906112e5826112c3565b6112f260405191826112a1565b8281528092611303601f19916112c3565b0190602036910137565b80518210156113215760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b91908110156113215760051b0190565b519065ffffffffffff8216820361016357565b908160e09103126101635760006040519160e0830183811067ffffffffffffffff8211176113f0576040528051835260208101516020840152604081015161ffff811681036113ec57604084015260c0906113b760608201611347565b60608501526113c860808201611347565b608085015260a081015160a08501520151906003821015610556575060c082015290565b8280fd5b634e487b7160e01b83526041600452602483fd5b8181029291811591840414171561051757565b9290919260095490604051946009548087528660208101600960005260206000209260005b81811061167d575050611451925003876112a1565b61145a836112db565b95611464826112c3565b9261147260405194856112a1565b828452601f19611481846112c3565b01366020860137839660018060a01b0382169485600052600560205260ff604060002054166116735750600293919354906000946000935b808510611572575050505050811561156c5760005b8481106114dc575050505050565b600190836001600160a01b036114f2838661130d565b5116806000526008602052604060002054908115908115611540575b5061153957670de0b6b3a76400009161152691611404565b04611531828b61130d565b525b016114ce565b5050611533565b6040915088600052600660205281600020600091878060a01b031682526020522054600354143861150e565b50505050565b90919293956115b560e0611587898588611337565b60405162572fd560e11b81526001600160a01b03871660048201529035602482015291829081906044820190565b0381732614f29c39de46468a921fd0b41fdd99a01f2edf5afa90811561056157600091611655575b5060c08101516003811015610dff571580159061164c575b611642578b8665ffffffffffff60608401511610156116375791602061162b9260016116228c829761130d565b52015190611294565b965b01939291906114b9565b50509560019061162d565b509560019061162d565b508051156115f5565b61166d915060e03d8111610e3c57610e2e81836112a1565b386115dd565b9750505050505050565b845483526001948501948b94506020909301920161143c565b6000546001600160a01b03163303610f5357565b80548210156113215760005260206000200190600090565b80600052600a6020526040600020541560001461172e57600954600160401b811015610c96576117156116fe82600185940160095560096116aa565b819391549060031b91821b91600019901b19161790565b905560095490600052600a602052604060002055600190565b50600090565b80600052600c6020526040600020541560001461172e57600b54600160401b811015610c96576117706116fe826001859401600b55600b6116aa565b9055600b5490600052600c602052604060002055600190565b80600052600e6020526040600020541560001461172e57600d54600160401b811015610c96576117c56116fe826001859401600d55600d6116aa565b9055600d5490600052600e602052604060002055600190565b60405190600b548083528260208101600b60005260206000209260005b818110611812575050611810925003836112a1565b565b84548352600194850194879450602090930192016117fb565b604051906009548083528260208101600960005260206000209260005b81811061185d575050611810925003836112a1565b8454835260019485019487945060209093019201611848565b6000818152600a602052604090205480156119405760001981018181116105175760095460001981019190821161051757818103611906575b50505060095480156118f057600019016118ca8160096116aa565b8154906000199060031b1b19169055600955600052600a60205260006040812055600190565b634e487b7160e01b600052603160045260246000fd5b6119286119176116fe9360096116aa565b90549060031b1c92839260096116aa565b9055600052600a6020526040600020553880806118af565b5050600090565b6000818152600c6020526040902054801561194057600019810181811161051757600b54600019810191908211610517578181036119c1575b505050600b5480156118f0576000190161199b81600b6116aa565b8154906000199060031b1b19169055600b55600052600c60205260006040812055600190565b6119e36119d26116fe93600b6116aa565b90549060031b1c928392600b6116aa565b9055600052600c602052604060002055388080611980565b6000818152600e6020526040902054801561194057600019810181811161051757600d5460001981019190821161051757818103611a75575b505050600d5480156118f05760001901611a4f81600d6116aa565b8154906000199060031b1b19169055600d55600052600e60205260006040812055600190565b611a97611a866116fe93600d6116aa565b90549060031b1c928392600d6116aa565b9055600052600e602052604060002055388080611a34565b90611ad55750805115611ac457805190602001fd5b630a12f52160e11b60005260046000fd5b81511580611b07575b611ae6575090565b639996b31560e01b60009081526001600160a01b0391909116600452602490fd5b50803b15611ade56fea26469706673582212207478ca9ba862561d7bd2e1049073ca4f0a550b1bf2d1cd2326eeb685416a413f64736f6c634300081a00330000000000000000000000007e7061905e6105eb6b2c8bac5bb44733d5a02d1a

Deployed Bytecode

0x6080604052600436101561001257600080fd5b60003560e01c80630ebd942f146111365780630ff743ef146110fc578063121420aa146110d65780632fb8c5d6146110ba5780633b2e56531461109c578063715018a61461103757806378bc861b14610f6857806379ba509714610edf5780637fe56d4b14610a325780638da5cb5b14610a095780639b5c641b146109375780639e39020814610844578063aaacdda014610826578063b5fd73f8146107e7578063b81b8630146107ad578063bd9c190d14610745578063c4f59f9b14610719578063c65af62214610388578063cabdf36b14610327578063d01dd6d2146102a1578063d6d11ad814610205578063e30c3978146101dc578063f2fde38b146101685763fe575a871461012457600080fd5b34610163576020366003190112610163576001600160a01b036101456111c6565b166000526005602052602060ff604060002054166040519015158152f35b600080fd5b34610163576020366003190112610163576101816111c6565b610189611696565b60018060a01b0316806bffffffffffffffffffffffff60a01b600154161760015560018060a01b03600054167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700600080a3005b34610163576000366003190112610163576001546040516001600160a01b039091168152602090f35b346101635760403660031901126101635761021e6111c6565b6024359067ffffffffffffffff82116101635761024c90610246610260933690600401611253565b91611417565b60405192839260408452604084019061121f565b82810360208401526020808351928381520192019060005b818110610286575050500390f35b82511515845285945060209384019390920191600101610278565b34610163576040366003190112610163576102ba6111c6565b60243580151591828203610163576102d0611696565b6001600160a01b03169182156103165782600052600560205260406000209060ff8019835416911617905560001461030d5761030b90611789565b005b61030b906119fb565b63d92e233d60e01b60005260046000fd5b34610163576040366003190112610163576103406111c6565b602435906001600160a01b03821682036101635760018060a01b0316600052600660205260406000209060018060a01b03166000526020526020604060002054604051908152f35b34610163576000366003190112610163576103a4600254611284565b42106107085742600255600354600019811461051757600101600355600b5480610698575b50600d5460405163af4fb76360e01b8152602081600481732614f29c39de46468a921fd0b41fdd99a01f2edf5afa90811561056157600091610666575b50908061056d575b5060095461041a61182b565b60005b82811061044b577fd81aeda34236c43c3989584a50407248fc6b50016cdb162887ccfc5426559602600080a1005b6001600160a01b0361045d828461130d565b51166040516370a0823160e01b8152306004820152602081602481855afa9081156105615760009161052d575b5081600052600760205260406000205481106000146104be5750906001916000526008602052600060408120555b0161041d565b670de0b6b3a7640000810290808204670de0b6b3a7640000149015171561051757600086156105035750908560019392049060005260086020526040600020556104b8565b634e487b7160e01b81526012600452602490fd5b634e487b7160e01b600052601160045260246000fd5b906020823d8211610559575b81610546602093836112a1565b810103126105565750518661048a565b80fd5b3d9150610539565b6040513d6000823e3d90fd5b60405190600d548083526020830190600d60005260206000209060005b81811061065057505050826105a09103836112a1565b6000915b8183106105b257505061040e565b91929091906001600160a01b036105c9858461130d565b51604051639a5a6cd960e01b815291166004820152602081602481732614f29c39de46468a921fd0b41fdd99a01f2edf5afa9081156105615760009161061f575b508103908111610517579260010191906105a4565b906020823d8211610648575b81610638602093836112a1565b810103126105565750518561060a565b3d915061062b565b825484526020909301926001928301920161058a565b90506020813d602011610690575b81610681602093836112a1565b81010312610163575182610406565b3d9150610674565b6106a06117de565b9060005b8181106106b25750506103c9565b6001906107016001600160a01b036106ca838761130d565b5116806000526004602052604060002060ff1981541690556106eb81611876565b5080600052600860205260006040812055611947565b50016106a4565b632d451c8d60e21b60005260046000fd5b346101635760003660031901126101635761074161073561182b565b604051918291826111dc565b0390f35b346101635760403660031901126101635761075e6111c6565b610766611696565b6001600160a01b031660008181526004602052604090205460ff161561079c576000526007602052602435604060002055600080f35b63804543b560e01b60005260046000fd5b34610163576020366003190112610163576001600160a01b036107ce6111c6565b1660005260086020526020604060002054604051908152f35b34610163576020366003190112610163576001600160a01b036108086111c6565b166000526004602052602060ff604060002054166040519015158152f35b34610163576000366003190112610163576020600354604051908152f35b346101635760003660031901126101635760095461086061182b565b9061086a816112db565b9160005b82811061088b57604051602080825281906107419082018761121f565b6001600160a01b0361089d828461130d565b516040516370a0823160e01b8152306004820152929116602083602481845afa90811561056157600091610901575b60019350600052600760205260406000205481106000146108fc575060005b6108f5828761130d565b520161086e565b6108eb565b9192906020823d821161092f575b8161091c602093836112a1565b81010312610556575051600192916108cc565b3d915061090f565b34610163576020366003190112610163576109506111c6565b610958611696565b6040516370a0823160e01b81523060048201526001600160a01b039190911690602081602481855afa908115610561576000916109d7575b5081600052600760205260406000205411156109c65780600052600460205260ff604060002054161561079c5761030b90611734565b632b0039c760e21b60005260046000fd5b90506020813d602011610a01575b816109f2602093836112a1565b81010312610163575182610990565b3d91506109e5565b34610163576000366003190112610163576000546040516001600160a01b039091168152602090f35b346101635760603660031901126101635760043567ffffffffffffffff811161016357610a63903690600401611253565b60243567ffffffffffffffff811161016357610a83903690600401611253565b9290604435906001600160a01b03821680830361016357156103165733600052600560205260ff60406000205416610ece57936002546000956000806000916000916000965b808810610ceb578b8b8b8b8315610cb857600354610ae6846112db565b9360005b818110610b2c5760405180610741887f68e2c7e09a4a7d4fed2367771ceaa06623fb2e3f8b90065b2473b3f9752f9968600080a160208352602083019061121f565b610b37818387611337565b356001600160a01b038116908190036101635780600052600460205260ff604060002054161561079c5780600052600860205260406000205480158015610cc9575b610cb857610b9089670de0b6b3a764000092611404565b60405163a9059cbb60e01b602082019081526001600160a01b038916602483015292909104604480830182905282529291600091829190610bd26064826112a1565b519082855af13d15610cac573d67ffffffffffffffff8111610c9657610c1b9160405191610c0a6020601f19601f84011601846112a1565b82523d6000602084013e5b83611aaf565b8051908115159182610c72575b5050610c5e5790846040600194933360005260066020528160002060009182526020522055610c57828961130d565b5201610aea565b635274afe760e01b60005260045260246000fd5b81925090602091810103126101635760200151801590811503610163578a80610c28565b634e487b7160e01b600052604160045260246000fd5b610c1b90606090610c15565b632fc532ad60e11b60005260046000fd5b5033600052600660205284604080600020600090858252602052205414610b79565b909192939495969a610cfe8c8389611337565b35946103e88611610ebd5792600160ff87161b908086898760088b901c80610e54575050505050818116610e4357610d629160e09117945b60405162572fd560e11b8152336004820152602481019890985297949694959491829081906044820190565b0381732614f29c39de46468a921fd0b41fdd99a01f2edf5afa90811561056157600091610e15575b5060c08101516003811015610dff5760009015801590610df6575b610de757508865ffffffffffff6060830151161015610ddd576001916020610dcf92015190611294565b9b5b01969594929390610ac9565b509a600190610dd1565b630217669b60e31b8152600490fd5b50815115610da5565b634e487b7160e01b600052602160045260246000fd5b610e36915060e03d8111610e3c575b610e2e81836112a1565b81019061135a565b8d610d8a565b503d610e24565b637df98a3f60e11b60005260046000fd5b98999398929450909160018103610e7e5750505050818116610e4357610d629160e0911795610d36565b989a929891935090600203610ea4575050818116610e4357610d629160e0911797610d36565b8391995080925016610e4357610d629160e09117610d36565b6339593acb60e21b60005260046000fd5b637d28af3f60e01b60005260046000fd5b3461016357600036600319011261016357600154336001600160a01b0390911603610f5357600180546001600160a01b03199081169091556000805433928116831782556001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3005b63118cdaa760e01b6000523360045260246000fd5b3461016357600036600319011261016357600954610f8461182b565b90610f8e816112db565b9160005b828110610faf57604051602080825281906107419082018761121f565b602460206001600160a01b03610fc5848661130d565b5116604051928380926370a0823160e01b82523060048301525afa90811561056157600091611005575b5090600191610ffe828761130d565b5201610f92565b906020823d821161102f575b8161101e602093836112a1565b810103126105565750516001610fef565b3d9150611011565b3461016357600036600319011261016357611050611696565b600180546001600160a01b0319908116909155600080549182168155906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b34610163576000366003190112610163576020600254604051908152f35b34610163576000366003190112610163576107416107356117de565b346101635760003660031901126101635760206110f4600254611284565b604051908152f35b34610163576020366003190112610163576001600160a01b0361111d6111c6565b1660005260076020526020604060002054604051908152f35b346101635760403660031901126101635761114f6111c6565b6024359061115b611696565b6001600160a01b031680156103165781156111b557611179816116c2565b156111a4576000908152600460209081526040808320805460ff191660011790556007909152902055005b631c3610d960e21b60005260046000fd5b63af458c0760e01b60005260046000fd5b600435906001600160a01b038216820361016357565b602060408183019282815284518094520192019060005b8181106112005750505090565b82516001600160a01b03168452602093840193909201916001016111f3565b906020808351928381520192019060005b81811061123d5750505090565b8251845260209384019390920191600101611230565b9181601f840112156101635782359167ffffffffffffffff8311610163576020808501948460051b01011161016357565b906224ea00820180921161051757565b9190820180921161051757565b90601f8019910116810190811067ffffffffffffffff821117610c9657604052565b67ffffffffffffffff8111610c965760051b60200190565b906112e5826112c3565b6112f260405191826112a1565b8281528092611303601f19916112c3565b0190602036910137565b80518210156113215760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b91908110156113215760051b0190565b519065ffffffffffff8216820361016357565b908160e09103126101635760006040519160e0830183811067ffffffffffffffff8211176113f0576040528051835260208101516020840152604081015161ffff811681036113ec57604084015260c0906113b760608201611347565b60608501526113c860808201611347565b608085015260a081015160a08501520151906003821015610556575060c082015290565b8280fd5b634e487b7160e01b83526041600452602483fd5b8181029291811591840414171561051757565b9290919260095490604051946009548087528660208101600960005260206000209260005b81811061167d575050611451925003876112a1565b61145a836112db565b95611464826112c3565b9261147260405194856112a1565b828452601f19611481846112c3565b01366020860137839660018060a01b0382169485600052600560205260ff604060002054166116735750600293919354906000946000935b808510611572575050505050811561156c5760005b8481106114dc575050505050565b600190836001600160a01b036114f2838661130d565b5116806000526008602052604060002054908115908115611540575b5061153957670de0b6b3a76400009161152691611404565b04611531828b61130d565b525b016114ce565b5050611533565b6040915088600052600660205281600020600091878060a01b031682526020522054600354143861150e565b50505050565b90919293956115b560e0611587898588611337565b60405162572fd560e11b81526001600160a01b03871660048201529035602482015291829081906044820190565b0381732614f29c39de46468a921fd0b41fdd99a01f2edf5afa90811561056157600091611655575b5060c08101516003811015610dff571580159061164c575b611642578b8665ffffffffffff60608401511610156116375791602061162b9260016116228c829761130d565b52015190611294565b965b01939291906114b9565b50509560019061162d565b509560019061162d565b508051156115f5565b61166d915060e03d8111610e3c57610e2e81836112a1565b386115dd565b9750505050505050565b845483526001948501948b94506020909301920161143c565b6000546001600160a01b03163303610f5357565b80548210156113215760005260206000200190600090565b80600052600a6020526040600020541560001461172e57600954600160401b811015610c96576117156116fe82600185940160095560096116aa565b819391549060031b91821b91600019901b19161790565b905560095490600052600a602052604060002055600190565b50600090565b80600052600c6020526040600020541560001461172e57600b54600160401b811015610c96576117706116fe826001859401600b55600b6116aa565b9055600b5490600052600c602052604060002055600190565b80600052600e6020526040600020541560001461172e57600d54600160401b811015610c96576117c56116fe826001859401600d55600d6116aa565b9055600d5490600052600e602052604060002055600190565b60405190600b548083528260208101600b60005260206000209260005b818110611812575050611810925003836112a1565b565b84548352600194850194879450602090930192016117fb565b604051906009548083528260208101600960005260206000209260005b81811061185d575050611810925003836112a1565b8454835260019485019487945060209093019201611848565b6000818152600a602052604090205480156119405760001981018181116105175760095460001981019190821161051757818103611906575b50505060095480156118f057600019016118ca8160096116aa565b8154906000199060031b1b19169055600955600052600a60205260006040812055600190565b634e487b7160e01b600052603160045260246000fd5b6119286119176116fe9360096116aa565b90549060031b1c92839260096116aa565b9055600052600a6020526040600020553880806118af565b5050600090565b6000818152600c6020526040902054801561194057600019810181811161051757600b54600019810191908211610517578181036119c1575b505050600b5480156118f0576000190161199b81600b6116aa565b8154906000199060031b1b19169055600b55600052600c60205260006040812055600190565b6119e36119d26116fe93600b6116aa565b90549060031b1c928392600b6116aa565b9055600052600c602052604060002055388080611980565b6000818152600e6020526040902054801561194057600019810181811161051757600d5460001981019190821161051757818103611a75575b505050600d5480156118f05760001901611a4f81600d6116aa565b8154906000199060031b1b19169055600d55600052600e60205260006040812055600190565b611a97611a866116fe93600d6116aa565b90549060031b1c928392600d6116aa565b9055600052600e602052604060002055388080611a34565b90611ad55750805115611ac457805190602001fd5b630a12f52160e11b60005260046000fd5b81511580611b07575b611ae6575090565b639996b31560e01b60009081526001600160a01b0391909116600452602490fd5b50803b15611ade56fea26469706673582212207478ca9ba862561d7bd2e1049073ca4f0a550b1bf2d1cd2326eeb685416a413f64736f6c634300081a0033

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

0000000000000000000000007e7061905e6105eb6b2c8bac5bb44733d5a02d1a

-----Decoded View---------------
Arg [0] : _owner (address): 0x7e7061905E6105eB6b2c8BaC5BB44733d5A02d1a

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


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
Loading...
Loading
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.