gitcoinco / gitcoinco/web

Donation amount on Gitcoin does not agree with the donation amount on Etherscan

Open
#7,500 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.8k
Forks
776
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

Gitcoin web interface is showing an incorrect donation amount. I donated 0.015 ETH but the web interface says I donated 9 ETH and the gitcoinbot lists me as a "Top Contributor by Amount" as a result (shown in first screenshot).

As far as I can tell, it shows the incorrect amount everywhere on the website including, but not limited to:
- Products -> Grants -> My Contributions
- Products -> Grants -> Bankless -> Transactions
- My Profile -> Activity
- My Profile -> Grants
- My Profile -> Spent

**To Reproduce**

This assumes that a wallet is already connected. I used MetaMask.

1. Go to Gitcoin -> Products -> Grants
2. Click on a grant
3. Click "Add to Cart" button
4. Enter some amount of ETH
5. Click "Checkout" button
6. Click "Standard Checkout" button
7. DO NOT confirm the transaction on MetaMask yet
8. On the checkout page, change the amount
9. Now confirm the transaction on MetaMask (this will still show the original amount)

Gitcoin now thinks you donated the amount that you last had on the checkout page instead of the amount that you confirmed on MetaMask (the original amount before changing it on Step 8).

**Expected behavior**
Gitcoin shows that you donated the amount that you confirmed on MetaMask.

**Screenshots**
![image](https://user-images.githubusercontent.com/8077500/93951373-bd436680-fd0b-11ea-94b2-8ca09f525478.png)
![image](https://user-images.githubusercontent.com/8077500/93952967-c7676400-fd0f-11ea-8857-e8ef27374e5d.png)
![image](https://user-images.githubusercontent.com/8077500/93953196-6a1fe280-fd10-11ea-9816-1d8490ce5327.png)

**Desktop**

- OS: Linux
- Browser: Chrome Stable
- Browser Version: 85.x.x.x

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.