eth_icons/modules/zerion.rs
1use crate::{IconQuery, IconSource};
2
3#[derive(Clone)]
4pub struct Zerion;
5
6#[async_trait::async_trait]
7impl IconSource for Zerion {
8 fn name(&self) -> &'static str {
9 "zerion"
10 }
11
12 fn url(&self, query: &IconQuery) -> Option<String> {
13 match query {
14 IconQuery::ERC20(_network_id, address) => Some(format!(
15 "https://cdn.zerion.io/{}.png",
16 address.to_lowercase(),
17 )),
18 _ => None,
19 }
20 }
21}