This commit is contained in:
mihaisc 2022-06-10 03:47:04 -07:00 committed by GitHub
parent 569eb98d8f
commit 401df35f6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(