+
diff --git a/src/pages/simulator/overlapping/index.tsx b/src/pages/simulator/overlapping/index.tsx
index 0af0cb78a..1dfb0f2d9 100644
--- a/src/pages/simulator/overlapping/index.tsx
+++ b/src/pages/simulator/overlapping/index.tsx
@@ -20,8 +20,8 @@ export const SimulatorInputOverlappingPage = () => {
const { data, isPending, isError } = useGetTokenPriceHistory({
baseToken: searchState.baseToken,
quoteToken: searchState.quoteToken,
- start: searchState.start,
- end: searchState.end,
+ start: defaultStart().toString(),
+ end: defaultEnd().toString(),
});
useEffect(() => {
diff --git a/src/pages/simulator/recurring/index.tsx b/src/pages/simulator/recurring/index.tsx
index 27803162f..84ccc7b3d 100644
--- a/src/pages/simulator/recurring/index.tsx
+++ b/src/pages/simulator/recurring/index.tsx
@@ -23,8 +23,8 @@ export const SimulatorInputRecurringPage = () => {
const { data, isPending, isError } = useGetTokenPriceHistory({
baseToken: searchState.baseToken,
quoteToken: searchState.quoteToken,
- start: searchState.start,
- end: searchState.end,
+ start: defaultStart().toString(),
+ end: defaultEnd().toString(),
});
const { marketPrice, isPending: marketPricePending } = useMarketPrice({
base: state.baseToken,
diff --git a/src/pages/strategy/index.tsx b/src/pages/strategy/index.tsx
index 1c7bdf952..5085937d4 100644
--- a/src/pages/strategy/index.tsx
+++ b/src/pages/strategy/index.tsx
@@ -27,12 +27,7 @@ import {
defaultStartDate,
emptyOrder,
} from 'components/strategies/common/utils';
-import { fromUnixUTC, toUnixUTC } from 'components/simulator/utils';
-import { datePickerDisabledDays } from 'components/simulator/result/SimResultChartHeader';
-import {
- DateRangePicker,
- datePickerPresets,
-} from 'components/common/datePicker/DateRangePicker';
+import { toUnixUTC } from 'components/simulator/utils';
import config from 'config';
import { StrategyBlockInfo } from 'components/strategies/overview/strategyBlock/StrategyBlockInfo';
import { useActivityQuery } from 'components/activity/useActivityQuery';
@@ -63,15 +58,6 @@ export const StrategyPage = () => {
setSearch({ hideIndicators: shouldShow });
};
- const onDatePickerConfirm = (props: { start?: Date; end?: Date }) => {
- const { start, end } = props;
- if (!start || !end) return;
- setSearch({
- priceStart: toUnixUTC(start),
- priceEnd: toUnixUTC(end),
- });
- };
-
const { data: activities } = useActivityQuery({
strategyIds: id,
start: priceStart?.toString() ?? toUnixUTC(defaultStartDate()),
@@ -144,20 +130,6 @@ export const StrategyPage = () => {