Assessment reports>Programmable Derivatives>Threat Model>setLiquidationThreshold

Function: setLiquidationThreshold(uint256 _liquidationThreshold)

This function is used to set the liquidation threshold. The liquidation threshold is the minimum percentage of the pool's reserves that must be maintained to avoid liquidation. The liquidation threshold cannot be set below 90%.

Inputs

  • _liquidationThreshold

    • Control: Arbitrary.

    • Constraints: The liquidation threshold must be greater than or equal to 90%.

    • Impact: Value of the liquidation threshold.

Branches and code coverage

Intended branches

  • Update the liquidation threshold.

Negative behavior

  • Revert if the caller does not have the GOV_ROLE.

  • Revert if the liquidation threshold is set below 90%.

Zellic © 2025Back to top ↑