Assessment reports>Palmy Finance>Threat Model>increaseAmount

Function: increaseAmount(uint256 _value)

Deposits _value additional tokens for _lockerId without modifying the unlock time.

Inputs

  • _value

    • Control: Controlled by the caller.

    • Constraints: N/A.

    • Impact: Amount of tokens to add to the lock.

Branches and code coverage (including function calls)

Intended branches

  • Successful deposit and addition to an existing lock for msg.sender.

Negative behavior

  • Revert if no lock is associated with msg.sender.

  • Revert if _value is zero.

  • Revert if no existing lock is found for _lockerId.

  • Revert if the existing lock has expired.

Zellic © 2025Back to top ↑