{#if type === 'BUY'} Buy {coin.symbol} {:else} Sell {coin.symbol} {/if} Current price: ${coin.currentPrice.toFixed(6)} per {coin.symbol}
{#if type === 'SELL'}

Available: {userHolding.toFixed(2)} {coin.symbol}

{:else if $USER_DATA}

Balance: ${userBalance.toFixed(2)}

{/if}
{#if hasValidAmount}
{type === 'BUY' ? 'Total Cost:' : 'You\'ll Receive:'} ${estimatedCost.toFixed(2)}
{#if !hasEnoughFunds} {type === 'BUY' ? 'Insufficient funds' : 'Insufficient coins'} {/if}
{/if}