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

The Total amount is displaying the wrong amount #47

Closed
GriffGreen opened this issue Mar 12, 2018 · 7 comments
Closed

The Total amount is displaying the wrong amount #47

GriffGreen opened this issue Mar 12, 2018 · 7 comments

Comments

@GriffGreen
Copy link
Contributor

the total amount raised in the wallet doesnt match the amount listed on the front page:

screen shot 2018-03-12 at 10 57 43 am

it says 14.6 but etherscan says 14.28... https://etherscan.io/address/0x9cb8921aa376219950ba134c15d8f5ee2769c599
@wildmolasses
Copy link
Collaborator

wildmolasses commented Mar 13, 2018

I've got a fix for this that I can file a PR for. However, my fix calculates the total at 14.09, which is also the answer I get when I sum the external transaction values in R. Yet, there are 2 "internal transactions" on etherscan that seem to be impacting the etherscan total (@ 14.29).

So, I'll make a PR for the 14.09, and would be happy to discuss the internal tx stuff with you guys.

@geleeroyale
Copy link
Owner

Ok - I understand now ... interesting problem. maybe @sponnet has a clue whats going on here? In any case I merged your intermediate PR, since displaying less is in any case better than displaying more :-D

@GriffGreen
Copy link
Contributor Author

I think we need to be listening for events... or at least thats what i hear people usu do... thats probably when you are directly using the chain, not just using etherscan's API...

@GriffGreen
Copy link
Contributor Author

5 Gov points for the Fix though @emazurek :-D

@sponnet
Copy link
Collaborator

sponnet commented Mar 16, 2018 via email

@geleeroyale
Copy link
Owner

geleeroyale commented Mar 16, 2018

I actually wanted (not anymore) to go the query balance via etherscan route instead of adding up values ourselves. Infura sounds interesting, but as long as we cannot handle everything via a node based backend, I would just use etherscan as well for this query.

A fundamental and not talked about problem is how to handle if funds are taken out of the monitored address, they would of course remain on the leaderboard, but the balance will be incorrect. It is good to inform donors somehow that funds haven been taken out.

griff means to listen for donate events, because we changed the event submitted from transactions in the multisig to donate - would this work? - see https://github.com/Giveth/ScalingNowMultiSigWallet for the multisig code (we actually deployed 1.1, not 1.2)

@geleeroyale
Copy link
Owner

geleeroyale commented Mar 22, 2018

Taking this to https://github.com/Giveth/donation-leaderboard/

Thanks again everybody for building this here. See you over at the Giveth Repo!

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

No branches or pull requests

4 participants