No longer match ticker ID by ignoring platforms. Could be too many false positives, eg. USDC on other chains when they aren't legit #5275

pull/5276/head
Hwee-Boon Yar 2 years ago
parent a7482a0dca
commit 4112c32144
  1. 3
      modules/AlphaWalletFoundation/AlphaWalletFoundation/Core/CoinTicker/Types/TickerIdFilter.swift

@ -29,7 +29,8 @@ public class TickerIdFilter {
if Features.default.isAvailable(.isLoggingEnabledForTickerMatches) && result {
return result
} else {
return result
//Force is so we no longer match by ignoring the platform, this produces false positives. Eg. https://candleexplorer.com/address/0x6Ee592139e9DD84587a32831A33a32202d1f0F12 would match USDC with price = $1 because name = "USDC" and symbol = "USDC", but anyone can create such a token on any chain
return false
}
}

Loading…
Cancel
Save