Assessment reports>Prisma Finance>Threat Models>treasuryClaimReward

Function: treasuryClaimReward(address claimant, address None)

The function can be called from treasury contract's batchClaimRewards to claim multiple rewards.

Inputs

  • claimant

    • Control: Fully controlled.

    • Constraints: No constraints.

    • Impact: The address is the caller of batchClaimRewards function.

Branches and code coverage (including function calls)

Intended branches

  • The function internally calls _claimReward, which will trigger issuance and accrue the collateral gains.

  • The _claimReward should update the deposits and snapshot if there are either debt loss, collateral gains, or some claimable rewards for the user.

Zellic © 2025Back to top ↑