Skip to content

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

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/tip-fee-floor-reland
Oct 10, 2026
Merged

bmc08gt merged 1 commit into
code/cashfrom
fix/tip-fee-floor-reland

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Oct 10, 2026

Copy link
Copy Markdown
Collaborator

Re-lands #1599. It targeted fix/tip-floor-rounding and merged at 18:35 UTC on Sep 28, a minute after #1597 had merged that branch into code/cash, so its commit never reached code/cash.

startChattingFee 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". 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.

The function was minimumToOpenDmWith when #1599 was written; the logic and its two tests are unchanged apart from the name. Both tests fail against current code/cash.

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

Re-lands #1599, which merged into fix/tip-floor-rounding after #1597 had
already merged that branch into code/cash, so it never shipped.

startChattingFee returns the recipient's converted fee even when it is
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". A fee under the minimum now falls
back to it.

The function was renamed from minimumToOpenDmWith since #1599; the change
is otherwise the same.
@bmc08gt bmc08gt self-assigned this Oct 10, 2026
@github-actions github-actions Bot added area: payments Payments, transfers, intents, billing type: fix Bug fix labels Oct 10, 2026
@bmc08gt
bmc08gt merged commit 6033c8f into code/cash Oct 10, 2026
3 checks passed
@bmc08gt
bmc08gt deleted the fix/tip-fee-floor-reland branch October 10, 2026 20:58
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