Skip to content

Max long & short failures in fuzz testing #136

Description

@dpaiton

Fuzz testing is seeing the following errors:

  • calculate_max_long
    • InsufficientLiquidity: Negative Interest
    • Initial guess in calculate_max_long is insolvent
    • target share reserves less than effective share reserves
  • calculate_max_short
    • absolute_max_short is insolvent
    • arithmetic operation overflow

The fuzz pool is initialized to a known-good state (@slundqui is 80% certain it is good based on visual inspection of the parameters from himself, Jonny, & Alex and comparison against rust CI tests).
Random bots make trades and call calc_max_long and calc_max_short at random times throughout.

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