fix logic

This commit is contained in:
alexcos20 2022-02-17 22:55:02 -08:00
parent dfb59ae6fd
commit 59eff980f3
1 changed files with 3 additions and 1 deletions

View File

@ -89,8 +89,10 @@ export function handlePublishMarketFeeChanged(
if (
token.publishMarketFeeToken !=
'0x0000000000000000000000000000000000000000'
)
){
const token = getToken(event.params.PublishMarketFeeToken.toHexString())
decimals = BigInt.fromI32(token.decimals).toI32()
}
token.publishMarketFeeAmmount = weiToDecimal(
event.params.PublishMarketFeeAmount.toBigDecimal(),
decimals