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

feat(dex): throw error when swap output amount is less than 1 #1015

Merged
merged 3 commits into from
Oct 21, 2022

Conversation

helder-moreira
Copy link
Contributor

Description

This PR mas sure an error is thrown when the calculated output amount on a swap is less than 1.

Closes #769

@helder-moreira helder-moreira requested a review from a team as a code owner October 20, 2022 18:49
@helder-moreira helder-moreira enabled auto-merge (squash) October 20, 2022 18:49
@helder-moreira helder-moreira force-pushed the fix/swap-low-output-amount branch 2 times, most recently from ac07eff to 73cddfa Compare October 20, 2022 19:04
@helder-moreira helder-moreira merged commit 429003f into master Oct 21, 2022
@helder-moreira helder-moreira deleted the fix/swap-low-output-amount branch October 21, 2022 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(dex): swap tx fails when token out is less than 1
2 participants