diff --git a/package.json b/package.json index d99fab9..8219994 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "@cosmjs/tendermint-rpc": "^0.31.0", "@dydxprotocol/v4-abacus": "^1.1.32", "@dydxprotocol/v4-client-js": "^1.0.11", - "@dydxprotocol/v4-localization": "^1.1.5", + "@dydxprotocol/v4-localization": "^1.1.6", "@ethersproject/providers": "^5.7.2", "@js-joda/core": "^5.5.3", "@radix-ui/react-accordion": "^1.1.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d6eaa5b..dbeaa06 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -29,8 +29,8 @@ dependencies: specifier: ^1.0.11 version: 1.0.11 '@dydxprotocol/v4-localization': - specifier: ^1.1.5 - version: 1.1.5 + specifier: ^1.1.6 + version: 1.1.6 '@ethersproject/providers': specifier: ^5.7.2 version: 5.7.2 @@ -1019,8 +1019,8 @@ packages: - utf-8-validate dev: false - /@dydxprotocol/v4-localization@1.1.5: - resolution: {integrity: sha512-Y25yuCLFaK3v/81B60lc3qthaWwJn1fNJuYQdOtgnmOhLNqI4YRryUncLkbjdB5xd4QODq5KZikP34pLKX9sgA==} + /@dydxprotocol/v4-localization@1.1.6: + resolution: {integrity: sha512-Bon6NSRU4/FqneAbnP2G28EAPr0hp4LhvAayX61o0O1PGkxnLzAHkXeFppdM0Zn0fOcp1S1MJ+gvz138ZDephQ==} dev: false /@dydxprotocol/v4-proto@0.4.1: diff --git a/src/pages/rewards/LaunchIncentivesPanel.tsx b/src/pages/rewards/LaunchIncentivesPanel.tsx index 5ffc37e..a5a59cb 100644 --- a/src/pages/rewards/LaunchIncentivesPanel.tsx +++ b/src/pages/rewards/LaunchIncentivesPanel.tsx @@ -24,6 +24,8 @@ import { openDialog } from '@/state/dialogs'; import { log } from '@/lib/telemetry'; +const SEASON_NUMBER = 2; + export const LaunchIncentivesPanel = () => { const { isNotTablet } = useBreakpoints(); const dispatch = useDispatch(); @@ -71,7 +73,7 @@ const EstimatedRewards = () => { queryKey: `launch_incentives_rewards_${dydxAddress ?? ''}`, queryFn: async () => { if (!dydxAddress) return undefined; - const resp = await fetch(`https://cloud.chaoslabs.co/query/api/dydx/points/${dydxAddress}`); + const resp = await fetch(`https://cloud.chaoslabs.co/query/api/dydx/points/${dydxAddress}?n=${SEASON_NUMBER}`); return (await resp.json())?.incentivePoints; }, onError: (error: Error) => log('LaunchIncentives/fetchPoints', error), @@ -85,9 +87,7 @@ const EstimatedRewards = () => { {stringGetter({ key: STRING_KEYS.LAUNCH_INCENTIVES_SEASON_NUM, - params: { - SEASON_NUMBER: 1, - }, + params: { SEASON_NUMBER }, })}