Skip to content

Optimization in ConditionalTokens's prepareCondition #95

@remedcu

Description

@remedcu

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Med/low - Nice to haveenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions