From 5ce3b15a89cfedfb8dfb08fec9c2e3f08fe02ab2 Mon Sep 17 00:00:00 2001 From: Slava Date: Tue, 3 Dec 2024 13:33:55 +0300 Subject: [PATCH] fix: typescript checks --- .../[lang]/(bridge)/stake/hooks/useGetStakingStrategies.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/evm/src/app/[lang]/(bridge)/stake/hooks/useGetStakingStrategies.ts b/apps/evm/src/app/[lang]/(bridge)/stake/hooks/useGetStakingStrategies.ts index 593a70ef..2a94d0bc 100644 --- a/apps/evm/src/app/[lang]/(bridge)/stake/hooks/useGetStakingStrategies.ts +++ b/apps/evm/src/app/[lang]/(bridge)/stake/hooks/useGetStakingStrategies.ts @@ -215,8 +215,8 @@ const useGetStakingStrategies = () => { ) { // `(totalCash + totalBorrows - totalReserves)` is multiplied by 1e18 to perform uint division // exchangeRate = (totalCash + totalBorrows - totalReserves) / totalSupply - const [exchangeRateStored, totalSupply] = seTokenContractDataCalls[symbol]; - const underlyingDecimals = seTokenUnderlyingContractDataCalls[symbol]; + const [exchangeRateStored, totalSupply] = seTokenContractDataCalls[symbol]!; + const underlyingDecimals = seTokenUnderlyingContractDataCalls[symbol]!; const totalSupplyInUnderlyingAsset = exchangeRateStored * totalSupply; const underlyingTicker = seTokensToUnderlyingMapping[symbol]; @@ -233,7 +233,7 @@ const useGetStakingStrategies = () => { } if (hasCGId(symbol) && tokensContractDataCalls?.[symbol]) { - const [totalSupply, decimals] = tokensContractDataCalls[symbol]; + const [totalSupply, decimals] = tokensContractDataCalls[symbol]!; const ticker = tokenToIdMapping[symbol]; const price = getPrice(ticker!);