staketime改为传入的区间

This commit is contained in:
CounterFire2023 2023-08-25 16:43:43 +08:00
parent 56f84d850d
commit 50b39ad52a
2 changed files with 1570 additions and 1807 deletions

File diff suppressed because one or more lines are too long

View File

@ -65,7 +65,7 @@ contract ERC721Staking is Ownable, ReentrancyGuard, Pausable, ERC721Holder {
IERC721(nfts[i]).safeTransferFrom(account, address(this), tokenIds[i]);
_beginTimes[i] = uint64(block.timestamp);
_stakeTimes[i] = _beginTimes[i] + staketimes[i];
_stakeTimes[i] = staketimes[i];
stakingMap[nfts[i]][tokenIds[i]] = Staker(
account,
nfts[i],