In the SDLPoolPrimary smart contract, the migrate
function includes a comment suggesting that it reverts if _lockingDuration
exceeds a maximum limit. However, there is no explicit check for this condition in the code. This omission may lead to unexpected behavior if there is a requirement to enforce a maximum locking duration.
The migrate
function in the SDLPoolPrimary contract lacks an explicit check for the maximum locking duration, as indicated by a comment in the code. Without this check, the contract may not enforce the intended constraint on the locking duration, potentially leading to unexpected behavior.
This issue could lead to unexpected behavior, potentially allowing stakeholders to migrate stakes with locking durations exceeding the intended maximum. This might result in a deviation from the contract's expected behavior and compromise the security of the system.
Manual review.
Include an explicit check for the maximum locking duration inside the migrate
function to ensure that the contract adheres to the specified constraints. For example:
Replace MAX_LOCKING_DURATION
with the actual maximum locking duration allowed.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.