Skip to content

Commit

Permalink
fix: typescript checks
Browse files Browse the repository at this point in the history
  • Loading branch information
slavastartsev committed Dec 3, 2024
1 parent 723fad6 commit 5ce3b15
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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!);

Expand Down

0 comments on commit 5ce3b15

Please sign in to comment.