diff --git a/src/components/MultiHopTrade/components/LimitOrder/components/LimitOrderInput.tsx b/src/components/MultiHopTrade/components/LimitOrder/components/LimitOrderInput.tsx index 819d40a6c61..528892723f5 100644 --- a/src/components/MultiHopTrade/components/LimitOrder/components/LimitOrderInput.tsx +++ b/src/components/MultiHopTrade/components/LimitOrder/components/LimitOrderInput.tsx @@ -360,7 +360,6 @@ export const LimitOrderInput = ({ handleSwitchAssets, ]) - // TODO: Remove me as this is dummy data from spot trade not limit orders const { feeUsd } = useAppSelector(state => selectCalculatedFees(state, { feeModel: 'SWAPPER', inputAmountUsd: sellAmountUsd }), ) diff --git a/src/state/slices/tradeQuoteSlice/selectors.ts b/src/state/slices/tradeQuoteSlice/selectors.ts index 014de3dbd6f..db34ad921e2 100644 --- a/src/state/slices/tradeQuoteSlice/selectors.ts +++ b/src/state/slices/tradeQuoteSlice/selectors.ts @@ -555,6 +555,8 @@ type AffiliateFeesProps = { inputAmountUsd: string | undefined } +// TODO: Move out of tradeQuoteSlice as this is used for limit orders also, and is not spot +// specific export const selectCalculatedFees: Selector = createCachedSelector( (_state: ReduxState, { feeModel }: AffiliateFeesProps) => feeModel,