Skip to content

Commit

Permalink
Merge branch 'feat/limit-ui-upgrade-2' into feat/limit-ui-upgrade-4
Browse files Browse the repository at this point in the history
  • Loading branch information
alfetopito authored Jan 16, 2025
2 parents ade99f8 + 653f42f commit 9f77a3a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export enum LimitOrderDeadlinePreset {
ONE_DAY = '1 Day',
THREE_DAYS = '3 Days',
ONE_MONTH = '1 Month',
SIX_MONTHS = '1 Year (max)',
ONE_YEAR = '1 Year (max)',
}

const DEADLINE_VALUES: Record<LimitOrderDeadlinePreset, number> = {
Expand All @@ -28,12 +28,12 @@ const DEADLINE_VALUES: Record<LimitOrderDeadlinePreset, number> = {
[LimitOrderDeadlinePreset.ONE_DAY]: ms`1d`,
[LimitOrderDeadlinePreset.THREE_DAYS]: ms`3d`,
[LimitOrderDeadlinePreset.ONE_MONTH]: ms`30d`,
[LimitOrderDeadlinePreset.SIX_MONTHS]: MAX_CUSTOM_DEADLINE,
[LimitOrderDeadlinePreset.ONE_YEAR]: MAX_CUSTOM_DEADLINE,
}

export const defaultLimitOrderDeadline: LimitOrderDeadline = {
title: LimitOrderDeadlinePreset.SIX_MONTHS,
value: DEADLINE_VALUES[LimitOrderDeadlinePreset.SIX_MONTHS],
title: LimitOrderDeadlinePreset.ONE_YEAR,
value: DEADLINE_VALUES[LimitOrderDeadlinePreset.ONE_YEAR],
}

export const LIMIT_ORDERS_DEADLINES: LimitOrderDeadline[] = Object.entries(DEADLINE_VALUES).map(([title, value]) => ({
Expand Down

0 comments on commit 9f77a3a

Please sign in to comment.