Skip to content

modal: surface session user fee#257

Open
dcposch wants to merge 1 commit intomasterfrom
session-fees-ui
Open

modal: surface session user fee#257
dcposch wants to merge 1 commit intomasterfrom
session-fees-ui

Conversation

@dcposch
Copy link
Copy Markdown
Member

@dcposch dcposch commented Apr 7, 2026

Summary

  • Add SessionPublicInfo.fees and UserFeeRule to the SDK types.
  • WalletAmountPage shows live "Recipient gets $X" while typing/Max when a user fee applies; min floor bumped so the recipient still clears the chain minimum.
  • WaitingDepositAddressPage shows "Recipient receives $X" subtitle for fixed-amount sessions with a fee.
  • Sessions without a user fee render byte-identical to today.

Pairs with the server side at daimo-eth/daimo-internal#1644.

Test plan

  • Existing modal flows unaffected when fees is unset
  • Open-amount session with userFee = { fixedUsd: 0.25, bps: 50 }: typing $100 shows "Recipient gets $99.25"
  • Fixed-amount $100 session with same fee: deposit page shows amount $100.75 + "Recipient receives $100.00"
  • Spanish locale renders recipientGets / recipientReceives keys

🤖 Generated with Claude Code

Add SessionPublicInfo.fees + UserFeeRule type. WalletAmountPage shows
"Recipient gets $X" live when a user fee applies. WaitingDepositAddressPage
shows "Recipient receives $X" subtitle for fixed-amount sessions with a
fee. Sessions without a user fee render byte-identical to today.

Pairs with daimo-eth/daimo-internal#1644.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant