You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit de1f65e
Browse filesBrowse the repository at this point in the historyBrowse files
Ports the Get (buy) half of iOS #604. Gated on FeatureFlag.NewUi via
State.isGet, so the v1 buy flow is untouched when the flag is off.
v1 asks for an amount, then pushes a funding-token step, then a receipt.
v2 picks the payment source inline on the amount screen — so the entry
ceiling is that one balance, the fee can be priced before confirming, and
confirming lands straight on the receipt.
- SwapViewModel: seeds a default funding source (Dollars, else the largest
held balance), resolves it without pricing the buy, and re-points
maxAmountFlow/transactionLimit at that balance.
- Fee convention: Dollars has no launchpad sale to skim, so a v2 Get pays
the flat house rate *on top* of the entered amount (mirroring
Convert-from-Dollars) and sends it explicitly on the buy request. v1's
USDF buy stays free; cross-currency still grosses up.
- Buy-maximum math follows suit: on-top affords balance / (1 + f), where
grossed-up affords balance × (1 - f).
- SwapStep.FundingSelection renders the "Select Currency" half sheet.
- Receipt reframes as a conversion: "You Get / Amount to convert /
Conversion fee", with a "Confirm" button.
- ConvertDestinationSelector.kt -> TokenSelectorRow.kt, now backing both
"Convert to" and "Get with".
0 commit comments