|
|
@ -20,19 +20,22 @@ 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 |
|
|
|
cond do |
|
|
|
result = |
|
|
|
instance.metadata && instance.metadata["image_url"] -> |
|
|
|
cond do |
|
|
|
instance.metadata["image_url"] |
|
|
|
instance.metadata && instance.metadata["image_url"] -> |
|
|
|
|
|
|
|
instance.metadata["image_url"] |
|
|
|
|
|
|
|
|
|
|
|
instance.metadata && instance.metadata["image"] -> |
|
|
|
instance.metadata && instance.metadata["image"] -> |
|
|
|
instance.metadata["image"] |
|
|
|
instance.metadata["image"] |
|
|
|
|
|
|
|
|
|
|
|
instance.metadata && instance.metadata["properties"]["image"]["description"] -> |
|
|
|
instance.metadata && instance.metadata["properties"]["image"]["description"] -> |
|
|
|
instance.metadata["properties"]["image"]["description"] |
|
|
|
instance.metadata["properties"]["image"]["description"] |
|
|
|
|
|
|
|
|
|
|
|
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 |
|
|
|