GLMR Price: $0.020825 (-2.08%)

Contract

0xb7F7AA1E5Ef65E6c60b6601E20749AF61ce3073A

Overview

GLMR Balance

Moonbeam Chain LogoMoonbeam Chain LogoMoonbeam Chain Logo0 GLMR

GLMR Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Withdraw133389602025-11-14 7:06:3673 days ago1763103996IN
0xb7F7AA1E...61ce3073A
0 GLMR0.00197631.25
Withdraw133389542025-11-14 7:06:0673 days ago1763103966IN
0xb7F7AA1E...61ce3073A
0 GLMR0.00197631.25
Unstake133389402025-11-14 7:04:0673 days ago1763103846IN
0xb7F7AA1E...61ce3073A
0 GLMR0.0045932531.25
Unstake133389252025-11-14 7:02:4273 days ago1763103762IN
0xb7F7AA1E...61ce3073A
0 GLMR0.00197631.25
Unstake133389082025-11-14 7:00:3073 days ago1763103630IN
0xb7F7AA1E...61ce3073A
0 GLMR0.0045932531.25
Stake132041752025-11-03 9:39:3684 days ago1762162776IN
0xb7F7AA1E...61ce3073A
0 GLMR0.0044831.25
Stake132041652025-11-03 9:38:4284 days ago1762162722IN
0xb7F7AA1E...61ce3073A
0 GLMR0.0044831.25
Unstake132041222025-11-03 9:32:3084 days ago1762162350IN
0xb7F7AA1E...61ce3073A
0 GLMR0.0045932531.25
Stake132039602025-11-03 9:13:0684 days ago1762161186IN
0xb7F7AA1E...61ce3073A
0 GLMR0.0044831.25
Stake130697162025-10-23 11:02:4894 days ago1761217368IN
0xb7F7AA1E...61ce3073A
0 GLMR0.0044831.25
Unstake130696822025-10-23 10:58:5495 days ago1761217134IN
0xb7F7AA1E...61ce3073A
0 GLMR0.0045932531.25
Stake130033062025-10-17 22:04:54100 days ago1760738694IN
0xb7F7AA1E...61ce3073A
0 GLMR0.0044831.25
Stake128649102025-10-06 11:35:42111 days ago1759750542IN
0xb7F7AA1E...61ce3073A
0 GLMR0.0044797531.25
Unstake128501252025-10-05 6:47:12113 days ago1759646832IN
0xb7F7AA1E...61ce3073A
0 GLMR0.00459331.25
Stake128451592025-10-04 21:13:30113 days ago1759612410IN
0xb7F7AA1E...61ce3073A
0 GLMR0.00530731.25
Stake128281022025-10-03 11:37:12114 days ago1759491432IN
0xb7F7AA1E...61ce3073A
0 GLMR0.0044797531.25
Stake128255102025-10-03 6:36:24115 days ago1759473384IN
0xb7F7AA1E...61ce3073A
0 GLMR0.0044797531.25
Unstake128254942025-10-03 6:34:48115 days ago1759473288IN
0xb7F7AA1E...61ce3073A
0 GLMR0.00459331.25
Stake127350132025-09-25 19:49:06122 days ago1758829746IN
0xb7F7AA1E...61ce3073A
0 GLMR0.0044797531.25
Stake127349962025-09-25 19:46:18122 days ago1758829578IN
0xb7F7AA1E...61ce3073A
0 GLMR0.00530731.25
Stake127088482025-09-23 16:25:36124 days ago1758644736IN
0xb7F7AA1E...61ce3073A
0 GLMR0.0044797531.25
Stake126339252025-09-17 20:19:30130 days ago1758140370IN
0xb7F7AA1E...61ce3073A
0 GLMR0.0044797531.25
Unstake118981852025-07-26 21:06:12183 days ago1753563972IN
0xb7F7AA1E...61ce3073A
0 GLMR0.00459331.25
Unstake118393122025-07-22 17:16:18187 days ago1753204578IN
0xb7F7AA1E...61ce3073A
0 GLMR0.00459331.25
Stake117225382025-07-14 11:40:48195 days ago1752493248IN
0xb7F7AA1E...61ce3073A
0 GLMR0.0044797531.25
View all transactions

View more zero value Internal Transactions in Advanced View mode

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NctrStaking

Compiler Version
v0.8.28+commit.7893614a

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.28;

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

contract NctrStaking is Ownable {
    using SafeERC20 for IERC20;

    IERC20 public immutable stakingToken;
    address public rewardWallet;
    uint256 public APY = 20;
    uint256 public MIN_STAKE_DURATION = 90 days;
    uint256 public MIN_STAKE_AMOUNT = 500 * 10 ** 18;

    struct Stake {
        uint256 amount;
        uint256 startTime;
        bool active;
        uint256 reward;
    }

    mapping(address => Stake[]) internal stakes;

    event Staked(address indexed user, uint256 amount);
    event Unstaked(address indexed user, uint256 amount, uint256 reward);
    event Withdrawn(address indexed user, uint256 amount);

    constructor(IERC20 _stakingToken, address _rewardWallet) Ownable(msg.sender) {
        stakingToken = _stakingToken;
        rewardWallet = _rewardWallet;
    }

    function setAPY(uint256 newAPY) external onlyOwner {
        require(newAPY > 0, "APY must be greater than 0");
        APY = newAPY;
    }

    function setMinStakeAmount(uint256 newMinStakeAmount) external onlyOwner {
        require(
            newMinStakeAmount > 0,
            "Min stake amount must be greater than 0"
        );
        MIN_STAKE_AMOUNT = newMinStakeAmount;
    }

    function setMinStakeDuration(
        uint256 newMinStakeDuration
    ) external onlyOwner {
        require(
            newMinStakeDuration > 0,
            "Min stake duration must be greater than 0"
        );
        MIN_STAKE_DURATION = newMinStakeDuration;
    }

    function stake(uint256 amount) external {
        require(amount >= MIN_STAKE_AMOUNT, "Amount below minimum stake");

        stakingToken.safeTransferFrom(msg.sender, address(this), amount);

        stakes[msg.sender].push(Stake(amount, block.timestamp, true, 0));

        emit Staked(msg.sender, amount);
    }

    function allStakes(address user) external view returns (Stake[] memory) {
        Stake[] memory userStakes = stakes[user];

        for (uint256 i = 0; i < userStakes.length; i++) {
            userStakes[i].reward = _calculateReward(userStakes[i]);
        }

        return userStakes;
    }

    function unstake(uint256 stakeIndex) external {
        Stake[] storage userStakes = stakes[msg.sender];
        require(stakeIndex < userStakes.length, "Invalid stake index");

        Stake storage selectedStake = userStakes[stakeIndex];
        require(selectedStake.active, "Stake already unstaked");
        require(
            block.timestamp >= selectedStake.startTime + MIN_STAKE_DURATION,
            "Stake duration not met"
        );
        require(selectedStake.amount > 0, "Invalid unstake amount");

        uint256 reward = _calculateReward(selectedStake);
        require(reward > 0, "No reward to claim");

        selectedStake.active = false;

        // Transfer the initial deposit back to the user from the contract
        stakingToken.safeTransfer(msg.sender, selectedStake.amount);
        // Transfer the reward from the reward wallet to the user
        stakingToken.safeTransferFrom(rewardWallet, msg.sender, reward);

        emit Unstaked(msg.sender, selectedStake.amount, reward);
    }

    function withdraw(uint256 stakeIndex) external {
        Stake[] storage userStakes = stakes[msg.sender];
        require(stakeIndex < userStakes.length, "Invalid stake index");

        Stake storage selectedStake = userStakes[stakeIndex];
        require(selectedStake.active, "Stake already withdrawn");
        require(
            block.timestamp >= selectedStake.startTime + MIN_STAKE_DURATION,
            "Stake duration not met"
        );
        require(selectedStake.amount > 0, "Invalid withdraw amount");

        selectedStake.active = false;

        // Transfer the initial deposit back to the user from the contract
        stakingToken.safeTransfer(msg.sender, selectedStake.amount);

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

    function _calculateReward(
        Stake memory stakeData
    ) internal view returns (uint256) {
        if (!stakeData.active) {
            return 0;
        }
        uint256 stakingDuration = block.timestamp - stakeData.startTime;
        return (stakeData.amount * APY * stakingDuration) / (365 days * 100);
    }
}

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

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.20;

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

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

pragma solidity ^0.8.20;

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

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

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.20;

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

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

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

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

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

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     *
     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
     * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
     * set here.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

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

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

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

    /**
     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
     * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
     * once without retrying, and relies on the returned value to be true.
     *
     * Reverts if the returned value is other than `true`.
     */
    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            forceApprove(token, to, value);
        } else if (!token.approveAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            // bubble errors
            if iszero(success) {
                let ptr := mload(0x40)
                returndatacopy(ptr, 0, returndatasize())
                revert(ptr, returndatasize())
            }
            returnSize := returndatasize()
            returnValue := mload(0)
        }

        if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        bool success;
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            returnSize := returndatasize()
            returnValue := mload(0)
        }
        return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
    }
}

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

pragma solidity ^0.8.20;

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

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

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract IERC20","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_rewardWallet","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"Unstaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"APY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_STAKE_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_STAKE_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"allStakes","outputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"uint256","name":"reward","type":"uint256"}],"internalType":"struct NctrStaking.Stake[]","name":"","type":"tuple[]"}],"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":"rewardWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAPY","type":"uint256"}],"name":"setAPY","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMinStakeAmount","type":"uint256"}],"name":"setMinStakeAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMinStakeDuration","type":"uint256"}],"name":"setMinStakeDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"stakeIndex","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"stakeIndex","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405260146002556276a700600355681b1ae4d6e2ef50000060045534801561002957600080fd5b50604051611e53380380611e53833981810160405281019061004b91906102af565b33600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036100be5760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016100b591906102fe565b60405180910390fd5b6100cd8161014a60201b60201c565b508173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff168152505080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050610319565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061023e82610213565b9050919050565b600061025082610233565b9050919050565b61026081610245565b811461026b57600080fd5b50565b60008151905061027d81610257565b92915050565b61028c81610233565b811461029757600080fd5b50565b6000815190506102a981610283565b92915050565b600080604083850312156102c6576102c561020e565b5b60006102d48582860161026e565b92505060206102e58582860161029a565b9150509250929050565b6102f881610233565b82525050565b600060208201905061031360008301846102ef565b92915050565b608051611b036103506000396000818161055d015281816105cb0152818161082c015281816108dd01526109750152611b036000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c8063a694fc3a11610097578063eb4af04511610066578063eb4af04514610238578063ef8bd30514610254578063f2fde38b14610272578063fb75b2c71461028e576100f5565b8063a694fc3a146101b2578063aafc5d47146101ce578063c01d0999146101ea578063e0c570ba1461021a576100f5565b80632e1a7d4d116100d35780632e1a7d4d14610150578063715018a61461016c57806372f702f3146101765780638da5cb5b14610194576100f5565b806324f45e67146100fa57806327ed7188146101165780632e17de7814610134575b600080fd5b610114600480360381019061010f9190611105565b6102ac565b005b61011e610301565b60405161012b9190611141565b60405180910390f35b61014e60048036038101906101499190611105565b610307565b005b61016a60048036038101906101659190611105565b61066a565b005b6101746108c7565b005b61017e6108db565b60405161018b91906111db565b60405180910390f35b61019c6108ff565b6040516101a99190611217565b60405180910390f35b6101cc60048036038101906101c79190611105565b610928565b005b6101e860048036038101906101e39190611105565b610ad8565b005b61020460048036038101906101ff919061125e565b610b2d565b60405161021191906113b9565b60405180910390f35b610222610c6a565b60405161022f9190611141565b60405180910390f35b610252600480360381019061024d9190611105565b610c70565b005b61025c610cc5565b6040516102699190611141565b60405180910390f35b61028c6004803603810190610287919061125e565b610ccb565b005b610296610d51565b6040516102a39190611217565b60405180910390f35b6102b4610d77565b600081116102f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102ee90611438565b60405180910390fd5b8060028190555050565b60045481565b6000600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905080805490508210610390576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610387906114a4565b60405180910390fd5b60008183815481106103a5576103a46114c4565b5b906000526020600020906004020190508060020160009054906101000a900460ff16610406576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103fd9061153f565b60405180910390fd5b6003548160010154610418919061158e565b42101561045a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104519061160e565b60405180910390fd5b60008160000154116104a1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104989061167a565b60405180910390fd5b60006104f08260405180608001604052908160008201548152602001600182015481526020016002820160009054906101000a900460ff16151515158152602001600382015481525050610dfe565b905060008111610535576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052c906116e6565b60405180910390fd5b60008260020160006101000a81548160ff0219169083151502179055506105a13383600001547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610e5b9092919063ffffffff16565b610610600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1633837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610eda909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f7fc4727e062e336010f2c282598ef5f14facb3de68cf8195c2f23e1454b2b74e83600001548360405161065c929190611706565b60405180910390a250505050565b6000600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050808054905082106106f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ea906114a4565b60405180910390fd5b6000818381548110610708576107076114c4565b5b906000526020600020906004020190508060020160009054906101000a900460ff16610769576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107609061177b565b60405180910390fd5b600354816001015461077b919061158e565b4210156107bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107b49061160e565b60405180910390fd5b6000816000015411610804576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107fb906117e7565b60405180910390fd5b60008160020160006101000a81548160ff0219169083151502179055506108703382600001547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610e5b9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d582600001546040516108ba9190611141565b60405180910390a2505050565b6108cf610d77565b6108d96000610f5c565b565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60045481101561096d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096490611853565b60405180910390fd5b6109ba3330837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610eda909392919063ffffffff16565b600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020604051806080016040528083815260200142815260200160011515815260200160008152509080600181540180825580915050600190039060005260206000209060040201600090919091909150600082015181600001556020820151816001015560408201518160020160006101000a81548160ff0219169083151502179055506060820151816003015550503373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d82604051610acd9190611141565b60405180910390a250565b610ae0610d77565b60008111610b23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1a906118e5565b60405180910390fd5b8060038190555050565b60606000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015610bfb578382906000526020600020906004020160405180608001604052908160008201548152602001600182015481526020016002820160009054906101000a900460ff1615151515815260200160038201548152505081526020019060010190610b90565b50505050905060005b8151811015610c6057610c30828281518110610c2357610c226114c4565b5b6020026020010151610dfe565b828281518110610c4357610c426114c4565b5b602002602001015160600181815250508080600101915050610c04565b5080915050919050565b60035481565b610c78610d77565b60008111610cbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb290611977565b60405180910390fd5b8060048190555050565b60025481565b610cd3610d77565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d455760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610d3c9190611217565b60405180910390fd5b610d4e81610f5c565b50565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610d7f611020565b73ffffffffffffffffffffffffffffffffffffffff16610d9d6108ff565b73ffffffffffffffffffffffffffffffffffffffff1614610dfc57610dc0611020565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610df39190611217565b60405180910390fd5b565b60008160400151610e125760009050610e56565b6000826020015142610e249190611997565b905063bbf81e00816002548560000151610e3e91906119cb565b610e4891906119cb565b610e529190611a3c565b9150505b919050565b610ed5838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8585604051602401610e8e929190611a6d565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611028565b505050565b610f56848573ffffffffffffffffffffffffffffffffffffffff166323b872dd868686604051602401610f0f93929190611a96565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611028565b50505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b600080602060008451602086016000885af18061104b576040513d6000823e3d81fd5b3d925060005191505060008214611066576001811415611082565b60008473ffffffffffffffffffffffffffffffffffffffff163b145b156110c457836040517f5274afe70000000000000000000000000000000000000000000000000000000081526004016110bb9190611217565b60405180910390fd5b50505050565b600080fd5b6000819050919050565b6110e2816110cf565b81146110ed57600080fd5b50565b6000813590506110ff816110d9565b92915050565b60006020828403121561111b5761111a6110ca565b5b6000611129848285016110f0565b91505092915050565b61113b816110cf565b82525050565b60006020820190506111566000830184611132565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006111a161119c6111978461115c565b61117c565b61115c565b9050919050565b60006111b382611186565b9050919050565b60006111c5826111a8565b9050919050565b6111d5816111ba565b82525050565b60006020820190506111f060008301846111cc565b92915050565b60006112018261115c565b9050919050565b611211816111f6565b82525050565b600060208201905061122c6000830184611208565b92915050565b61123b816111f6565b811461124657600080fd5b50565b60008135905061125881611232565b92915050565b600060208284031215611274576112736110ca565b5b600061128284828501611249565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6112c0816110cf565b82525050565b60008115159050919050565b6112db816112c6565b82525050565b6080820160008201516112f760008501826112b7565b50602082015161130a60208501826112b7565b50604082015161131d60408501826112d2565b50606082015161133060608501826112b7565b50505050565b600061134283836112e1565b60808301905092915050565b6000602082019050919050565b60006113668261128b565b6113708185611296565b935061137b836112a7565b8060005b838110156113ac5781516113938882611336565b975061139e8361134e565b92505060018101905061137f565b5085935050505092915050565b600060208201905081810360008301526113d3818461135b565b905092915050565b600082825260208201905092915050565b7f415059206d7573742062652067726561746572207468616e2030000000000000600082015250565b6000611422601a836113db565b915061142d826113ec565b602082019050919050565b6000602082019050818103600083015261145181611415565b9050919050565b7f496e76616c6964207374616b6520696e64657800000000000000000000000000600082015250565b600061148e6013836113db565b915061149982611458565b602082019050919050565b600060208201905081810360008301526114bd81611481565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f5374616b6520616c726561647920756e7374616b656400000000000000000000600082015250565b60006115296016836113db565b9150611534826114f3565b602082019050919050565b600060208201905081810360008301526115588161151c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611599826110cf565b91506115a4836110cf565b92508282019050808211156115bc576115bb61155f565b5b92915050565b7f5374616b65206475726174696f6e206e6f74206d657400000000000000000000600082015250565b60006115f86016836113db565b9150611603826115c2565b602082019050919050565b60006020820190508181036000830152611627816115eb565b9050919050565b7f496e76616c696420756e7374616b6520616d6f756e7400000000000000000000600082015250565b60006116646016836113db565b915061166f8261162e565b602082019050919050565b6000602082019050818103600083015261169381611657565b9050919050565b7f4e6f2072657761726420746f20636c61696d0000000000000000000000000000600082015250565b60006116d06012836113db565b91506116db8261169a565b602082019050919050565b600060208201905081810360008301526116ff816116c3565b9050919050565b600060408201905061171b6000830185611132565b6117286020830184611132565b9392505050565b7f5374616b6520616c72656164792077697468647261776e000000000000000000600082015250565b60006117656017836113db565b91506117708261172f565b602082019050919050565b6000602082019050818103600083015261179481611758565b9050919050565b7f496e76616c696420776974686472617720616d6f756e74000000000000000000600082015250565b60006117d16017836113db565b91506117dc8261179b565b602082019050919050565b60006020820190508181036000830152611800816117c4565b9050919050565b7f416d6f756e742062656c6f77206d696e696d756d207374616b65000000000000600082015250565b600061183d601a836113db565b915061184882611807565b602082019050919050565b6000602082019050818103600083015261186c81611830565b9050919050565b7f4d696e207374616b65206475726174696f6e206d75737420626520677265617460008201527f6572207468616e20300000000000000000000000000000000000000000000000602082015250565b60006118cf6029836113db565b91506118da82611873565b604082019050919050565b600060208201905081810360008301526118fe816118c2565b9050919050565b7f4d696e207374616b6520616d6f756e74206d757374206265206772656174657260008201527f207468616e203000000000000000000000000000000000000000000000000000602082015250565b60006119616027836113db565b915061196c82611905565b604082019050919050565b6000602082019050818103600083015261199081611954565b9050919050565b60006119a2826110cf565b91506119ad836110cf565b92508282039050818111156119c5576119c461155f565b5b92915050565b60006119d6826110cf565b91506119e1836110cf565b92508282026119ef816110cf565b91508282048414831517611a0657611a0561155f565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611a47826110cf565b9150611a52836110cf565b925082611a6257611a61611a0d565b5b828204905092915050565b6000604082019050611a826000830185611208565b611a8f6020830184611132565b9392505050565b6000606082019050611aab6000830186611208565b611ab86020830185611208565b611ac56040830184611132565b94935050505056fea2646970667358221220c0aa38e4a16b31c8535ec9e1172c920dfc886929beb711264446ebc3548c018b64736f6c634300081c0033000000000000000000000000ffffffff8a9736b44ebf188972725bed67bf694e0000000000000000000000001a64b581ee6bf7ab991ca627ab2cf5479dd6dc78

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100f55760003560e01c8063a694fc3a11610097578063eb4af04511610066578063eb4af04514610238578063ef8bd30514610254578063f2fde38b14610272578063fb75b2c71461028e576100f5565b8063a694fc3a146101b2578063aafc5d47146101ce578063c01d0999146101ea578063e0c570ba1461021a576100f5565b80632e1a7d4d116100d35780632e1a7d4d14610150578063715018a61461016c57806372f702f3146101765780638da5cb5b14610194576100f5565b806324f45e67146100fa57806327ed7188146101165780632e17de7814610134575b600080fd5b610114600480360381019061010f9190611105565b6102ac565b005b61011e610301565b60405161012b9190611141565b60405180910390f35b61014e60048036038101906101499190611105565b610307565b005b61016a60048036038101906101659190611105565b61066a565b005b6101746108c7565b005b61017e6108db565b60405161018b91906111db565b60405180910390f35b61019c6108ff565b6040516101a99190611217565b60405180910390f35b6101cc60048036038101906101c79190611105565b610928565b005b6101e860048036038101906101e39190611105565b610ad8565b005b61020460048036038101906101ff919061125e565b610b2d565b60405161021191906113b9565b60405180910390f35b610222610c6a565b60405161022f9190611141565b60405180910390f35b610252600480360381019061024d9190611105565b610c70565b005b61025c610cc5565b6040516102699190611141565b60405180910390f35b61028c6004803603810190610287919061125e565b610ccb565b005b610296610d51565b6040516102a39190611217565b60405180910390f35b6102b4610d77565b600081116102f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102ee90611438565b60405180910390fd5b8060028190555050565b60045481565b6000600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905080805490508210610390576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610387906114a4565b60405180910390fd5b60008183815481106103a5576103a46114c4565b5b906000526020600020906004020190508060020160009054906101000a900460ff16610406576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103fd9061153f565b60405180910390fd5b6003548160010154610418919061158e565b42101561045a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104519061160e565b60405180910390fd5b60008160000154116104a1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104989061167a565b60405180910390fd5b60006104f08260405180608001604052908160008201548152602001600182015481526020016002820160009054906101000a900460ff16151515158152602001600382015481525050610dfe565b905060008111610535576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052c906116e6565b60405180910390fd5b60008260020160006101000a81548160ff0219169083151502179055506105a13383600001547f000000000000000000000000ffffffff8a9736b44ebf188972725bed67bf694e73ffffffffffffffffffffffffffffffffffffffff16610e5b9092919063ffffffff16565b610610600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1633837f000000000000000000000000ffffffff8a9736b44ebf188972725bed67bf694e73ffffffffffffffffffffffffffffffffffffffff16610eda909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f7fc4727e062e336010f2c282598ef5f14facb3de68cf8195c2f23e1454b2b74e83600001548360405161065c929190611706565b60405180910390a250505050565b6000600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050808054905082106106f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ea906114a4565b60405180910390fd5b6000818381548110610708576107076114c4565b5b906000526020600020906004020190508060020160009054906101000a900460ff16610769576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107609061177b565b60405180910390fd5b600354816001015461077b919061158e565b4210156107bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107b49061160e565b60405180910390fd5b6000816000015411610804576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107fb906117e7565b60405180910390fd5b60008160020160006101000a81548160ff0219169083151502179055506108703382600001547f000000000000000000000000ffffffff8a9736b44ebf188972725bed67bf694e73ffffffffffffffffffffffffffffffffffffffff16610e5b9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d582600001546040516108ba9190611141565b60405180910390a2505050565b6108cf610d77565b6108d96000610f5c565b565b7f000000000000000000000000ffffffff8a9736b44ebf188972725bed67bf694e81565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60045481101561096d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096490611853565b60405180910390fd5b6109ba3330837f000000000000000000000000ffffffff8a9736b44ebf188972725bed67bf694e73ffffffffffffffffffffffffffffffffffffffff16610eda909392919063ffffffff16565b600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020604051806080016040528083815260200142815260200160011515815260200160008152509080600181540180825580915050600190039060005260206000209060040201600090919091909150600082015181600001556020820151816001015560408201518160020160006101000a81548160ff0219169083151502179055506060820151816003015550503373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d82604051610acd9190611141565b60405180910390a250565b610ae0610d77565b60008111610b23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1a906118e5565b60405180910390fd5b8060038190555050565b60606000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015610bfb578382906000526020600020906004020160405180608001604052908160008201548152602001600182015481526020016002820160009054906101000a900460ff1615151515815260200160038201548152505081526020019060010190610b90565b50505050905060005b8151811015610c6057610c30828281518110610c2357610c226114c4565b5b6020026020010151610dfe565b828281518110610c4357610c426114c4565b5b602002602001015160600181815250508080600101915050610c04565b5080915050919050565b60035481565b610c78610d77565b60008111610cbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb290611977565b60405180910390fd5b8060048190555050565b60025481565b610cd3610d77565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d455760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610d3c9190611217565b60405180910390fd5b610d4e81610f5c565b50565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610d7f611020565b73ffffffffffffffffffffffffffffffffffffffff16610d9d6108ff565b73ffffffffffffffffffffffffffffffffffffffff1614610dfc57610dc0611020565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610df39190611217565b60405180910390fd5b565b60008160400151610e125760009050610e56565b6000826020015142610e249190611997565b905063bbf81e00816002548560000151610e3e91906119cb565b610e4891906119cb565b610e529190611a3c565b9150505b919050565b610ed5838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8585604051602401610e8e929190611a6d565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611028565b505050565b610f56848573ffffffffffffffffffffffffffffffffffffffff166323b872dd868686604051602401610f0f93929190611a96565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611028565b50505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b600080602060008451602086016000885af18061104b576040513d6000823e3d81fd5b3d925060005191505060008214611066576001811415611082565b60008473ffffffffffffffffffffffffffffffffffffffff163b145b156110c457836040517f5274afe70000000000000000000000000000000000000000000000000000000081526004016110bb9190611217565b60405180910390fd5b50505050565b600080fd5b6000819050919050565b6110e2816110cf565b81146110ed57600080fd5b50565b6000813590506110ff816110d9565b92915050565b60006020828403121561111b5761111a6110ca565b5b6000611129848285016110f0565b91505092915050565b61113b816110cf565b82525050565b60006020820190506111566000830184611132565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006111a161119c6111978461115c565b61117c565b61115c565b9050919050565b60006111b382611186565b9050919050565b60006111c5826111a8565b9050919050565b6111d5816111ba565b82525050565b60006020820190506111f060008301846111cc565b92915050565b60006112018261115c565b9050919050565b611211816111f6565b82525050565b600060208201905061122c6000830184611208565b92915050565b61123b816111f6565b811461124657600080fd5b50565b60008135905061125881611232565b92915050565b600060208284031215611274576112736110ca565b5b600061128284828501611249565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6112c0816110cf565b82525050565b60008115159050919050565b6112db816112c6565b82525050565b6080820160008201516112f760008501826112b7565b50602082015161130a60208501826112b7565b50604082015161131d60408501826112d2565b50606082015161133060608501826112b7565b50505050565b600061134283836112e1565b60808301905092915050565b6000602082019050919050565b60006113668261128b565b6113708185611296565b935061137b836112a7565b8060005b838110156113ac5781516113938882611336565b975061139e8361134e565b92505060018101905061137f565b5085935050505092915050565b600060208201905081810360008301526113d3818461135b565b905092915050565b600082825260208201905092915050565b7f415059206d7573742062652067726561746572207468616e2030000000000000600082015250565b6000611422601a836113db565b915061142d826113ec565b602082019050919050565b6000602082019050818103600083015261145181611415565b9050919050565b7f496e76616c6964207374616b6520696e64657800000000000000000000000000600082015250565b600061148e6013836113db565b915061149982611458565b602082019050919050565b600060208201905081810360008301526114bd81611481565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f5374616b6520616c726561647920756e7374616b656400000000000000000000600082015250565b60006115296016836113db565b9150611534826114f3565b602082019050919050565b600060208201905081810360008301526115588161151c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611599826110cf565b91506115a4836110cf565b92508282019050808211156115bc576115bb61155f565b5b92915050565b7f5374616b65206475726174696f6e206e6f74206d657400000000000000000000600082015250565b60006115f86016836113db565b9150611603826115c2565b602082019050919050565b60006020820190508181036000830152611627816115eb565b9050919050565b7f496e76616c696420756e7374616b6520616d6f756e7400000000000000000000600082015250565b60006116646016836113db565b915061166f8261162e565b602082019050919050565b6000602082019050818103600083015261169381611657565b9050919050565b7f4e6f2072657761726420746f20636c61696d0000000000000000000000000000600082015250565b60006116d06012836113db565b91506116db8261169a565b602082019050919050565b600060208201905081810360008301526116ff816116c3565b9050919050565b600060408201905061171b6000830185611132565b6117286020830184611132565b9392505050565b7f5374616b6520616c72656164792077697468647261776e000000000000000000600082015250565b60006117656017836113db565b91506117708261172f565b602082019050919050565b6000602082019050818103600083015261179481611758565b9050919050565b7f496e76616c696420776974686472617720616d6f756e74000000000000000000600082015250565b60006117d16017836113db565b91506117dc8261179b565b602082019050919050565b60006020820190508181036000830152611800816117c4565b9050919050565b7f416d6f756e742062656c6f77206d696e696d756d207374616b65000000000000600082015250565b600061183d601a836113db565b915061184882611807565b602082019050919050565b6000602082019050818103600083015261186c81611830565b9050919050565b7f4d696e207374616b65206475726174696f6e206d75737420626520677265617460008201527f6572207468616e20300000000000000000000000000000000000000000000000602082015250565b60006118cf6029836113db565b91506118da82611873565b604082019050919050565b600060208201905081810360008301526118fe816118c2565b9050919050565b7f4d696e207374616b6520616d6f756e74206d757374206265206772656174657260008201527f207468616e203000000000000000000000000000000000000000000000000000602082015250565b60006119616027836113db565b915061196c82611905565b604082019050919050565b6000602082019050818103600083015261199081611954565b9050919050565b60006119a2826110cf565b91506119ad836110cf565b92508282039050818111156119c5576119c461155f565b5b92915050565b60006119d6826110cf565b91506119e1836110cf565b92508282026119ef816110cf565b91508282048414831517611a0657611a0561155f565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611a47826110cf565b9150611a52836110cf565b925082611a6257611a61611a0d565b5b828204905092915050565b6000604082019050611a826000830185611208565b611a8f6020830184611132565b9392505050565b6000606082019050611aab6000830186611208565b611ab86020830185611208565b611ac56040830184611132565b94935050505056fea2646970667358221220c0aa38e4a16b31c8535ec9e1172c920dfc886929beb711264446ebc3548c018b64736f6c634300081c0033

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

000000000000000000000000ffffffff8a9736b44ebf188972725bed67bf694e0000000000000000000000001a64b581ee6bf7ab991ca627ab2cf5479dd6dc78

-----Decoded View---------------
Arg [0] : _stakingToken (address): 0xFfFFfFfF8A9736B44EbF188972725bED67BF694E
Arg [1] : _rewardWallet (address): 0x1a64B581Ee6bf7Ab991ca627AB2CF5479dd6dC78

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000ffffffff8a9736b44ebf188972725bed67bf694e
Arg [1] : 0000000000000000000000001a64b581ee6bf7ab991ca627ab2cf5479dd6dc78


Block Transaction Gas Used Reward
view all blocks collator

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.