feat(mining-app+admin): 挖矿记录积分股小数精度统一提升至13位
需求:每次预种叠加后的积分股变化极小,原有精度(APP 4位/后台 8位) 无法有效区分,需提升至13位小数以便查看细微变化。 修改范围: - mining-admin-web: 分配记录 shareAmount 8→13 位小数 - mining-admin-web: 补发记录 amount 8→13 位小数 - mining-app: 补发记录 amount 4→13 位小数 (mining-app 分配记录已在上一次提交中修改) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
dc27fe9e44
commit
ab78086f1e
|
|
@ -88,7 +88,7 @@ export function BatchMiningRecordsList({ accountSequence }: BatchMiningRecordsLi
|
||||||
{formatPercent(record.contributionRatio)}
|
{formatPercent(record.contributionRatio)}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell className="text-right font-mono text-primary font-medium">
|
<TableCell className="text-right font-mono text-primary font-medium">
|
||||||
+{formatDecimal(record.amount, 8)}
|
+{formatDecimal(record.amount, 13)}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell className="text-sm text-muted-foreground max-w-[200px] truncate">
|
<TableCell className="text-sm text-muted-foreground max-w-[200px] truncate">
|
||||||
{record.remark || '-'}
|
{record.remark || '-'}
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ export function MiningRecordsList({ accountSequence }: MiningRecordsListProps) {
|
||||||
<TableCell className="font-mono">{record.distributionMinute}</TableCell>
|
<TableCell className="font-mono">{record.distributionMinute}</TableCell>
|
||||||
<TableCell className="text-right">{formatPercent(record.contributionRatio)}</TableCell>
|
<TableCell className="text-right">{formatPercent(record.contributionRatio)}</TableCell>
|
||||||
<TableCell className="text-right font-mono text-primary">
|
<TableCell className="text-right font-mono text-primary">
|
||||||
+{formatDecimal(record.shareAmount, 8)}
|
+{formatDecimal(record.shareAmount, 13)}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell className="text-right font-mono">{formatDecimal(record.priceSnapshot, 8)}</TableCell>
|
<TableCell className="text-right font-mono">{formatDecimal(record.priceSnapshot, 8)}</TableCell>
|
||||||
<TableCell className="text-sm">{formatDateTime(record.createdAt)}</TableCell>
|
<TableCell className="text-sm">{formatDateTime(record.createdAt)}</TableCell>
|
||||||
|
|
|
||||||
|
|
@ -244,7 +244,7 @@ class _BatchMiningRecordsListPageState extends ConsumerState<BatchMiningRecordsL
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'+${formatAmount(record.amount)}',
|
'+${formatDecimal(record.amount, 13)}',
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue