Assessment reports>Odos>Threat Models>setSwapMultiFee

Function: setSwapMultiFee(uint256 _swapMultiFee)

This function allows the contract owner to specify the fee incurred by the users when performing multihop swaps.

Inputs

  • _swapMultiFee

    • Control: Arbitrary.

    • Constraints: Must represent a fee of at most 0.5%.

    • Impact: Determines the new multihop fee.

Branches and code coverage (including function calls)

Intended branches

  • Stores the new multihop fee.

Negative behavior

  • Reverts if the caller is not the contract owner.

  • Reverts is the swap fee is too high.

Zellic © 2024Back to top ↑