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