Skip to content

Fix Infinite push transfer payload#5976

Open
j0ntz wants to merge 2 commits intodevelopfrom
jon/fix/infinite-push-transfer-source
Open

Fix Infinite push transfer payload#5976
j0ntz wants to merge 2 commits intodevelopfrom
jon/fix/infinite-push-transfer-source

Conversation

@j0ntz
Copy link
Contributor

@j0ntz j0ntz commented Mar 11, 2026

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

Asana task

Asana task

Context

Infinite buy confirmations were creating a push-payment onramp transfer with source details attached, which Infinite flagged as invalid for this flow.

  • Split Infinite transfer requests into explicit onramp and offramp payload variants.
  • Remove source details from the Infinite buy/onramp transfer request.
  • Drop the now-unused flow plumbing from the confirmation call path.

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)

Note

Medium Risk
Touches fiat ramp transfer creation and confirmation UX; incorrect payloads or stricter validation could block buy flows or surface new runtime errors if Infinite responses differ from expectations.

Overview
Fixes Infinite buy/onramp transfer creation by splitting createTransfer into explicit ONRAMP vs OFFRAMP request payload types and removing onramp-only source fields that Infinite rejects.

Tightens the Infinite confirmation workflow by dropping the now-unused flow plumbing, validating that bank deposit instructions are present (otherwise throwing), and improving RampConfirmationScene behavior so the slider is always reset and errors are captured with correct typing. Adds a changelog entry for the fix.

Written by Cursor Bugbot for commit 50009aa. This will update automatically on new commits. Configure here.

Use a discriminated union for transfer request types so the buy and
sell payloads stay distinct.  For onramp (push payment), include only
source.currency — no account ID or network — matching what the
Infinite headless API expects.
@j0ntz j0ntz force-pushed the jon/fix/infinite-push-transfer-source branch from c19ef4f to 4a873a8 Compare March 12, 2026 19:16
Move reset() from the catch block into finally so the SafeSlider
returns to its idle state on both success and error paths.  Previously
a successful transfer with no deposit instructions left the slider
spinning indefinitely.
@j0ntz j0ntz force-pushed the jon/fix/infinite-push-transfer-source branch from 4a873a8 to 50009aa Compare March 12, 2026 19:24
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