Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Fix native investment #2123

Merged
merged 6 commits into from
Jan 17, 2022
Merged

Fix native investment #2123

merged 6 commits into from
Jan 17, 2022

Conversation

alfetopito
Copy link
Contributor

@alfetopito alfetopito commented Jan 12, 2022

Summary

Fixing bug with Native investment

Example of a successful claim using ETH https://rinkeby.etherscan.io/tx/0x63b9138efd234380362babc8bb2e6566750a2e9ea83ce10fe9b4862c6ad31f0f

The issue was that parseUnits adds X zeroes to the value passed in, but what I wanted is to remove them.
Switched back to JSBI.divide by 10**18 and now it gives us the proper amount :)

Test

  1. On rinkeby, connect your account and go to the claim page
  2. Pick one account from the list below and check for the balance
  3. If it has not been claimed yet, you should be able to claim it now :)
  4. Trigger the claim - make sure you have the required amount of ETH + gas costs
  • Your ETH claim should go through without issues

Notes this change might break the investor flow. I can revert that, it's on only to make sure the claiming is working

Accounts

I filtered this list based on accounts that ONLY have ETH claims to make sure you don't need anything else (GNO/USDC)

  • 0xb5434A86d09144da8854D1c40e3Cc54d78738695
  • 0x9B827cc7Af79d71A2ca0f75343754935BfaF92D3
  • 0x5d42D4Cd8B9D6141B1084E8eAD92e8F76b08705E
  • 0x3320b6c454d0361dd3dF4912e8a06F3C945b8C60
  • 0xCe0E37Bf2fC4B5c14D881f36712efB5Dcee203E8
  • 0x030905cc078F3c71434fea1175615Bcc2c91FEf8
  • 0xb0fE1FcEC3fE9f16c984b7A5668DF89bc7592B9D
  • 0x6aBBaD8bd6Aced3649d52DFd32d2Ee04f3BE4aFB
  • 0xF925FDd0de74d75Dd9C71095865c1511863092a9
  • 0x26bC2B4D5DA4dc437F581AEFf490E2DdDa0aCFAa
  • 0xA78266E26a6087566b17C64dE1Ed1D9533E1B36b
  • 0x3877f08a4b722F48345B0e771c579fF335B533DA
  • 0x1F1430C14595442c683cF3d3033a726ADecd6179
  • 0xD5a0a16AA1ed668c45b29E905bafcb76C21a90BA
  • 0xE6EA6d415e7Cb32bee6Db8Ad03e3749FEF23c9cd
  • 0x3011862E85dDf0851f651E7d04e61e97E20a65CF
  • 0x7f43A4C9E787Ba6A270e67b0D1bE77263cc47a08
  • 0xCD2802122F04265791A3E4568A3f24BD1Df821a2
  • 0x050f5403EB197DdE4BFE07da6e4aDE19A22db00B
  • 0xe05206Ba64e59bF94c3dc3E1775Ec3FE04c33D08
  • 0xC8249FB3b37fF0788462F1d20263ae373fbe68BB
  • 0x01A72692ffE0A80029DE7982227A186F2787046f
  • 0xDb3a676b8Eb7dBBC43b68C7Fb149f565343e850C

anxolin pushed a commit that referenced this pull request Jan 12, 2022
…2123)

* logic for tracking time since last block

* add polling times to chain info

* pr feedback

* add gui for chain connectivity warning

* add arb support

* update title of warning to indicate internet connectivity issues may be the problem

* pr review

* clean up useBlockWarningTimer

* softer language on mainnet

* only show warning if user has the window visible
@alfetopito alfetopito force-pushed the fix-claim-native-investment branch 2 times, most recently from 3889626 to 02b216c Compare January 13, 2022 17:49
@github-actions
Copy link
Contributor

  • 🔭 GP Swap: Gnosis Protocol v2 Swap UI

@alfetopito alfetopito changed the title WIP Fix native investment Jan 13, 2022
@alfetopito alfetopito self-assigned this Jan 13, 2022
@alfetopito alfetopito requested a review from a team January 13, 2022 18:00
@alfetopito alfetopito marked this pull request as ready for review January 13, 2022 18:00
Copy link
Contributor

@anxolin anxolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

Copy link
Contributor

@anxolin anxolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@alfetopito alfetopito force-pushed the fix-claim-native-investment branch from 02b216c to 5f9a3d1 Compare January 17, 2022 19:33
@alfetopito alfetopito added the Auto-merge PRs with this tag will be automatically merged when approved and CI succeeds label Jan 17, 2022
@mergify mergify bot merged commit 0b6b4b7 into claim Jan 17, 2022
@alfetopito alfetopito deleted the fix-claim-native-investment branch January 18, 2022 01:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Auto-merge PRs with this tag will be automatically merged when approved and CI succeeds
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants