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

Claim hooks 3 #2056

Merged
merged 16 commits into from
Jan 6, 2022
Merged

Claim hooks 3 #2056

merged 16 commits into from
Jan 6, 2022

Conversation

alfetopito
Copy link
Contributor

@alfetopito alfetopito commented Jan 6, 2022

Summary

Several things in this PR

  1. New contract methods
  2. New hooks using those methods
  3. Checking whether investment is open for investment/airdrop and showing it on the claim page

Screen Shot 2022-01-05 at 18 15 27

  1. Added prices
  2. Calculating ETH when investment type is UserOption -- can't test it as investment window is closed on the contract

To Test

  1. On claim page, check for an address that has airdrop only
  • Should see no warning
  1. Then check for account that has at least 1 investment option
  • Should see warning as investment window is closed

    Background

Optional: Give background information for changes you've made, that might be difficult to explain via comments

@alfetopito alfetopito self-assigned this Jan 6, 2022
@alfetopito alfetopito requested a review from a team January 6, 2022 02:26
@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2022

  • 🔭 GP Swap: Gnosis Protocol v2 Swap UI

Copy link
Contributor

@W3stside W3stside left a comment

Choose a reason for hiding this comment

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

Approved, with comments:

src/custom/state/claim/hooks/index.ts Outdated Show resolved Hide resolved
src/custom/state/claim/hooks/index.ts Show resolved Hide resolved
src/custom/state/claim/hooks/index.ts Outdated Show resolved Hide resolved
@alfetopito
Copy link
Contributor Author

Merging, will address further comments in follow up PRs

@alfetopito alfetopito merged commit efcb9ad into claim Jan 6, 2022
@alfetopito alfetopito deleted the claim-hooks-3 branch January 6, 2022 23:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants