ETH Price: $2,533.09 (-0.03%)

Contract

0x27a5F3ca9DB72e3E99C821bb542688315eB34725
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Stake NFT159576722022-11-13 0:58:35655 days ago1668301115IN
0x27a5F3ca...15eB34725
0 ETH0.001444111.45705404
Stake NFT159576462022-11-13 0:53:23655 days ago1668300803IN
0x27a5F3ca...15eB34725
0 ETH0.0020132713.17841251
Stake NFT159574192022-11-13 0:07:59655 days ago1668298079IN
0x27a5F3ca...15eB34725
0 ETH0.0014916511.8343218
Stake NFT159571442022-11-12 23:12:47655 days ago1668294767IN
0x27a5F3ca...15eB34725
0 ETH0.0015504411.84946514
Un Stake NFT159571372022-11-12 23:11:23655 days ago1668294683IN
0x27a5F3ca...15eB34725
0 ETH0.0014072214.03592917
Stake NFT159571342022-11-12 23:10:47655 days ago1668294647IN
0x27a5F3ca...15eB34725
0 ETH0.0018340912.00550672
Stake NFT159568852022-11-12 22:20:59655 days ago1668291659IN
0x27a5F3ca...15eB34725
0 ETH0.0016012512.23893972
Un Stake NFT159568832022-11-12 22:20:35655 days ago1668291635IN
0x27a5F3ca...15eB34725
0 ETH0.0015095312.86255755
Stake NFT159568462022-11-12 22:13:11655 days ago1668291191IN
0x27a5F3ca...15eB34725
0 ETH0.0015471211.82519719
Un Stake NFT159568422022-11-12 22:12:23655 days ago1668291143IN
0x27a5F3ca...15eB34725
0 ETH0.001424312.13633453
Stake NFT159568082022-11-12 22:05:35655 days ago1668290735IN
0x27a5F3ca...15eB34725
0 ETH0.0016046612.26382596
Stake NFT159567632022-11-12 21:56:35655 days ago1668290195IN
0x27a5F3ca...15eB34725
0 ETH0.0015132211.56501257
Stake NFT159567312022-11-12 21:50:11655 days ago1668289811IN
0x27a5F3ca...15eB34725
0 ETH0.0015456611.81296953
Stake NFT159567012022-11-12 21:44:11655 days ago1668289451IN
0x27a5F3ca...15eB34725
0 ETH0.0014203110.85491991
Stake NFT159566912022-11-12 21:42:11655 days ago1668289331IN
0x27a5F3ca...15eB34725
0 ETH0.0016152212.34456501
Stake NFT159566572022-11-12 21:35:11655 days ago1668288911IN
0x27a5F3ca...15eB34725
0 ETH0.0013992511.10123856
Stake NFT159566082022-11-12 21:25:23655 days ago1668288323IN
0x27a5F3ca...15eB34725
0 ETH0.0016670112.74038184
Stake NFT159565032022-11-12 21:04:23655 days ago1668287063IN
0x27a5F3ca...15eB34725
0 ETH0.0013205110.47649697
Stake NFT159564732022-11-12 20:58:23655 days ago1668286703IN
0x27a5F3ca...15eB34725
0 ETH0.0013652110.83115742
Stake NFT159563792022-11-12 20:38:59655 days ago1668285539IN
0x27a5F3ca...15eB34725
0 ETH0.0016390812.5269374
Stake NFT159563612022-11-12 20:35:23655 days ago1668285323IN
0x27a5F3ca...15eB34725
0 ETH0.0014913611.39793321
Stake NFT159563352022-11-12 20:30:11655 days ago1668285011IN
0x27a5F3ca...15eB34725
0 ETH0.0016430612.55730672
Stake NFT159561652022-11-12 19:55:59655 days ago1668282959IN
0x27a5F3ca...15eB34725
0 ETH0.00162112.38877787
Stake NFT159561552022-11-12 19:53:59655 days ago1668282839IN
0x27a5F3ca...15eB34725
0 ETH0.0015627611.94361648
Stake NFT159560432022-11-12 19:31:35655 days ago1668281495IN
0x27a5F3ca...15eB34725
0 ETH0.0015967312.66915425
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:
ForgeNFTStaking

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 10 : NFTStaking.sol
// SPDX-License-Identifier: MIT

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";

pragma solidity ^0.8.9;

contract ForgeNFTStaking is ERC721Holder, Ownable{

    mapping(address=>uint256) stakers;
    mapping(address=>bool) staked;
    mapping(address=>uint256) stakeTime;

    IERC20 public ForgeToken;
    IERC721 public ForgeNFT;
    address public stakingVault;
    uint256 public RewardsPerSecond = uint256((50 * 1e18)) / 86400; //Forge Per second
    uint256 public totalStaked;

    constructor() {
        ForgeToken = IERC20(0x5198625A8ABf34a0d2A1F262861fF3b3079302bF);
        ForgeNFT = IERC721(0x9dC1b5a6e3DCc2e46775a4bfdb93394Fa476daec);
        stakingVault = 0x510a972852f9Ca32Ed0292F501B3aC4679db9c9A;
    }


    function setForgeToken(address _forgeToken) public onlyOwner{
        ForgeToken = IERC20(_forgeToken);
    }

    function setForgeNFT(address _ForgeNFT) public onlyOwner{
        ForgeNFT = IERC721(_ForgeNFT);
    }

    function setStakingVault(address _stakingVault) public onlyOwner{
        stakingVault = _stakingVault;
    }

    function setRewardsPerDay(uint256 _forgeAmount) public onlyOwner{
        RewardsPerSecond = _forgeAmount / 86400;
    }


    function stakeNFT(uint256 _tokenId) public {
        require(ForgeNFT.ownerOf(_tokenId) == msg.sender, "You are not owner of this token!");
        require(staked[msg.sender] == false, "You already staked an nft!");

        stakers[msg.sender] = _tokenId;
        staked[msg.sender] = true;
        stakeTime[msg.sender] = block.timestamp;
        totalStaked += 1;

        ForgeNFT.safeTransferFrom(msg.sender, address(this), _tokenId);
    }

    function unStakeNFT() public {
        require(staked[msg.sender] == true, "You are not staking!");
        uint256 tokenId = stakers[msg.sender];

        uint256 rewards = getEarnedRewards(msg.sender);
        if(rewards > 0){
            ForgeToken.transferFrom(stakingVault, msg.sender, rewards);
        }

        stakers[msg.sender] = 0;
        staked[msg.sender] = false;
        stakeTime[msg.sender] = 0;
        totalStaked -= 1;
        
        ForgeNFT.safeTransferFrom(address(this), msg.sender, tokenId);
    }

    function getEarnedRewards(address _staker) public view returns(uint256){
        if(staked[_staker] == false){
            return 0;
        }
        return (block.timestamp - stakeTime[_staker]) * RewardsPerSecond;
    }

    function getStakedTokenId(address _staker) public view returns(uint256){
        return stakers[_staker];
    }

    function isStakingNFT(address _staker) public view returns(bool){
        return staked[_staker];
    }

}

File 2 of 10 : ERC721Holder.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol)

pragma solidity ^0.8.0;

import "../IERC721Receiver.sol";

/**
 * @dev Implementation of the {IERC721Receiver} interface.
 *
 * Accepts all token transfers.
 * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.
 */
contract ERC721Holder is IERC721Receiver {
    /**
     * @dev See {IERC721Receiver-onERC721Received}.
     *
     * Always returns `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address,
        address,
        uint256,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC721Received.selector;
    }
}

File 3 of 10 : 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 4 of 10 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 5 of 10 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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 6 of 10 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 7 of 10 : 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 10 : 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;
    }
}

File 9 of 10 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 10 of 10 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"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"},{"inputs":[],"name":"ForgeNFT","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ForgeToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RewardsPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_staker","type":"address"}],"name":"getEarnedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_staker","type":"address"}],"name":"getStakedTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_staker","type":"address"}],"name":"isStakingNFT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_ForgeNFT","type":"address"}],"name":"setForgeNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_forgeToken","type":"address"}],"name":"setForgeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_forgeAmount","type":"uint256"}],"name":"setRewardsPerDay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_stakingVault","type":"address"}],"name":"setStakingVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"stakeNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingVault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unStakeNFT","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052620151806802b5e3af16b18800006200001e919062000259565b6007553480156200002e57600080fd5b506200004f620000436200015460201b60201c565b6200015c60201b60201c565b735198625a8abf34a0d2a1f262861ff3b3079302bf600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550739dc1b5a6e3dcc2e46775a4bfdb93394fa476daec600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073510a972852f9ca32ed0292f501b3ac4679db9c9a600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000291565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000620002668262000220565b9150620002738362000220565b9250826200028657620002856200022a565b5b828204905092915050565b61180980620002a16000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c8063715018a6116100a257806395ec0c211161007157806395ec0c21146102cf578063c2f777ed146102eb578063f2fde38b14610309578063fa27c3d914610325578063fe5607921461032f57610116565b8063715018a61461026b578063817b1cd2146102755780638da5cb5b1461029357806392c138a2146102b157610116565b80634612bd4f116100e95780634612bd4f146101b55780634e905e68146101e557806351cfd4aa146102155780636eb604e0146102335780636ebd14a11461024f57610116565b8063150b7a021461011b57806324e7964a1461014b5780633cc2757b146101695780633ee21d1a14610185575b600080fd5b610135600480360381019061013091906110c8565b61034b565b6040516101429190611186565b60405180910390f35b61015361035f565b60405161016091906111b0565b60405180910390f35b610183600480360381019061017e91906111cb565b610385565b005b61019f600480360381019061019a91906111f8565b6103a5565b6040516101ac9190611240565b60405180910390f35b6101cf60048036038101906101ca91906111f8565b6103fb565b6040516101dc919061126a565b60405180910390f35b6101ff60048036038101906101fa91906111f8565b6104be565b60405161020c919061126a565b60405180910390f35b61021d610507565b60405161022a91906112e4565b60405180910390f35b61024d600480360381019061024891906111cb565b61052d565b005b610269600480360381019061026491906111f8565b610866565b005b6102736108b2565b005b61027d6108c6565b60405161028a919061126a565b60405180910390f35b61029b6108cc565b6040516102a891906111b0565b60405180910390f35b6102b96108f5565b6040516102c69190611320565b60405180910390f35b6102e960048036038101906102e491906111f8565b61091b565b005b6102f3610967565b604051610300919061126a565b60405180910390f35b610323600480360381019061031e91906111f8565b61096d565b005b61032d6109f1565b005b610349600480360381019061034491906111f8565b610d44565b005b600063150b7a0260e01b9050949350505050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61038d610d90565b620151808161039c9190611399565b60078190555050565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000801515600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515141561045e57600090506104b9565b600754600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054426104ac91906113ca565b6104b691906113fe565b90505b919050565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161059f919061126a565b60206040518083038186803b1580156105b757600080fd5b505afa1580156105cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ef919061146d565b73ffffffffffffffffffffffffffffffffffffffff1614610645576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063c906114f7565b60405180910390fd5b60001515600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515146106d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106cf90611563565b60405180910390fd5b80600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555042600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600860008282546107cb9190611583565b92505081905550600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3330846040518463ffffffff1660e01b8152600401610831939291906115d9565b600060405180830381600087803b15801561084b57600080fd5b505af115801561085f573d6000803e3d6000fd5b5050505050565b61086e610d90565b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6108ba610d90565b6108c46000610e0e565b565b60085481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610923610d90565b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60075481565b610975610d90565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156109e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109dc90611682565b60405180910390fd5b6109ee81610e0e565b50565b60011515600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610a84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7b906116ee565b60405180910390fd5b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000610ad3336103fb565b90506000811115610bb357600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1633846040518463ffffffff1660e01b8152600401610b5f939291906115d9565b602060405180830381600087803b158015610b7957600080fd5b505af1158015610b8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb1919061173a565b505b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600160086000828254610ca891906113ca565b92505081905550600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3033856040518463ffffffff1660e01b8152600401610d0e939291906115d9565b600060405180830381600087803b158015610d2857600080fd5b505af1158015610d3c573d6000803e3d6000fd5b505050505050565b610d4c610d90565b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610d98610ed2565b73ffffffffffffffffffffffffffffffffffffffff16610db66108cc565b73ffffffffffffffffffffffffffffffffffffffff1614610e0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e03906117b3565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610f1982610eee565b9050919050565b610f2981610f0e565b8114610f3457600080fd5b50565b600081359050610f4681610f20565b92915050565b6000819050919050565b610f5f81610f4c565b8114610f6a57600080fd5b50565b600081359050610f7c81610f56565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610fd582610f8c565b810181811067ffffffffffffffff82111715610ff457610ff3610f9d565b5b80604052505050565b6000611007610eda565b90506110138282610fcc565b919050565b600067ffffffffffffffff82111561103357611032610f9d565b5b61103c82610f8c565b9050602081019050919050565b82818337600083830152505050565b600061106b61106684611018565b610ffd565b90508281526020810184848401111561108757611086610f87565b5b611092848285611049565b509392505050565b600082601f8301126110af576110ae610f82565b5b81356110bf848260208601611058565b91505092915050565b600080600080608085870312156110e2576110e1610ee4565b5b60006110f087828801610f37565b945050602061110187828801610f37565b935050604061111287828801610f6d565b925050606085013567ffffffffffffffff81111561113357611132610ee9565b5b61113f8782880161109a565b91505092959194509250565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6111808161114b565b82525050565b600060208201905061119b6000830184611177565b92915050565b6111aa81610f0e565b82525050565b60006020820190506111c560008301846111a1565b92915050565b6000602082840312156111e1576111e0610ee4565b5b60006111ef84828501610f6d565b91505092915050565b60006020828403121561120e5761120d610ee4565b5b600061121c84828501610f37565b91505092915050565b60008115159050919050565b61123a81611225565b82525050565b60006020820190506112556000830184611231565b92915050565b61126481610f4c565b82525050565b600060208201905061127f600083018461125b565b92915050565b6000819050919050565b60006112aa6112a56112a084610eee565b611285565b610eee565b9050919050565b60006112bc8261128f565b9050919050565b60006112ce826112b1565b9050919050565b6112de816112c3565b82525050565b60006020820190506112f960008301846112d5565b92915050565b600061130a826112b1565b9050919050565b61131a816112ff565b82525050565b60006020820190506113356000830184611311565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006113a482610f4c565b91506113af83610f4c565b9250826113bf576113be61133b565b5b828204905092915050565b60006113d582610f4c565b91506113e083610f4c565b9250828210156113f3576113f261136a565b5b828203905092915050565b600061140982610f4c565b915061141483610f4c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561144d5761144c61136a565b5b828202905092915050565b60008151905061146781610f20565b92915050565b60006020828403121561148357611482610ee4565b5b600061149184828501611458565b91505092915050565b600082825260208201905092915050565b7f596f7520617265206e6f74206f776e6572206f66207468697320746f6b656e21600082015250565b60006114e160208361149a565b91506114ec826114ab565b602082019050919050565b60006020820190508181036000830152611510816114d4565b9050919050565b7f596f7520616c7265616479207374616b656420616e206e667421000000000000600082015250565b600061154d601a8361149a565b915061155882611517565b602082019050919050565b6000602082019050818103600083015261157c81611540565b9050919050565b600061158e82610f4c565b915061159983610f4c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156115ce576115cd61136a565b5b828201905092915050565b60006060820190506115ee60008301866111a1565b6115fb60208301856111a1565b611608604083018461125b565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061166c60268361149a565b915061167782611610565b604082019050919050565b6000602082019050818103600083015261169b8161165f565b9050919050565b7f596f7520617265206e6f74207374616b696e6721000000000000000000000000600082015250565b60006116d860148361149a565b91506116e3826116a2565b602082019050919050565b60006020820190508181036000830152611707816116cb565b9050919050565b61171781611225565b811461172257600080fd5b50565b6000815190506117348161170e565b92915050565b6000602082840312156117505761174f610ee4565b5b600061175e84828501611725565b91505092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061179d60208361149a565b91506117a882611767565b602082019050919050565b600060208201905081810360008301526117cc81611790565b905091905056fea2646970667358221220bac020f514001307f9cfc39040ebad36fe11a9169beae434eaf5b5f10924688864736f6c63430008090033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101165760003560e01c8063715018a6116100a257806395ec0c211161007157806395ec0c21146102cf578063c2f777ed146102eb578063f2fde38b14610309578063fa27c3d914610325578063fe5607921461032f57610116565b8063715018a61461026b578063817b1cd2146102755780638da5cb5b1461029357806392c138a2146102b157610116565b80634612bd4f116100e95780634612bd4f146101b55780634e905e68146101e557806351cfd4aa146102155780636eb604e0146102335780636ebd14a11461024f57610116565b8063150b7a021461011b57806324e7964a1461014b5780633cc2757b146101695780633ee21d1a14610185575b600080fd5b610135600480360381019061013091906110c8565b61034b565b6040516101429190611186565b60405180910390f35b61015361035f565b60405161016091906111b0565b60405180910390f35b610183600480360381019061017e91906111cb565b610385565b005b61019f600480360381019061019a91906111f8565b6103a5565b6040516101ac9190611240565b60405180910390f35b6101cf60048036038101906101ca91906111f8565b6103fb565b6040516101dc919061126a565b60405180910390f35b6101ff60048036038101906101fa91906111f8565b6104be565b60405161020c919061126a565b60405180910390f35b61021d610507565b60405161022a91906112e4565b60405180910390f35b61024d600480360381019061024891906111cb565b61052d565b005b610269600480360381019061026491906111f8565b610866565b005b6102736108b2565b005b61027d6108c6565b60405161028a919061126a565b60405180910390f35b61029b6108cc565b6040516102a891906111b0565b60405180910390f35b6102b96108f5565b6040516102c69190611320565b60405180910390f35b6102e960048036038101906102e491906111f8565b61091b565b005b6102f3610967565b604051610300919061126a565b60405180910390f35b610323600480360381019061031e91906111f8565b61096d565b005b61032d6109f1565b005b610349600480360381019061034491906111f8565b610d44565b005b600063150b7a0260e01b9050949350505050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61038d610d90565b620151808161039c9190611399565b60078190555050565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000801515600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515141561045e57600090506104b9565b600754600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054426104ac91906113ca565b6104b691906113fe565b90505b919050565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161059f919061126a565b60206040518083038186803b1580156105b757600080fd5b505afa1580156105cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ef919061146d565b73ffffffffffffffffffffffffffffffffffffffff1614610645576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063c906114f7565b60405180910390fd5b60001515600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515146106d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106cf90611563565b60405180910390fd5b80600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555042600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600860008282546107cb9190611583565b92505081905550600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3330846040518463ffffffff1660e01b8152600401610831939291906115d9565b600060405180830381600087803b15801561084b57600080fd5b505af115801561085f573d6000803e3d6000fd5b5050505050565b61086e610d90565b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6108ba610d90565b6108c46000610e0e565b565b60085481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610923610d90565b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60075481565b610975610d90565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156109e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109dc90611682565b60405180910390fd5b6109ee81610e0e565b50565b60011515600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610a84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7b906116ee565b60405180910390fd5b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000610ad3336103fb565b90506000811115610bb357600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1633846040518463ffffffff1660e01b8152600401610b5f939291906115d9565b602060405180830381600087803b158015610b7957600080fd5b505af1158015610b8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb1919061173a565b505b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600160086000828254610ca891906113ca565b92505081905550600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3033856040518463ffffffff1660e01b8152600401610d0e939291906115d9565b600060405180830381600087803b158015610d2857600080fd5b505af1158015610d3c573d6000803e3d6000fd5b505050505050565b610d4c610d90565b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610d98610ed2565b73ffffffffffffffffffffffffffffffffffffffff16610db66108cc565b73ffffffffffffffffffffffffffffffffffffffff1614610e0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e03906117b3565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610f1982610eee565b9050919050565b610f2981610f0e565b8114610f3457600080fd5b50565b600081359050610f4681610f20565b92915050565b6000819050919050565b610f5f81610f4c565b8114610f6a57600080fd5b50565b600081359050610f7c81610f56565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610fd582610f8c565b810181811067ffffffffffffffff82111715610ff457610ff3610f9d565b5b80604052505050565b6000611007610eda565b90506110138282610fcc565b919050565b600067ffffffffffffffff82111561103357611032610f9d565b5b61103c82610f8c565b9050602081019050919050565b82818337600083830152505050565b600061106b61106684611018565b610ffd565b90508281526020810184848401111561108757611086610f87565b5b611092848285611049565b509392505050565b600082601f8301126110af576110ae610f82565b5b81356110bf848260208601611058565b91505092915050565b600080600080608085870312156110e2576110e1610ee4565b5b60006110f087828801610f37565b945050602061110187828801610f37565b935050604061111287828801610f6d565b925050606085013567ffffffffffffffff81111561113357611132610ee9565b5b61113f8782880161109a565b91505092959194509250565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6111808161114b565b82525050565b600060208201905061119b6000830184611177565b92915050565b6111aa81610f0e565b82525050565b60006020820190506111c560008301846111a1565b92915050565b6000602082840312156111e1576111e0610ee4565b5b60006111ef84828501610f6d565b91505092915050565b60006020828403121561120e5761120d610ee4565b5b600061121c84828501610f37565b91505092915050565b60008115159050919050565b61123a81611225565b82525050565b60006020820190506112556000830184611231565b92915050565b61126481610f4c565b82525050565b600060208201905061127f600083018461125b565b92915050565b6000819050919050565b60006112aa6112a56112a084610eee565b611285565b610eee565b9050919050565b60006112bc8261128f565b9050919050565b60006112ce826112b1565b9050919050565b6112de816112c3565b82525050565b60006020820190506112f960008301846112d5565b92915050565b600061130a826112b1565b9050919050565b61131a816112ff565b82525050565b60006020820190506113356000830184611311565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006113a482610f4c565b91506113af83610f4c565b9250826113bf576113be61133b565b5b828204905092915050565b60006113d582610f4c565b91506113e083610f4c565b9250828210156113f3576113f261136a565b5b828203905092915050565b600061140982610f4c565b915061141483610f4c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561144d5761144c61136a565b5b828202905092915050565b60008151905061146781610f20565b92915050565b60006020828403121561148357611482610ee4565b5b600061149184828501611458565b91505092915050565b600082825260208201905092915050565b7f596f7520617265206e6f74206f776e6572206f66207468697320746f6b656e21600082015250565b60006114e160208361149a565b91506114ec826114ab565b602082019050919050565b60006020820190508181036000830152611510816114d4565b9050919050565b7f596f7520616c7265616479207374616b656420616e206e667421000000000000600082015250565b600061154d601a8361149a565b915061155882611517565b602082019050919050565b6000602082019050818103600083015261157c81611540565b9050919050565b600061158e82610f4c565b915061159983610f4c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156115ce576115cd61136a565b5b828201905092915050565b60006060820190506115ee60008301866111a1565b6115fb60208301856111a1565b611608604083018461125b565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061166c60268361149a565b915061167782611610565b604082019050919050565b6000602082019050818103600083015261169b8161165f565b9050919050565b7f596f7520617265206e6f74207374616b696e6721000000000000000000000000600082015250565b60006116d860148361149a565b91506116e3826116a2565b602082019050919050565b60006020820190508181036000830152611707816116cb565b9050919050565b61171781611225565b811461172257600080fd5b50565b6000815190506117348161170e565b92915050565b6000602082840312156117505761174f610ee4565b5b600061175e84828501611725565b91505092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061179d60208361149a565b91506117a882611767565b602082019050919050565b600060208201905081810360008301526117cc81611790565b905091905056fea2646970667358221220bac020f514001307f9cfc39040ebad36fe11a9169beae434eaf5b5f10924688864736f6c63430008090033

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.