Skip to content

Commit

Permalink
chore: fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
woodenfurniture committed Nov 12, 2024
1 parent a406b8f commit 034caa4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }),
)
Expand Down
2 changes: 2 additions & 0 deletions src/state/slices/tradeQuoteSlice/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<ReduxState, CalculateFeeBpsReturn> =
createCachedSelector(
(_state: ReduxState, { feeModel }: AffiliateFeesProps) => feeModel,
Expand Down

0 comments on commit 034caa4

Please sign in to comment.