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

Redeem Page #237

Open
andytudhope opened this issue Jan 31, 2022 · 0 comments · Fixed by #354
Open

Redeem Page #237

andytudhope opened this issue Jan 31, 2022 · 0 comments · Fixed by #354
Assignees
Labels
enhancement New feature or request

Comments

@andytudhope
Copy link
Contributor

Describe the solution you'd like

Each course created at the level of the smart contracts has some specified time period for which it runs. At the end of this period, the learner can either redeem the fee they staked at the beginning, or use that fee to mint new LEARN tokens. The deeper reasoning behind this can be found here.

Therefore, we need to create a separate page that can show learners when their fee is redeemable and allow them to redeem it.

To make this easy on ourselves for v1, I specifically suggest a /redeem page, which can call our api using onLoad, check whether the status of the fee, and then allow the learner to sign a transaction with either returns the DAI to them, or mints LEARN (or tell them when to come back to redeem their fee).

Describe alternatives you've considered

This above seems easier then checking against the API whenever a wallet is connected and then figuring out where in the UI to surface this info if the learner is anywhere random in the course.

Additional context

My sense is that we will need to sit together and create a proper design for this page before implementing it.

@andytudhope andytudhope added the enhancement New feature or request label Jan 31, 2022
@thestrabusiness thestrabusiness self-assigned this May 20, 2022
@thestrabusiness thestrabusiness linked a pull request May 20, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants