Assessment reports>Origami Finance>Threat Model>addPendingReserves

Function: addPendingReserves(uint256 amount)

Allows the caller who has access to the function to add more reserve tokens. The new tokens will be vested.

Inputs

  • amount

    • Constraints: The caller should have enough number of reserveTokens to transfer.

    • Impact: The amount will increase pendingReserves, and totalReserves() is gradually increasing as the vesting period ends.

Branches and code coverage

Negative behavior

  • Non-whitelisted caller

  • amount is zero.

Zellic © 2025Back to top ↑