Skip to content

launchpad.createLaunchpad() enforces buyAmount defined && >0 even if createOnly = true #108

Open
@bloom-alex

Description

@bloom-alex

Hello!

The createLaunchPad method throws if you pass buyAmount = 0 even if createOnly is set to true.

IMO ideally, the input typing would not even allow passing a buyAmount at all if createOnly is true. It would be very obvious to users which parameters are expected in which case.

But at least, it would be cleaner to allow setting 0 or null/undefined.

Same would go for other parameters that are only used to setup the buy transaction (e.g. slippage)

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