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

Fix: Remove token validator provider calls from token properties provider #408

Merged

Conversation

jsy1218
Copy link
Member

@jsy1218 jsy1218 commented Sep 25, 2023

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    Bug fix

  • What is the current behavior? (You can also link to an open issue here)
    Token validator providers can return out-of-order results for the input token addresses. Coupled with the long caching TTL across all token properties entries, it can provider very negative experiences to the clients.

  • What is the new behavior (if this is a feature change)?
    Token properties provider remove the calls to token validator providers. Also enhanced the NodeJSCache to accept per-entry TTL, so that token properties provider can set differentiated per-entry TTL depending on if it's positive cache or negative cache.

  • Other information:
    tested on the routing-api integ-test side via personal AWS account.

@jsy1218 jsy1218 added the bug Something isn't working label Sep 25, 2023
@jsy1218 jsy1218 self-assigned this Sep 25, 2023
@jsy1218 jsy1218 changed the title Jsy1218/fix token properties provider failure mode caching Fix: token properties provider failure mode caching Sep 25, 2023
@jsy1218 jsy1218 changed the title Fix: token properties provider failure mode caching Fix: Remove token validator provider calls from token properties provider Sep 25, 2023
@jsy1218 jsy1218 requested a review from mikeki September 26, 2023 00:21
@jsy1218 jsy1218 merged commit 99c9b02 into main Sep 26, 2023
10 of 11 checks passed
@jsy1218 jsy1218 deleted the jsy1218/fix-token-properties-provider-failure-mode-caching branch September 26, 2023 00:29
This was referenced Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants