-
-
Notifications
You must be signed in to change notification settings - Fork 256
fix: publish Unified SwapBridge Quotes Received event when tx is submitted #7182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@metamaskbot publish-preview |
|
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions. |
|
@metamaskbot publish-preview |
|
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions. |
|
@metamaskbot publish-preview |
|
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions. |
|
@metamaskbot publish-preview |
|
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions. |
|
@metamaskbot publish-preview |
|
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions. |
|
@metamaskbot publish-preview |
|
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions. |
Explanation
Publishes the
QuotesReceivedevent when submitting a trade before all quotes loadExtension PR: MetaMask/metamask-extension#37963
Mobilie PR: MetaMask/metamask-mobile#22905
References
Fixes https://consensyssoftware.atlassian.net/browse/SWAPS-3427
Checklist
Note
Publishes a QuotesReceived event on early trade submission and adds a helper and types to standardize its payload and warnings.
submitTxto accept optionalisLoadingandwarnings; whenisLoading=true, publishUnified SwapBridge Quotes ReceivedusinggetQuotesReceivedPropertiesbefore stopping quote polling.QuotesReceivedin internal tracking helper.getQuotesReceivedPropertiesto build QuotesReceived metrics payload; re-export fromindex.ts.QuoteWarningtype and use it forwarningsacross events/tests; update snapshots to standardized values (e.g.,low_return,insufficient_balance).gasIncludedvsgasIncluded_7702handling and add scenario where fees come from dest token under 7702.undefinedfees on failure) and validate BTC/SOL fee behaviors.Written by Cursor Bugbot for commit 89bb4b5. This will update automatically on new commits. Configure here.