Skip to content

Commit

Permalink
Remove prediction market filter, and filter by canTrade (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruixhuang authored Nov 18, 2024
1 parent c1c0ef2 commit b40c58a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ class DydxMarketAssetListViewModel @Inject constructor(
favoriteStore.state,
) { markets, assetMap, filterAction, sortAction, _ ->
val filteredMarkets = markets?.filter { market ->
if (market.status?.canTrade != true) {
return@filter false
}
val action = filterAction.action
if (assetMap != null) {
return@filter action(market, assetMap, favoriteStore)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,15 @@ data class FilterAction(
},
),

/*
FilterAction(
type = MarketFiltering.PREDICTION,
content = localizer.localize("APP.GENERAL.PREDICTION_MARKET"),
action = { market, assetMap, _ ->
assetMap[market.assetId]?.tags?.contains("Prediction Market") ?: false
},
),
*/

FilterAction(
type = MarketFiltering.LAYER1,
Expand Down

0 comments on commit b40c58a

Please sign in to comment.