adding cold wallet coin display and setting
This commit is contained in:
parent
b8029c04f3
commit
e7f62134f1
@ -95,6 +95,13 @@ $aSettings['website'][] = array(
|
||||
'name' => 'website_chaininfo_disabled', 'value' => $setting->getValue('website_chaininfo_disabled'),
|
||||
'tooltip' => 'Enabled or disable the chainfo URL feature. Will remove any links using the chaininfo URL.'
|
||||
);
|
||||
$aSettings['wallet'][] = array(
|
||||
'display' => 'Cold Coins', 'type' => 'text',
|
||||
'size' => 6,
|
||||
'default' => 0,
|
||||
'name' => 'wallet_cold_coins', 'value' => $setting->getValue('wallet_cold_coins'),
|
||||
'tooltip' => 'Amount of coins held in a pools cold wallet.'
|
||||
);
|
||||
$aSettings['statistics'][] = array(
|
||||
'display' => 'Block Statistics Count', 'type' => 'text',
|
||||
'size' => 25,
|
||||
|
||||
@ -33,12 +33,16 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
|
||||
|
||||
// Fetch locked balance from transactions
|
||||
$dLockedBalance = $transaction->getLockedBalance();
|
||||
|
||||
// Cold wallet balance
|
||||
if (! $dColdCoins = $setting->getValue('wallet_cold_coins')) $dColdCoins = 0;
|
||||
} else {
|
||||
$debug->append('Using cached page', 3);
|
||||
}
|
||||
|
||||
$smarty->assign("UNCONFIRMED", $dBlocksUnconfirmedBalance);
|
||||
$smarty->assign("BALANCE", $dBalance);
|
||||
$smarty->assign("COLDCOINS", $dColdCoins);
|
||||
$smarty->assign("LOCKED", $dLockedBalance);
|
||||
$smarty->assign("NEWMINT", $dNewmint);
|
||||
|
||||
|
||||
@ -22,5 +22,11 @@
|
||||
<td class="right">{$NEWMINT|number_format:"8"}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $COLDCOINS > 0}
|
||||
<tr>
|
||||
<th>Cold Coins</th>
|
||||
<td class="right">{$COLDCOINS|number_format:"8"}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
{include file="global/block_footer.tpl"}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user