-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
backendnon-rewardedonlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source week
Description
mplement a backend logic that dynamically generates a congratulatory message when a user claims an Impact Product level. The message should change based on whether it is their first claim, a level upgrade, or the final milestone.
Tasks:
✅ Retrieve User’s Current Impact Product Level:
- Query the dIP smart contract to get the user’s existing level.
✅ Determine & Assign the Correct Message:
- If Level 1 is being claimed:
Congratulations! You’ve just received the first level of DeCleanup Impact Product. Come back for more! Share your referral with friends and earn more DCU Points. - If Level 2-9 is being claimed:
Congratulations! You’ve just upgraded to a higher level of DeCleanup Impact Product. Come back for more! - If Level 10 is being claimed:
Congratulations! You’ve successfully completed all levels of DeCleanup journey at this phase! Stay updated for new level updates.
✅ Modify API Response for Claim Requests:
- Implement logic in the reward claim API (
/api/rewards/claim). - Return the correct confirmation message in the response based on the claimed level.
Metadata
Metadata
Assignees
Labels
backendnon-rewardedonlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source week