zarbox added 5

This commit is contained in:
2026-06-04 15:30:34 +03:30
parent 0574ade170
commit 9b0d360dcf
3 changed files with 47 additions and 7 deletions
@@ -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);
}
}