diff --git a/src/components/incentives/IncentivesButton.tsx b/src/components/incentives/IncentivesButton.tsx index be928c6f71..71c163ef62 100644 --- a/src/components/incentives/IncentivesButton.tsx +++ b/src/components/incentives/IncentivesButton.tsx @@ -65,7 +65,7 @@ export const MeritIncentivesButton = (params: { export const ZkIgniteIncentivesButton = (params: { market: string; - asset?: string; + rewardedAsset?: string; protocolAction?: ProtocolAction; }) => { const [open, setOpen] = useState(false); diff --git a/src/components/incentives/IncentivesCard.tsx b/src/components/incentives/IncentivesCard.tsx index fc66423dbf..d6bda0c6af 100644 --- a/src/components/incentives/IncentivesCard.tsx +++ b/src/components/incentives/IncentivesCard.tsx @@ -80,7 +80,11 @@ export const IncentivesCard = ({ > - + ); diff --git a/src/hooks/useZkSyncIgniteIncentives.ts b/src/hooks/useZkSyncIgniteIncentives.ts index 7331065a6b..39892b7660 100644 --- a/src/hooks/useZkSyncIgniteIncentives.ts +++ b/src/hooks/useZkSyncIgniteIncentives.ts @@ -70,11 +70,11 @@ const checkOpportunityAction = ( export const useZkSyncIgniteIncentives = ({ market, - asset, + rewardedAsset, protocolAction, }: { market: string; - asset?: string; + rewardedAsset?: string; protocolAction?: ProtocolAction; }) => { return useQuery({ @@ -92,8 +92,8 @@ export const useZkSyncIgniteIncentives = ({ select: (merklOpportunities) => { const opportunities = merklOpportunities.filter( (opportunitiy) => - asset && - opportunitiy.identifier.toLowerCase() === asset.toLowerCase() && + rewardedAsset && + opportunitiy.identifier.toLowerCase() === rewardedAsset.toLowerCase() && protocolAction && checkOpportunityAction(opportunitiy.action, protocolAction) );