-
Notifications
You must be signed in to change notification settings - Fork 5
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
Update swap examples #81
base: main
Are you sure you want to change the base?
Conversation
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.
Looks like the files are not correctly formatted. Can you please fix it @tatata96 ?
@@ -30,42 +30,33 @@ export async function fixedOutputSwap({ | |||
* Swap.getQuote method, which will return the best quote (highest rate) | |||
* after checking both v1 and v2 | |||
*/ | |||
const fixedOutputSwapQuote = Swap.v2.getQuote( | |||
SwapType.FixedOutput, | |||
const fixedOutputSwapQuote = await Swap.v2.getQuote({ |
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.
These examples use the swap router by default. Can you please add an example that does not use the swap router for both fixedInputSwap and fixedOutputSwap.
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.
Hey @tatata96, some of the files seem unformatted. If you can format them all, would be great
add condition for addInitialLiquidtiy add example without swap router to fixedOutputSwap format files
No description provided.