graphprotocol / mission-control-indexer

Technical indexer documentation and infrastructure templates for the Mission Control testnet
21 stars 4 forks source link

Explorer UI and Agent logs: Available GRT mismatch #257

Open davaymne opened 3 years ago

davaymne commented 3 years ago

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 commented 3 years ago

@nenadjaja how is that one calculated?

grassets commented 3 years ago

Just got simular error: image

image

sharppanda commented 3 years ago

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