OptimalMathFunction
Severity: Low | Category: Optimization
A detector that highlights standard library math function calls that have more gas-efficient alternatives.
Why is it bad?
Tact supports log2/pow2 functions, which are more gas-efficient than log(x, 2)/pow(x, 2).
Example
log(x, 2);
Use instead:
log2(x)