Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions dotnet/EcencyApi/Handlers/WalletApi.Market.cs
Original file line number Diff line number Diff line change
Expand Up @@ -459,14 +459,6 @@ internal static double GetTokenPrice(JsonNode? marketData, string token, string

if (tokenKey == currencyKey) return 1.0;

if (currencyKey != "usd")
{
var tokenData = JsVal.Prop(marketData, tokenKey) ?? JsVal.Prop(marketData, upperToken);
var quotesNode = JsVal.Prop(tokenData, "quotes");
var availableQuotes = quotesNode is JsonObject qo ? string.Join(",", qo.Select(kv => kv.Key)) : "";
Console.WriteLine($"Looking for {tokenKey} price in {currencyKey}. Available quotes: {availableQuotes}");
}

var containers = CollectContainers(marketData, 3);
var candidates = new List<JsonNode?>();
void AddCandidate(JsonNode? v) { if (v != null) candidates.Add(v); }
Expand Down
Loading