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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions