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); } /// 计算当前实时积分股余额