Skip to content

Conversation

@ice-endymion
Copy link
Contributor

@ice-endymion ice-endymion commented Jan 15, 2026

Description

  • add caching for own first buy token

Task ID

ION-5079

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Documentation
  • Chore

Copilot AI review requested due to automatic review settings January 15, 2026 16:35
@ice-endymion ice-endymion requested review from a team as code owners January 15, 2026 16:35
@ice-morpheus ice-morpheus enabled auto-merge (squash) January 15, 2026 16:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug where tokenMarketInfoIfAvailableProvider would return null when the first-buy definition cache was missing, even if valid token market data existed in the analytics service. The fix ensures the provider always fetches and returns actual token market data when available, regardless of cache state.

Changes:

  • Modified the conditional logic to always fetch token info from the analytics service first
  • Returns token data if available from analytics, even when hasToken is false due to a cache miss
  • Only returns null when both the first-buy cache check fails AND no analytics data is available

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ice-morpheus ice-morpheus force-pushed the fix/token-market-info-provider branch from 1ab94f0 to 27ee543 Compare January 15, 2026 16:46
@ice-endymion ice-endymion force-pushed the fix/token-market-info-provider branch from 27ee543 to 669c7a6 Compare January 15, 2026 17:08
@ice-endymion ice-endymion force-pushed the fix/token-market-info-provider branch from 669c7a6 to 5efde92 Compare January 15, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants