@@ -81,10 +81,10 @@ const AddressLink = ({ action, isMobile, currentChainId }) => {
8181 ) ;
8282} ;
8383
84- const Fee = ( { fee, highFee, isMobile, tokenSymbol } ) => (
84+ const Fee = ( { fee, highFee, isMobile, tokenSymbol, tokenDecimals } ) => (
8585 < >
8686 { ! fee . isZero ( ) && (
87- < FeeText > (fee { formatNumber ( fee ) } { tokenSymbol } )</ FeeText >
87+ < FeeText > (fee { formatNumber ( fee , tokenDecimals ) } { tokenSymbol } )</ FeeText >
8888 ) }
8989 { highFee && (
9090 < Tooltip
@@ -114,9 +114,12 @@ export default ({ item, zkAccount, currentPool }) => {
114114 const isMobile = width <= 500 ;
115115 const currentChainId = currentPool . chainId ;
116116 const tokenSymbol = useMemo ( ( ) => {
117+ if ( item . timestamp <= currentPool . migration ?. timestamp ) {
118+ return currentPool . migration ?. prevTokenSymbol ;
119+ }
117120 const isWrapped = currentPool . isNative && item . type === HistoryTransactionType . Deposit ;
118121 return ( isWrapped ? 'W' : '' ) + currentPool . tokenSymbol ;
119- } , [ currentPool , item . type ] ) ;
122+ } , [ currentPool , item . type , item . timestamp ] ) ;
120123
121124 const onCopy = useCallback ( ( text , result ) => {
122125 if ( result ) {
@@ -145,8 +148,8 @@ export default ({ item, zkAccount, currentPool }) => {
145148 { ( ( ) => {
146149 const total = item . actions . reduce ( ( acc , curr ) => acc . add ( curr . amount ) , ethers . constants . Zero ) ;
147150 return (
148- < Tooltip content = { formatNumber ( total , 18 ) } placement = "top" >
149- < span > { formatNumber ( total , 4 ) } </ span >
151+ < Tooltip content = { formatNumber ( total , currentPool . tokenDecimals , 18 ) } placement = "top" >
152+ < span > { formatNumber ( total , currentPool . tokenDecimals , 4 ) } </ span >
150153 </ Tooltip >
151154 ) ;
152155 } ) ( ) }
@@ -155,7 +158,12 @@ export default ({ item, zkAccount, currentPool }) => {
155158 </ Row >
156159 { item . fee && (
157160 < FeeDesktop >
158- < Fee fee = { item . fee } highFee = { item . highFee } tokenSymbol = { tokenSymbol } />
161+ < Fee
162+ fee = { item . fee }
163+ highFee = { item . highFee }
164+ tokenSymbol = { tokenSymbol }
165+ tokenDecimals = { currentPool . tokenDecimals }
166+ />
159167 </ FeeDesktop >
160168 ) }
161169 </ Row >
@@ -174,7 +182,13 @@ export default ({ item, zkAccount, currentPool }) => {
174182 </ RowSpaceBetween >
175183 { item . fee && (
176184 < FeeMobile >
177- < Fee fee = { item . fee } highFee = { item . highFee } tokenSymbol = { tokenSymbol } isMobile />
185+ < Fee
186+ fee = { item . fee }
187+ highFee = { item . highFee }
188+ tokenSymbol = { tokenSymbol }
189+ tokenDecimals = { currentPool . tokenDecimals }
190+ isMobile
191+ />
178192 </ FeeMobile >
179193 ) }
180194 < RowSpaceBetween >
0 commit comments