Skip to content

Commit faa5b73

Browse files
authored
Merge pull request #2 from NFTX-project/inventory-staking-increasePosition-check-vTokenTimelock
fix: InventoryStaking: check vTokenTimelock for increaseLiquidity instead of timelock
2 parents a8c58f1 + 26a5ac2 commit faa5b73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NFTXInventoryStakingV3Upgradeable.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ contract NFTXInventoryStakingV3Upgradeable is
734734
onlyOwnerIfPaused(4);
735735

736736
// only allow for positions created with just vTokens
737-
if (position.timelockedUntil > 0)
737+
if (position.vTokenTimelockedUntil == 0)
738738
revert PositionNotCreatedWithVTokens();
739739

740740
VaultGlobal storage _vaultGlobal = vaultGlobal[vaultId];

0 commit comments

Comments
 (0)