Assessment reports>Polygon Staking>Threat Model>splitRewards

Function: splitRewards()

This function splits rewards between fee receivers. Unlike performUpkeep, it bypasses the reward threshold.

Branches and code coverage

Intended branches

  • Subtract LST balance from principal deposits to get new rewards.

  • Add negative rewards, if there are any, to principal deposits.

  • Check if there are enough new rewards.

  • Split rewards otherwise.

Negative behavior

  • Revert transactions if there are not enough new rewards.

Zellic © 2025Back to top ↑