Loading

evm_min

Scalar function

Returns the minimum of two UINT256 values. Equivalent to DuckDB's least() but with explicit EVM naming.

evm_min(UINT256, UINT256)

Parameters

Name Type
a UINT256
b UINT256

Returns

Name Type
min UINT256
1
SELECT evm_min(reserve0, reserve1) AS smaller_reserve;
Notebook ready in readonly mode.