Skip to content

Instantly share code, notes, and snippets.

View codecustard's full-sized avatar

codecustard

View GitHub Profile
@codecustard
codecustard / DamnSimpleNftStake.sol
Created April 9, 2022 11:35 — 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 {