twoblade
Rugplay {#if $USER_DATA?.isAdmin} | Admin {/if}
{#each data.navMain as item} {#snippet child({ props }: { props: MenuButtonProps })} handleNavClick(item.title)} class={`${props.class}`} > {item.title} {/snippet} {/each} {#snippet child({ props }: { props: MenuButtonProps })} {/snippet} {#if $USER_DATA}
{#if !$PORTFOLIO_DATA}
{:else} {/if}
{/if}
Live Trades
{#if $isLoadingTrades} {#each Array(5) as _, i}
{/each} {:else if $liveTradesStore.length === 0}
No big trades yet...
{:else} {#each $liveTradesStore.slice(0, 5) as trade, index (`${trade.timestamp}-${trade.username}-${trade.coinSymbol}-${index}`)} {/each} {/if}
{#if $USER_DATA} Portfolio
{#if !$PORTFOLIO_DATA}
{:else}
Total Value
${formatCurrency($PORTFOLIO_DATA.totalValue)}
Cash: ${formatCurrency($PORTFOLIO_DATA.baseCurrencyBalance)}
Coins: ${formatCurrency($PORTFOLIO_DATA.totalCoinValue)}
{/if}
{/if}
{#if $USER_DATA} {#snippet child({ props })} ?
{$USER_DATA.name} @{$USER_DATA.username}
{/snippet}
?
{$USER_DATA.name} @{$USER_DATA.username}
Account Settings { showPromoCode = true; setOpenMobile(false); }} > Promo code {#if $USER_DATA?.isAdmin} Admin Panel Manage codes {/if} Terms of Service Privacy Policy { signOut().then(() => { USER_DATA.set(null); window.location.reload(); }); }} > Log out
{:else} {#snippet child({ props }: { props: MenuButtonProps })} Terms of Service {/snippet} {#snippet child({ props }: { props: MenuButtonProps })} Privacy Policy {/snippet} {/if}