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(graphql): more informative swap quote #223

Merged
merged 1 commit into from
Nov 1, 2022
Merged

Conversation

leina05
Copy link
Collaborator

@leina05 leina05 commented Oct 31, 2022

No description provided.

@@ -59,15 +67,15 @@ input SwapExactInInput {
coinTypeIn: String!
amountIn: Float!
quoteAmountOut: Float!
slippage: Float
slippagePct: Float
Copy link
Collaborator Author

@leina05 leina05 Nov 1, 2022

Choose a reason for hiding this comment

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

This might be a breaking change for the UI @lidatong @ldippo can remove if it's too annoying

@leina05 leina05 requested a review from lidatong November 1, 2022 00:30
Copy link
Collaborator

@lidatong lidatong left a comment

Choose a reason for hiding this comment

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

thanks!


if (inReserve === 0 || outReserve === 0) {
throw new Error("Pool is empty");
}

console.log(parent.coinInfoX.coinType);
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove

@lidatong lidatong changed the title feat(aux-ts): more informative swap quote feat(graphql): more informative swap quote Nov 1, 2022
@leina05 leina05 merged commit f448ca9 into main Nov 1, 2022
@leina05 leina05 deleted the leina/improve_swap_quote branch November 1, 2022 15:31
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.

None yet

3 participants