Function: panic(uint256 _minAmount0, uint256 _minAmount1)

Allows manager to "panic", essentially pausing deposits and removing liquidity and allowances.

Inputs

  • _minAmount0

    • Control: The minimum amount of token0 in the strategy after panic.

    • Constraints: Checked that it is larger than balances.

    • Impact: If the balance is less than this, the function will revert.

  • _minAmount1

    • Control: The minimum amount of token1 in the strategy after panic.

    • Constraints: Checked that it is larger than balances.

    • Impact: If the balance is less than this, the function will revert.

Branches and code coverage

Intended branches

  • Remove liquidity.

  • Remove allowances.

  • Pause the contract.

  • Check if the balances are larger than the minimum amounts.

Negative behavior

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

Zellic © 2024Back to top ↑