Better swap testing
Alexangelj opened this issue · comments
Alexander commented
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
Alexander commented
Better analyzed in the portfolio simulation https://github.com/primitivefinance/proto-sim-portfolio