Context
The swap quote currently shows Output Value (before fees) and Estimated Cost (price impact + platform fee + network fee) as separate rows. The gain/loss calculation uses outUsdValue - platformFee - networkFee as the effective proceeds, but this isn't shown explicitly to the user.
Proposal
Add an "Estimated Output" row in the fees/costs section, just above the Cost Basis section. This would show:
Calculated as: outUsdValue - platformFeeUSD - networkFeeUSD
This makes the gain/loss calculation more transparent - the user can see the number that their cost basis is being compared against.
Notes
- Should appear between the Estimated Cost row and the Cost Basis section divider
- Only meaningful when fees are known; consider what to show when network fee is "Unable to estimate"
- This is the same value used internally by
costBasisMetrics.realizedGainLoss (outUsdValue - fees - totalCostBasis)
Context
The swap quote currently shows Output Value (before fees) and Estimated Cost (price impact + platform fee + network fee) as separate rows. The gain/loss calculation uses
outUsdValue - platformFee - networkFeeas the effective proceeds, but this isn't shown explicitly to the user.Proposal
Add an "Estimated Output" row in the fees/costs section, just above the Cost Basis section. This would show:
Calculated as:
outUsdValue - platformFeeUSD - networkFeeUSDThis makes the gain/loss calculation more transparent - the user can see the number that their cost basis is being compared against.
Notes
costBasisMetrics.realizedGainLoss(outUsdValue - fees - totalCostBasis)