mirror of
https://github.com/oceanprotocol/ocean-subgraph.git
synced 2024-12-02 05:57:29 +01:00
Updating to use decimals from publishMarketFeeToken
This commit is contained in:
parent
32cfbcfe6d
commit
71be6ce9ff
@ -259,10 +259,14 @@ export function handlePublishMarketFeeChanged(
|
||||
const fixedRateExchange = getFixedRateExchange(fixedRateId)
|
||||
|
||||
if (fixedRateExchange) {
|
||||
const dataToken = getToken(
|
||||
Address.fromString(fixedRateExchange.datatoken),
|
||||
true
|
||||
)
|
||||
let feeDecimals = BigInt.fromI32(18).toI32()
|
||||
if (fixedRateExchange.publishMarketFeeAddress) {
|
||||
if (dataToken) {
|
||||
const feeToken = getToken(
|
||||
Address.fromString(fixedRateExchange!.publishMarketFeeAddress!),
|
||||
Address.fromString(dataToken.publishMarketFeeToken!),
|
||||
false
|
||||
)
|
||||
feeDecimals = BigInt.fromI32(feeToken.decimals).toI32()
|
||||
|
Loading…
Reference in New Issue
Block a user