Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix v2 #259

Draft
wants to merge 1 commit into
base: v3
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions subgraphs/exchange/mappings/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion subgraphs/exchange/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
3 changes: 3 additions & 0 deletions subgraphs/exchange/subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading