-
Notifications
You must be signed in to change notification settings - Fork 25
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 swap() tests for Pool 9 #197
Conversation
pool_case, | ||
array![*expected_cases[PANIC_CASE]], | ||
array![*panic_swap_cases[PANIC_CASE]], | ||
PRECISION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PRECISION | |
Zeroable::zero() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, i will push the same comment on test/swap for the already merged pools
amount_to_swap = | ||
IntegerTrait::<i256>::new(*swap_case.amount_specified.mag, true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this change is here? what does mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This answer is really important because this function affects the whole test suite
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
amount_to_swap = | ||
IntegerTrait::<i256>::new(*swap_case.amount_specified.mag, true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This answer is really important because this function affects the whole test suite
This PR solves #170
This PR shouldn't be merged before #194 , as it has its implementation. This PR won't pass CI tests without this.