Skip to content

fix(tip): raise a DM fee floor to the regional minimum - #1599

Merged
bmc08gt merged 1 commit into
fix/tip-floor-roundingfrom
fix/tip-floor-regional-minimum
Sep 28, 2026
Merged

bmc08gt merged 1 commit into
fix/tip-floor-roundingfrom
fix/tip-floor-regional-minimum

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator

Stacked on #1597.

minimumToOpenDmWith returns the recipient's converted fee even when it's under minTipAmount. Every tip carries the regional minimum, so a fee like 1000 NGN (about $0.76) states a floor the server always denies with "tip amount is below the minimum of 1 USD". iOS sees that denial in Bugsnag 6a67781.

A fee under the minimum now falls back to it. The minimum is in the entry currency or is the USD fallback row, and isBelow compares the fee in whichever it is. A fee with no USD rate keeps its own floor and the server stays the authority.

TipPaymentDelegateTest adds a $0.50 fee against the $1 minimum and a 1000 NGN fee against the USD fallback row. Both return the fee before this change. The fee floor emits before the presets resolve, so those two tests wait on minTipAmount before reading it; the UI picks up the preset on the next emission.

The iOS change is code-payments/code-ios-app#891.

minimumToOpenDmWith returned the recipient's converted fee even below
minTipAmount. Every tip carries the regional minimum, so a 1000 NGN fee
(about $0.76) states a floor the server always denies with "tip amount
is below the minimum of 1 USD".

A fee under the minimum now falls back to it. The minimum is in the
entry currency or is the USD fallback row, and the fee is compared in
whichever it is; a fee with no USD rate keeps its own floor.
@bmc08gt bmc08gt self-assigned this Sep 28, 2026
@github-actions github-actions Bot added the type: fix Bug fix label Sep 28, 2026
@github-actions github-actions Bot added the area: payments Payments, transfers, intents, billing label Sep 28, 2026
@bmc08gt
bmc08gt merged commit 2216323 into fix/tip-floor-rounding Sep 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: payments Payments, transfers, intents, billing type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant