Skip to content

Add minReturn to BondingCurve contract #2

Description

@balasan

To prevent front-running attacks by miners, we should add a minReturn parameter to the buy and sell functions and appropriate tests.

The fallback contract should call buy(MAX_RETURN) where MAX_RETURN is some constant value putting a limit on how many tokens one can buy via fallback function — open to other options here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to 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