ETH Price: $3,307.18 (-1.02%)
Gas: 0.08 Gwei
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Unstake240235742025-12-16 7:07:5931 days ago1765868879IN
0x74eEe699...Fe7655830
0 ETH0.000002450.03359409
Unstake239178232025-12-01 9:45:1146 days ago1764582311IN
0x74eEe699...Fe7655830
0 ETH0.000003620.03635197
Unstake237007742025-11-01 0:01:3576 days ago1761955295IN
0x74eEe699...Fe7655830
0 ETH0.000002690.0804101
Request Unstake237007682025-11-01 0:00:2376 days ago1761955223IN
0x74eEe699...Fe7655830
0 ETH0.000072471.5820414
Unstake237006602025-10-31 23:38:4776 days ago1761953927IN
0x74eEe699...Fe7655830
0 ETH0.000002660.08
Unstake236967352025-10-31 10:27:2377 days ago1761906443IN
0x74eEe699...Fe7655830
0 ETH0.000004020.12036402
Unstake236967032025-10-31 10:20:5977 days ago1761906059IN
0x74eEe699...Fe7655830
0 ETH0.000004330.12962571
Request Unstake236967022025-10-31 10:20:4777 days ago1761906047IN
0x74eEe699...Fe7655830
0 ETH0.000003370.13108068
Request Unstake236966642025-10-31 10:13:1177 days ago1761905591IN
0x74eEe699...Fe7655830
0 ETH0.000005390.11783267
Unstake235610822025-10-12 10:35:1196 days ago1760265311IN
0x74eEe699...Fe7655830
0 ETH0.000133981.62018432
Unstake235609492025-10-12 10:08:3596 days ago1760263715IN
0x74eEe699...Fe7655830
0 ETH0.000162681.63079535
Unstake235519442025-10-11 3:57:1197 days ago1760155031IN
0x74eEe699...Fe7655830
0 ETH0.000135961.451652
Unstake235186612025-10-06 12:14:35102 days ago1759752875IN
0x74eEe699...Fe7655830
0 ETH0.000100781.37902928
Claim Rewards235186522025-10-06 12:12:47102 days ago1759752767IN
0x74eEe699...Fe7655830
0 ETH0.000057081.37849396
Unstake235072032025-10-04 21:49:47103 days ago1759614587IN
0x74eEe699...Fe7655830
0 ETH0.000093241.12734909
Unstake235071942025-10-04 21:47:59103 days ago1759614479IN
0x74eEe699...Fe7655830
0 ETH0.000092521.1186791
Unstake235071922025-10-04 21:47:35103 days ago1759614455IN
0x74eEe699...Fe7655830
0 ETH0.000091861.11076309
Unstake235071092025-10-04 21:30:59103 days ago1759613459IN
0x74eEe699...Fe7655830
0 ETH0.000092281.11690376
Unstake234495022025-09-26 20:13:59111 days ago1758917639IN
0x74eEe699...Fe7655830
0 ETH0.000131691.80173671
Unstake234413162025-09-25 16:42:47112 days ago1758818567IN
0x74eEe699...Fe7655830
0 ETH0.000267922.97048627
Claim Rewards233425232025-09-11 21:32:23126 days ago1757626343IN
0x74eEe699...Fe7655830
0 ETH0.000053681.17171508
Request Unstake233393502025-09-11 10:54:11127 days ago1757588051IN
0x74eEe699...Fe7655830
0 ETH0.000056971.24375483
Request Unstake232013552025-08-23 4:19:35146 days ago1755922775IN
0x74eEe699...Fe7655830
0 ETH0.000079191.72881226
Unstake231640702025-08-17 23:29:35151 days ago1755473375IN
0x74eEe699...Fe7655830
0 ETH0.000003660.10958765
Request Unstake231640572025-08-17 23:26:59151 days ago1755473219IN
0x74eEe699...Fe7655830
0 ETH0.000005110.1116193
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
InscribeStakingV1

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 800 runs

Other Settings:
london EvmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./Ownable.sol";
import "./ReentrancyGuard.sol";
import "./Pausable.sol";

contract InscribeStakingV1 is Ownable, ReentrancyGuard, Pausable {
    IERC20 public insToken;
    IERC20 public wethToken;

    struct Deposit {
        uint256 amountWETH;
        uint256 totalStaked;
        uint256 timestamp;
    }

    struct Stake {
        StakeEntry[] entries;
        uint256 amount;
        uint256 lastClaimedDepositIndex;
        uint256 unlockTime;
        uint256 lastEntryTimestamp;
    }

    struct StakeEntry {
        uint256 amount;
        uint256 timestamp;
    }

    Deposit[] public deposits;
    mapping(address => Stake) public stakes;
    uint256 public totalStaked;
    uint256 public nbDeposits;
    bool public skipLock;

    event Staked(address indexed user, uint256 amount);
    event Unstaked(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);
    event WETHDeposited(uint256 amount, uint256 totalStaked, uint256 timestamp);

    constructor() Ownable(msg.sender) {
        insToken = IERC20(0xe9572938bcbf08adceE86Fd12A7C0D08dC4Ab841);
        wethToken = IERC20(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);
    }

    function setSkipLock(bool _value) external onlyOwner {
        skipLock = _value;
    }

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

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

    function depositWETH(uint256 _amount) external onlyOwner {
        require(wethToken.transferFrom(msg.sender, address(this), _amount), "Transfer failed");

        deposits.push(Deposit({
            amountWETH: _amount,
            totalStaked: totalStaked,
            timestamp: block.timestamp
        }));

        nbDeposits += 1;

        emit WETHDeposited(_amount, totalStaked, block.timestamp);
    }

    function stake(uint256 _amount) external nonReentrant whenNotPaused {
        require(_amount > 0, "Cannot stake 0");

        updateRewards(msg.sender);

        stakes[msg.sender].amount += _amount;
        stakes[msg.sender].entries.push(StakeEntry({
            amount: _amount,
            timestamp: block.timestamp
        }));
        stakes[msg.sender].lastEntryTimestamp = block.timestamp;
        stakes[msg.sender].unlockTime = 0;

        totalStaked += _amount;

        require(insToken.transferFrom(msg.sender, address(this), _amount), "Stake transfer failed");
        emit Staked(msg.sender, _amount);
    }

    function unstake(uint256 _amount) external nonReentrant {
        require(_amount > 0, "Cannot unstake 0");

        require(stakes[msg.sender].amount >= _amount, "Insufficient stake");
        if (!skipLock) require(stakes[msg.sender].unlockTime > 0 && block.timestamp >= stakes[msg.sender].unlockTime, "Stake is locked");

        updateRewards(msg.sender);

        stakes[msg.sender].amount -= _amount;
        delete stakes[msg.sender].entries;
        stakes[msg.sender].entries.push(StakeEntry({
            amount: stakes[msg.sender].amount,
            timestamp: block.timestamp
        }));
        stakes[msg.sender].lastEntryTimestamp = block.timestamp;

        totalStaked -= _amount;

        require(insToken.transfer(msg.sender, _amount), "Unstake transfer failed");
        emit Unstaked(msg.sender, _amount);
    }

    function requestUnstake() external {
        require(stakes[msg.sender].amount > 0, "No stake");
        require(stakes[msg.sender].unlockTime == 0, "Unstake already requested");

        stakes[msg.sender].unlockTime = block.timestamp + 30 days;
    }

    function claimRewards() external nonReentrant {
        updateRewards(msg.sender);
    }

    function updateRewards(address user) internal {
        uint256 reward = 0;
        Stake memory userStake = stakes[user];
        uint256 userStakeAtDeposit = 0;
        uint256 entryIndex = 0;

        for (uint256 i = userStake.lastClaimedDepositIndex; i < deposits.length; i++) {
            Deposit memory deposit = deposits[i];

            if (userStake.lastEntryTimestamp < deposit.timestamp) {
                userStakeAtDeposit = userStake.amount;
            } else {
                for (; entryIndex < userStake.entries.length; entryIndex++) {
                    StakeEntry memory entry = userStake.entries[entryIndex];

                    if (entry.timestamp < deposit.timestamp) userStakeAtDeposit += entry.amount;
                    else break;
                }
            }
            
            reward += (userStakeAtDeposit * deposit.amountWETH) / deposit.totalStaked;
        }

        stakes[user].lastClaimedDepositIndex = deposits.length;

        if (reward > 0) {
            require(wethToken.transfer(user, reward), "Reward transfer failed");
            emit RewardPaid(user, reward);
        }
    }

    function calculateTotalStakeAt(address user, uint256 timestamp) external view returns (uint256) {
        uint256 totalStake = 0;
        StakeEntry[] memory entries = stakes[user].entries;

        for (uint256 i = 0; i < entries.length; i++) {
            if (entries[i].timestamp < timestamp) {
                totalStake += entries[i].amount;
            } else {
                break;
            }
        }

        return totalStake;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @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.0.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

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

    constructor() {
        _status = NOT_ENTERED;
    }

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

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

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

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

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 800
  },
  "evmVersion": "london",
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Unstaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalStaked","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"WETHDeposited","type":"event"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"calculateTotalStakeAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositWETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"deposits","outputs":[{"internalType":"uint256","name":"amountWETH","type":"uint256"},{"internalType":"uint256","name":"totalStaked","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"insToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nbDeposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requestUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_value","type":"bool"}],"name":"setSkipLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"skipLock","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakes","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"lastClaimedDepositIndex","type":"uint256"},{"internalType":"uint256","name":"unlockTime","type":"uint256"},{"internalType":"uint256","name":"lastEntryTimestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wethToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50338061003757604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b61004081610099565b50600180556002805474e9572938bcbf08adcee86fd12a7c0d08dc4ab841006001600160a81b0319909116179055600380546001600160a01b03191673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc21790556100e9565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611352806100f86000396000f3fe608060405234801561001057600080fd5b506004361061016c5760003560e01c8063817b1cd2116100cd578063e607cf7f11610081578063f50f544411610066578063f50f54441461030b578063fc63958e14610314578063fc6639881461031c57600080fd5b8063e607cf7f146102e5578063f2fde38b146102f857600080fd5b80638da5cb5b116100b25780638da5cb5b14610293578063a694fc3a146102a4578063b02c43d0146102b757600080fd5b8063817b1cd2146102825780638456cb591461028b57600080fd5b80634b57b0be116101245780635c975abb116101095780635c975abb1461025c57806366dd0f2414610267578063715018a61461027a57600080fd5b80634b57b0be146102105780635c0b52fb1461023b57600080fd5b80632e17de78116101555780632e17de78146101eb578063372500ab146102005780633f4ba83a1461020857600080fd5b80630b1d7b551461017157806316934fc414610193575b600080fd5b60085461017e9060ff1681565b60405190151581526020015b60405180910390f35b6101cb6101a13660046111cb565b60056020526000908152604090206001810154600282015460038301546004909301549192909184565b60408051948552602085019390935291830152606082015260800161018a565b6101fe6101f93660046111ed565b610334565b005b6101fe61063d565b6101fe610659565b600354610223906001600160a01b031681565b6040516001600160a01b03909116815260200161018a565b61024e610249366004611206565b610669565b60405190815260200161018a565b60025460ff1661017e565b6101fe6102753660046111ed565b610771565b6101fe610944565b61024e60065481565b6101fe610956565b6000546001600160a01b0316610223565b6101fe6102b23660046111ed565b610966565b6102ca6102c53660046111ed565b610b65565b6040805193845260208401929092529082015260600161018a565b6101fe6102f336600461123e565b610b98565b6101fe6103063660046111cb565b610bb3565b61024e60075481565b6101fe610bee565b6002546102239061010090046001600160a01b031681565b61033c610ccf565b600081116103915760405162461bcd60e51b815260206004820152601060248201527f43616e6e6f7420756e7374616b6520300000000000000000000000000000000060448201526064015b60405180910390fd5b336000908152600560205260409020600101548111156103f35760405162461bcd60e51b815260206004820152601260248201527f496e73756666696369656e74207374616b6500000000000000000000000000006044820152606401610388565b60085460ff1661047c5733600090815260056020526040902060030154158015906104305750336000908152600560205260409020600301544210155b61047c5760405162461bcd60e51b815260206004820152600f60248201527f5374616b65206973206c6f636b656400000000000000000000000000000000006044820152606401610388565b61048533610cf9565b33600090815260056020526040812060010180548392906104a7908490611271565b90915550503360009081526005602052604081206104c491611174565b3360008181526005602081815260408084208151808301909252600180820154835242838501818152835480840185558489528689209551600290910290950194855551939091019290925594845291905260049092019190915560068054839290610531908490611271565b909155505060025460405163a9059cbb60e01b8152336004820152602481018390526101009091046001600160a01b03169063a9059cbb906044016020604051808303816000875af115801561058b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105af9190611284565b6105fb5760405162461bcd60e51b815260206004820152601760248201527f556e7374616b65207472616e73666572206661696c65640000000000000000006044820152606401610388565b60405181815233907f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f75906020015b60405180910390a261063a60018055565b50565b610645610ccf565b61064e33610cf9565b61065760018055565b565b610661611009565b610657611036565b6001600160a01b0382166000908152600560209081526040808320805482518185028101850190935280835284938493929190849084015b828210156106e7578382906000526020600020906002020160405180604001604052908160008201548152602001600182015481525050815260200190600101906106a1565b50505050905060005b8151811015610765578482828151811061070c5761070c6112a1565b602002602001015160200151101561074e57818181518110610730576107306112a1565b6020026020010151600001518361074791906112b7565b9250610753565b610765565b8061075d816112ca565b9150506106f0565b50909150505b92915050565b610779611009565b6003546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af11580156107d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f49190611284565b6108405760405162461bcd60e51b815260206004820152600f60248201527f5472616e73666572206661696c656400000000000000000000000000000000006044820152606401610388565b6040805160608101825282815260065460208201908152429282019283526004805460018082018355600092835293517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b60039092029182015591517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c83015592517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d9091015560078054919290916108fa9084906112b7565b90915550506006546040805183815260208101929092524282820152517f1272606e0d1be6e3d34e998ec952ef10ed02f7cc0102eaeaaf1366baa3fea4b49181900360600190a150565b61094c611009565b6106576000611088565b61095e611009565b6106576110f0565b61096e610ccf565b61097661112d565b600081116109c65760405162461bcd60e51b815260206004820152600e60248201527f43616e6e6f74207374616b6520300000000000000000000000000000000000006044820152606401610388565b6109cf33610cf9565b33600090815260056020526040812060010180548392906109f19084906112b7565b90915550503360008181526005602081815260408084208151808301909252868252428284018181528254600181810185558489528689209551600290920290950190815590519301929092559484529190526004830155600390910181905560068054839290610a639084906112b7565b90915550506002546040516323b872dd60e01b8152336004820152306024820152604481018390526101009091046001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610ac3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae79190611284565b610b335760405162461bcd60e51b815260206004820152601560248201527f5374616b65207472616e73666572206661696c656400000000000000000000006044820152606401610388565b60405181815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d90602001610629565b60048181548110610b7557600080fd5b600091825260209091206003909102018054600182015460029092015490925083565b610ba0611009565b6008805460ff1916911515919091179055565b610bbb611009565b6001600160a01b038116610be557604051631e4fbdf760e01b815260006004820152602401610388565b61063a81611088565b33600090815260056020526040902060010154610c4d5760405162461bcd60e51b815260206004820152600860248201527f4e6f207374616b650000000000000000000000000000000000000000000000006044820152606401610388565b3360009081526005602052604090206003015415610cad5760405162461bcd60e51b815260206004820152601960248201527f556e7374616b6520616c726561647920726571756573746564000000000000006044820152606401610388565b610cba4262278d006112b7565b33600090815260056020526040902060030155565b600260015403610cf257604051633ee5aeb560e01b815260040160405180910390fd5b6002600155565b6001600160a01b03811660009081526005602090815260408083208151815460c09481028201850190935260a08101838152859491938492849190879085015b82821015610d7f57838290600052602060002090600202016040518060400160405290816000820154815260200160018201548152505081526020019060010190610d39565b50505050815260200160018201548152602001600282015481526020016003820154815260200160048201548152505090506000806000836040015190505b600454811015610ed557600060048281548110610ddd57610ddd6112a1565b906000526020600020906003020160405180606001604052908160008201548152602001600182015481526020016002820154815250509050806040015185608001511015610e325784602001519350610e9a565b845151831015610e9a57600085600001518481518110610e5457610e546112a1565b60200260200101519050816040015181602001511015610e81578051610e7a90866112b7565b9450610e87565b50610e9a565b5082610e92816112ca565b935050610e32565b60208101518151610eab90866112e3565b610eb591906112fa565b610ebf90876112b7565b9550508080610ecd906112ca565b915050610dbe565b506004546001600160a01b03861660009081526005602052604090206002015583156110025760035460405163a9059cbb60e01b81526001600160a01b038781166004830152602482018790529091169063a9059cbb906044016020604051808303816000875af1158015610f4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f729190611284565b610fbe5760405162461bcd60e51b815260206004820152601660248201527f526577617264207472616e73666572206661696c6564000000000000000000006044820152606401610388565b846001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048685604051610ff991815260200190565b60405180910390a25b5050505050565b6000546001600160a01b031633146106575760405163118cdaa760e01b8152336004820152602401610388565b61103e611151565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6110f861112d565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861106b3390565b60025460ff16156106575760405163d93c066560e01b815260040160405180910390fd5b60025460ff1661065757604051638dfc202b60e01b815260040160405180910390fd5b508054600082556002029060005260206000209081019061063a91905b808211156111ab5760008082556001820155600201611191565b5090565b80356001600160a01b03811681146111c657600080fd5b919050565b6000602082840312156111dd57600080fd5b6111e6826111af565b9392505050565b6000602082840312156111ff57600080fd5b5035919050565b6000806040838503121561121957600080fd5b611222836111af565b946020939093013593505050565b801515811461063a57600080fd5b60006020828403121561125057600080fd5b81356111e681611230565b634e487b7160e01b600052601160045260246000fd5b8181038181111561076b5761076b61125b565b60006020828403121561129657600080fd5b81516111e681611230565b634e487b7160e01b600052603260045260246000fd5b8082018082111561076b5761076b61125b565b6000600182016112dc576112dc61125b565b5060010190565b808202811582820484141761076b5761076b61125b565b60008261131757634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220854d60bb7cd13a5137b5e361f1f82dd02cb6636fba14de2842934a59b4d3775864736f6c63430008110033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061016c5760003560e01c8063817b1cd2116100cd578063e607cf7f11610081578063f50f544411610066578063f50f54441461030b578063fc63958e14610314578063fc6639881461031c57600080fd5b8063e607cf7f146102e5578063f2fde38b146102f857600080fd5b80638da5cb5b116100b25780638da5cb5b14610293578063a694fc3a146102a4578063b02c43d0146102b757600080fd5b8063817b1cd2146102825780638456cb591461028b57600080fd5b80634b57b0be116101245780635c975abb116101095780635c975abb1461025c57806366dd0f2414610267578063715018a61461027a57600080fd5b80634b57b0be146102105780635c0b52fb1461023b57600080fd5b80632e17de78116101555780632e17de78146101eb578063372500ab146102005780633f4ba83a1461020857600080fd5b80630b1d7b551461017157806316934fc414610193575b600080fd5b60085461017e9060ff1681565b60405190151581526020015b60405180910390f35b6101cb6101a13660046111cb565b60056020526000908152604090206001810154600282015460038301546004909301549192909184565b60408051948552602085019390935291830152606082015260800161018a565b6101fe6101f93660046111ed565b610334565b005b6101fe61063d565b6101fe610659565b600354610223906001600160a01b031681565b6040516001600160a01b03909116815260200161018a565b61024e610249366004611206565b610669565b60405190815260200161018a565b60025460ff1661017e565b6101fe6102753660046111ed565b610771565b6101fe610944565b61024e60065481565b6101fe610956565b6000546001600160a01b0316610223565b6101fe6102b23660046111ed565b610966565b6102ca6102c53660046111ed565b610b65565b6040805193845260208401929092529082015260600161018a565b6101fe6102f336600461123e565b610b98565b6101fe6103063660046111cb565b610bb3565b61024e60075481565b6101fe610bee565b6002546102239061010090046001600160a01b031681565b61033c610ccf565b600081116103915760405162461bcd60e51b815260206004820152601060248201527f43616e6e6f7420756e7374616b6520300000000000000000000000000000000060448201526064015b60405180910390fd5b336000908152600560205260409020600101548111156103f35760405162461bcd60e51b815260206004820152601260248201527f496e73756666696369656e74207374616b6500000000000000000000000000006044820152606401610388565b60085460ff1661047c5733600090815260056020526040902060030154158015906104305750336000908152600560205260409020600301544210155b61047c5760405162461bcd60e51b815260206004820152600f60248201527f5374616b65206973206c6f636b656400000000000000000000000000000000006044820152606401610388565b61048533610cf9565b33600090815260056020526040812060010180548392906104a7908490611271565b90915550503360009081526005602052604081206104c491611174565b3360008181526005602081815260408084208151808301909252600180820154835242838501818152835480840185558489528689209551600290910290950194855551939091019290925594845291905260049092019190915560068054839290610531908490611271565b909155505060025460405163a9059cbb60e01b8152336004820152602481018390526101009091046001600160a01b03169063a9059cbb906044016020604051808303816000875af115801561058b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105af9190611284565b6105fb5760405162461bcd60e51b815260206004820152601760248201527f556e7374616b65207472616e73666572206661696c65640000000000000000006044820152606401610388565b60405181815233907f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f75906020015b60405180910390a261063a60018055565b50565b610645610ccf565b61064e33610cf9565b61065760018055565b565b610661611009565b610657611036565b6001600160a01b0382166000908152600560209081526040808320805482518185028101850190935280835284938493929190849084015b828210156106e7578382906000526020600020906002020160405180604001604052908160008201548152602001600182015481525050815260200190600101906106a1565b50505050905060005b8151811015610765578482828151811061070c5761070c6112a1565b602002602001015160200151101561074e57818181518110610730576107306112a1565b6020026020010151600001518361074791906112b7565b9250610753565b610765565b8061075d816112ca565b9150506106f0565b50909150505b92915050565b610779611009565b6003546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af11580156107d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f49190611284565b6108405760405162461bcd60e51b815260206004820152600f60248201527f5472616e73666572206661696c656400000000000000000000000000000000006044820152606401610388565b6040805160608101825282815260065460208201908152429282019283526004805460018082018355600092835293517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b60039092029182015591517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c83015592517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d9091015560078054919290916108fa9084906112b7565b90915550506006546040805183815260208101929092524282820152517f1272606e0d1be6e3d34e998ec952ef10ed02f7cc0102eaeaaf1366baa3fea4b49181900360600190a150565b61094c611009565b6106576000611088565b61095e611009565b6106576110f0565b61096e610ccf565b61097661112d565b600081116109c65760405162461bcd60e51b815260206004820152600e60248201527f43616e6e6f74207374616b6520300000000000000000000000000000000000006044820152606401610388565b6109cf33610cf9565b33600090815260056020526040812060010180548392906109f19084906112b7565b90915550503360008181526005602081815260408084208151808301909252868252428284018181528254600181810185558489528689209551600290920290950190815590519301929092559484529190526004830155600390910181905560068054839290610a639084906112b7565b90915550506002546040516323b872dd60e01b8152336004820152306024820152604481018390526101009091046001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610ac3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae79190611284565b610b335760405162461bcd60e51b815260206004820152601560248201527f5374616b65207472616e73666572206661696c656400000000000000000000006044820152606401610388565b60405181815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d90602001610629565b60048181548110610b7557600080fd5b600091825260209091206003909102018054600182015460029092015490925083565b610ba0611009565b6008805460ff1916911515919091179055565b610bbb611009565b6001600160a01b038116610be557604051631e4fbdf760e01b815260006004820152602401610388565b61063a81611088565b33600090815260056020526040902060010154610c4d5760405162461bcd60e51b815260206004820152600860248201527f4e6f207374616b650000000000000000000000000000000000000000000000006044820152606401610388565b3360009081526005602052604090206003015415610cad5760405162461bcd60e51b815260206004820152601960248201527f556e7374616b6520616c726561647920726571756573746564000000000000006044820152606401610388565b610cba4262278d006112b7565b33600090815260056020526040902060030155565b600260015403610cf257604051633ee5aeb560e01b815260040160405180910390fd5b6002600155565b6001600160a01b03811660009081526005602090815260408083208151815460c09481028201850190935260a08101838152859491938492849190879085015b82821015610d7f57838290600052602060002090600202016040518060400160405290816000820154815260200160018201548152505081526020019060010190610d39565b50505050815260200160018201548152602001600282015481526020016003820154815260200160048201548152505090506000806000836040015190505b600454811015610ed557600060048281548110610ddd57610ddd6112a1565b906000526020600020906003020160405180606001604052908160008201548152602001600182015481526020016002820154815250509050806040015185608001511015610e325784602001519350610e9a565b845151831015610e9a57600085600001518481518110610e5457610e546112a1565b60200260200101519050816040015181602001511015610e81578051610e7a90866112b7565b9450610e87565b50610e9a565b5082610e92816112ca565b935050610e32565b60208101518151610eab90866112e3565b610eb591906112fa565b610ebf90876112b7565b9550508080610ecd906112ca565b915050610dbe565b506004546001600160a01b03861660009081526005602052604090206002015583156110025760035460405163a9059cbb60e01b81526001600160a01b038781166004830152602482018790529091169063a9059cbb906044016020604051808303816000875af1158015610f4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f729190611284565b610fbe5760405162461bcd60e51b815260206004820152601660248201527f526577617264207472616e73666572206661696c6564000000000000000000006044820152606401610388565b846001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048685604051610ff991815260200190565b60405180910390a25b5050505050565b6000546001600160a01b031633146106575760405163118cdaa760e01b8152336004820152602401610388565b61103e611151565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6110f861112d565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861106b3390565b60025460ff16156106575760405163d93c066560e01b815260040160405180910390fd5b60025460ff1661065757604051638dfc202b60e01b815260040160405180910390fd5b508054600082556002029060005260206000209081019061063a91905b808211156111ab5760008082556001820155600201611191565b5090565b80356001600160a01b03811681146111c657600080fd5b919050565b6000602082840312156111dd57600080fd5b6111e6826111af565b9392505050565b6000602082840312156111ff57600080fd5b5035919050565b6000806040838503121561121957600080fd5b611222836111af565b946020939093013593505050565b801515811461063a57600080fd5b60006020828403121561125057600080fd5b81356111e681611230565b634e487b7160e01b600052601160045260246000fd5b8181038181111561076b5761076b61125b565b60006020828403121561129657600080fd5b81516111e681611230565b634e487b7160e01b600052603260045260246000fd5b8082018082111561076b5761076b61125b565b6000600182016112dc576112dc61125b565b5060010190565b808202811582820484141761076b5761076b61125b565b60008261131757634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220854d60bb7cd13a5137b5e361f1f82dd02cb6636fba14de2842934a59b4d3775864736f6c63430008110033

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
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.