forgot to add the actual files :/
This commit is contained in:
parent
a2ad57e92a
commit
8859f0c091
@ -35,6 +35,7 @@ $config = array(
|
|||||||
'email' => 'test@example.com', // Mail address used for notifications
|
'email' => 'test@example.com', // Mail address used for notifications
|
||||||
),
|
),
|
||||||
'currency' => 'LTC', // Currency name to be used on website
|
'currency' => 'LTC', // Currency name to be used on website
|
||||||
|
'txfee' => 0.1, // Default tx fee added by RPC server
|
||||||
'block_bonus' => 0,
|
'block_bonus' => 0,
|
||||||
'payout_system' => 'prop', // Set your payout here so template changes are activated
|
'payout_system' => 'prop', // Set your payout here so template changes are activated
|
||||||
'archive_shares' => true, // Store accounted shares in archive table?
|
'archive_shares' => true, // Store accounted shares in archive table?
|
||||||
|
|||||||
@ -21,8 +21,8 @@ if ( ! $user->checkPin($_SESSION['USERDATA']['id'], $_POST['authPin']) && $_POST
|
|||||||
$aBalance = $transaction->getBalance($_SESSION['USERDATA']['id']);
|
$aBalance = $transaction->getBalance($_SESSION['USERDATA']['id']);
|
||||||
$dBalance = $aBalance['confirmed'];
|
$dBalance = $aBalance['confirmed'];
|
||||||
$sCoinAddress = $user->getCoinAddress($_SESSION['USERDATA']['id']);
|
$sCoinAddress = $user->getCoinAddress($_SESSION['USERDATA']['id']);
|
||||||
// Ensure we can cover the potential transaction fee of 0.1 with the balance
|
// Ensure we can cover the potential transaction fee
|
||||||
if ($dBalance > 0.1) {
|
if ($dBalance > $config['txfee']) {
|
||||||
if ($bitcoin->can_connect() === true) {
|
if ($bitcoin->can_connect() === true) {
|
||||||
try {
|
try {
|
||||||
$bitcoin->validateaddress($sCoinAddress);
|
$bitcoin->validateaddress($sCoinAddress);
|
||||||
@ -31,7 +31,7 @@ if ( ! $user->checkPin($_SESSION['USERDATA']['id'], $_POST['authPin']) && $_POST
|
|||||||
$continue = false;
|
$continue = false;
|
||||||
}
|
}
|
||||||
if ($continue == true) {
|
if ($continue == true) {
|
||||||
// Send balance to address, mind 0.1 fee for transaction!
|
// Send balance to address, mind fee for transaction!
|
||||||
try {
|
try {
|
||||||
if ($setting->getValue('auto_payout_active') == 0) {
|
if ($setting->getValue('auto_payout_active') == 0) {
|
||||||
$bitcoin->sendtoaddress($sCoinAddress, $dBalance);
|
$bitcoin->sendtoaddress($sCoinAddress, $dBalance);
|
||||||
@ -56,7 +56,7 @@ if ( ! $user->checkPin($_SESSION['USERDATA']['id'], $_POST['authPin']) && $_POST
|
|||||||
$_SESSION['POPUP'][] = array('CONTENT' => 'Unable to connect to litecoind RPC service', 'TYPE' => 'errormsg');
|
$_SESSION['POPUP'][] = array('CONTENT' => 'Unable to connect to litecoind RPC service', 'TYPE' => 'errormsg');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$_SESSION['POPUP'][] = array('CONTENT' => 'Insufficient funds, you need more than 0.1 ' . $conifg['currency'] . ' to cover transaction fees', 'TYPE' => 'errormsg');
|
$_SESSION['POPUP'][] = array('CONTENT' => 'Insufficient funds, you need more than ' . $config['txfee'] . ' ' . $conifg['currency'] . ' to cover transaction fees', 'TYPE' => 'errormsg');
|
||||||
}
|
}
|
||||||
$setting->setValue('manual_payout_active', 0);
|
$setting->setValue('manual_payout_active', 0);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,6 +35,7 @@ $aGlobal = array(
|
|||||||
'chaininfo' => $config['chaininfo'],
|
'chaininfo' => $config['chaininfo'],
|
||||||
'config' => array(
|
'config' => array(
|
||||||
'currency' => $config['currency'],
|
'currency' => $config['currency'],
|
||||||
|
'txfee' => $config['txfee'],
|
||||||
'payout_system' => $config['payout_system'],
|
'payout_system' => $config['payout_system'],
|
||||||
'ap_threshold' => array(
|
'ap_threshold' => array(
|
||||||
'min' => $config['ap_threshold']['min'],
|
'min' => $config['ap_threshold']['min'],
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
{include file="global/block_footer.tpl"}
|
{include file="global/block_footer.tpl"}
|
||||||
|
|
||||||
{include file="global/block_header.tpl" BLOCK_HEADER="Cash Out"}
|
{include file="global/block_header.tpl" BLOCK_HEADER="Cash Out"}
|
||||||
<ul><li><font color="">Please note: a 0.1 {$GLOBAL.config.currency} transaction will apply when processing "On-Demand" manual payments</font></li></ul>
|
<ul><li><font color="">Please note: a {$GLOBAL.config.txfee} {$GLOBAL.config.currency} transaction will apply when processing "On-Demand" manual payments</font></li></ul>
|
||||||
<form action="{$smarty.server.PHP_SELF}" method="post">
|
<form action="{$smarty.server.PHP_SELF}" method="post">
|
||||||
<input type="hidden" name="page" value="{$smarty.request.page|escape}">
|
<input type="hidden" name="page" value="{$smarty.request.page|escape}">
|
||||||
<input type="hidden" name="action" value="{$smarty.request.action|escape}">
|
<input type="hidden" name="action" value="{$smarty.request.action|escape}">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user