Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Explorer UI and Agent logs: Available GRT mismatch #257

Open
davaymne opened this issue Dec 14, 2020 · 3 comments
Open

Explorer UI and Agent logs: Available GRT mismatch #257

davaymne opened this issue Dec 14, 2020 · 3 comments
Assignees
Labels

Comments

@davaymne
Copy link

Explorer UI displays: 366 400.88 GRT Available:
Screenshot 2020-12-14 at 19 44 28

But, when I tried to deploy graph indexer rules set QmWTrJJ9W8h3JE19FhCzzPYsJ2tgXZCdUqnbyuo64ToTBN allocationAmount 366000 decisionBasis always, I got Error message:
Unable to allocate 366000.0 GRT: indexer only has a free stake amount of 365270.495901332636342908 GRT

{\"level\":50,\"time\":1607974969972,\"pid\":1,\"hostname\":\"07beae4408c4\",\"name\":\"IndexerAgent\",\"component\":\"Network\",\"indexer\":\"0x14c7dB0Bf796060DA7212C0F851Ce62A47805502\",\"operator\":\"0x14c7dB0Bf796060DA7212C0F851Ce62A47805502\",\"deployment\":{\"bytes32\":\"0x78b5aa53c182c1d81cde580f43ace5434ace0e168ecd4ec248386119dbfb75f1\",\"ipfsHash\":\"QmWTrJJ9W8h3JE19FhCzzPYsJ2tgXZCdUqnbyuo64ToTBN\"},\"amount\":\"366000.0\",\"err\":{\"type\":\"IndexerError\",\"message\":\"Failed to allocate: insufficient free stake\",\"stack\":\"IndexerError: Failed to allocate: insufficient free stake\\n at Object.indexerError (/opt/indexer/packages/indexer-common/dist/errors.js:97:12)\\n at Network.<anonymous> (/opt/indexer/packages/indexer-agent/dist/network.js:479:44)\\n at Generator.next (<anonymous>)\\n at fulfilled (/opt/indexer/packages/indexer-agent/dist/network.js:24:58)\\n at runMicrotasks (<anonymous>)\\n at processTicksAndRejections (internal/process/task_queues.js:97:5)\",\"code\":\"IE013\",\"explanation\":\"https://github.com/graphprotocol/indexer/blob/master/docs/errors.md#ie013\",\"cause\":{\"type\":\"Error\",\"message\":\"Unable to allocate 366000.0 GRT: indexer only has a free stake amount of 365270.495901332636342908 GRT\",\"stack\":\"Error: Unable to allocate 366000.0 GRT: indexer only has a free stake amount of 365270.495901332636342908 GRT\\n at Network.<anonymous> (/opt/indexer/packages/indexer-agent/dist/network.js:479:98)\\n at Generator.next (<anonymous>)\\n at fulfilled (/opt/indexer/packages/indexer-agent/dist/network.js:24:58)\\n at runMicrotasks (<anonymous>)\\n at processTicksAndRejections (internal/process/task_queues.js:97:5)\"}},\"msg\":\"Failed to allocate\"}"}

@trader-payne
Copy link

@nenadjaja how is that one calculated?

@grassets
Copy link

Just got simular error:
image

image

@sharppanda
Copy link

Even the GraphQL https://gateway-testnet.thegraph.com/network returns different value, then explorer and contract.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants