@@ -17,17 +17,16 @@ import { MARKETS } from 'src/utils/events';
1717import  {  showExternalIncentivesTooltip  }  from  'src/utils/utils' ; 
1818import  {  useShallow  }  from  'zustand/shallow' ; 
1919
20- import  {  mapAaveProtocolIncentives  }  from  '../../components/incentives/incentives.helper' ; 
2120import  {  IncentivesCard  }  from  '../../components/incentives/IncentivesCard' ; 
2221import  {  AMPLToolTip  }  from  '../../components/infoTooltips/AMPLToolTip' ; 
2322import  {  ListColumn  }  from  '../../components/lists/ListColumn' ; 
2423import  {  ListItem  }  from  '../../components/lists/ListItem' ; 
2524import  {  FormattedNumber  }  from  '../../components/primitives/FormattedNumber' ; 
2625import  {  Link ,  ROUTES  }  from  '../../components/primitives/Link' ; 
2726import  {  TokenIcon  }  from  '../../components/primitives/TokenIcon' ; 
28- import  {  ReserveWithId  }  from  '../../hooks/app-data-provider/useAppDataProvider ' ; 
27+ import  {  ReserveWithProtocolIncentives  }  from  './MarketAssetsList ' ; 
2928
30- export  const  MarketAssetsListItem  =  ( {  ...reserve  } : ReserveWithId )  =>  { 
29+ export  const  MarketAssetsListItem  =  ( {  ...reserve  } : ReserveWithProtocolIncentives )  =>  { 
3130  const  router  =  useRouter ( ) ; 
3231  const  [ trackEvent ,  currentMarket ]  =  useRootStore ( 
3332    useShallow ( ( store )  =>  [ store . trackEvent ,  store . currentMarket ] ) 
@@ -55,9 +54,6 @@ export const MarketAssetsListItem = ({ ...reserve }: ReserveWithId) => {
5554      ? iconSymbol 
5655      : reserve . underlyingToken . symbol ; 
5756
58-   const  supplyProtocolIncentives  =  mapAaveProtocolIncentives ( reserve . incentives ,  'supply' ) ; 
59-   const  borrowProtocolIncentives  =  mapAaveProtocolIncentives ( reserve . incentives ,  'borrow' ) ; 
60- 
6157  return  ( 
6258    < ListItem 
6359      px = { 6 } 
@@ -112,7 +108,7 @@ export const MarketAssetsListItem = ({ ...reserve }: ReserveWithId) => {
112108      < ListColumn > 
113109        < IncentivesCard 
114110          value = { reserve . supplyInfo . apy . value } 
115-           incentives = { supplyProtocolIncentives } 
111+           incentives = { reserve . supplyProtocolIncentives } 
116112          address = { reserve . aToken . address } 
117113          symbol = { reserve . underlyingToken . symbol } 
118114          variant = "main16" 
@@ -151,7 +147,7 @@ export const MarketAssetsListItem = ({ ...reserve }: ReserveWithId) => {
151147              ? String ( reserve . borrowInfo ?. apy . value ) 
152148              : '-1' 
153149          } 
154-           incentives = { borrowProtocolIncentives } 
150+           incentives = { reserve . borrowProtocolIncentives } 
155151          address = { reserve . vToken . address } 
156152          symbol = { reserve . underlyingToken . symbol } 
157153          variant = "main16" 
0 commit comments