@@ -85,9 +85,7 @@ async def get(
85
85
"""
86
86
# Validate Currency enum only - no string support
87
87
if not isinstance (currency , Currency ):
88
- msg = (
89
- f"Currency must be Currency enum, got { type (currency )} . Use Currency.ETH, Currency.SOL, Currency.POL, Currency.BNB, or Currency.AVAX"
90
- )
88
+ msg = f"Currency must be Currency enum, got { type (currency )} . Use Currency.ETH, Currency.SOL, Currency.POL, Currency.BNB, or Currency.AVAX"
91
89
raise TypeError (msg )
92
90
93
91
# Check cache first (unless force refresh)
@@ -131,9 +129,7 @@ async def is_supported(self, currency: Currency) -> bool:
131
129
True if currency is supported
132
130
"""
133
131
if not isinstance (currency , Currency ):
134
- msg = (
135
- f"Currency must be Currency enum, got { type (currency )} . Use Currency.ETH, Currency.SOL, Currency.POL, Currency.BNB, or Currency.AVAX"
136
- )
132
+ msg = f"Currency must be Currency enum, got { type (currency )} . Use Currency.ETH, Currency.SOL, Currency.POL, Currency.BNB, or Currency.AVAX"
137
133
raise TypeError (msg )
138
134
return is_currency_supported (currency )
139
135
@@ -233,8 +229,6 @@ async def _fetch_evm_price(self, config: dict[str, Any], network_id: NetworkId)
233
229
# Calculate statistics
234
230
return self .calculator .calculate_price_statistics (prices , len (swaps ))
235
231
236
-
237
-
238
232
async def _fetch_solana_price (self , config : dict [str , Any ]) -> dict [str , Any ] | None :
239
233
"""
240
234
Fetch SOL price using Solana DEX swaps.
0 commit comments