ETH Price: $3,453.78 (-0.09%)

Contract

0x08FCaca90F40cF9184Da1F433d1F283A414AEb28
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim Reward213931122024-12-13 10:52:357 days ago1734087155IN
0x08FCaca9...A414AEb28
0 ETH0.0012618715.74643716
Claim Reward213923752024-12-13 8:24:117 days ago1734078251IN
0x08FCaca9...A414AEb28
0 ETH0.0008582310.70957122
Claim Reward213195112024-12-03 4:12:3517 days ago1733199155IN
0x08FCaca9...A414AEb28
0 ETH0.0016087617.37876403
Claim Reward212201932024-11-19 7:10:1131 days ago1732000211IN
0x08FCaca9...A414AEb28
0 ETH0.000823710.27871721
Claim Reward210411512024-10-25 7:31:4756 days ago1729841507IN
0x08FCaca9...A414AEb28
0 ETH0.000465357.00238253
Claim Reward209623192024-10-14 7:27:5967 days ago1728890879IN
0x08FCaca9...A414AEb28
0 ETH0.0010021512.50557023
Claim Reward209611742024-10-14 3:37:4767 days ago1728877067IN
0x08FCaca9...A414AEb28
0 ETH0.0008086510.0909527
Claim Reward209193042024-10-08 7:16:2373 days ago1728371783IN
0x08FCaca9...A414AEb28
0 ETH0.0008965111.1872574
Claim Reward208761542024-10-02 6:55:1179 days ago1727852111IN
0x08FCaca9...A414AEb28
0 ETH0.000440765.50009938
Withdraw208536532024-09-29 3:37:2382 days ago1727581043IN
0x08FCaca9...A414AEb28
0 ETH0.00051555.41639596
Claim Reward207470692024-09-14 6:29:4797 days ago1726295387IN
0x08FCaca9...A414AEb28
0 ETH0.000091361.14015791
Claim Reward206971142024-09-07 7:05:47104 days ago1725692747IN
0x08FCaca9...A414AEb28
0 ETH0.00012151.51622312
Claim Reward206884312024-09-06 2:01:23105 days ago1725588083IN
0x08FCaca9...A414AEb28
0 ETH0.000131641.64269254
Claim Reward206755562024-09-04 6:55:11107 days ago1725432911IN
0x08FCaca9...A414AEb28
0 ETH0.000079320.98981884
Claim Reward206256782024-08-28 7:45:23114 days ago1724831123IN
0x08FCaca9...A414AEb28
0 ETH0.000068140.85033782
Claim Reward206197842024-08-27 12:00:35115 days ago1724760035IN
0x08FCaca9...A414AEb28
0 ETH0.000126531.57893878
Claim Reward205601132024-08-19 3:53:23123 days ago1724039603IN
0x08FCaca9...A414AEb28
0 ETH0.000072761.09488398
Claim Reward205253942024-08-14 7:31:59128 days ago1723620719IN
0x08FCaca9...A414AEb28
0 ETH0.000137281.71308825
Claim Reward205044922024-08-11 9:31:23131 days ago1723368683IN
0x08FCaca9...A414AEb28
0 ETH0.000086741.08251578
Claim Reward204752052024-08-07 7:28:59135 days ago1723015739IN
0x08FCaca9...A414AEb28
0 ETH0.000171222.1366835
Claim Reward204395492024-08-02 8:03:35140 days ago1722585815IN
0x08FCaca9...A414AEb28
0 ETH0.000260582.81493351
Withdraw204294122024-07-31 22:07:23142 days ago1722463643IN
0x08FCaca9...A414AEb28
0 ETH0.000646026.78783634
Claim Reward204223072024-07-30 22:19:11142 days ago1722377951IN
0x08FCaca9...A414AEb28
0 ETH0.00027794.18175029
Claim Reward203118542024-07-15 12:16:47158 days ago1721045807IN
0x08FCaca9...A414AEb28
0 ETH0.000324464.04891651
Claim Reward202611682024-07-08 10:22:35165 days ago1720434155IN
0x08FCaca9...A414AEb28
0 ETH0.00024843.0996968
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StakingUniV2

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : StakingUniV2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/security/Pausable.sol";

contract StakingUniV2 is ReentrancyGuard, Ownable, Pausable {
    IERC20 public stakingToken; // UNI-V2 LP token
    IERC20 public rewardToken; // HANePlatform token

    constructor(address _stakingToken, address _rewardToken) onlyOwner {
        stakingToken = IERC20(_stakingToken);
        rewardToken = IERC20(_rewardToken);
    }

    uint256 public constant hanTokenPerLpToken = 3860855150859520; // Quantity of HAN tokens rewarded per LP token

    uint256 public totalSupply; // Total amount of token staked
    uint256 public tokenQuota = 10000 ether; // The total amount of LP token that users can stake to contract

    struct Staker {
        uint256 amount;
        uint256 startTime;
        uint256 rewardReleased;
        uint256 unclaimedReward;
    }

    mapping(address => Staker) public stakers;

    // ------------------ Staking Functions ------------------ //

    function stake(uint256 _amount) public nonReentrant whenNotPaused {
        Staker storage staker = stakers[msg.sender];
        require(_amount > 0, "Cannot stake 0");
        require(_amount + totalSupply <= tokenQuota, "Too Many Token");
        require(rewardToken.balanceOf(address(this))  > _amount * hanTokenPerLpToken * 365 days / 10**18, "Total amount of rewards is too high");
        totalSupply += _amount;
        if (staker.amount > 0) {
            _unclaimeReward();
            _staker(_amount);
        } else {
            _staker(_amount);
        }
    }

    function _staker(uint256 _amount) internal {
        Staker storage staker = stakers[msg.sender];
        staker.amount += _amount;
        staker.startTime = block.timestamp;
        stakingToken.transferFrom(msg.sender, address(this), _amount);
        emit Staked(msg.sender, _amount);
    }


    // "WITHDRAW" function
    function withdraw(uint256 _amount) public nonReentrant {
        Staker storage staker = stakers[msg.sender];
        require(_amount > 0, "Cannot withdraw 0");
        totalSupply -= _amount;
        _unclaimeReward();
        staker.amount -= _amount;
        staker.startTime = block.timestamp;
        stakingToken.transfer(msg.sender, _amount);
        emit Withdrawn(msg.sender, _amount);
    }

    // "CLAIM" function
    function claimReward() public nonReentrant {
        Staker storage staker = stakers[msg.sender];
        _unclaimeReward();
        rewardToken.transfer(msg.sender, staker.unclaimedReward);
        staker.rewardReleased += staker.unclaimedReward;
        emit RewardPaid(msg.sender, staker.unclaimedReward);
        staker.unclaimedReward = 0;
        staker.startTime = block.timestamp;
    }
    
    function _unclaimeReward() internal {
        Staker storage staker = stakers[msg.sender];
        uint256 stakedTime = block.timestamp - staker.startTime;
        staker.unclaimedReward += stakedTime * staker.amount * hanTokenPerLpToken / 10**18;
    }

    function rewardView(address _user) public view returns (uint256) {
        uint256 stakedTime = block.timestamp - stakers[msg.sender].startTime;
        return stakers[_user].amount * hanTokenPerLpToken * stakedTime / 10**18;
    }

    function setTokenVolume(uint256 _newQuota) public onlyOwner {
        require(_newQuota > totalSupply, "Too Small Volume");
        tokenQuota = _newQuota;
    }

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

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

    function recoverERC20(address _tokenAddress, uint256 _tokenAmount) external onlyOwner {
        IERC20(_tokenAddress).transfer(msg.sender, _tokenAmount);
        emit RecoveredERC20(_tokenAddress, _tokenAmount);
    }

function recoverERC721(address _tokenAddress, uint256 _tokenId) external onlyOwner {
        IERC721(_tokenAddress).safeTransferFrom(address(this), msg.sender, _tokenId);
        emit RecoveredERC721(_tokenAddress, _tokenId);
    }

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

    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);
    event RecoveredERC20(address token, uint256 amount);
    event RecoveredERC721(address token, uint256 tokenId);
}

File 2 of 8 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

    bool private _paused;

    /**
     * @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 {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @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());
    }
}

File 3 of 8 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 7 of 8 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * 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[EIP 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);
}

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

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RecoveredERC20","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"RecoveredERC721","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":"Withdrawn","type":"event"},{"inputs":[],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"hanTokenPerLpToken","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":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"recoverERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"rewardView","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newQuota","type":"uint256"}],"name":"setTokenVolume","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakers","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"rewardReleased","type":"uint256"},{"internalType":"uint256","name":"unclaimedReward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenQuota","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405269021e19e0c9bab24000006005553480156200001f57600080fd5b5060405162001fd938038062001fd9833981810160405281019062000045919062000315565b60016000819055506200006d620000616200012260201b60201c565b6200012a60201b60201c565b6000600160146101000a81548160ff02191690831515021790555062000098620001f060201b60201c565b81600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050620003df565b600033905090565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002006200012260201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620002266200028160201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16146200027f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200027690620003bd565b60405180910390fd5b565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620002dd82620002b0565b9050919050565b620002ef81620002d0565b8114620002fb57600080fd5b50565b6000815190506200030f81620002e4565b92915050565b600080604083850312156200032f576200032e620002ab565b5b60006200033f85828601620002fe565b92505060206200035285828601620002fe565b9150509250929050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000620003a56020836200035c565b9150620003b2826200036d565b602082019050919050565b60006020820190508181036000830152620003d88162000396565b9050919050565b611bea80620003ef6000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c80638456cb59116100ad578063b88a802f11610071578063b88a802f14610299578063bee89f74146102a3578063eb9922fa146102c1578063f2fde38b146102f1578063f7c618c11461030d57610121565b80638456cb59146102065780638980f11f146102105780638da5cb5b1461022c5780639168ae721461024a578063a694fc3a1461027d57610121565b80634957588f116100f45780634957588f146101885780635c975abb146101a4578063715018a6146101c257806372f702f3146101cc578063819d4cc6146101ea57610121565b8063168cd7ae1461012657806318160ddd146101445780632e1a7d4d146101625780633f4ba83a1461017e575b600080fd5b61012e61032b565b60405161013b9190611288565b60405180910390f35b61014c610331565b6040516101599190611288565b60405180910390f35b61017c600480360381019061017791906112d4565b610337565b005b61018661054a565b005b6101a2600480360381019061019d91906112d4565b61055c565b005b6101ac6105b2565b6040516101b9919061131c565b60405180910390f35b6101ca6105c9565b005b6101d46105dd565b6040516101e191906113b6565b60405180910390f35b61020460048036038101906101ff919061140f565b610603565b005b61020e6106b7565b005b61022a6004803603810190610225919061140f565b6106c9565b005b61023461078d565b604051610241919061145e565b60405180910390f35b610264600480360381019061025f9190611479565b6107b7565b60405161027494939291906114a6565b60405180910390f35b610297600480360381019061029291906112d4565b6107e7565b005b6102a1610a77565b005b6102ab610c43565b6040516102b89190611288565b60405180910390f35b6102db60048036038101906102d69190611479565b610c4e565b6040516102e89190611288565b60405180910390f35b61030b60048036038101906103069190611479565b610d1c565b005b610315610d9f565b60405161032291906113b6565b60405180910390f35b60055481565b60045481565b60026000540361037c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161037390611548565b60405180910390fd5b60026000819055506000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000821161040a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610401906115b4565b60405180910390fd5b816004600082825461041c9190611603565b9250508190555061042b610dc5565b8181600001600082825461043f9190611603565b92505081905550428160010181905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33846040518363ffffffff1660e01b81526004016104ac929190611637565b6020604051808303816000875af11580156104cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ef919061168c565b503373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5836040516105369190611288565b60405180910390a250600160008190555050565b610552610e6f565b61055a610eed565b565b610564610e6f565b60045481116105a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059f90611705565b60405180910390fd5b8060058190555050565b6000600160149054906101000a900460ff16905090565b6105d1610e6f565b6105db6000610f50565b565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61060b610e6f565b8173ffffffffffffffffffffffffffffffffffffffff166342842e0e3033846040518463ffffffff1660e01b815260040161064893929190611725565b600060405180830381600087803b15801561066257600080fd5b505af1158015610676573d6000803e3d6000fd5b505050507f57519b6a0997d7d44511836bcee0a36871aa79d445816f6c464abb0cd9d3f3e882826040516106ab929190611637565b60405180910390a15050565b6106bf610e6f565b6106c7611016565b565b6106d1610e6f565b8173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b815260040161070c929190611637565b6020604051808303816000875af115801561072b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074f919061168c565b507f55350610fe57096d8c0ffa30beede987326bccfcb0b4415804164d0dd50ce8b18282604051610781929190611637565b60405180910390a15050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60066020528060005260406000206000915090508060000154908060010154908060020154908060030154905084565b60026000540361082c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082390611548565b60405180910390fd5b600260008190555061083c611078565b6000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600082116108c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b9906117a8565b60405180910390fd5b600554600454836108d391906117c8565b1115610914576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090b90611848565b60405180910390fd5b670de0b6b3a76400006301e13380660db76d63cbd500846109359190611868565b61093f9190611868565b61094991906118d9565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016109a4919061145e565b602060405180830381865afa1580156109c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e5919061191f565b11610a25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1c906119be565b60405180910390fd5b8160046000828254610a3791906117c8565b92505081905550600081600001541115610a6157610a53610dc5565b610a5c826110c2565b610a6b565b610a6a826110c2565b5b50600160008190555050565b600260005403610abc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab390611548565b60405180910390fd5b60026000819055506000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050610b0f610dc5565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb3383600301546040518363ffffffff1660e01b8152600401610b70929190611637565b6020604051808303816000875af1158015610b8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb3919061168c565b508060030154816002016000828254610bcc91906117c8565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04868260030154604051610c1d9190611288565b60405180910390a260008160030181905550428160010181905550506001600081905550565b660db76d63cbd50081565b600080600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015442610c9f9190611603565b9050670de0b6b3a764000081660db76d63cbd500600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154610d009190611868565b610d0a9190611868565b610d1491906118d9565b915050919050565b610d24610e6f565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8a90611a50565b60405180910390fd5b610d9c81610f50565b50565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816001015442610e1a9190611603565b9050670de0b6b3a7640000660db76d63cbd500836000015483610e3d9190611868565b610e479190611868565b610e5191906118d9565b826003016000828254610e6491906117c8565b925050819055505050565b610e7761121e565b73ffffffffffffffffffffffffffffffffffffffff16610e9561078d565b73ffffffffffffffffffffffffffffffffffffffff1614610eeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee290611abc565b60405180910390fd5b565b610ef5611226565b6000600160146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610f3961121e565b604051610f46919061145e565b60405180910390a1565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61101e611078565b60018060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861106161121e565b60405161106e919061145e565b60405180910390a1565b6110806105b2565b156110c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b790611b28565b60405180910390fd5b565b6000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508181600001600082825461111991906117c8565b92505081905550428160010181905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b815260040161118893929190611725565b6020604051808303816000875af11580156111a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111cb919061168c565b503373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d836040516112129190611288565b60405180910390a25050565b600033905090565b61122e6105b2565b61126d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126490611b94565b60405180910390fd5b565b6000819050919050565b6112828161126f565b82525050565b600060208201905061129d6000830184611279565b92915050565b600080fd5b6112b18161126f565b81146112bc57600080fd5b50565b6000813590506112ce816112a8565b92915050565b6000602082840312156112ea576112e96112a3565b5b60006112f8848285016112bf565b91505092915050565b60008115159050919050565b61131681611301565b82525050565b6000602082019050611331600083018461130d565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061137c61137761137284611337565b611357565b611337565b9050919050565b600061138e82611361565b9050919050565b60006113a082611383565b9050919050565b6113b081611395565b82525050565b60006020820190506113cb60008301846113a7565b92915050565b60006113dc82611337565b9050919050565b6113ec816113d1565b81146113f757600080fd5b50565b600081359050611409816113e3565b92915050565b60008060408385031215611426576114256112a3565b5b6000611434858286016113fa565b9250506020611445858286016112bf565b9150509250929050565b611458816113d1565b82525050565b6000602082019050611473600083018461144f565b92915050565b60006020828403121561148f5761148e6112a3565b5b600061149d848285016113fa565b91505092915050565b60006080820190506114bb6000830187611279565b6114c86020830186611279565b6114d56040830185611279565b6114e26060830184611279565b95945050505050565b600082825260208201905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611532601f836114eb565b915061153d826114fc565b602082019050919050565b6000602082019050818103600083015261156181611525565b9050919050565b7f43616e6e6f742077697468647261772030000000000000000000000000000000600082015250565b600061159e6011836114eb565b91506115a982611568565b602082019050919050565b600060208201905081810360008301526115cd81611591565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061160e8261126f565b91506116198361126f565b9250828203905081811115611631576116306115d4565b5b92915050565b600060408201905061164c600083018561144f565b6116596020830184611279565b9392505050565b61166981611301565b811461167457600080fd5b50565b60008151905061168681611660565b92915050565b6000602082840312156116a2576116a16112a3565b5b60006116b084828501611677565b91505092915050565b7f546f6f20536d616c6c20566f6c756d6500000000000000000000000000000000600082015250565b60006116ef6010836114eb565b91506116fa826116b9565b602082019050919050565b6000602082019050818103600083015261171e816116e2565b9050919050565b600060608201905061173a600083018661144f565b611747602083018561144f565b6117546040830184611279565b949350505050565b7f43616e6e6f74207374616b652030000000000000000000000000000000000000600082015250565b6000611792600e836114eb565b915061179d8261175c565b602082019050919050565b600060208201905081810360008301526117c181611785565b9050919050565b60006117d38261126f565b91506117de8361126f565b92508282019050808211156117f6576117f56115d4565b5b92915050565b7f546f6f204d616e7920546f6b656e000000000000000000000000000000000000600082015250565b6000611832600e836114eb565b915061183d826117fc565b602082019050919050565b6000602082019050818103600083015261186181611825565b9050919050565b60006118738261126f565b915061187e8361126f565b925082820261188c8161126f565b915082820484148315176118a3576118a26115d4565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006118e48261126f565b91506118ef8361126f565b9250826118ff576118fe6118aa565b5b828204905092915050565b600081519050611919816112a8565b92915050565b600060208284031215611935576119346112a3565b5b60006119438482850161190a565b91505092915050565b7f546f74616c20616d6f756e74206f66207265776172647320697320746f6f206860008201527f6967680000000000000000000000000000000000000000000000000000000000602082015250565b60006119a86023836114eb565b91506119b38261194c565b604082019050919050565b600060208201905081810360008301526119d78161199b565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611a3a6026836114eb565b9150611a45826119de565b604082019050919050565b60006020820190508181036000830152611a6981611a2d565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611aa66020836114eb565b9150611ab182611a70565b602082019050919050565b60006020820190508181036000830152611ad581611a99565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000611b126010836114eb565b9150611b1d82611adc565b602082019050919050565b60006020820190508181036000830152611b4181611b05565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000611b7e6014836114eb565b9150611b8982611b48565b602082019050919050565b60006020820190508181036000830152611bad81611b71565b905091905056fea264697066735822122070a56fea703ce9362e7e329c72bd9b65ce566b57f99ec625a3b6bcaa622b53ed64736f6c63430008120033000000000000000000000000e1d6ad723e20206a655b0677354d67bcd671b0840000000000000000000000005052fa4a2a147eaaa4c0242e9cc54a10a4f42070

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101215760003560e01c80638456cb59116100ad578063b88a802f11610071578063b88a802f14610299578063bee89f74146102a3578063eb9922fa146102c1578063f2fde38b146102f1578063f7c618c11461030d57610121565b80638456cb59146102065780638980f11f146102105780638da5cb5b1461022c5780639168ae721461024a578063a694fc3a1461027d57610121565b80634957588f116100f45780634957588f146101885780635c975abb146101a4578063715018a6146101c257806372f702f3146101cc578063819d4cc6146101ea57610121565b8063168cd7ae1461012657806318160ddd146101445780632e1a7d4d146101625780633f4ba83a1461017e575b600080fd5b61012e61032b565b60405161013b9190611288565b60405180910390f35b61014c610331565b6040516101599190611288565b60405180910390f35b61017c600480360381019061017791906112d4565b610337565b005b61018661054a565b005b6101a2600480360381019061019d91906112d4565b61055c565b005b6101ac6105b2565b6040516101b9919061131c565b60405180910390f35b6101ca6105c9565b005b6101d46105dd565b6040516101e191906113b6565b60405180910390f35b61020460048036038101906101ff919061140f565b610603565b005b61020e6106b7565b005b61022a6004803603810190610225919061140f565b6106c9565b005b61023461078d565b604051610241919061145e565b60405180910390f35b610264600480360381019061025f9190611479565b6107b7565b60405161027494939291906114a6565b60405180910390f35b610297600480360381019061029291906112d4565b6107e7565b005b6102a1610a77565b005b6102ab610c43565b6040516102b89190611288565b60405180910390f35b6102db60048036038101906102d69190611479565b610c4e565b6040516102e89190611288565b60405180910390f35b61030b60048036038101906103069190611479565b610d1c565b005b610315610d9f565b60405161032291906113b6565b60405180910390f35b60055481565b60045481565b60026000540361037c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161037390611548565b60405180910390fd5b60026000819055506000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000821161040a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610401906115b4565b60405180910390fd5b816004600082825461041c9190611603565b9250508190555061042b610dc5565b8181600001600082825461043f9190611603565b92505081905550428160010181905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33846040518363ffffffff1660e01b81526004016104ac929190611637565b6020604051808303816000875af11580156104cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ef919061168c565b503373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5836040516105369190611288565b60405180910390a250600160008190555050565b610552610e6f565b61055a610eed565b565b610564610e6f565b60045481116105a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059f90611705565b60405180910390fd5b8060058190555050565b6000600160149054906101000a900460ff16905090565b6105d1610e6f565b6105db6000610f50565b565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61060b610e6f565b8173ffffffffffffffffffffffffffffffffffffffff166342842e0e3033846040518463ffffffff1660e01b815260040161064893929190611725565b600060405180830381600087803b15801561066257600080fd5b505af1158015610676573d6000803e3d6000fd5b505050507f57519b6a0997d7d44511836bcee0a36871aa79d445816f6c464abb0cd9d3f3e882826040516106ab929190611637565b60405180910390a15050565b6106bf610e6f565b6106c7611016565b565b6106d1610e6f565b8173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b815260040161070c929190611637565b6020604051808303816000875af115801561072b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074f919061168c565b507f55350610fe57096d8c0ffa30beede987326bccfcb0b4415804164d0dd50ce8b18282604051610781929190611637565b60405180910390a15050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60066020528060005260406000206000915090508060000154908060010154908060020154908060030154905084565b60026000540361082c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082390611548565b60405180910390fd5b600260008190555061083c611078565b6000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600082116108c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b9906117a8565b60405180910390fd5b600554600454836108d391906117c8565b1115610914576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090b90611848565b60405180910390fd5b670de0b6b3a76400006301e13380660db76d63cbd500846109359190611868565b61093f9190611868565b61094991906118d9565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016109a4919061145e565b602060405180830381865afa1580156109c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e5919061191f565b11610a25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1c906119be565b60405180910390fd5b8160046000828254610a3791906117c8565b92505081905550600081600001541115610a6157610a53610dc5565b610a5c826110c2565b610a6b565b610a6a826110c2565b5b50600160008190555050565b600260005403610abc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab390611548565b60405180910390fd5b60026000819055506000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050610b0f610dc5565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb3383600301546040518363ffffffff1660e01b8152600401610b70929190611637565b6020604051808303816000875af1158015610b8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb3919061168c565b508060030154816002016000828254610bcc91906117c8565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04868260030154604051610c1d9190611288565b60405180910390a260008160030181905550428160010181905550506001600081905550565b660db76d63cbd50081565b600080600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015442610c9f9190611603565b9050670de0b6b3a764000081660db76d63cbd500600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154610d009190611868565b610d0a9190611868565b610d1491906118d9565b915050919050565b610d24610e6f565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8a90611a50565b60405180910390fd5b610d9c81610f50565b50565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816001015442610e1a9190611603565b9050670de0b6b3a7640000660db76d63cbd500836000015483610e3d9190611868565b610e479190611868565b610e5191906118d9565b826003016000828254610e6491906117c8565b925050819055505050565b610e7761121e565b73ffffffffffffffffffffffffffffffffffffffff16610e9561078d565b73ffffffffffffffffffffffffffffffffffffffff1614610eeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee290611abc565b60405180910390fd5b565b610ef5611226565b6000600160146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610f3961121e565b604051610f46919061145e565b60405180910390a1565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61101e611078565b60018060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861106161121e565b60405161106e919061145e565b60405180910390a1565b6110806105b2565b156110c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b790611b28565b60405180910390fd5b565b6000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508181600001600082825461111991906117c8565b92505081905550428160010181905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b815260040161118893929190611725565b6020604051808303816000875af11580156111a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111cb919061168c565b503373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d836040516112129190611288565b60405180910390a25050565b600033905090565b61122e6105b2565b61126d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126490611b94565b60405180910390fd5b565b6000819050919050565b6112828161126f565b82525050565b600060208201905061129d6000830184611279565b92915050565b600080fd5b6112b18161126f565b81146112bc57600080fd5b50565b6000813590506112ce816112a8565b92915050565b6000602082840312156112ea576112e96112a3565b5b60006112f8848285016112bf565b91505092915050565b60008115159050919050565b61131681611301565b82525050565b6000602082019050611331600083018461130d565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061137c61137761137284611337565b611357565b611337565b9050919050565b600061138e82611361565b9050919050565b60006113a082611383565b9050919050565b6113b081611395565b82525050565b60006020820190506113cb60008301846113a7565b92915050565b60006113dc82611337565b9050919050565b6113ec816113d1565b81146113f757600080fd5b50565b600081359050611409816113e3565b92915050565b60008060408385031215611426576114256112a3565b5b6000611434858286016113fa565b9250506020611445858286016112bf565b9150509250929050565b611458816113d1565b82525050565b6000602082019050611473600083018461144f565b92915050565b60006020828403121561148f5761148e6112a3565b5b600061149d848285016113fa565b91505092915050565b60006080820190506114bb6000830187611279565b6114c86020830186611279565b6114d56040830185611279565b6114e26060830184611279565b95945050505050565b600082825260208201905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611532601f836114eb565b915061153d826114fc565b602082019050919050565b6000602082019050818103600083015261156181611525565b9050919050565b7f43616e6e6f742077697468647261772030000000000000000000000000000000600082015250565b600061159e6011836114eb565b91506115a982611568565b602082019050919050565b600060208201905081810360008301526115cd81611591565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061160e8261126f565b91506116198361126f565b9250828203905081811115611631576116306115d4565b5b92915050565b600060408201905061164c600083018561144f565b6116596020830184611279565b9392505050565b61166981611301565b811461167457600080fd5b50565b60008151905061168681611660565b92915050565b6000602082840312156116a2576116a16112a3565b5b60006116b084828501611677565b91505092915050565b7f546f6f20536d616c6c20566f6c756d6500000000000000000000000000000000600082015250565b60006116ef6010836114eb565b91506116fa826116b9565b602082019050919050565b6000602082019050818103600083015261171e816116e2565b9050919050565b600060608201905061173a600083018661144f565b611747602083018561144f565b6117546040830184611279565b949350505050565b7f43616e6e6f74207374616b652030000000000000000000000000000000000000600082015250565b6000611792600e836114eb565b915061179d8261175c565b602082019050919050565b600060208201905081810360008301526117c181611785565b9050919050565b60006117d38261126f565b91506117de8361126f565b92508282019050808211156117f6576117f56115d4565b5b92915050565b7f546f6f204d616e7920546f6b656e000000000000000000000000000000000000600082015250565b6000611832600e836114eb565b915061183d826117fc565b602082019050919050565b6000602082019050818103600083015261186181611825565b9050919050565b60006118738261126f565b915061187e8361126f565b925082820261188c8161126f565b915082820484148315176118a3576118a26115d4565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006118e48261126f565b91506118ef8361126f565b9250826118ff576118fe6118aa565b5b828204905092915050565b600081519050611919816112a8565b92915050565b600060208284031215611935576119346112a3565b5b60006119438482850161190a565b91505092915050565b7f546f74616c20616d6f756e74206f66207265776172647320697320746f6f206860008201527f6967680000000000000000000000000000000000000000000000000000000000602082015250565b60006119a86023836114eb565b91506119b38261194c565b604082019050919050565b600060208201905081810360008301526119d78161199b565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611a3a6026836114eb565b9150611a45826119de565b604082019050919050565b60006020820190508181036000830152611a6981611a2d565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611aa66020836114eb565b9150611ab182611a70565b602082019050919050565b60006020820190508181036000830152611ad581611a99565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000611b126010836114eb565b9150611b1d82611adc565b602082019050919050565b60006020820190508181036000830152611b4181611b05565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000611b7e6014836114eb565b9150611b8982611b48565b602082019050919050565b60006020820190508181036000830152611bad81611b71565b905091905056fea264697066735822122070a56fea703ce9362e7e329c72bd9b65ce566b57f99ec625a3b6bcaa622b53ed64736f6c63430008120033

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

000000000000000000000000e1D6aD723e20206A655b0677354d67BcD671b0840000000000000000000000005052fa4a2a147eaAa4c0242e9Cc54a10A4f42070

-----Decoded View---------------
Arg [0] : _stakingToken (address): 0xe1D6aD723e20206A655b0677354d67BcD671b084
Arg [1] : _rewardToken (address): 0x5052fa4a2a147eaAa4c0242e9Cc54a10A4f42070

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000e1D6aD723e20206A655b0677354d67BcD671b084
Arg [1] : 0000000000000000000000005052fa4a2a147eaAa4c0242e9Cc54a10A4f42070


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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