staking/contracts
r4bbit db74969a94
fix(StakeManager): add checks for whether lockup period is in range
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
2023-11-07 09:54:31 +01:00
..
StakeManager.sol fix(StakeManager): add checks for whether lockup period is in range 2023-11-07 09:54:31 +01:00
StakeVault.sol refactor(StakeVault): introduce `stakedToken()` API (#36) 2023-11-07 09:40:38 +01:00
VaultFactory.sol feat: introduce `VaultFactory` (#38) 2023-11-07 09:49:22 +01:00