Skip to content

fix: Skip fee subtraction for sponsor-paid escrow transactions - #1383

Open
FawwazLawal wants to merge 1 commit into
ripple:mainfrom
FawwazLawal:fix/1379-sponsor-fee-escrow
Open

FawwazLawal wants to merge 1 commit into
ripple:mainfrom
FawwazLawal:fix/1379-sponsor-fee-escrow

Conversation

@FawwazLawal

@FawwazLawal FawwazLawal commented Oct 26, 2026 •

Copy link
Copy Markdown

High Level Overview of Change

When an escrow transaction has its fee sponsored via SponsorFlags, the fee is not deducted from the sender's balance. The explorer was still subtracting the fee when computing XRP deltas and "amount after" values, showing incorrect amounts for sponsor-paid escrows.

Context of Change

The sponsor-fee check pattern already exists in SimpleTab.tsx and DetailTab using getSponsorScopes(tx.SponsorFlags).includes('fee'). This fix applies the same pattern to three locations that were missing it:

  • metaParser.tsx line 107: findXRPAmount fee subtraction now wrapped in a !feeSponsored guard
  • EscrowFinish/Description.tsx line 49: conditional fee subtraction in the displayed amount
  • EscrowCancel/Description.tsx line 48: same pattern as EscrowFinish

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Before / After

Before: Sponsor-paid escrow transactions show fee subtracted from the sender's XRP delta, even though the fee was paid by the sponsor.
After: When getSponsorScopes indicates the fee scope is sponsored, the fee is not subtracted from the displayed amounts.

Closes #1379

When an escrow transaction has its fee sponsored via SponsorFlags, the
fee is not deducted from the sender's balance. The displayed XRP delta
and "amount after" values were still subtracting the fee, showing
incorrect amounts.

Use getSponsorScopes to check whether the fee is sponsor-paid and
conditionally skip the subtraction in metaParser, EscrowFinish, and
EscrowCancel Description components.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fee-sponsored transactions show wrong “after transaction cost” / XRP-delta amounts

1 participant