mirror of
https://github.com/oceanprotocol/ocean-subgraph.git
synced 2024-12-02 05:57:29 +01:00
fix (#454)
This commit is contained in:
parent
569eb98d8f
commit
401df35f6a
@ -32,7 +32,8 @@ export function updateFixedRateExchangeSupply(
|
|||||||
const fixedRateExchange = getFixedRateExchange(fixedRateID)
|
const fixedRateExchange = getFixedRateExchange(fixedRateID)
|
||||||
const contract = FixedRateExchangeContract.bind(contractAddress)
|
const contract = FixedRateExchangeContract.bind(contractAddress)
|
||||||
const fixedRateDetails = contract.try_getExchange(exchangeId)
|
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 baseToken = getToken(fixedRateDetails.value.value3, false)
|
||||||
const datatoken = getToken(fixedRateDetails.value.value1, true)
|
const datatoken = getToken(fixedRateDetails.value.value1, true)
|
||||||
fixedRateExchange.datatokenBalance = weiToDecimal(
|
fixedRateExchange.datatokenBalance = weiToDecimal(
|
||||||
|
Loading…
Reference in New Issue
Block a user