Skip to content

Fix swap recommended market ranking - #6599

Merged
crossle merged 3 commits into
masterfrom
fix/swap-market-ranking
Aug 21, 2026
Merged

Fix swap recommended market ranking#6599
crossle merged 3 commits into
masterfrom
fix/swap-market-ranking

Conversation

@SeniorZhai

Copy link
Copy Markdown
Member

No description provided.

@SeniorZhai SeniorZhai added testing Now testing, but you can review bug Something isn't working labels Aug 21, 2026
@SeniorZhai SeniorZhai removed the testing Now testing, but you can review label Aug 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates swap recommendations to preserve API ranking and align the displayed market limit with iOS.

Changes:

  • Fetches eight API-ranked markets per category without persisting reordered results.
  • Stores recommendations in ViewModel state.
  • Adds a limit consistency test.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
TokenRepository.kt Adds optional market persistence.
SwapViewModel.kt Holds API-ranked recommendations in memory.
TradeFragment.kt Fetches and observes ranked recommendations.
SwapRecommendedMarketCards.kt Shares the eight-market limit.
SwapRecommendedMarketCardsTest.kt Verifies the recommendation limit.

馃挕 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +72 to +75
private val recommendedMarkets =
MarketCategory.entries.associateWith {
MutableStateFlow<List<MarketItem>>(emptyList())
}
@crossle
crossle merged commit ac44b83 into master Aug 21, 2026
2 checks passed
@crossle
crossle deleted the fix/swap-market-ranking branch August 21, 2026 05:35
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.

3 participants