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

TW-1282 Use /prices 3route API entry #143

Conversation

keshan3262
Copy link
Collaborator

No description provided.

@keshan3262 keshan3262 self-assigned this Feb 2, 2024
src/utils/tokens.ts Outdated Show resolved Hide resolved
@keshan3262 keshan3262 requested a review from alex-tsx February 2, 2024 10:21
@keshan3262 keshan3262 requested a review from alex-tsx February 2, 2024 10:28
@@ -40,14 +40,14 @@ const getTokensExchangeRates = async (): Promise<TokenExchangeRateEntry[]> => {
}

const exchangeRatesWithHoles = await Promise.all(
tokens
tokens!
Copy link
Collaborator

Choose a reason for hiding this comment

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

We could define someProvider.getState() so that its return type is

Promise<
  { data: undefined; error: unknown }
  | { data: T; error: undefined }
>

+ As I see it, these providers are only a memoization mechanisms, that can be replaced with memoizee.

@alex-tsx alex-tsx merged commit 805ba10 into development Feb 8, 2024
1 check passed
lourenc added a commit that referenced this pull request Feb 20, 2024
TW-1282: Use /prices 3route API entry (#143)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants