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

Fetch swap quotes #570

Merged
merged 2 commits into from
Oct 18, 2023
Merged

Fetch swap quotes #570

merged 2 commits into from
Oct 18, 2023

Conversation

swansontec
Copy link
Contributor

@swansontec swansontec commented Oct 16, 2023

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

@swansontec swansontec changed the title William/fetch swap quotes Fetch swap quotes Oct 16, 2023
@@ -94,7 +96,6 @@ export async function fetchSwapQuote(
)
)
}
if (promises.length < 1) throw new Error('No swap providers enabled')

Copy link
Contributor

Choose a reason for hiding this comment

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

Why was this error removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's moved to the outer fetchSwapQuote function. Now that fetchSwapQuotes returns an array, we return an empty array if there are no enabled plugins.

src/core/account/account-api.ts Outdated Show resolved Hide resolved
We weren't closing quotes correctly, so the objects would linger in the bridge.

Also use `??` to avoid TypeScript errors.
@swansontec swansontec force-pushed the william/fetch-swap-quotes branch from 8e0422c to 3e4c3ea Compare October 17, 2023 21:41
@swansontec swansontec merged commit 3f5270c into master Oct 18, 2023
3 checks passed
@swansontec swansontec deleted the william/fetch-swap-quotes branch October 18, 2023 16:16
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