Function: claimRebate()
This allows a referrer to claim their rebate.
Branches and code coverage
Intended branches
If there is some value in rebates for
msg.sender
, transfer it to the caller and set this value to zero.
Negative behavior
N/A.
Function call analysis
this.usdc.transfer(msg.sender, this.rebates[msg.sender])
What is controllable?
msg.sender
andthis.rebates[msg.sender]
.If the return value is controllable, how is it used and how can it go wrong? No return value.
What happens if it reverts, reenters or does other unusual control flow? If it reverts, the entire call will revert — no reentrancy scenarios.