fix: remove nonsensical $X% fee format, use percentage only

Fee displays combined dollar sign with percent sign (e.g. $0.02%)
which is invalid in any financial context. Changed to percentage
format (0.02%) across all three locations: simulation results,
canvas inspector, and right panel context display.

Co-Authored-By: Nakamoto, S <defi@defi-oracle.io>
This commit is contained in:
Devin AI
2026-04-18 18:03:05 +00:00
parent 1a459c695b
commit af58c71f40
3 changed files with 3 additions and 3 deletions

View File

@@ -365,7 +365,7 @@ export default function App() {
const fee = (Math.random() * 0.1).toFixed(4);
const results = [
`Simulation complete for ${nodes.length} nodes, ${edges.length} edges`,
`Estimated fees: $${fee}%`,
`Estimated fees: ${fee}%`,
`Settlement window: T+${routingNodes.length > 0 ? '1' : '2'}`,
`Compliance: ${hasCompliance ? 'All checks passed' : 'WARNING - No compliance checks in flow'}`,
`Routing: ${routingNodes.length} venue(s) evaluated`,

View File

@@ -321,7 +321,7 @@ function CanvasInner({
<div className="inspector-separator" />
<div className="inspector-item">
<DollarSign size={12} />
<span>Est. fees: {nodes.length > 0 ? '$0.02%' : '—'}</span>
<span>Est. fees: {nodes.length > 0 ? '0.02%' : '—'}</span>
</div>
<div className="inspector-item">
<Clock size={12} />

View File

@@ -287,7 +287,7 @@ export default function RightPanel({
</div>
<div className="context-section">
<span className="context-label">Est. Fees</span>
<span className="context-value">{ctx.nodeCount > 0 ? '$0.02%' : '—'}</span>
<span className="context-value">{ctx.nodeCount > 0 ? '0.02%' : '—'}</span>
</div>
</div>
)}