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

Staking Modal #236

Open
andytudhope opened this issue Jan 31, 2022 · 0 comments
Open

Staking Modal #236

andytudhope opened this issue Jan 31, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@andytudhope
Copy link
Contributor

Describe the solution you'd like

If learners have not staked DAI in the course contract, we need to make it easy for them to do so.

Once their wallet is connected, and if they have yet to stake for the course, an additional button needs appear over the flashcard which reads Stake. Clicking this button ought to pop up a modal which displays the amount to be staked with a short explanation of how and why this works, and let's the learner sign the transaction to deposit DAI.

Describe alternatives you've considered

This seems like the most straightforward solution to me that is friendly for all screens. I am not bound to a modal, it just seems like the neatest design at this early stage.

Screenshots and Additional context

The same wagmi library has all the hooks necessary to display transaction state and help us handle the more async elements of blockchains.

@andytudhope andytudhope added the enhancement New feature or request label Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant