Assessment reports>Orderly Network>Threat Model>withdrawNativeToken

Function: withdrawNativeToken(address payable to, uint256 amount)

This allows the owner to withdraw native tokens.

Inputs

  • to

    • Control: Fully controlled by the owner.

    • Constraints: None.

    • Impact: The native token is transferred to to.

  • amount

    • Control: Fully controlled by the owner.

    • Constraints: None.

    • Impact: The native token is transferred to to.

Branches and code coverage

Intended branches

  • Allow owner to withdraw native tokens.

Negative behavior

  • Assumes no malicious intent on behalf of the owner.

  • Should not allow anyone other than the owner to call this function.

Zellic © 2024Back to top ↑