|
|
|
@ -80,6 +80,7 @@ import { |
|
|
|
|
SWAP_FAILED_ERROR, |
|
|
|
|
SWAPS_FETCH_ORDER_CONFLICT, |
|
|
|
|
ALLOWED_SMART_TRANSACTIONS_CHAIN_IDS, |
|
|
|
|
SLIPPAGE, |
|
|
|
|
} from '../../../shared/constants/swaps'; |
|
|
|
|
import { |
|
|
|
|
TRANSACTION_TYPES, |
|
|
|
@ -108,7 +109,7 @@ const initialState = { |
|
|
|
|
fromTokenInputValue: '', |
|
|
|
|
fromTokenError: null, |
|
|
|
|
isFeatureFlagLoaded: false, |
|
|
|
|
maxSlippage: 3, |
|
|
|
|
maxSlippage: SLIPPAGE.DEFAULT, |
|
|
|
|
quotesFetchStartTime: null, |
|
|
|
|
reviewSwapClickedTimestamp: null, |
|
|
|
|
topAssets: {}, |
|
|
|
@ -733,7 +734,7 @@ export const fetchQuotesAndSetQuoteState = ( |
|
|
|
|
token_to: toTokenSymbol, |
|
|
|
|
request_type: balanceError ? 'Quote' : 'Order', |
|
|
|
|
slippage: maxSlippage, |
|
|
|
|
custom_slippage: maxSlippage !== 2, |
|
|
|
|
custom_slippage: maxSlippage !== SLIPPAGE.DEFAULT, |
|
|
|
|
is_hardware_wallet: hardwareWalletUsed, |
|
|
|
|
hardware_wallet_type: hardwareWalletType, |
|
|
|
|
stx_enabled: smartTransactionsEnabled, |
|
|
|
@ -787,7 +788,7 @@ export const fetchQuotesAndSetQuoteState = ( |
|
|
|
|
token_to: toTokenSymbol, |
|
|
|
|
request_type: balanceError ? 'Quote' : 'Order', |
|
|
|
|
slippage: maxSlippage, |
|
|
|
|
custom_slippage: maxSlippage !== 2, |
|
|
|
|
custom_slippage: maxSlippage !== SLIPPAGE.DEFAULT, |
|
|
|
|
is_hardware_wallet: hardwareWalletUsed, |
|
|
|
|
hardware_wallet_type: hardwareWalletType, |
|
|
|
|
stx_enabled: smartTransactionsEnabled, |
|
|
|
@ -812,7 +813,7 @@ export const fetchQuotesAndSetQuoteState = ( |
|
|
|
|
), |
|
|
|
|
request_type: balanceError ? 'Quote' : 'Order', |
|
|
|
|
slippage: maxSlippage, |
|
|
|
|
custom_slippage: maxSlippage !== 2, |
|
|
|
|
custom_slippage: maxSlippage !== SLIPPAGE.DEFAULT, |
|
|
|
|
response_time: Date.now() - fetchStartTime, |
|
|
|
|
best_quote_source: newSelectedQuote.aggregator, |
|
|
|
|
available_quotes: Object.values(fetchedQuotes)?.length, |
|
|
|
|