Function: claimTokens()
This claims the pending token reward for the caller.
Branches and code coverage
Intended branches
If the caller has some tokens to claim, transfer these tokens to the caller.
Negative behavior
Revert if
tokensToClaim
formsg.sender
is zero.
Function call analysis
ICallbacks(this.storageT.callbacks()).transferFromVault(msg.sender, tokens)
What is controllable?
msg.sender
andtokens
.If the return value is controllable, how is it used and how can it go wrong? No return values.
What happens if it reverts, reenters or does other unusual control flow? If it reverts, the entire call will revert — no reentrancy scenarios.