staking/test
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
..
mocks refactor: migrate repository to foundry-template (#6) 2023-09-12 18:37:30 +02:00
StakeManager.t.sol fix(StakeManager): add checks for whether lockup period is in range 2023-11-07 09:54:31 +01:00
StakeVault.t.sol feat: introduce `VaultFactory` (#38) 2023-11-07 09:49:22 +01:00
VaultFactory.t.sol feat: introduce `VaultFactory` (#38) 2023-11-07 09:49:22 +01:00