Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
rozzaswap authored May 1, 2024
2 parents ecded33 + 9fdc3a3 commit f994e35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/antelope/chains/EVMChainSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ export default abstract class EVMChainSettings implements ChainSettings {
const tokenBalance = new TokenBalance(token, balance);
tokens.push(tokenBalance);
const priceIsCurrent =
!!contractData.calldata.marketdata_updated &&
dateIsWithinXMinutes(+contractData.calldata.marketdata_updated, PRICE_UPDATE_INTERVAL_IN_MIN);
!!contractData.calldata?.marketdata_updated &&
dateIsWithinXMinutes(+contractData.calldata?.marketdata_updated, PRICE_UPDATE_INTERVAL_IN_MIN);

// If we have market data we use it, as long as the price was updated within the last 10 minutes
if (typeof contractData.calldata === 'object' && priceIsCurrent) {
Expand Down

0 comments on commit f994e35

Please sign in to comment.