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

Basic claim #2000

Merged
merged 5 commits into from
Dec 17, 2021
Merged

Basic claim #2000

merged 5 commits into from
Dec 17, 2021

Conversation

anxolin
Copy link
Contributor

@anxolin anxolin commented Dec 16, 2021

Summary

This 1st PR wants just to create a few elements that would allow us to reiterate and divide a bit the work.

It re-enables the original claiming functionality from Uniswap, and adapts the minimum necessary to set a starting point.

Note that this PR will merge to claim which can be a standing base branch until this is mergeable in develop.

Included in this PR

Hooks to get the claimable data

It created the mod from the original Uniswap claiming related hooks. This hooks are responsible of fetching data and creating the transaction.

See src/custom/state/claim/hooks/hooksMod.ts

❗️One big difference between UNI and vCOW claiming, is that they have a single claiming per address, while we might have many. I changed the signatures to reflect this, and did the minimal changes to reduce the collections of claimings into something similar to what Uniswap had.

The PR does the minimal changes, but we will need to reiterate to implement the real thing.
It adapts it so we add the claiming information to the "enhanced transaction"

We would need to check this for both xDAI and Mainnet, but for now it has some mock data.

Add Claim button to header

image

This button will be shown if the connected wallet has some unclaimed options/airdrops.

Open Claim modal

image

For now the modal is not "Moded", but I added it to the app. Future PRs should change it.

Menu Claim for an arbitrary account

image

This button will be shown even if you don't have claimigns. So you can claim for someone else.

Claim for an arbitrary account modal

Added the modal to claim for someone else:

image

This modal hasn't been moded in the PR yet. It should be done in a different one.

Claim and Invest page

The idea (although I haven't reflected it in the wireframes yet) is to try to only send the user to this new page if there's some investment to be done.

This PR just creates the Route Paths. It added some content copied from the pools, which will dissapear. However, there's a nice component we can use (the countdown shown below):

image

The countdown can be used to inform about the time left to claim the Airdrop and/or invest

@anxolin anxolin changed the base branch from develop to claim-cow December 16, 2021 10:22
@anxolin anxolin marked this pull request as ready for review December 16, 2021 10:35
@anxolin anxolin requested review from W3stside, alfetopito, nenadV91 and fairlighteth and removed request for W3stside December 16, 2021 10:35
@anxolin anxolin changed the base branch from claim-cow to claim December 16, 2021 10:41
@github-actions
Copy link
Contributor

  • 🔭 GP Swap: Gnosis Protocol v2 Swap UI

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.

1 participant