Assessment reports>STFX>Threat Models>addMinInvestmentAmount

Function: addMinInvestmentAmount(address _token, uint96 _amount)

Setter for the minInvestmentAmount mapping. This sets the lower bound for the amount of tokens that can be deposited into a fund. Can only be set by the owner.

Inputs

  • _token

    • Control: Full.

    • Constraints: None, can even be the zero address.

    • Impact: Address to change lower bound for.

  • _amount

    • Control: Full.

    • Constraints: 1e18 or greater.

    • Impact: The lower bound.

Branches and code coverage (including function calls)

Intended branches

  • Set minimum investment amount.

  • Change an existing bound.

Negative behavior

  • No amount less than 1e18.

Zellic © 2024Back to top ↑