fix(asset): 积分股估值计算加入倍数(burnMultiplier)

之前只用了 shareBalance * currentPrice,
正确公式应该是 shareBalance * (1 + burnMultiplier) * currentPrice

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-20 03:07:03 -08:00
parent 1c787a22a3
commit 63e02666ea
1 changed files with 1 additions and 1 deletions

View File

@ -502,7 +502,7 @@ class _AssetPageState extends ConsumerState<AssetPage> {
amount: asset != null ? shareBalance.toString() : null,
isLoading: isLoading,
valueInCny: asset != null
? '${formatAmount((shareBalance * currentPrice).toString())} 积分值'
? '${formatAmount((shareBalance * (1 + multiplier) * currentPrice).toString())} 积分值'
: null,
// tag: asset != null ? '含倍数资产: ${formatCompact(multipliedAsset.toString())}' : null, //
growthText: asset != null ? '每秒 +${formatDecimal(perSecondEarning, 8)}' : null,