File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ import { BridgeToken } from '../../types';
4343import { getBridgeTokenAssetId } from '../../utils/tokenUtils' ;
4444import {
4545 DEFAULT_BATCH_SELL_SLIPPAGE ,
46- getBatchSellInitialSlippage ,
46+ getBatchSellSlippage ,
4747 getSlippageDisplayValue ,
4848} from '../../components/SlippageModal/utils' ;
4949import { BatchSellFinalReviewSourceTokenData } from '../../components/BatchSellFinalReviewModal/BatchSellFinalReviewModal.types' ;
@@ -143,7 +143,7 @@ export function BatchSellReview() {
143143
144144 if ( ! assetId ) return slippageByAssetId ;
145145
146- slippageByAssetId [ assetId ] = getBatchSellInitialSlippage (
146+ slippageByAssetId [ assetId ] = getBatchSellSlippage (
147147 batchSellSlippages ,
148148 assetId ,
149149 ) ;
@@ -184,7 +184,7 @@ export function BatchSellReview() {
184184 tokenData : selectedTokens . map ( ( token ) => {
185185 const assetId = getBridgeTokenAssetId ( token ) ;
186186 const slippage = assetId
187- ? getBatchSellInitialSlippage ( batchSellSlippages , assetId )
187+ ? getBatchSellSlippage ( batchSellSlippages , assetId )
188188 : DEFAULT_BATCH_SELL_SLIPPAGE ;
189189
190190 return {
Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ import {
77import { useParams } from '../../../../../util/navigation/navUtils' ;
88import { CustomSlippageModalContent } from './CustomSlippageModal' ;
99import { BatchSellSlippageModalParams } from './types' ;
10- import { getBatchSellInitialSlippage } from './utils' ;
10+ import { getBatchSellSlippage } from './utils' ;
1111
1212export const BatchSellCustomSlippageModal = ( ) => {
1313 const dispatch = useDispatch ( ) ;
1414 const batchSellSlippages = useSelector ( selectBatchSellSlippages ) ;
1515 const { sourceChainId, destChainId, batchSellAssetId } =
1616 useParams < BatchSellSlippageModalParams > ( ) ;
17- const initialSlippage = getBatchSellInitialSlippage (
17+ const initialSlippage = getBatchSellSlippage (
1818 batchSellSlippages ,
1919 batchSellAssetId ,
2020 ) ;
Original file line number Diff line number Diff line change @@ -9,15 +9,15 @@ import {
99import { useParams } from '../../../../../util/navigation/navUtils' ;
1010import { DefaultSlippageModalContent } from './DefaultSlippageModal' ;
1111import { BatchSellSlippageModalParams } from './types' ;
12- import { getBatchSellInitialSlippage } from './utils' ;
12+ import { getBatchSellSlippage } from './utils' ;
1313
1414export const BatchSellDefaultSlippageModal = ( ) => {
1515 const navigation = useNavigation ( ) ;
1616 const dispatch = useDispatch ( ) ;
1717 const batchSellSlippages = useSelector ( selectBatchSellSlippages ) ;
1818 const { sourceChainId, destChainId, batchSellAssetId } =
1919 useParams < BatchSellSlippageModalParams > ( ) ;
20- const initialSlippage = getBatchSellInitialSlippage (
20+ const initialSlippage = getBatchSellSlippage (
2121 batchSellSlippages ,
2222 batchSellAssetId ,
2323 ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import AppConstants from '../../../../../core/AppConstants';
44export const DEFAULT_BATCH_SELL_SLIPPAGE =
55 AppConstants . SWAPS . DEFAULT_SLIPPAGE . toString ( ) ;
66
7- export function getBatchSellInitialSlippage (
7+ export function getBatchSellSlippage (
88 batchSellSlippages : Partial < Record < CaipAssetType , string | undefined > > ,
99 batchSellAssetId : CaipAssetType ,
1010) {
You can’t perform that action at this time.
0 commit comments