fix(frontend): 修复资产页面实时增长计算漏乘burnMultiplier

资产每秒增长公式应为: 每秒积分股增长 × (1 + burnMultiplier) × price
之前漏掉了 (1 + burnMultiplier) 因子,导致增长被低估约5000倍

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-18 03:42:21 -08:00
parent 5a719eef61
commit 4a4393f995
1 changed files with 6 additions and 1 deletions

View File

@ -78,8 +78,13 @@ class _AssetPageState extends ConsumerState<AssetPage> {
}
///
/// = × (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);
}
///