diff --git a/src/mappings/utils/fixedRateUtils.ts b/src/mappings/utils/fixedRateUtils.ts index 66a7645..b4160a7 100644 --- a/src/mappings/utils/fixedRateUtils.ts +++ b/src/mappings/utils/fixedRateUtils.ts @@ -32,7 +32,8 @@ export function updateFixedRateExchangeSupply( const fixedRateExchange = getFixedRateExchange(fixedRateID) const contract = FixedRateExchangeContract.bind(contractAddress) const fixedRateDetails = contract.try_getExchange(exchangeId) - if (fixedRateDetails == null) return + + if (fixedRateDetails == null || fixedRateDetails.reverted === true) return const baseToken = getToken(fixedRateDetails.value.value3, false) const datatoken = getToken(fixedRateDetails.value.value1, true) fixedRateExchange.datatokenBalance = weiToDecimal(