File tree Expand file tree Collapse file tree 4 files changed +37
-13
lines changed
apps/kyberswap-interface/src/pages/Earns Expand file tree Collapse file tree 4 files changed +37
-13
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,10 @@ const DesktopTableRow = ({
121121 </ Flex >
122122 ) }
123123 < Flex justifyContent = "flex-end" >
124- { formatDisplayNumber ( pool . earnFee , { style : 'currency' , significantDigits : 6 } ) }
124+ { formatDisplayNumber ( isFarmingFiltered ? pool . egUsd : pool . earnFee , {
125+ style : 'currency' ,
126+ significantDigits : 6 ,
127+ } ) }
125128 </ Flex >
126129 < Flex justifyContent = "flex-end" >
127130 { formatDisplayNumber ( pool . tvl , { style : 'currency' , significantDigits : 6 } ) }
Original file line number Diff line number Diff line change @@ -110,8 +110,13 @@ const MobileTableRow = ({
110110 </ Flex >
111111 ) }
112112 < Flex justifyContent = "space-between" sx = { { gap : 1 } } >
113- < Text color = { theme . subText } > { t `Earn Fees` } </ Text >
114- < Text > { formatDisplayNumber ( pool . earnFee , { style : 'currency' , significantDigits : 6 } ) } </ Text >
113+ < Text color = { theme . subText } > { isFarmingFiltered ? t `EG Sharing` : t `Earn Fees` } </ Text >
114+ < Text >
115+ { formatDisplayNumber ( isFarmingFiltered ? pool . egUsd : pool . earnFee , {
116+ style : 'currency' ,
117+ significantDigits : 6 ,
118+ } ) }
119+ </ Text >
115120 </ Flex >
116121 < Flex justifyContent = "space-between" sx = { { gap : 1 } } >
117122 < Text color = { theme . subText } > { t `TVL` } </ Text >
Original file line number Diff line number Diff line change 1- import { t } from '@lingui/macro'
1+ import { Trans , t } from '@lingui/macro'
22import { useMedia } from 'react-use'
33import { Flex , Text } from 'rebass'
44import { PoolQueryParams } from 'services/zapEarn'
@@ -41,15 +41,30 @@ const TableHeader = ({
4141 />
4242 </ Flex >
4343 ) }
44- < Flex
45- justifyContent = "flex-end"
46- sx = { { gap : '4px' , alignItems : 'center' , cursor : 'pointer' } }
47- role = "button"
48- onClick = { ( ) => onSortChange ( SortBy . EARN_FEE ) }
49- >
50- { t `Earn Fees` }
51- < SortIcon sorted = { filters . sortBy === SortBy . EARN_FEE ? ( filters . orderBy as Direction ) : undefined } />
52- </ Flex >
44+ { isFarmingFiltered ? (
45+ < Flex justifyContent = "flex-end" sx = { { gap : '4px' , alignItems : 'center' } } role = "button" >
46+ { t `EG Sharing` }
47+ < InfoHelper
48+ width = "250px"
49+ text = {
50+ < Trans >
51+ The estimated amount of < b > Equilibrium Gain</ b > rewards that would be shared with liquidity providers
52+ during the selected time range
53+ </ Trans >
54+ }
55+ />
56+ </ Flex >
57+ ) : (
58+ < Flex
59+ justifyContent = "flex-end"
60+ sx = { { gap : '4px' , alignItems : 'center' , cursor : 'pointer' } }
61+ role = "button"
62+ onClick = { ( ) => onSortChange ( SortBy . EARN_FEE ) }
63+ >
64+ { t `Earn Fees` }
65+ < SortIcon sorted = { filters . sortBy === SortBy . EARN_FEE ? ( filters . orderBy as Direction ) : undefined } />
66+ </ Flex >
67+ ) }
5368 < Flex
5469 justifyContent = "flex-end"
5570 sx = { { gap : '4px' , alignItems : 'center' , cursor : 'pointer' } }
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ export interface EarnPool {
6161 kemEGApr : string
6262 kemLMApr : string
6363 }
64+ egUsd ?: number
6465}
6566
6667export interface ParsedEarnPool extends EarnPool {
You can’t perform that action at this time.
0 commit comments