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.
Fuzz testing is seeing the following errors:
calculate_max_longInsufficientLiquidity: Negative InterestInitial guess in calculate_max_long is insolventtarget share reserves less than effective share reservescalculate_max_shortabsolute_max_short is insolventarithmetic operation overflowThe 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_longandcalc_max_shortat random times throughout.