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

Use bips for slippage #55

Merged
merged 4 commits into from
Feb 22, 2024
Merged

Use bips for slippage #55

merged 4 commits into from
Feb 22, 2024

Conversation

anxolin
Copy link
Contributor

@anxolin anxolin commented Feb 15, 2024

Continuation on #53

It makes use of the new bip definition to redefine the quote.

This is a breaking change for the metadata quote, so I bumped the version of the schema and the metadata to a new major version v1.0.0

Basically, we want to make it contain an integer instead of a string.
quote: { slippageBips: "50" }

will become:
quote: { slippageBips: 50 }

I also added tests for these changes.

@anxolin anxolin changed the base branch from main to add-partner-fee February 15, 2024 18:28
@anxolin anxolin requested review from alfetopito and a team February 15, 2024 18:33
@anxolin anxolin force-pushed the use-bips-for-slippage branch from 0918fe4 to 3bb0432 Compare February 15, 2024 18:34
@anxolin anxolin marked this pull request as ready for review February 15, 2024 18:34
@anxolin anxolin mentioned this pull request Feb 15, 2024
4 tasks
@anxolin anxolin force-pushed the use-bips-for-slippage branch from 0d13cb8 to 1255e24 Compare February 15, 2024 18:39
@anxolin anxolin requested a review from MartinquaXD February 15, 2024 18:41
@anxolin
Copy link
Contributor Author

anxolin commented Feb 15, 2024

@MartinquaXD @olgafetisova i just tagged you in case this breaking changes affects you

@anxolin anxolin requested a review from olgafetisova February 15, 2024 18:42
@MartinquaXD
Copy link

The backend does not parse this field so this will not cause problems on our end. 👌

Copy link
Collaborator

@alfetopito alfetopito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with a nitpick comment

test/schema.spec.ts Outdated Show resolved Hide resolved
@anxolin anxolin merged commit 1ca53bb into add-partner-fee Feb 22, 2024
6 checks passed
@anxolin anxolin deleted the use-bips-for-slippage branch February 22, 2024 19:14
@github-actions github-actions bot locked and limited conversation to collaborators Feb 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants