Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 1.07 KB

README.md

File metadata and controls

13 lines (8 loc) · 1.07 KB

Stake an NFT for rewards in an ERC20 Token

This contract gives you ability to stake your NFT(s) and earn reward tokens (an imagined ERC20 token) in return.

Description

Any owner of the NFT collection (see the contracts folder, MyNFT.sol) can stake their NFT into the Controller (Controller.sol) contract by sending their NFT to it. Then, each 24 hours, they receive 10 ERC20 Tokens (MyToken.sol) per staked NFT. If they withdraw, they forego the reward. The rewards only occur in 24-hour intervals. No partial rewards are given. So only after the delta time > 24 hours do they receive 10 tokens. If greater than 48 hours, they receive 20 tokens, and so on. They can claim multiple times, but only receive whatever they are entitled to between the last call and now.

Contact

Twitter URL

License

This project uses the following license: MIT.