Function: withdrawExpiredLocks(uint256 _weeks)
Withdraw tokens from locks that have expired.
Inputs
_weeks
Control: Controlled by the user.
Constraints: N/A.
Impact: Optional number of weeks for the relocking.
Branches and code coverage (including function calls)
Intended branches
The
_weeks
is zero, and unlocked tokens are greater than zero formsg.sender
.The
_weeks
is nonzero, and unlocked tokens are greater than zero formsg.sender
.
Function call analysis
lock -> lockToken.transferToLocker(msg.sender, _amount * lockToTokenRatio)
What is controllable? N/A.
If return value controllable, how is it used and how can it go wrong? N/A.
What happens if it reverts, reenters, or does other unusual control flow? N/A.