Assessment reports>Polyhedra DVN>Threat Model>withdrawFee

Function: withdrawFee(address _messageLib, address payable _to)

Withdraws fees for a single messaging library. Callable by the owner only.

Inputs

  • _messageLib

    • Control: Full.

    • Constraints: None.

    • Impact: The address to try to withdraw the fees from (not necessarily an enabled messaging library).

  • _to

    • Control: Full.

    • Constraints: None.

    • Impact: The address to withdraw the funds to.

Branches and code coverage

Intended branches

  • Successfully withdraws fees from the messaging library at the address.

Negative behavior

  • Caller is not the owner.

  • No fees to claim from the library.

Zellic © 2025Back to top ↑