Skip to content

is it free to make this inline function? #31

@KillariDev

Description

@KillariDev

Solidity doesn't have a min built-in function?

Since we are doing this in at least 2 places, it may be worth making a named function just for readability. Does Solidity do inline optimizations for pure private functions like this, so such a thing ends up being "free" gas wise?

Originally posted by @MicahZoltu in #2 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions