Skip to content

Commit 26a5ac2

Browse files
committed
fix: InventoryStaking: check vTokenTimelock for increaseLiquidity
1 parent a8c58f1 commit 26a5ac2

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)