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
tokensToClaimformsg.senderis zero.
Function call analysis
ICallbacks(this.storageT.callbacks()).transferFromVault(msg.sender, tokens)What is controllable?
msg.senderandtokens.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.