示例#1
0
echo "<th></th>";
echo "<th>Name</th>";
echo "<th align=right>max</th>";
echo "<th align=right>mbtc</th>";
echo "<th align=right>profit</th>";
echo "<th align=right>TTF</th>";
echo "<th align=right>Hash *</th>";
echo "<th align=right>**</th>";
echo "</tr>";
echo "</thead>";
foreach ($list as $coin) {
    $name = substr($coin->name, 0, 12);
    $difficulty = Itoa2($coin->difficulty, 3);
    $price = bitcoinvaluetoa($coin->price);
    $height = number_format($coin->block_height, 0, '.', ' ');
    $pool_ttf = $coin->pool_ttf ? sectoa2($coin->pool_ttf) : '';
    $reward = round($coin->reward, 3);
    $btcmhd = mbitcoinvaluetoa(yaamp_profitability($coin));
    $pool_hash = yaamp_coin_rate($coin->id);
    $pool_hash = $pool_hash ? Itoa2($pool_hash) . 'h/s' : '';
    show_orders($allorders, $services, $btcmhd);
    show_services($services, $btcmhd);
    if (!$coin->auto_ready) {
        echo "<tr style='opacity: 0.4;'>";
    } else {
        echo "<tr class='ssrow'>";
    }
    echo "<td width=18><img width=16 src='{$coin->image}'></td>";
    echo "<td><b><a href='/site/coin?id={$coin->id}'>{$name}</a></b></td>";
    echo "<td align=right style='font-size: .8em;'><b>{$reward} {$coin->symbol}</a></td>";
    echo "<td align=right style='font-size: .8em;'>{$difficulty}</td>";
示例#2
0
    $amount_rent = bitcoinvaluetoa($amount_rent);
}
foreach ($list as $coin) {
    $name = substr($coin->name, 0, 12);
    $difficulty = Itoa2($coin->difficulty, 3);
    $price = bitcoinvaluetoa($coin->price);
    $height = number_format($coin->block_height, 0, '.', ' ');
    //	$pool_ttf = $coin->pool_ttf? sectoa2($coin->pool_ttf): '';
    $pool_ttf = $total_rate ? $coin->difficulty * 0x100000000 / $total_rate : 0;
    $reward = round($coin->reward, 3);
    $btcmhd = yaamp_profitability($coin);
    $pool_hash = yaamp_coin_rate($coin->id);
    $real_ttf = $pool_hash ? $coin->difficulty * 0x100000000 / $pool_hash : 0;
    $pool_hash = $pool_hash ? Itoa2($pool_hash) . 'h/s' : '';
    $real_ttf = $real_ttf ? sectoa2($real_ttf) : '';
    $pool_ttf = $pool_ttf ? sectoa2($pool_ttf) : '';
    $pool_hash_pow = yaamp_pool_rate_pow($coin->algo);
    $pool_hash_pow = $pool_hash_pow ? Itoa2($pool_hash_pow) . 'h/s' : '';
    $min_ttf = $coin->network_ttf > 0 ? min($coin->actual_ttf, $coin->network_ttf) : $coin->actual_ttf;
    $network_hash = $coin->difficulty * 0x100000000 / ($min_ttf ? $min_ttf : 60);
    $network_hash = $network_hash ? 'network hash ' . Itoa2($network_hash) . 'h/s' : '';
    if (controller()->admin && $services) {
        foreach ($services as $i => $service) {
            if ($service->price * 1000 < $btcmhd) {
                continue;
            }
            $service_btcmhd = mbitcoinvaluetoa($service->price * 1000);
            echo "<tr class='ssrow'>";
            echo "<td width=18><img width=16 src='/images/btc.png'></td>";
            echo "<td><b>{$service->name}</b></td>";
            echo "<td></td>";