@@ -42,7 +42,7 @@ import { usePageTitle, usePaperTitle } from "../../../providers/TitleProviders";
42
42
import { getBurnChainMap } from "../../../services/rentx" ;
43
43
import { getChainConfigByRentxName } from "../../../utils/assetConfigs" ;
44
44
import { $exchangeRates } from "../../marketData/marketDataSlice" ;
45
- import { findExchangeRate } from "../../marketData/marketDataUtils" ;
45
+ import { findAssetExchangeRate } from "../../marketData/marketDataUtils" ;
46
46
import {
47
47
BrowserNotificationButton ,
48
48
BrowserNotificationsDrawer ,
@@ -116,11 +116,8 @@ export const ReleaseProcessStep: FunctionComponent<RouteComponentProps> = ({
116
116
} , [ history ] ) ;
117
117
const sourceChain = parsedTx ?. sourceChain ;
118
118
119
- const {
120
- menuOpened,
121
- handleMenuOpen,
122
- handleMenuClose,
123
- } = useTransactionMenuControl ( ) ;
119
+ const { menuOpened, handleMenuOpen, handleMenuClose } =
120
+ useTransactionMenuControl ( ) ;
124
121
125
122
const {
126
123
modalOpened,
@@ -155,13 +152,10 @@ export const ReleaseProcessStep: FunctionComponent<RouteComponentProps> = ({
155
152
return await getBurnChainMap ( providers ) ;
156
153
} , [ enabledChains ] ) ;
157
154
158
- const {
159
- burnCurrencyConfig,
160
- burnChainConfig,
161
- releaseCurrencyConfig,
162
- } = getBurnAndReleaseParams ( tx ) ;
155
+ const { burnCurrencyConfig, burnChainConfig, releaseCurrencyConfig } =
156
+ getBurnAndReleaseParams ( tx ) ;
163
157
const amount = Number ( tx . targetAmount ) ;
164
- const releaseCurrencyUsdRate = findExchangeRate (
158
+ const releaseCurrencyUsdRate = findAssetExchangeRate (
165
159
rates ,
166
160
releaseCurrencyConfig . symbol
167
161
) ;
@@ -270,10 +264,9 @@ type ReleaseTransactionStatusProps = {
270
264
burnChainMap : any ;
271
265
} ;
272
266
273
- const ReleaseTransactionStatus : FunctionComponent < ReleaseTransactionStatusProps > = ( {
274
- tx,
275
- burnChainMap,
276
- } ) => {
267
+ const ReleaseTransactionStatus : FunctionComponent <
268
+ ReleaseTransactionStatusProps
269
+ > = ( { tx, burnChainMap } ) => {
277
270
const { t } = useTranslation ( ) ;
278
271
const history = useHistory ( ) ;
279
272
const location = useLocation ( ) ;
0 commit comments