primitivefinance / portfolio

Portfolio is an automated market making protocol for implementing custom strategies at the lowest cost possible.

Home Page:https://www.primitive.xyz/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Better swap testing

Alexangelj opened this issue · comments

The swaps are difficult to test because they can fail with the wrong inputs so easily. There is also a lot of pre-requisite state that needs to be setup.

Solution

  • Make a swap-test template
  • In the template, be able to access modifiers for different pre-states
  • In the template, have access to specific logging utilites to see what happens

Better config fuzzing in #422

Better analyzed in the portfolio simulation https://github.com/primitivefinance/proto-sim-portfolio