ReserveFactorTooltip.tsx
1 import { Trans } from '@lingui/macro'; 2 3 import { Link } from '../primitives/Link'; 4 import { TextWithTooltip, TextWithTooltipProps } from '../TextWithTooltip'; 5 6 interface ReserveFactorTooltipProps extends TextWithTooltipProps { 7 collectorLink?: string; 8 } 9 10 export const ReserveFactorTooltip = ({ collectorLink, ...rest }: ReserveFactorTooltipProps) => { 11 return ( 12 <TextWithTooltip {...rest}> 13 <Trans> 14 Reserve factor is a percentage of interest which goes to a{' '} 15 {collectorLink ? ( 16 <Link href={collectorLink}>collector contract</Link> 17 ) : ( 18 'collector contract' 19 )}{' '} 20 that is controlled by Aave governance to promote ecosystem growth.{' '} 21 </Trans> 22 </TextWithTooltip> 23 ); 24 };