Assessment reports>Aura Finance>Threat Models>Function: processIdleRewards()

Function: processIdleRewards()

Starts to process queued rewards, given that periodFinish is reached and there are rewards queued.

Branches and code coverage (including function calls)

Intended branches

  • Call when there are queued rewards.

Negative behavior

  • Called when there are no queued rewards.

  • Called before periodFinish has passed.

Function call analysis

  • rootFunction -> notifyRewardAmount(queuedRewards)

    • What is controllable? Nothing, queuedRewards is an internal variable.

    • If return value controllable, how is it used and how can it go wrong? N/A.

    • What happens if it reverts, reenters, or does other unusual control flow? N/A.

Zellic © 2024Back to top ↑