@@ -16,7 +16,7 @@ import { getDynamicConfigParams, getExperimentParams, getFeatureGate } from 'src
16
16
import { StatsigFeatureGates } from 'src/statsig/types'
17
17
import SwapScreen from 'src/swap/SwapScreen'
18
18
import { swapStart } from 'src/swap/slice'
19
- import { Field } from 'src/swap/types'
19
+ import { FetchQuoteResponse , Field } from 'src/swap/types'
20
20
import { NO_QUOTE_ERROR_MESSAGE } from 'src/swap/useSwapQuote'
21
21
import { NetworkId } from 'src/transactions/types'
22
22
import { publicClient } from 'src/viem'
@@ -181,10 +181,12 @@ const renderScreen = ({
181
181
}
182
182
}
183
183
184
- const defaultQuote = {
184
+ const defaultQuote : FetchQuoteResponse = {
185
185
unvalidatedSwapTransaction : {
186
+ chainId : 44787 ,
186
187
price : '1.2345678' ,
187
188
guaranteedPrice : '1.1234567' ,
189
+ appFeePercentageIncludedInPrice : undefined ,
188
190
sellTokenAddress : mockCeloAddress ,
189
191
buyTokenAddress : mockCusdAddress ,
190
192
sellAmount : '1234000000000000000' ,
@@ -195,7 +197,7 @@ const defaultQuote = {
195
197
value : '0' ,
196
198
data : '0x0' ,
197
199
gas : '1800000' ,
198
- gasPrice : '500000000' ,
200
+ estimatedGasUse : undefined ,
199
201
estimatedPriceImpact : '0.1' ,
200
202
} ,
201
203
details : {
@@ -995,6 +997,8 @@ describe('SwapScreen', () => {
995
997
preparedTransactions,
996
998
receivedAt : quoteReceivedTimestamp ,
997
999
price : defaultQuote . unvalidatedSwapTransaction . price ,
1000
+ appFeePercentageIncludedInPrice :
1001
+ defaultQuote . unvalidatedSwapTransaction . appFeePercentageIncludedInPrice ,
998
1002
provider : defaultQuote . details . swapProvider ,
999
1003
estimatedPriceImpact : defaultQuote . unvalidatedSwapTransaction . estimatedPriceImpact ,
1000
1004
allowanceTarget : defaultQuote . unvalidatedSwapTransaction . allowanceTarget ,
@@ -1046,6 +1050,8 @@ describe('SwapScreen', () => {
1046
1050
preparedTransactions : [ preparedTransactions [ 1 ] ] , // no approval transaction
1047
1051
receivedAt : expect . any ( Number ) ,
1048
1052
price : defaultQuote . unvalidatedSwapTransaction . price ,
1053
+ appFeePercentageIncludedInPrice :
1054
+ defaultQuote . unvalidatedSwapTransaction . appFeePercentageIncludedInPrice ,
1049
1055
provider : defaultQuote . details . swapProvider ,
1050
1056
estimatedPriceImpact : defaultQuote . unvalidatedSwapTransaction . estimatedPriceImpact ,
1051
1057
allowanceTarget : defaultQuote . unvalidatedSwapTransaction . allowanceTarget ,
@@ -1091,6 +1097,8 @@ describe('SwapScreen', () => {
1091
1097
preparedTransactions,
1092
1098
receivedAt : quoteReceivedTimestamp ,
1093
1099
price : defaultQuote . unvalidatedSwapTransaction . price ,
1100
+ appFeePercentageIncludedInPrice :
1101
+ defaultQuote . unvalidatedSwapTransaction . appFeePercentageIncludedInPrice ,
1094
1102
provider : defaultQuote . details . swapProvider ,
1095
1103
estimatedPriceImpact : defaultQuote . unvalidatedSwapTransaction . estimatedPriceImpact ,
1096
1104
allowanceTarget : defaultQuote . unvalidatedSwapTransaction . allowanceTarget ,
0 commit comments