Assessment reports>Nukem Loans>Threat Model>totalSupply

Function: totalSupply()

This gets the total supply going through the rounds.

Branches and code coverage (including function calls)

Intended branches

  • Tests as functioned.

Function call analysis

  • totalSupply -> strat.numberOfRounds()

    • What is controllable? Everything.

    • If return value controllable, how is it used and how can it go wrong? Number of rounds to iterate.

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

  • totalSupply -> strat.peekRaw()

    • What is controllable? Everything.

    • If return value controllable, how is it used and how can it go wrong? Last computed rate.

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

  • totalSupply -> strat.precision()

    • What is controllable? Everything.

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

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

Zellic © 2024Back to top ↑