refine rate calculations

This commit is contained in:
2018-10-28 02:42:06 -05:00
parent 5e9be02dd5
commit cac9bda52f
+1 -1
View File
@@ -129,7 +129,6 @@ class MoonCalc {
'Name' => $key, 'Name' => $key,
'ItemId' => $value, 'ItemId' => $value,
'Price' => $item[$value]['sell']['median'], 'Price' => $item[$value]['sell']['median'],
//'Price' => $item->value->sell->median,
'Time' => $time 'Time' => $time
]); ]);
} }
@@ -143,6 +142,7 @@ class MoonCalc {
$config = DB::table('Config')->first(); $config = DB::table('Config')->first();
//Calculate refine rate //Calculate refine rate
$refineRate = $config->RefineRate / 100.00; $refineRate = $config->RefineRate / 100.00;
dd($refineRate);
//Calculate the current time //Calculate the current time
$time = time(); $time = time();
//Get the max time from the database //Get the max time from the database