Skip to content

Commit

Permalink
chore(incentives): season 6 is starting notif (#807)
Browse files Browse the repository at this point in the history
  • Loading branch information
moo-onthelawn authored Jul 16, 2024
1 parent 4d1b9ec commit 4e89c87
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@cosmjs/tendermint-rpc": "^0.32.1",
"@dydxprotocol/v4-abacus": "1.8.40",
"@dydxprotocol/v4-client-js": "^1.1.27",
"@dydxprotocol/v4-localization": "^1.1.151",
"@dydxprotocol/v4-localization": "^1.1.152",
"@ethersproject/providers": "^5.7.2",
"@hugocxl/react-to-image": "^0.0.9",
"@js-joda/core": "^5.5.3",
Expand Down
9 changes: 5 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions src/constants/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,17 +207,18 @@ export type TransferNotifcation = {

export enum ReleaseUpdateNotificationIds {
RevampedConditionalOrders = 'revamped-conditional-orders',
IncentivesS5 = 'incentives-s5',
IncentivesS6 = 'incentives-s6',
IncentivesDistributedS4 = 'incentives-distributed-s4',
FOKDeprecation = 'fok-deprecation',
IsolatedMarginLive = 'isolated-margin-live', // Added 06/12/2024
InAppStakingLive = 'staking-live', // Added 06/24/2024
}

// Incentives Season
export const CURRENT_SEASON_NUMBER = 5;
export const CURRENT_SEASON_NUMBER = 6;
export const REWARD_DISTRIBUTION_SEASON_NUMBER = 4;
export const INCENTIVES_SEASON_NOTIFICATION_ID = ReleaseUpdateNotificationIds.IncentivesS5;
export const MEDIAN_REWARDS_AMOUNT = { DYDX: 52, USDC: 63 };
export const INCENTIVES_SEASON_NOTIFICATION_ID = ReleaseUpdateNotificationIds.IncentivesS6;
export const INCENTIVES_DISTRIBUTED_NOTIFICATION_ID =
ReleaseUpdateNotificationIds.IncentivesDistributedS4;

Expand Down
7 changes: 4 additions & 3 deletions src/hooks/useNotificationTypes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
DEFAULT_TOAST_AUTO_CLOSE_MS,
INCENTIVES_DISTRIBUTED_NOTIFICATION_ID,
INCENTIVES_SEASON_NOTIFICATION_ID,
MEDIAN_REWARDS_AMOUNT,
MarketWindDownNotificationIds,
NotificationDisplayData,
NotificationType,
Expand Down Expand Up @@ -276,7 +277,7 @@ export const notificationTypes: NotificationTypeConfig[] = [
const { chainTokenLabel } = useTokenConfigs();
const stringGetter = useStringGetter();

const incentivesExpirationDate = new Date('2024-07-17T23:59:59');
const incentivesExpirationDate = new Date('2024-08-16T23:59:59');
const conditionalOrdersExpirationDate = new Date('2024-06-01T23:59:59');
const fokDeprecationExpirationDate = new Date('2024-07-01T23:59:59');
const isolatedMarginLiveExpirationDate = new Date('2024-07-12T23:59:59');
Expand All @@ -300,8 +301,8 @@ export const notificationTypes: NotificationTypeConfig[] = [
key: 'NOTIFICATIONS.INCENTIVES_SEASON_BEGUN.BODY',
params: {
PREV_SEASON_NUMBER: CURRENT_SEASON_NUMBER - 2, // we generally only have data for rewards from 2 seasons ago because the new season launches before the previous season's rewards are distributed
DYDX_AMOUNT: '52',
USDC_AMOUNT: '100',
DYDX_AMOUNT: MEDIAN_REWARDS_AMOUNT.DYDX,
USDC_AMOUNT: MEDIAN_REWARDS_AMOUNT.USDC,
},
}),
toastSensitivity: 'foreground',
Expand Down

0 comments on commit 4e89c87

Please sign in to comment.