staketime改为传入的区间
This commit is contained in:
parent
56f84d850d
commit
50b39ad52a
File diff suppressed because one or more lines are too long
@ -65,7 +65,7 @@ contract ERC721Staking is Ownable, ReentrancyGuard, Pausable, ERC721Holder {
|
|||||||
|
|
||||||
IERC721(nfts[i]).safeTransferFrom(account, address(this), tokenIds[i]);
|
IERC721(nfts[i]).safeTransferFrom(account, address(this), tokenIds[i]);
|
||||||
_beginTimes[i] = uint64(block.timestamp);
|
_beginTimes[i] = uint64(block.timestamp);
|
||||||
_stakeTimes[i] = _beginTimes[i] + staketimes[i];
|
_stakeTimes[i] = staketimes[i];
|
||||||
stakingMap[nfts[i]][tokenIds[i]] = Staker(
|
stakingMap[nfts[i]][tokenIds[i]] = Staker(
|
||||||
account,
|
account,
|
||||||
nfts[i],
|
nfts[i],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user