mirror of
https://github.com/oceanprotocol/ocean-subgraph.git
synced 2024-12-02 05:57:29 +01:00
fix logic
This commit is contained in:
parent
dfb59ae6fd
commit
59eff980f3
@ -89,8 +89,10 @@ export function handlePublishMarketFeeChanged(
|
|||||||
if (
|
if (
|
||||||
token.publishMarketFeeToken !=
|
token.publishMarketFeeToken !=
|
||||||
'0x0000000000000000000000000000000000000000'
|
'0x0000000000000000000000000000000000000000'
|
||||||
)
|
){
|
||||||
|
const token = getToken(event.params.PublishMarketFeeToken.toHexString())
|
||||||
decimals = BigInt.fromI32(token.decimals).toI32()
|
decimals = BigInt.fromI32(token.decimals).toI32()
|
||||||
|
}
|
||||||
token.publishMarketFeeAmmount = weiToDecimal(
|
token.publishMarketFeeAmmount = weiToDecimal(
|
||||||
event.params.PublishMarketFeeAmount.toBigDecimal(),
|
event.params.PublishMarketFeeAmount.toBigDecimal(),
|
||||||
decimals
|
decimals
|
||||||
|
Loading…
Reference in New Issue
Block a user