Assessment reports>Orderly Network>Threat Model>setMaxWithdrawFee

Function: setMaxWithdrawFee(byte[32] _tokenHash, uint128 _maxWithdrawFee)

This allows the owner of the contract set the max value of the withdraw fee for token.

Inputs

  • _tokenHash

    • Control: Full control by owner.

    • Constraints: N/A.

    • Impact: N/A.

  • _maxWithdrawFee

    • Control: Full control by owner.

    • Constraints: N/A.

    • Impact: This value is used in the executeWithdrawAction function to check that the fee is not exceeding the allowed value.

Branches and code coverage

Negative behavior

  • Caller is not an owner.

  • Zero hash.

Zellic © 2024Back to top ↑