Giveth / giveth-dapps-v2

This project is the aggregation of GIVeconomy and Giveth.io DApps in a single repo
https://staging.giveth.io
GNU General Public License v3.0
62 stars 33 forks source link

Problem in harvest flow #4527

Open maryjaf opened 3 months ago

maryjaf commented 3 months ago

https://github.com/user-attachments/assets/73cec7e7-8ecd-459f-ad58-8f90d8194ecf

Originally posted by @maryjaf in https://github.com/Giveth/giveth-dapps-v2/issues/4375#issuecomment-2260638420

cc: @divine-comedian @MohammadPCh

divine-comedian commented 3 months ago

Thanks @maryjaf - I it took me a moment to realize this was related to the reduction of subgraph requests we might be making to fetch a user's balance.

Ideally we should not delay more than 3 seconds to fetch a user's balance after they successfully harvest their GIVfarm or GIVbacks rewards.

Let's investigate if this is related to a reduction in the subgraph requests or a general web3 infra issue.

I tested this on prod and can see this is currently only related to STAGING

MohammadPCh commented 1 month ago

@divine-comedian We need to charge the token distro to test this (I cannot harvest on staging now). Would it be possible for you to add some test tokens to it?

divine-comedian commented 1 month ago

@divine-comedian We need to charge the token distro to test this (I cannot harvest on staging now). Would it be possible for you to add some test tokens to it?

What tokens does it need and on what chain?

divine-comedian commented 1 month ago

@MohammadPCh it appears that the tokenDistro is very full!

https://sepolia-optimism.etherscan.io/address/0x301c739cf6bfb6b47a74878bdeb13f92f13ae5e7

you can see is has almost 1 billion test GIV tokens in it

it could be that the optimism sepolia farm has ended and another distribution needs to be setup for it @aminlatifi might be able to set that up

aminlatifi commented 1 month ago

I setup farm for another round of rewarding

divine-comedian commented 1 month ago

@MohammadPCh should be good to go now for testing and dev image

maryjaf commented 6 days ago

This problem has been fixed on staging