Assessment reports>Beefy UniswapV3>Threat Model>setLpToken0ToNativePath

Function: setLpToken0ToNativePath(bytes _path)

Allows setting the path to swap the first token to the native token for fee harvesting.

Inputs

  • _path

    • Control: Fully controlled by the owner.

    • Constraints: No constraints.

    • Impact: The path to swap the first token to the native token.

Branches and code coverage

Intended branches

  • Assumes the path is legitimate and sets the path to lpToken1ToNativePath.

  • Checks that the first token in the path is the same as lpToken1.

  • Checks that the last token in the path is the same as native.

Negative behavior

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

Zellic © 2024Back to top ↑