zarbox added 5
This commit is contained in:
@@ -519,9 +519,9 @@ class ReportController extends Controller
|
||||
$storedPrice = $lastPrice ?? Price::latest()->first();
|
||||
if ($storedPrice && (float) $storedPrice->price > 0) {
|
||||
$base = (float) $storedPrice->price;
|
||||
$sell = $open_sell ? (int) ceil($base - $difference) : 0;
|
||||
$buy = $open_buy ? (int) ceil($base + $difference) : 0;
|
||||
$priceLast = (int) ceil($base + $difference);
|
||||
$sell = $open_sell ? (int) ceil($base - $diff_sell) : 0;
|
||||
$buy = $open_buy ? (int) ceil($base + $diff_buy) : 0;
|
||||
$priceLast = (int) ceil($base + $diff_buy);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user