fix(confirmations): show Relay exact-input deposit output - #35249
Draft
pedronfigueiredo wants to merge 3 commits into
Draft
fix(confirmations): show Relay exact-input deposit output#35249pedronfigueiredo wants to merge 3 commits into
pedronfigueiredo wants to merge 3 commits into
Conversation
Contributor
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
4 tasks
|
pedronfigueiredo
force-pushed
the
pnf/conf-1782-relay-exact-input-deposits
branch
from
August 26, 2026 13:53
f64b062 to
fec8a76
Compare
Contributor
🧪 Flaky unit test detectionRun history flaky detectionHistorical failure rate is a hint, not proof — review each suggestion in context. See the flaky-test-detection skill for the full pattern reference and manual audit workflow. Failures / runs sampled per window:
AI-detected flaky patterns
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Updates Mobile confirmation UX to consume the Pay Controller's normalized input/output semantics instead of reconstructing them from transaction types, quote strategy, or provider-specific quote details.
TransactionPayTotals.isInputBasedfrom controller state and treats only an explicittrueas input-based.targetAmount.isInputBased; input-based withdrawals use the controller's authoritative target amount.This PR depends on MetaMask/core#9954. Core now:
EXACT_INPUTwithsourceTokenAmountfor Relay requests without embedded transactions;EXACT_OUTPUTfor Relay requests with embedded transactions;TransactionPayQuote.isInputBasedandTransactionPayTotals.isInputBasedproperties; andIntegration status
The committed Mobile branch still uses
@metamask/transaction-pay-controller@^26.4.1, so the new runtime behavior remains gated on the published Core release containing #9954. The compatibility type in this branch supports development against the currently installed package and should be removed after that dependency bump.Mobile now wires both the v26
resolveSourceAmountcallback and the v27getBalancecallback through one shared Money Account balance resolver, allowing the committed code to work with either controller API during the transition. The final dependency integration still needs to align@metamask/sentinel-api-servicewith Core and regenerate/dedupeyarn.lock. Local absolute-pathfile:dependency changes are for simulator testing only and must not be committed.Changelog
CHANGELOG entry: Updated input-based confirmations to show the amount received while preserving the total source amount entered
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/CONF-1782
Manual testing steps
Screenshots/Recordings
N/A — manual device verification remains pending the corresponding published Core package integration.
Before
N/A
After
N/A
Validation
git diff --checkpassed.yarn lint:tscpassed against the locally linked final Core package after aligning the local Sentinel dependency.Pre-merge author checklist
Performance checks (if applicable)
For performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist