Assessment reports>PDT Staking V2>Threat Model>distribute

Function: distribute()

This updates epoch details if the current epoch has ended.

Branches and code coverage

Intended branches

  • Executed successfully if called by EPOCH_MANAGER after an epoch has ended.

  • Reward token is ignored for the following epoch if excess balance is not present.

Negative behavior

  • Revert if the current epoch has not ended.

  • Revert if not called by EPOCH_MANAGER.

  • Revert if no new rewards are added.

Zellic © 2025Back to top ↑