Assessment reports>Palmy Finance>Threat Model>withdraw

Function: withdraw()

Withdraws all tokens for sender.

Branches and code coverage (including function calls)

Intended branches

  • Locked balance is set to zero for msg.sender.

  • Withdrawn tokens are transferred to msg.sender.

  • Uses newly checkpointed state.

Negative behavior

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

  • Revert if the lock has not expired.

  • Revert if the token transfer fails.

Zellic © 2025Back to top ↑