|
|
|
@ -20,6 +20,7 @@ defmodule BlockScoutWeb.Tokens.Instance.OverviewView do |
|
|
|
|
def image_src(nil), do: "/images/controller.svg" |
|
|
|
|
|
|
|
|
|
def image_src(instance) do |
|
|
|
|
result = |
|
|
|
|
cond do |
|
|
|
|
instance.metadata && instance.metadata["image_url"] -> |
|
|
|
|
instance.metadata["image_url"] |
|
|
|
@ -33,6 +34,8 @@ defmodule BlockScoutWeb.Tokens.Instance.OverviewView do |
|
|
|
|
true -> |
|
|
|
|
image_src(nil) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
if String.trim(result) == "", do: image_src(nil), else: result |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def total_supply_usd(token) do |
|
|
|
|