primitivefinance / portfolio

Portfolio is an automated market making protocol for implementing custom strategies at the lowest cost possible.
https://www.primitive.xyz/
GNU Affero General Public License v3.0
113 stars 7 forks source link

Better swap testing #416

Closed Alexangelj closed 1 year ago

Alexangelj commented 1 year ago

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

Alexangelj commented 1 year ago

Better config fuzzing in #422

Alexangelj commented 1 year ago

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