kleros-interaction
kleros-interaction copied to clipboard
perf(RNG): use strict less on pre-merge check
saves at least 6 gas. "less or equal" does not exist in the evm as a separate opcode, so to get the same effect, the compiler:
- does a
>, and does a!on the result. - does a
<, then a==, then||both.
both variants need some stack manipulation, and take extra ops. but, you can just to a < check of the immediately larger value.







