From 4a4393f995c8e02aaa6addda71325c6a50a88c4f Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 18 Jan 2026 03:42:21 -0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E4=BF=AE=E5=A4=8D=E8=B5=84?= =?UTF-8?q?=E4=BA=A7=E9=A1=B5=E9=9D=A2=E5=AE=9E=E6=97=B6=E5=A2=9E=E9=95=BF?= =?UTF-8?q?=E8=AE=A1=E7=AE=97=E6=BC=8F=E4=B9=98burnMultiplier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 资产每秒增长公式应为: 每秒积分股增长 × (1 + burnMultiplier) × price 之前漏掉了 (1 + burnMultiplier) 因子,导致增长被低估约5000倍 Co-Authored-By: Claude Opus 4.5 --- .../lib/presentation/pages/asset/asset_page.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/mining-app/lib/presentation/pages/asset/asset_page.dart b/frontend/mining-app/lib/presentation/pages/asset/asset_page.dart index 42ac89a9..62f102d4 100644 --- a/frontend/mining-app/lib/presentation/pages/asset/asset_page.dart +++ b/frontend/mining-app/lib/presentation/pages/asset/asset_page.dart @@ -78,8 +78,13 @@ class _AssetPageState extends ConsumerState { } /// 计算当前实时资产显示值 + /// 资产显示值 = 积分股余额 × (1 + burnMultiplier) × price + /// 每秒资产增长 = 每秒积分股增长 × (1 + burnMultiplier) × price double get _currentDisplayValue { - return _initialDisplayValue + (_elapsedSeconds * _growthPerSecond * (double.tryParse(_lastAsset?.currentPrice ?? '0') ?? 0)); + final price = double.tryParse(_lastAsset?.currentPrice ?? '0') ?? 0; + final burnMultiplier = double.tryParse(_lastAsset?.burnMultiplier ?? '0') ?? 0; + final multiplierFactor = 1 + burnMultiplier; + return _initialDisplayValue + (_elapsedSeconds * _growthPerSecond * multiplierFactor * price); } /// 计算当前实时积分股余额