mirror of https://github.com/logos-co/staking.git
db74969a94
This commit introduces `MIN_LOCKUP_PERIOD` and `MAX_LOCKUP_PERIOD` and makes use of them within `StakeManager.stake()` and `StakeManager.lock()` accordingly. When users deposit tokens into their vault via `stake()`, they can provide an optional lockup time. If the value is `0` it implies users do not want to lock their stake. If the value is `> 0` it has to be within the range of `MIN_LOCKUP_PERIOD` and `MAX_LOCKUP_PERIOD`. Properly addresses #15 |
||
---|---|---|
.. | ||
mocks | ||
StakeManager.t.sol | ||
StakeVault.t.sol | ||
VaultFactory.t.sol |