From 401df35f6aa40455d19188a28fa576d9bcef3a8d Mon Sep 17 00:00:00 2001 From: mihaisc Date: Fri, 10 Jun 2022 03:47:04 -0700 Subject: [PATCH] fix (#454) --- src/mappings/utils/fixedRateUtils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(