Function: treasuryClaimReward(address claimant, address None)
The function can be called from treasury contract's batchClaimRewards to claim multiple rewards.
Inputs
claimantControl: Fully controlled.
Constraints: No constraints.
Impact: The address is the caller of
batchClaimRewardsfunction.
Branches and code coverage (including function calls)
Intended branches
The function internally calls
_claimReward, which will trigger issuance and accrue the collateral gains.The
_claimRewardshould update the deposits and snapshot if there are either debt loss, collateral gains, or some claimable rewards for the user.