Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rust-based unit tests to AMM #139

Open
metaproph3t opened this issue Apr 18, 2024 · 1 comment
Open

Add rust-based unit tests to AMM #139

metaproph3t opened this issue Apr 18, 2024 · 1 comment
Assignees

Comments

@metaproph3t
Copy link
Member

The AMM swap and TWAP logic has been put in struct implementations, which means we can test it from Rust-based unit tests.

We have some unit tests, but they're extremely basic and don't really test any edge cases (e.g., large amounts, small amounts, large combined with small, et cetera). It would be good to expand these to make them more comprehensive.

@metaproph3t metaproph3t converted this from a draft issue Apr 18, 2024
@metaproph3t
Copy link
Member Author

metaproph3t commented Apr 18, 2024

It looks like GitHub doesn't allow me to assign you directly, but consider yourself assigned @0xbigz!

@metaproph3t metaproph3t moved this to Todo in Futarchy Apr 18, 2024
@R-K-H R-K-H moved this from Todo to Backlog in Futarchy May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Status: Todo
Development

No branches or pull requests

2 participants