From c67d11cf6b19a6dbd4f4382ab8862e424ece8bee Mon Sep 17 00:00:00 2001 From: jeffyanta Date: Mon, 20 Jul 2026 13:53:24 -0400 Subject: [PATCH] Sort currencies in Discover by circulating supply --- ocp/rpc/currency/discovery.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ocp/rpc/currency/discovery.go b/ocp/rpc/currency/discovery.go index f4da96c..9b61fbf 100644 --- a/ocp/rpc/currency/discovery.go +++ b/ocp/rpc/currency/discovery.go @@ -117,10 +117,7 @@ func (s *currencyServer) Discover(req *currencypb.DiscoverRequest, stream curren } sort.Slice(candidates, func(i, j int) bool { - if candidates[i].holderData.CurrentHolders == candidates[j].holderData.CurrentHolders { - return candidates[i].reserveState.SupplyFromBonding > candidates[j].reserveState.SupplyFromBonding - } - return candidates[i].holderData.CurrentHolders > candidates[j].holderData.CurrentHolders + return candidates[i].reserveState.SupplyFromBonding > candidates[j].reserveState.SupplyFromBonding }) if len(candidates) > maxDiscoveredCurrencies {