Skip to content

Tokens Cache#88

Merged
chapati23 merged 5 commits intomainfrom
feat/cached-tokens
Oct 7, 2025
Merged

Tokens Cache#88
chapati23 merged 5 commits intomainfrom
feat/cached-tokens

Conversation

@chapati23
Copy link
Copy Markdown
Contributor

@chapati23 chapati23 commented Oct 2, 2025

Description

Adding getTokens in #86 was good, but it was async which made using it in UIs cumbersome.

This PR adds a Tokens cache similar to our tradablePairs cache.

Means UIs can now synchronously import Token data which makes the UI code much simpler.

How To Test

  • Checkout this branch locally
  • Run yarn cacheTokens to see it work
  • Review the code

Copy link
Copy Markdown
Contributor

@Andrew718PLTS Andrew718PLTS left a comment

Choose a reason for hiding this comment

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

Code review: Left some different comments.
Testing: LGTM.

@Andrew718PLTS Andrew718PLTS self-requested a review October 7, 2025 09:47
Copy link
Copy Markdown
Contributor

@Andrew718PLTS Andrew718PLTS left a comment

Choose a reason for hiding this comment

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

LGTM, there's only one comment remaining.

@chapati23 chapati23 merged commit 88b93a6 into main Oct 7, 2025
1 check passed
@chapati23 chapati23 deleted the feat/cached-tokens branch October 7, 2025 09:59
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