graphprotocol / indexer

Graph Protocol indexer components and infrastructure
MIT License
240 stars 130 forks source link

Max gas needs to be tuned better for indexer agent #773

Open alex-pakalniskis opened 1 year ago

alex-pakalniskis commented 1 year ago

User feedback

"Max gas needs to be tuned better for indexer agent. I just closed 40 some allocations for $1.63, or ~0.001 ETH. I go to open around the same with ~0.055 ETH, but agent wants 0.069 ETH to batch them all together. $90 in ETH on Arbitrum should be more than enough to open 40 some allocations." -Vincent | DataNexus

Discord post link

alex-pakalniskis commented 11 months ago

We need to fix the cost estimation for agent transactions on Arbitrum asap. I have $700 in my operator wallet trying to open an allocation for 130 subgraphs and it says But it worked to close the allos with $25 in my account. So there's something odd happening only when trying to open the allos

https://graphprotocol.slack.com/archives/CL43LRZC6/p1701436244190179

alex-pakalniskis commented 11 months ago

We were just discussing in #contracts about this issue that occasionally pops up in indexer agent. Seems the fix would be to set a lower maxPriorityFeePerGas when doing transactions on Arbitrum, could someone from the team look into fixing it? https://graphprotocol.slack.com/archives/C01UZJWA2EL/p1701446628958359