Skip to content
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

fix: missing deadline in swaps stx status screen #25779

Merged
merged 11 commits into from
Aug 20, 2024
2 changes: 2 additions & 0 deletions app/scripts/controllers/swaps/swaps.constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
FALLBACK_SMART_TRANSACTIONS_DEADLINE,
FALLBACK_SMART_TRANSACTIONS_MAX_FEE_MULTIPLIER,
FALLBACK_SMART_TRANSACTIONS_REFRESH_TIME,
} from '../../../../shared/constants/smartTransactions';
Expand Down Expand Up @@ -44,6 +45,7 @@ export function getDefaultSwapsControllerState(): SwapsControllerState {
swapsQuoteRefreshTime: FALLBACK_QUOTE_REFRESH_TIME,
swapsQuotePrefetchingRefreshTime: FALLBACK_QUOTE_REFRESH_TIME,
swapsStxBatchStatusRefreshTime: FALLBACK_SMART_TRANSACTIONS_REFRESH_TIME,
swapsStxStatusDeadline: FALLBACK_SMART_TRANSACTIONS_DEADLINE,
swapsStxGetTransactionsRefreshTime:
FALLBACK_SMART_TRANSACTIONS_REFRESH_TIME,
swapsStxMaxFeeMultiplier: FALLBACK_SMART_TRANSACTIONS_MAX_FEE_MULTIPLIER,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
"swapsQuoteRefreshTime": 60000,
"swapsQuotePrefetchingRefreshTime": 60000,
"swapsStxBatchStatusRefreshTime": 10000,
"swapsStxStatusDeadline": "number",
"swapsStxGetTransactionsRefreshTime": 10000,
"swapsStxMaxFeeMultiplier": 2,
"swapsFeatureFlags": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@
"swapsQuoteRefreshTime": 60000,
"swapsQuotePrefetchingRefreshTime": 60000,
"swapsStxBatchStatusRefreshTime": 10000,
"swapsStxStatusDeadline": "number",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this a "number" string and not some exact number like other fallback values?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The value wasn't being set up correctly in the test, but it is now 👍

"swapsStxGetTransactionsRefreshTime": 10000,
"swapsStxMaxFeeMultiplier": 2,
"swapsFeatureFlags": {}
Expand Down
Loading