balance scale

This commit is contained in:
yll 2022-05-27 09:57:38 +07:00
parent 5695363a56
commit 14147e6d0c
2 changed files with 3 additions and 3 deletions

View File

@ -331,7 +331,7 @@ class ApiV1Controller extends Controller
{
$pool_data = $this->_pool_data();
$price = $this->get_cache_eth_price();
$pool_data['totalOutput'] = floatval(bcdiv($pool_data['totalOutput'], $price, 4));
$pool_data['totalOutput'] = floatval(bcdiv($pool_data['totalOutput'], $price, 6));
$kvs = Redis::hGetAll(self::K_ROBOTS);
@ -339,7 +339,7 @@ class ApiV1Controller extends Controller
foreach ($kvs as $k => $v) {
$topEarns[] = [
'address' => mb_substr($k, 0, 6) . '...' . mb_substr($k, -6, 6),
'quantity' => $v,
'quantity' => floatval(bcadd($v, 0, 6)),
];
}

2
fabfile.py vendored
View File

@ -17,7 +17,7 @@ from os.path import exists, join
from fabric import task, Connection
FILE_TAR = 'coinwind.tar.gz'
DIRS = ('app', 'config',)
DIRS = ('app', 'config', 'resources')
UPLOAD_PATH = '~'
DEPLOY_PATH = '/www/coinwind'