Assessment reports>Wasabi Perps>Threat Model>recordInterestEarned

Function: recordInterestEarned(uint256 _interestAmount)

This function is called by the pool associated with the vault to record incoming interest earned.

Inputs

  • _interestAmount

    • Control: None (only the pool can call this function).

    • Constraints: None.

    • Impact: Amount of interest earned.

Branches and code coverage

Intended branches

  • Increases the recorded totalAssetValue by the provided _interestAmount.

Negative behavior

  • Reverts if the caller is not the pool associated with the vault.

Zellic © 2024Back to top ↑