diff --git a/subgraphs/exchange/mappings/utils/index.ts b/subgraphs/exchange/mappings/utils/index.ts index 69a2f7d2..45d12b53 100644 --- a/subgraphs/exchange/mappings/utils/index.ts +++ b/subgraphs/exchange/mappings/utils/index.ts @@ -74,6 +74,9 @@ export function fetchTokenName(tokenAddress: Address): string { } export function fetchTokenDecimals(tokenAddress: Address): BigInt { + if (tokenAddress.toHexString() == "0x5285d9d9f784bce2aa7b82cf318d632d423c1047") { + return BigInt.fromI32(0); + } let contract = ERC20.bind(tokenAddress); let decimalValue = null; let decimalResult = contract.try_decimals(); diff --git a/subgraphs/exchange/package.json b/subgraphs/exchange/package.json index e71135f4..02d3cad9 100644 --- a/subgraphs/exchange/package.json +++ b/subgraphs/exchange/package.json @@ -8,6 +8,6 @@ "scripts": { "codegen": "graph codegen subgraph.yaml", "build": "graph build subgraph.yaml", - "deploy": "graph deploy --product hosted-service --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ pancakeswap/exchange subgraph.yaml" + "deploy": "graph deploy --product hosted-service --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ chef-jojo/exchange subgraph.yaml" } } diff --git a/subgraphs/exchange/subgraph.yaml b/subgraphs/exchange/subgraph.yaml index 463cfabf..1a7f0cef 100644 --- a/subgraphs/exchange/subgraph.yaml +++ b/subgraphs/exchange/subgraph.yaml @@ -3,6 +3,9 @@ description: PancakeSwap is a decentralized protocol for automated token exchang repository: https://github.com/pancakeswap schema: file: ./schema.graphql +graft: + base: QmfGuiGdHVCbSf8TsVBcjTSn93udHVuwy1EFGyLKEfJ6ty + block: 35800481 dataSources: - kind: ethereum/contract name: Factory