gnosis/conditional-tokens-contracts

Optimization in ConditionalTokens's prepareCondition

Opened this issue · 0 comments

Line 67 in ConditionalToken can be rewritten as:

require(outcomeSlotCount < 257, "too many outcome slots");

Where the <= part can be optimized with just a single comparison, rather than to do two comparisons (under the hood)