Skip to content

Commit

Permalink
[ota 1.2] disable multihop
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgeniyJB committed Aug 28, 2024
1 parent 219c4ae commit 1eaa82b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import { scale } from '@utils/scaling';
import {
SettingsDeadlineForm,
SettingsExpertModeForm,
SettingsSlippageTolleranceForm,
SettingsMultiHopForm
SettingsSlippageTolleranceForm
} from '@/features/swap/components/composite';

export const BottomSheetSwapSettings = forwardRef<BottomSheetRef, unknown>(
Expand All @@ -36,7 +35,8 @@ export const BottomSheetSwapSettings = forwardRef<BottomSheetRef, unknown>(
<SettingsDeadlineForm />
<View style={styles.switches}>
<SettingsExpertModeForm />
<SettingsMultiHopForm />
{/*//temporarily turn off multihops*/}
{/*<SettingsMultiHopForm />*/}
</View>
</View>
<Spacer value={scale(56)} />
Expand Down
7 changes: 4 additions & 3 deletions src/features/swap/context/initials.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
SelectedTokensAmountState,
SelectedTokensState,
UIBottomSheetInformationState,
Settings
Settings,
UIBottomSheetInformationState
} from '../types';
import { SWAP_SUPPORTED_TOKENS } from '../entities';
import { environment } from '@utils/environment';
Expand All @@ -13,7 +13,8 @@ export const INITIAL_DEADLINE = '20';
export const INITAL_SETTINGS: Settings = {
slippageTolerance: INITIAL_SLIPPAGE_TOLLERANCE,
deadline: INITIAL_DEADLINE,
multihops: true,
//temporarily turn off multihops
multihops: false,
extendedMode: false
};

Expand Down

0 comments on commit 1eaa82b

Please sign in to comment.