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
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