mirror of
https://github.com/oceanprotocol/ocean-subgraph.git
synced 2024-12-02 05:57:29 +01:00
Checking if publishMarketFeeAddress exists
This commit is contained in:
parent
a34d6875c7
commit
32cfbcfe6d
@ -259,11 +259,14 @@ export function handlePublishMarketFeeChanged(
|
|||||||
const fixedRateExchange = getFixedRateExchange(fixedRateId)
|
const fixedRateExchange = getFixedRateExchange(fixedRateId)
|
||||||
|
|
||||||
if (fixedRateExchange) {
|
if (fixedRateExchange) {
|
||||||
const feeToken = getToken(
|
let feeDecimals = BigInt.fromI32(18).toI32()
|
||||||
Address.fromString(fixedRateExchange!.publishMarketFeeAddress!),
|
if (fixedRateExchange.publishMarketFeeAddress) {
|
||||||
false
|
const feeToken = getToken(
|
||||||
)
|
Address.fromString(fixedRateExchange!.publishMarketFeeAddress!),
|
||||||
const feeDecimals = BigInt.fromI32(feeToken.decimals).toI32()
|
false
|
||||||
|
)
|
||||||
|
feeDecimals = BigInt.fromI32(feeToken.decimals).toI32()
|
||||||
|
}
|
||||||
|
|
||||||
fixedRateExchange.publishMarketFeeAddress =
|
fixedRateExchange.publishMarketFeeAddress =
|
||||||
event.params.newMarketCollector.toHexString()
|
event.params.newMarketCollector.toHexString()
|
||||||
|
Loading…
Reference in New Issue
Block a user