validate_execution_buffer

Documentation for eth_defi.gmx.gas_utils.validate_execution_buffer function.

validate_execution_buffer(execution_buffer)

Check the execution buffer value and log warnings if it is dangerously low.

This does not raise an exception — it only emits log messages so that the caller can proceed with the order while being informed of the risk.

Parameters

execution_buffer (float) – The multiplier to validate. Values below EXECUTION_BUFFER_CRITICAL_THRESHOLD (1.2) emit a critical error; values below EXECUTION_BUFFER_WARNING_THRESHOLD (1.5) emit a warning.

Return type

None