Assessment reports>Beefy UniswapV3>Threat Model>uniswapV3MintCallback

Function: uniswapV3MintCallback(uint256 amount0, uint256 amount1, bytes)

Defines the callback function for the Uniswap V3 pool to call when minting liquidity.

Inputs

  • amount0

    • Control: Controlled by the Uniswap V3 pool.

    • Constraints: Assumed to be a valid amount (i.e., address(this) can pay it).

    • Impact: The amount of token0 owed to the pool.

  • amount1

    • Control: Controlled by the Uniswap V3 pool.

    • Constraints: Assumed to be a valid amount (i.e., address(this) can pay it).

    • Impact: The amount of token1 owed to the pool.

Branches and code coverage

Intended branches

  • Send the owed tokens to the pool.

  • Reset the minting state.

Negative behavior

  • Should not be callable by anyone other than the pool.

  • Should not be callable if minting is false.

Zellic © 2024Back to top ↑