You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 usingonLoad
, 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.
The text was updated successfully, but these errors were encountered: