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

fix: sanitize quote response amount #266

Merged
merged 2 commits into from
Feb 13, 2024
Merged

fix: sanitize quote response amount #266

merged 2 commits into from
Feb 13, 2024

Conversation

marktoda
Copy link
Collaborator

@marktoda marktoda commented Feb 9, 2024

I realized that we build quote responses with the specified swap
amount returned by the quoter as well as the unspecified one. This could
cause downstream bugs if we assume the values returned by quoter are the
ones expected by swapper. this commit just munches the specified amount
to be the requested one from the swapper

I realized that we build quote responses with the _specified_ swap
amount returned by the quoter as well as the unspecified one. This could
cause downstream bugs if we assume the values returned by quoter are the
ones expected by swapper. this commit just munches the specified amount
to be the requested one from the swapper
@marktoda marktoda requested a review from zhongeric February 13, 2024 02:51
@marktoda marktoda merged commit 8ea8735 into main Feb 13, 2024
5 checks passed
@marktoda marktoda deleted the sanitize-amount branch February 13, 2024 07:58
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.

2 participants