Skip to content

Instantly share code, notes, and snippets.

View srivatsa31's full-sized avatar

Sri srivatsa31

View GitHub Profile
@srivatsa31
srivatsa31 / DamnSimpleNftStake.sol
Created March 14, 2022 10:30 — forked from Chmarusso/DamnSimpleNftStake.sol
Super Simple NFT staking
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Receiver.sol";
contract NftStaker {
IERC1155 public parentNFT;
struct Stake {