{coin ? `${coin.name} (${coin.symbol})` : 'Loading...'} - Rugplay {#if loading}
Loading coin data...
{:else if !coin}
Coin not found
{:else}
{#if coin.icon} {coin.name} {:else}
{coin.symbol.slice(0, 2)}
{/if}

{coin.name}

*{coin.symbol} {#if !coin.isListed} Delisted {/if}

${formatPrice(coin.currentPrice)}

{#if coin.change24h >= 0} {:else} {/if} = 0 ? 'success' : 'destructive'}> {coin.change24h >= 0 ? '+' : ''}{coin.change24h.toFixed(2)}%
{#if coin.creatorName}
Created by goto(`/user/${coin.creatorId}`)} > {coin.creatorName.charAt(0)} {coin.creatorName} (@{coin.creatorUsername})
{coin.creatorName.charAt(0)}

{coin.creatorName}

@{coin.creatorUsername}

{#if coin.creatorBio}

{coin.creatorBio}

{/if}
Joined {new Date(coin.createdAt).toLocaleDateString('en-US', { year: 'numeric', month: 'long' })}
{/if}
Price Chart
Trade {coin.symbol}
Liquidity Pool

Pool Composition

{coin.symbol}: {formatSupply(coin.poolCoinAmount)}
Base Currency: ${coin.poolBaseCurrencyAmount.toLocaleString()}

Pool Stats

Total Liquidity: ${(coin.poolBaseCurrencyAmount * 2).toLocaleString()}
Price Impact: Low
Market Cap

{formatMarketCap(coin.marketCap)}

24h Volume

{formatMarketCap(coin.volume24h)}

Circulating Supply

{formatSupply(coin.circulatingSupply)}

of {formatSupply(coin.initialSupply)} total

24h Change
{#if coin.change24h >= 0} {:else} {/if} = 0 ? 'success' : 'destructive'} class="text-sm"> {coin.change24h >= 0 ? '+' : ''}{coin.change24h.toFixed(2)}%
{/if}