Skip to content

Commit 326a6bf

Browse files
chore: rename fn
1 parent 33e5f04 commit 326a6bf

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

app/components/UI/Bridge/Views/BatchSellReview/BatchSellReview.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import { BridgeToken } from '../../types';
4343
import { getBridgeTokenAssetId } from '../../utils/tokenUtils';
4444
import {
4545
DEFAULT_BATCH_SELL_SLIPPAGE,
46-
getBatchSellInitialSlippage,
46+
getBatchSellSlippage,
4747
getSlippageDisplayValue,
4848
} from '../../components/SlippageModal/utils';
4949
import { 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 {

app/components/UI/Bridge/components/SlippageModal/BatchSellCustomSlippageModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ import {
77
import { useParams } from '../../../../../util/navigation/navUtils';
88
import { CustomSlippageModalContent } from './CustomSlippageModal';
99
import { BatchSellSlippageModalParams } from './types';
10-
import { getBatchSellInitialSlippage } from './utils';
10+
import { getBatchSellSlippage } from './utils';
1111

1212
export 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
);

app/components/UI/Bridge/components/SlippageModal/BatchSellDefaultSlippageModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ import {
99
import { useParams } from '../../../../../util/navigation/navUtils';
1010
import { DefaultSlippageModalContent } from './DefaultSlippageModal';
1111
import { BatchSellSlippageModalParams } from './types';
12-
import { getBatchSellInitialSlippage } from './utils';
12+
import { getBatchSellSlippage } from './utils';
1313

1414
export 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
);

app/components/UI/Bridge/components/SlippageModal/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import AppConstants from '../../../../../core/AppConstants';
44
export 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
) {

0 commit comments

Comments
 (0)