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