31276 - [SC - High] BPT can be locked for only week resulting in u...
Description
Brief/Intro
Vulnerability Details
function _createLock(
uint256 _value,
uint256 _lockDuration,
bool _maxLockEnabled,
address _to
) internal returns (uint256) {
// ...
uint256 unlockTime = /** ... */ ((block.timestamp + _lockDuration) / WEEK) * WEEK;
// ...
require(unlockTime >= (((block.timestamp + EPOCH) / WEEK) * WEEK), "Voting lock must be 1 epoch");
// ...
}Impact Details
References
Proof of Concept
Previous31272 - [SC - Low] Approved user cant merge tokens not approved fo...Next31277 - [SC - Insight] The user can propose with less voting power tha...
Last updated
Was this helpful?