mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 19:10:22 +01:00
65fb18e1aa
The property `quoteDataRows[0]rawNetworkFees` was described as a number rather than a string. In practice it is a string in all cases. The PropType and the tests have both been updated to expect it to be a string.
95 lines
2.4 KiB
JavaScript
95 lines
2.4 KiB
JavaScript
const quoteDataRows = [
|
|
{
|
|
aggId: 'Agg1',
|
|
amountReceiving: '100 DAI',
|
|
destinationTokenDecimals: 18,
|
|
destinationTokenSymbol: 'DAI',
|
|
destinationTokenValue: '100000000000000000000',
|
|
isBestQuote: false,
|
|
networkFees: '$15.25',
|
|
quoteSource: 'AGG',
|
|
rawNetworkFees: '10.25',
|
|
slippage: '1%',
|
|
sourceTokenDecimals: 18,
|
|
sourceTokenSymbol: 'ETH',
|
|
sourceTokenValue: '250000000000000000',
|
|
},
|
|
{
|
|
aggId: 'Agg2',
|
|
amountReceiving: '101 DAI',
|
|
destinationTokenDecimals: 18,
|
|
destinationTokenSymbol: 'DAI',
|
|
destinationTokenValue: '101000000000000000000',
|
|
isBestQuote: false,
|
|
networkFees: '$14.26',
|
|
quoteSource: 'RFQ',
|
|
rawNetworkFees: '10.26',
|
|
slippage: '1%',
|
|
sourceTokenDecimals: 18,
|
|
sourceTokenSymbol: 'ETH',
|
|
sourceTokenValue: '250000000000000000',
|
|
},
|
|
{
|
|
aggId: 'Agg3',
|
|
amountReceiving: '102 DAI',
|
|
destinationTokenDecimals: 18,
|
|
destinationTokenSymbol: 'DAI',
|
|
destinationTokenValue: '102000000000000000000',
|
|
isBestQuote: false,
|
|
networkFees: '$13.27',
|
|
quoteSource: 'DEX',
|
|
rawNetworkFees: '10.27',
|
|
slippage: '1%',
|
|
sourceTokenDecimals: 18,
|
|
sourceTokenSymbol: 'ETH',
|
|
sourceTokenValue: '250000000000000000',
|
|
},
|
|
{
|
|
aggId: 'Agg4',
|
|
amountReceiving: '150 DAI',
|
|
destinationTokenDecimals: 18,
|
|
destinationTokenSymbol: 'DAI',
|
|
destinationTokenValue: '150000000000000000000',
|
|
isBestQuote: true,
|
|
networkFees: '$12.28',
|
|
quoteSource: 'AGG',
|
|
rawNetworkFees: '10.28',
|
|
slippage: '1%',
|
|
sourceTokenDecimals: 18,
|
|
sourceTokenSymbol: 'ETH',
|
|
sourceTokenValue: '250000000000000000',
|
|
},
|
|
{
|
|
aggId: 'Agg5',
|
|
amountReceiving: '104 DAI',
|
|
destinationTokenDecimals: 18,
|
|
destinationTokenSymbol: 'DAI',
|
|
destinationTokenValue: '104000000000000000000',
|
|
isBestQuote: false,
|
|
networkFees: '$11.29',
|
|
quoteSource: 'RFQ',
|
|
rawNetworkFees: '10.29',
|
|
slippage: '1%',
|
|
sourceTokenDecimals: 18,
|
|
sourceTokenSymbol: 'ETH',
|
|
sourceTokenValue: '250000000000000000',
|
|
},
|
|
{
|
|
aggId: 'Agg6',
|
|
amountReceiving: '105 DAI',
|
|
destinationTokenDecimals: 18,
|
|
destinationTokenSymbol: 'DAI',
|
|
destinationTokenValue: '105000000000000000000',
|
|
isBestQuote: false,
|
|
networkFees: '$10.30',
|
|
quoteSource: 'DEX',
|
|
rawNetworkFees: '10.3',
|
|
slippage: '1%',
|
|
sourceTokenDecimals: 18,
|
|
sourceTokenSymbol: 'ETH',
|
|
sourceTokenValue: '250000000000000000',
|
|
},
|
|
]
|
|
|
|
export default quoteDataRows
|