Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions NFTStakingV3-BringYourOwnNFTCollection.sol
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ contract NFTStaking is Ownable, IERC721Receiver {
require(staked.owner == account, "not an owner");
uint256 stakedAt = staked.timestamp;
rewardmath = 100 ether * (block.timestamp - stakedAt) / 86400 ;
earned = rewardmath / 100;
earned += rewardmath / 100;
vault[tokenId] = Stake({
owner: account,
tokenId: uint24(tokenId),
Expand All @@ -147,7 +147,7 @@ contract NFTStaking is Ownable, IERC721Receiver {
require(staked.owner == account, "not an owner");
uint256 stakedAt = staked.timestamp;
rewardmath = 100 ether * (block.timestamp - stakedAt) / 86400;
earned = rewardmath / 100;
earned += rewardmath / 100;

}
if (earned > 0) {
Expand Down